:root {
  color-scheme: dark;
  --bg:#090b0f;
  --panel:#10141b;
  --panel2:#151b24;
  --line:#273140;
  --text:#f2f4f7;
  --muted:#8e9bad;
  --accent:#d4a958;
  --good:#73c991;
  --danger:#d26464;
  --review:#6fa7d8;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

header {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-end;
  padding:42px max(24px,6vw) 30px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#111722 0%,#090b0f 100%);
}

h1,h2,h3,p {
  margin:0;
}

.eyebrow {
  font-size:12px;
  letter-spacing:.18em;
  color:var(--accent);
  font-weight:700;
  margin-bottom:8px;
}

h1 {
  font-size:clamp(30px,5vw,56px);
  letter-spacing:-.04em;
}

.sub,
.page-heading p,
.admin-help {
  color:var(--muted);
  margin-top:10px;
}

#clock {
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}


.site-header-right {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  align-self:stretch;
  justify-content:flex-start;
  gap:14px;
}

.site-header-right #clock {
  margin-top:auto;
  text-align:right;
}

.tabs {
  display:flex;
  gap:8px;
  padding:14px max(24px,6vw);
  border-bottom:1px solid var(--line);
  background:#0c1016;
  position:sticky;
  top:0;
  z-index:10;
}

.tab {
  background:transparent;
  color:var(--muted);
  border:1px solid transparent;
  padding:9px 12px;
  border-radius:8px;
}

.tab.active {
  color:#17120a;
  background:var(--accent);
  border-color:var(--accent);
}

.member-tab {
  margin-left:auto;
}

.admin-tab {
  margin-left:0;
  border-color:var(--line);
}

main {
  padding:30px max(24px,6vw) 70px;
}

.tab-panel {
  display:none;
}

.tab-panel.active {
  display:grid;
  gap:34px;
}

.page-heading h2 {
  font-size:30px;
}

.section-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}

.section-head h2 {
  font-size:17px;
}

.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
  gap:14px;
}

.card,
.service,
.panel,
.table-panel,
.recruitment-copy,
.recruitment-form,
.admin-login-card,
.admin-section {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
}

.card,
.service,
.recruitment-copy,
.recruitment-form,
.admin-login-card,
.admin-section {
  padding:18px;
}

.meta {
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.pill {
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  background:var(--panel2);
  border:1px solid var(--line);
  font-size:12px;
  margin-top:12px;
}

.softres {
  margin-top:14px;
  display:flex;
  gap:8px;
}

.softres input,
.filter-row input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.admin-login-form input,
.admin-actions input,
.admin-card select {
  background:#090c11;
  border:1px solid var(--line);
  color:var(--text);
  border-radius:8px;
  padding:11px 12px;
  font:inherit;
}

.softres input {
  min-width:0;
  flex:1;
}

button {
  background:var(--accent);
  color:#17120a;
  border:0;
  border-radius:8px;
  padding:9px 12px;
  font-weight:800;
  cursor:pointer;
}

.planner-tab {
  border-color:var(--accent);
  color:var(--accent);
  background:rgba(215,167,59,.12);
}

a {
  color:var(--accent);
}

.service-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(175px,1fr));
  gap:10px;
}

.status {
  font-size:12px;
  color:var(--good);
  text-transform:uppercase;
  font-weight:800;
}

.two-col {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.panel {
  padding:8px 16px;
  min-height:130px;
}

.row {
  padding:11px 0;
  border-bottom:1px solid var(--line);
}

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

.row small {
  display:block;
  color:var(--muted);
  margin-top:4px;
}

.table-panel {
  overflow:hidden;
}

.report-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:15px 18px;
  border-bottom:1px solid var(--line);
}

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

.report-title {
  font-weight:800;
  text-decoration:none;
}

.open-link {
  white-space:nowrap;
  font-size:13px;
}

.attendance-head,
.attendance-row {
  display:grid;
  grid-template-columns:minmax(180px,2fr) 1fr 110px 120px minmax(180px,1.4fr);
  gap:16px;
  align-items:center;
  padding:13px 18px;
}

.attendance-head {
  background:var(--panel2);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

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

.attendance-signup-count,
.attendance-count {
  font-size:18px;
  font-weight:800;
}

.attendance-signup-count {
  color:var(--text);
}

.attendance-count {
  color:var(--accent);
}

.override-note {
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:500;
}

.filter-row {
  display:flex;
}

.filter-row input {
  width:min(560px,100%);
}

.empty {
  color:var(--muted);
  padding:18px;
}

.recruitment-wrap {
  display:grid;
  grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);
  gap:24px;
  align-items:start;
}

.recruitment-copy h2 {
  font-size:28px;
  margin-bottom:12px;
}

.recruitment-copy p {
  color:var(--muted);
  line-height:1.7;
}

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.form-grid label {
  display:grid;
  gap:7px;
  font-size:13px;
  font-weight:700;
}

.form-grid label span {
  color:var(--accent);
}

.form-grid .wide {
  grid-column:1/-1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width:100%;
}

.form-grid textarea {
  min-height:120px;
  resize:vertical;
}

.form-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:18px;
}

#recruitment-status.success {
  color:var(--good);
}

#recruitment-status.error,
#admin-login-status {
  color:var(--danger);
}

.hidden {
  display:none !important;
}

/* Admin */
.admin-login-card {
  max-width:520px;
}

.admin-login-card h2 {
  margin-bottom:10px;
}

.admin-login-card > p:not(.eyebrow) {
  color:var(--muted);
}

.admin-login-form {
  display:flex;
  gap:10px;
  margin-top:20px;
}

.admin-login-form input {
  flex:1;
}

.admin-panel {
  display:grid;
  gap:22px;
}

.admin-topbar {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
}

.admin-subtabs {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  width:max-content;
  max-width:100%;
}

.admin-subtab {
  background:transparent;
  color:var(--muted);
  border:1px solid transparent;
  padding:9px 14px;
}

.admin-subtab:hover {
  color:var(--text);
  border-color:var(--line);
}

.admin-subtab.active {
  background:var(--panel2);
  border-color:var(--line);
  color:var(--accent);
}

.admin-subpanel {
  display:none;
}

.admin-subpanel.active {
  display:grid;
  gap:20px;
}

.admin-section {
  padding:20px;
}

.archived-section {
  margin-top:4px;
  border-color:#202835;
}

.archive-heading {
  gap:20px;
}

.archive-count {
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}

.admin-archive-search {
  margin-top:18px;
  margin-bottom:16px;
}

.admin-list {
  display:grid;
  gap:12px;
  margin-top:14px;
}

.admin-card {
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:10px;
  padding:16px;
}

.admin-card-head,
.admin-row {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}

.admin-card-head {
  margin-bottom:14px;
}

.admin-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.admin-grid > div {
  background:#0d1117;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
}

.admin-grid .wide {
  grid-column:1/-1;
}

.admin-grid p {
  color:var(--muted);
  margin-top:5px;
  white-space:pre-wrap;
}

.admin-row {
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:9px;
  padding:13px 14px;
}

.admin-actions {
  display:flex;
  align-items:center;
  gap:8px;
}

.admin-actions input {
  width:90px;
}

.recruitment-status-badge {
  display:inline-block;
  width:auto;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  text-transform:capitalize;
}

.status-new {
  color:var(--accent) !important;
}

.status-reviewing {
  color:var(--review) !important;
}

.status-accepted {
  color:var(--good) !important;
}

.status-declined {
  color:var(--danger) !important;
}

.danger-button {
  background:var(--danger);
  color:white;
}

.danger-outline {
  background:transparent;
  color:var(--danger);
  border:1px solid var(--danger);
}

.secondary-button {
  background:#273140;
  color:var(--text);
}

@media(max-width:800px) {
  header {
    align-items:flex-start;
    flex-direction:column;
  }

  .two-col,
  .recruitment-wrap {
    grid-template-columns:1fr;
  }

  .attendance-head {
    display:none;
  }

  .attendance-row {
    grid-template-columns:1fr 1fr;
  }

  .tabs {
    overflow-x:auto;
  }

  .member-tab {
    margin-left:24px;
  }

  .admin-tab {
    margin-left:0;
  }

  .admin-row,
  .admin-card-head,
  .admin-topbar {
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-actions {
    flex-wrap:wrap;
  }

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

  .admin-grid .wide {
    grid-column:auto;
  }

  .admin-subtabs {
    overflow-x:auto;
    width:100%;
  }
}

@media(max-width:600px) {
  .form-grid {
    grid-template-columns:1fr;
  }

  .form-grid .wide {
    grid-column:auto;
  }

  .report-row,
  .admin-login-form {
    align-items:stretch;
    flex-direction:column;
  }
}


.admin-raid-softres {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:8px;
}

.admin-raid-softres a {
  word-break:break-all;
}

.status-good {
  color:var(--good);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.status-missing {
  color:var(--danger);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.admin-raid-row {
  align-items:flex-start;
}


.roster-head,
.roster-row {
  display:grid;
  grid-template-columns:
    minmax(150px,1.3fr)
    minmax(100px,.7fr)
    minmax(260px,2fr)
    80px
    minmax(170px,1fr);
  gap:16px;
  align-items:center;
  padding:13px 18px;
}

.roster-head {
  background:var(--panel2);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

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

.character-link {
  color:var(--text);
  text-decoration:none;
}

.character-link:hover {
  color:var(--accent);
  text-decoration:underline;
}

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

.spec-pill {
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:5px 8px;
  border:1px solid var(--line);
  background:var(--panel2);
  border-radius:999px;
  font-size:12px;
  white-space:nowrap;
}

.spec-pill strong {
  color:var(--accent);
}

@media(max-width:900px) {
  .roster-head {
    display:none;
  }

  .roster-row {
    grid-template-columns:1fr 1fr;
  }

  .spec-list {
    grid-column:1/-1;
  }
}


/* Add to core/public/styles.css */

.roster-sort {
  appearance:none;
  border:0;
  padding:0;
  margin:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:inherit;
  text-transform:inherit;
  letter-spacing:inherit;
  text-align:left;
  cursor:pointer;
}

.roster-sort:hover {
  color:var(--accent);
  text-decoration:underline;
}

.roster-sort:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:3px;
}


.lead-badge {
  display:inline-flex;
  align-items:center;
  margin-left:7px;
  padding:3px 7px;
  border:1px solid var(--accent);
  border-radius:999px;
  color:var(--accent);
  font-size:10px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.06em;
  vertical-align:middle;
}

.lead-form {
  display:flex;
  gap:10px;
  margin:14px 0 8px;
}

.lead-form input {
  flex:1;
  min-width:0;
}

.lead-admin-row {
  align-items:center;
}

@media(max-width:700px) {
  .lead-form {
    flex-direction:column;
  }
}


.alt-badge {
  position:relative;
  display:inline-flex;
  align-items:center;
  margin-left:7px;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.06em;
  vertical-align:middle;
  cursor:help;
}

.alt-tooltip {
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  z-index:50;
  min-width:max-content;
  max-width:220px;
  transform:translateX(-50%);
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel);
  color:var(--text);
  font-size:12px;
  font-weight:600;
  line-height:1.25;
  text-transform:none;
  letter-spacing:normal;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transition:
    opacity .12s ease,
    visibility .12s ease;
}

.alt-badge:hover .alt-tooltip,
.alt-badge:focus-within .alt-tooltip {
  opacity:1;
  visibility:visible;
}

.alt-form {
  display:grid;
  grid-template-columns:
    minmax(180px,1fr)
    minmax(180px,1fr)
    auto;
  gap:12px;
  align-items:end;
  margin:14px 0 8px;
}

.alt-form label {
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.alt-form select {
  width:100%;
}

.alt-group {
  border-top:1px solid var(--line);
  padding:14px 0 0;
}

.alt-group:first-child {
  border-top:0;
}

.alt-group-main {
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 0 8px;
}

.alt-group-list {
  padding-left:18px;
}

.alt-admin-row {
  align-items:center;
}

@media(max-width:800px) {
  .alt-form {
    grid-template-columns:1fr;
  }

  .alt-group-list {
    padding-left:0;
  }
}


.history-controls {
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(180px,280px);
  gap:12px;
  margin:16px 0;
}

.history-controls input,
.history-controls select,
.analytics-controls select {
  width:100%;
}

.raid-history-list {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.raid-history-card {
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  overflow:hidden;
}

.raid-history-card > summary {
  display:grid;
  grid-template-columns:minmax(220px,1.5fr) minmax(420px,2fr);
  gap:18px;
  align-items:center;
  padding:16px 18px;
  cursor:pointer;
  list-style:none;
}

.raid-history-card > summary::-webkit-details-marker {
  display:none;
}

.raid-history-card[open] > summary {
  border-bottom:1px solid var(--line);
}

.raid-history-summary-main {
  display:flex;
  flex-direction:column;
  gap:4px;
}

.raid-history-metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}

.raid-history-metrics > span {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.raid-history-metrics small {
  color:var(--muted);
}

.raid-history-detail {
  display:flex;
  flex-direction:column;
  gap:22px;
  padding:18px;
}

.history-breakdown-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.history-breakdown-grid h3,
.raid-history-detail h3 {
  margin:0 0 10px;
}

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

.composition-pill {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel2);
  font-size:12px;
}

.composition-pill strong {
  color:var(--accent);
}

.boss-results {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}

.boss-result {
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.boss-result span {
  color:var(--muted);
  font-size:12px;
}

.history-roster {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(245px,1fr));
  gap:8px;
}

.history-player {
  display:grid;
  grid-template-columns:minmax(105px,1.2fr) minmax(70px,.8fr) minmax(90px,1fr) auto;
  gap:7px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
  font-size:12px;
}

.guild-member-badge,
.guest-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 6px;
  border-radius:999px;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.guild-member-badge {
  border:1px solid var(--accent);
  color:var(--accent);
}

.guest-badge {
  border:1px solid var(--line);
  color:var(--muted);
}

.analytics-controls {
  display:grid;
  grid-template-columns:repeat(2,minmax(180px,300px));
  gap:12px;
  margin:16px 0;
}

.analytics-controls label {
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.analytics-summary {
  display:grid;
  grid-template-columns:repeat(4,minmax(140px,1fr));
  gap:12px;
  margin:0 0 16px;
}

.metric-card {
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
}

.metric-card span {
  color:var(--muted);
  font-size:12px;
}

.metric-card strong {
  font-size:20px;
}

.analytics-table-head,
.analytics-table-row {
  display:grid;
  grid-template-columns:minmax(150px,1fr) 90px minmax(130px,1fr) 100px 120px;
  gap:14px;
  align-items:center;
  padding:12px 16px;
}

.analytics-table-head {
  background:var(--panel2);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.analytics-table-row {
  border-top:1px solid var(--line);
}

.analytics-table-row small {
  display:block;
}

.sample-warning {
  color:var(--muted);
  margin-top:2px;
}

@media(max-width:900px) {
  .raid-history-card > summary {
    grid-template-columns:1fr;
  }

  .history-breakdown-grid {
    grid-template-columns:1fr;
  }

  .analytics-summary {
    grid-template-columns:repeat(2,1fr);
  }

  .analytics-table-head {
    display:none;
  }

  .analytics-table-row {
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:650px) {
  .history-controls,
  .analytics-controls {
    grid-template-columns:1fr;
  }

  .raid-history-metrics {
    grid-template-columns:repeat(2,1fr);
  }

  .analytics-summary {
    grid-template-columns:1fr 1fr;
  }

  .history-player {
    grid-template-columns:1fr 1fr;
  }
}


.wcl-raid-type-badge {
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.06em;
  vertical-align:middle;
}

.wcl-raid-type-badge.is-afterglow {
  border-color:var(--accent);
  color:var(--accent);
}

.wcl-raid-type-badge.is-pug {
  color:var(--muted);
}

.raid-history-title-line,
.admin-wcl-title-line {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px;
}


#raids.grid {
  grid-template-columns:1fr;
}

.raidhelper-card {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  overflow:hidden;
}

.raidhelper-card-head {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
  padding:18px;
  border-bottom:1px solid var(--line);
}

.raidhelper-card-head h3 {
  margin:2px 0 6px;
  font-size:22px;
}

.raidhelper-description {
  margin:6px 0 0;
  color:var(--muted);
  white-space:pre-wrap;
}

.raidhelper-time-block {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  white-space:nowrap;
}

.raid-countdown {
  color:var(--accent);
  font-size:12px;
  font-weight:800;
}

.raidhelper-overview {
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
}

.raidhelper-overview > div {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.raidhelper-overview small,
.raidhelper-role-counts small {
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.raidhelper-role-counts {
  display:grid;
  grid-template-columns:repeat(6,minmax(90px,1fr));
  gap:1px;
  background:var(--line);
  border-bottom:1px solid var(--line);
}

.raidhelper-role-counts > span {
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:12px 14px;
  background:var(--panel2);
}

.raidhelper-role-counts strong {
  font-size:18px;
}

.raidhelper-class-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:12px;
  padding:18px;
}

.raidhelper-class-group {
  padding:12px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel2);
}

.raidhelper-class-group h4 {
  display:flex;
  gap:6px;
  margin:0 0 9px;
  font-size:14px;
}

.raidhelper-class-group h4 span {
  color:var(--muted);
}

.raidhelper-member-list {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.raidhelper-member {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  min-width:0;
}

.raidhelper-member strong {
  overflow:hidden;
  text-overflow:ellipsis;
}

.raidhelper-member small {
  color:var(--muted);
}

.raidhelper-signup-number {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  padding:2px 5px;
  border:1px solid var(--line);
  border-radius:5px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}

.raidhelper-secondary-signups {
  display:grid;
  gap:8px;
  padding:0 18px 18px;
}

.raidhelper-secondary-signups > div {
  display:flex;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
}

.raidhelper-secondary-signups span {
  color:var(--muted);
}

.raidhelper-template-details {
  margin:0 18px 18px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}

.raidhelper-template-details summary {
  padding:10px 12px;
  cursor:pointer;
  font-weight:800;
}

.raidhelper-template-fields {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1px;
  background:var(--line);
  border-top:1px solid var(--line);
}

.raidhelper-template-fields > div {
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:10px 12px;
  background:var(--panel2);
}

.raidhelper-template-fields span {
  color:var(--muted);
  white-space:pre-wrap;
}

.raidhelper-footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:14px 18px;
  border-top:1px solid var(--line);
}

.raidhelper-links {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.raidhelper-softres {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.raidhelper-softres .pill {
  margin-top:0;
}

.raidhelper-softres .softres {
  margin-top:0;
}

.raidhelper-banner {
  display:block;
  width:100%;
  max-height:240px;
  object-fit:cover;
  border-top:1px solid var(--line);
}

@media(max-width:900px) {
  .raidhelper-role-counts {
    grid-template-columns:repeat(3,1fr);
  }

  .raidhelper-card-head,
  .raidhelper-footer {
    flex-direction:column;
  }

  .raidhelper-time-block {
    align-items:flex-start;
  }
}

@media(max-width:560px) {
  .raidhelper-role-counts {
    grid-template-columns:repeat(2,1fr);
  }

  .raidhelper-secondary-signups > div {
    flex-direction:column;
  }
}


.roster-class-row {
  align-items:center;
}

.roster-class-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.roster-class-actions select {
  min-width:145px;
}

.unknown-class-badge {
  display:inline-flex;
  align-items:center;
  margin-top:6px;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.05em;
}

@media(max-width:700px) {
  .roster-class-actions {
    width:100%;
  }

  .roster-class-actions select {
    flex:1;
  }
}


.upcoming-raid-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
  padding:4px 0;
}

.upcoming-raid-tab {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 13px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  color:var(--muted);
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.upcoming-raid-tab:hover {
  border-color:var(--accent);
  color:var(--text);
}

.upcoming-raid-tab.active {
  border-color:var(--accent);
  background:var(--accent);
  color:#111;
}

.upcoming-raid-tab small {
  opacity:.75;
  font-size:10px;
}

.upcoming-raid-day-panel {
  display:none;
}

.upcoming-raid-day-panel.active {
  display:block;
}

.upcoming-raid-day-cards {
  display:flex;
  flex-direction:column;
  gap:14px;
}

@media(max-width:600px) {
  .upcoming-raid-tabs {
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .upcoming-raid-tab {
    justify-content:center;
  }
}


/* =========================================================
   Raid Analytics — Best Comps / Composition Lab / Comparison
   ========================================================= */

.analytics-global-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:14px;
  margin:16px 0;
}

.analytics-global-controls > label:not(.analytics-check),
.analytics-section-heading > label,
.lab-controls label,
.compare-controls label {
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:210px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.analytics-global-controls select,
.analytics-section-heading select,
.lab-controls select,
.compare-controls select {
  width:100%;
}

.analytics-check {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 4px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.analytics-check input {
  width:auto;
}

.analytics-subtabs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}

.analytics-subtab {
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px 13px;
  background:var(--panel);
  color:var(--muted);
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.analytics-subtab:hover {
  border-color:var(--accent);
  color:var(--text);
}

.analytics-subtab.active {
  border-color:var(--accent);
  background:var(--accent);
  color:#111;
}

.analytics-view {
  display:none;
}

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

.analytics-section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:12px 0 14px;
}

.analytics-section-heading.compact {
  align-items:center;
  margin:0 0 12px;
}

.analytics-section-heading h3 {
  margin:0 0 4px;
}

.analytics-section-heading p {
  margin:0;
  color:var(--muted);
}

.analytics-section-spaced {
  margin-top:28px;
}

.analytics-summary {
  grid-template-columns:repeat(5,minmax(130px,1fr));
}

.analytics-score-explanation {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  padding:11px 14px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel2);
  font-size:12px;
}

.analytics-score-explanation span {
  color:var(--muted);
}

.best-comps-list {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.best-comp-card {
  display:grid;
  grid-template-columns:92px 1fr;
  gap:16px;
  align-items:stretch;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  overflow:hidden;
}

.best-comp-rank {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:14px;
  background:var(--panel2);
}

.best-comp-rank span,
.best-comp-rank small {
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.best-comp-rank strong {
  color:var(--accent);
  font-size:25px;
}

.best-comp-main {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
  padding:14px 16px 14px 0;
}

.best-comp-metrics {
  display:grid;
  grid-template-columns:repeat(6,minmax(90px,1fr));
  gap:10px;
}

.best-comp-metrics span {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.best-comp-metrics small {
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.lab-controls {
  display:grid;
  grid-template-columns:minmax(240px,1.6fr) minmax(180px,1fr) minmax(160px,.8fr) auto;
  gap:12px;
  align-items:end;
  margin:12px 0 14px;
}

.secondary-button {
  border:1px solid var(--line);
  border-radius:7px;
  padding:9px 12px;
  background:var(--panel2);
  color:var(--text);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.secondary-button:hover {
  border-color:var(--accent);
}

.lab-base-summary {
  display:grid;
  grid-template-columns:minmax(220px,2fr) repeat(3,minmax(110px,1fr));
  gap:1px;
  margin-bottom:14px;
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  background:var(--line);
}

.lab-base-summary > div {
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:11px 13px;
  background:var(--panel2);
}

.lab-base-summary span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.lab-layout {
  display:grid;
  grid-template-columns:minmax(440px,1.5fr) minmax(320px,1fr);
  gap:14px;
}

.lab-editor-panel,
.lab-change-panel {
  border:1px solid var(--line);
  border-radius:10px;
  padding:16px;
  background:var(--panel);
}

.lab-change-panel h3 {
  margin:0 0 10px;
}

.lab-change-panel h3:not(:first-child) {
  margin-top:20px;
}

.lab-player-total {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  color:var(--accent);
}

.lab-player-total small {
  color:var(--muted);
  font-size:10px;
}

.lab-class-editor {
  display:flex;
  flex-direction:column;
  gap:1px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:var(--line);
}

.lab-class-row {
  display:grid;
  grid-template-columns:minmax(190px,1fr) 120px 48px;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  background:var(--panel2);
}

.lab-class-row > div:first-child {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.lab-class-row > div:first-child span {
  color:var(--muted);
  font-size:11px;
}

.lab-stepper {
  display:grid;
  grid-template-columns:32px 42px 32px;
  gap:4px;
  align-items:center;
  justify-content:end;
}

.lab-stepper button {
  width:32px;
  height:30px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel);
  color:var(--text);
  font-size:18px;
  font-weight:800;
  cursor:pointer;
}

.lab-stepper button:hover:not(:disabled) {
  border-color:var(--accent);
  color:var(--accent);
}

.lab-stepper button:disabled {
  opacity:.35;
  cursor:not-allowed;
}

.lab-stepper strong {
  text-align:center;
}

.lab-class-delta {
  text-align:right;
  color:var(--muted);
  font-weight:800;
}

.positive {
  color:#77d68c !important;
}

.negative {
  color:#ef7b7b !important;
}

.lab-deltas,
.lab-utility {
  display:flex;
  flex-direction:column;
  gap:7px;
}

.lab-delta-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel2);
}

.lab-delta-row span {
  color:var(--muted);
}

.utility-change-list {
  display:flex;
  flex-direction:column;
  gap:7px;
}

.utility-change {
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel2);
}

.utility-change strong {
  color:var(--accent);
}

.utility-change span {
  color:var(--muted);
  line-height:1.35;
}

.utility-change.special {
  border-color:var(--accent);
}

.utility-coverage {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:7px;
}

.utility-coverage span {
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.lab-comparison {
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
}

.lab-comparison-head,
.lab-comparison-row {
  display:grid;
  grid-template-columns:minmax(160px,1.2fr) 1fr 1fr;
  gap:12px;
  padding:10px 13px;
  align-items:center;
}

.lab-comparison-head {
  background:var(--panel2);
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.lab-comparison-row {
  border-top:1px solid var(--line);
}

.lab-comparison-foot {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:9px 13px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
}

.lab-nearest-raids {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}

.nearest-column {
  display:flex;
  flex-direction:column;
  gap:7px;
}

.nearest-column h4 {
  margin:0 0 2px;
}

.nearest-raid {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel);
  font-size:12px;
}

.nearest-raid > div {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.nearest-raid span {
  color:var(--muted);
}

.compare-controls {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:12px 0 14px;
}

.compare-summary {
  display:grid;
  grid-template-columns:1fr 220px 1fr;
  gap:12px;
  margin-bottom:18px;
}

.compare-raid-card,
.compare-change-card {
  display:grid;
  gap:8px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
}

.compare-raid-card > span,
.compare-change-card > span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.compare-raid-card > div {
  display:flex;
  justify-content:space-between;
  gap:8px;
}

.compare-raid-card small {
  color:var(--muted);
}

.compare-change-card {
  align-content:center;
  text-align:center;
}

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

.compare-grid > section {
  border:1px solid var(--line);
  border-radius:9px;
  padding:14px;
  background:var(--panel);
}

.compare-grid h3 {
  margin:0 0 10px;
}

.compare-diff-list {
  display:flex;
  flex-direction:column;
  gap:5px;
}

.compare-diff-row {
  display:grid;
  grid-template-columns:1fr 90px 48px;
  gap:8px;
  align-items:center;
  padding:7px 8px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel2);
}

.compare-diff-row span {
  text-align:right;
  color:var(--muted);
}

.compare-bosses {
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
}

.compare-boss-head,
.compare-boss-row {
  display:grid;
  grid-template-columns:minmax(150px,1fr) 1fr 1fr;
  gap:12px;
  align-items:center;
  padding:10px 12px;
}

.compare-boss-head {
  background:var(--panel2);
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.compare-boss-row {
  border-top:1px solid var(--line);
}

.analytics-disclaimer {
  margin-top:24px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--muted);
  font-size:12px;
}

.analytics-disclaimer strong {
  color:var(--text);
}

.compact-empty {
  padding:10px !important;
}

@media(max-width:1100px) {
  .analytics-summary {
    grid-template-columns:repeat(3,1fr);
  }

  .best-comp-metrics {
    grid-template-columns:repeat(3,1fr);
  }

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

  .lab-controls {
    grid-template-columns:1fr 1fr;
  }

  .compare-summary {
    grid-template-columns:1fr;
  }

  .compare-change-card {
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:760px) {
  .analytics-section-heading {
    align-items:stretch;
    flex-direction:column;
  }

  .analytics-section-heading > label {
    width:100%;
  }

  .analytics-summary {
    grid-template-columns:1fr 1fr;
  }

  .best-comp-card {
    grid-template-columns:70px 1fr;
  }

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

  .lab-controls,
  .compare-controls,
  .compare-grid,
  .lab-nearest-raids {
    grid-template-columns:1fr;
  }

  .lab-base-summary {
    grid-template-columns:1fr 1fr;
  }

  .lab-class-row {
    grid-template-columns:1fr 120px 42px;
  }

  .lab-class-row > div:first-child span {
    display:none;
  }

  .lab-comparison-foot {
    flex-direction:column;
  }

  .compare-boss-head,
  .compare-boss-row {
    grid-template-columns:1fr;
  }

  .compare-boss-head {
    display:none;
  }
}

@media(max-width:520px) {
  .analytics-summary {
    grid-template-columns:1fr;
  }

  .analytics-global-controls {
    flex-direction:column;
    align-items:stretch;
  }

  .best-comp-card {
    grid-template-columns:1fr;
  }

  .best-comp-rank {
    flex-direction:row;
  }

  .best-comp-main {
    padding:14px;
  }

  .lab-class-row {
    grid-template-columns:1fr;
  }

  .lab-stepper {
    justify-content:start;
  }

  .lab-class-delta {
    text-align:left;
  }
}


/* =========================================================
   Member Discord identity
   ========================================================= */


.member-access-wrap {
  max-width:820px;
  margin:0 auto;
}

.member-card {
  margin-top:16px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel);
}

.member-card h3 {
  margin:0 0 8px;
}

.member-card p {
  color:var(--muted);
  line-height:1.5;
}

.discord-login-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:10px 15px;
  border-radius:8px;
  background:#5865f2;
  color:#fff;
  text-decoration:none;
  font-weight:800;
}

.discord-login-button:hover {
  filter:brightness(1.08);
}

.disabled-link {
  opacity:.45;
  cursor:not-allowed;
}

.member-account-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}

.member-account-head > div {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.member-account-head span {
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.member-link-state {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:16px 0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel2);
}

.member-link-state > span {
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.member-link-state > strong {
  font-size:20px;
}

.member-link-state > small {
  color:var(--muted);
}

.member-link-state.approved {
  border-color:#4c9e63;
}

.member-link-state.pending {
  border-color:#c7a449;
}

.member-link-state.rejected {
  border-color:#a65151;
}

.member-character-form {
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto;
  gap:10px;
  align-items:end;
}

.member-character-form label {
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.member-auth-status .notice {
  margin-top:12px;
}

.notice {
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.notice.warning {
  border-color:#c7a449;
}

.notice.error {
  border-color:#a65151;
}

.member-link-admin-row {
  align-items:center;
}

.member-link-admin-info {
  min-width:0;
}

.member-link-admin-title {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}

.member-link-character {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
  color:var(--muted);
}

.member-status-badge {
  display:inline-flex;
  align-items:center;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.member-status-badge.pending {
  border-color:#c7a449;
  color:#d9b958;
}

.member-status-badge.approved,
.member-status-badge.lead {
  border-color:#4c9e63;
  color:#77d68c;
}

.member-status-badge.rejected {
  border-color:#a65151;
  color:#ef7b7b;
}

.member-link-admin-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

@media(max-width:800px) {
  .member-character-form {
    grid-template-columns:1fr;
  }

  .member-account-head {
    align-items:flex-start;
    flex-direction:column;
  }

  .member-link-admin-actions {
    width:100%;
  }
}


/* Top-right Discord member control */
.top-member-auth {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.top-member-login,
.top-member-account {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--text);
  font:inherit;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}

.top-member-login:hover,
.top-member-account:hover {
  border-color:var(--accent);
  color:var(--accent);
}

.top-member-login {
  border-color:#5865f2;
}

.top-member-account {
  max-width:190px;
}

.top-member-account span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(max-width:800px) {
  header {
    align-items:flex-start;
  }

  .site-header-right {
    flex-shrink:0;
  }

  .top-member-auth {
    justify-content:flex-end;
  }
}


@media(max-width:560px) {
  header {
    flex-direction:column;
    align-items:stretch;
  }

  .site-header-right {
    width:100%;
    align-items:flex-end;
    gap:10px;
  }

  .site-header-right #clock {
    margin-top:0;
  }
}


/* =========================================================
   Phase Loot Priority
   ========================================================= */

.member-loot-section {
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.member-loot-phase {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  margin:12px 0;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:var(--line);
}

.member-loot-phase > div {
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 12px;
  background:var(--panel2);
}

.member-loot-phase span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.member-loot-toolbar {
  display:flex;
  gap:10px;
  margin:12px 0;
}

.member-loot-toolbar input {
  flex:1;
}

.member-loot-list {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.member-loot-row {
  display:grid;
  grid-template-columns:1fr 120px;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.member-loot-item {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.member-loot-item span {
  color:var(--muted);
  font-size:11px;
}

.member-loot-row label {
  display:flex;
  align-items:center;
  gap:7px;
}

.member-loot-row label span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}

.member-loot-row input {
  width:66px;
  text-align:center;
}

.loot-admin-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:14px;
}

.loot-admin-card {
  padding:16px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
}

.loot-admin-card h3 {
  margin:0 0 12px;
}

.loot-admin-spaced {
  margin-top:14px;
}

.loot-phase-create,
.loot-item-create {
  display:grid;
  gap:8px;
}

.loot-phase-create {
  grid-template-columns:1.5fr 1fr 1fr auto;
}

.loot-item-create {
  grid-template-columns:1.6fr .8fr 1fr .8fr auto;
}

.loot-phase-list {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:12px;
}

.loot-phase-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel2);
}

.loot-phase-row.active {
  border-color:var(--accent);
}

.loot-phase-row > div {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.loot-phase-row span {
  color:var(--muted);
  font-size:11px;
}

.loot-ranking-layout {
  display:grid;
  grid-template-columns:minmax(240px,.8fr) minmax(420px,1.8fr);
  gap:14px;
}

.loot-admin-items {
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:650px;
  overflow:auto;
}

.loot-admin-item {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel2);
  color:var(--text);
  text-align:left;
  cursor:pointer;
}

.loot-admin-item:hover,
.loot-admin-item.active {
  border-color:var(--accent);
}

.loot-admin-item span {
  color:var(--muted);
  font-size:11px;
}

.loot-admin-ranking {
  min-height:260px;
}

.loot-ranking-head {
  padding:0 0 12px;
  border-bottom:1px solid var(--line);
}

.loot-ranking-head h3 {
  margin:2px 0 3px;
}

.loot-ranking-head span {
  color:var(--muted);
}

.loot-ranking-row {
  display:grid;
  grid-template-columns:44px 1fr 150px;
  gap:12px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}

.loot-ranking-position {
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border:1px solid var(--line);
  border-radius:50%;
  font-weight:900;
}

.loot-ranking-player,
.loot-ranking-score {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.loot-ranking-player span,
.loot-ranking-score span {
  color:var(--muted);
  font-size:11px;
}

.loot-ranking-score {
  text-align:right;
}

.loot-ranking-score strong {
  color:var(--accent);
  font-size:18px;
}

.loot-ranking-toolbar {
  margin-bottom:12px;
}

.loot-ranking-toolbar input {
  width:100%;
}

@media(max-width:1000px) {
  .loot-admin-grid {
    grid-template-columns:1fr;
  }

  .loot-phase-create,
  .loot-item-create {
    grid-template-columns:1fr 1fr;
  }

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

@media(max-width:650px) {
  .member-loot-phase,
  .member-loot-row,
  .loot-phase-create,
  .loot-item-create {
    grid-template-columns:1fr;
  }

  .member-loot-toolbar {
    flex-direction:column;
  }

  .loot-ranking-row {
    grid-template-columns:40px 1fr;
  }

  .loot-ranking-score {
    grid-column:2;
    text-align:left;
  }
}


/* Loot officer tools */
.loot-bulk-import,
.loot-addon-export {
  width:100%;
  min-height:130px;
  resize:vertical;
  font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size:12px;
}

.loot-addon-export {
  margin-top:10px;
  word-break:break-all;
}

.loot-bulk-actions {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:9px;
}

.lead-loot-toolbar {
  margin:12px 0;
}

.lead-loot-toolbar input {
  width:100%;
}

.loot-ranking-row-actions {
  grid-template-columns:44px minmax(190px,1fr) 150px auto;
}

.loot-ranking-actions {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.loot-ranking-actions button {
  white-space:nowrap;
}

.loot-history-list {
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:520px;
  overflow:auto;
}

.loot-history-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel2);
}

.loot-history-row > div {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.loot-history-row span {
  color:var(--muted);
  font-size:11px;
}

@media(max-width:900px) {
  .loot-ranking-row-actions {
    grid-template-columns:40px 1fr;
  }

  .loot-ranking-score,
  .loot-ranking-actions {
    grid-column:2;
    text-align:left;
    justify-content:flex-start;
  }
}


.loot-static-catalogs {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.loot-static-catalog-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.loot-static-catalog-row > div {
  display:flex;
  flex-direction:column;
  gap:4px;
}

.loot-static-catalog-row span {
  color:var(--muted);
  font-size:11px;
}

@media(max-width:650px) {
  .loot-static-catalog-row {
    align-items:stretch;
    flex-direction:column;
  }
}


/* Loot item icons, details, and member ordering */
.loot-item-identity {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:inherit;
  text-decoration:none;
}

.loot-item-identity:hover strong {
  color:var(--accent);
}

.loot-item-icon-wrap {
  position:relative;
  display:inline-flex;
  flex:0 0 auto;
}

.loot-item-icon {
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:7px;
  object-fit:cover;
  background:#111;
}

.loot-item-identity.compact .loot-item-icon {
  width:32px;
  height:32px;
}

.loot-item-text {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.loot-item-text > strong {
  overflow:hidden;
  text-overflow:ellipsis;
}

.loot-item-text > span {
  color:var(--muted);
  font-size:11px;
}

.loot-item-tooltip {
  display:none;
  position:absolute;
  z-index:80;
  left:calc(100% + 8px);
  top:0;
  width:310px;
  max-height:430px;
  overflow:auto;
  padding:12px;
  border:1px solid #555;
  border-radius:8px;
  background:#070707;
  box-shadow:0 12px 32px rgba(0,0,0,.55);
  color:#eee;
  font-size:11px;
  line-height:1.42;
  pointer-events:none;
}

.loot-item-icon-wrap:hover .loot-item-tooltip {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.loot-item-tooltip > strong {
  color:#a335ee;
  font-size:13px;
}

.loot-tooltip-body {
  color:#f5f5f5;
}

.loot-tooltip-footer,
.loot-tooltip-muted {
  color:#999;
}

.member-priority-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:18px;
}

.member-priority-selected,
.member-priority-available {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.member-priority-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:3px;
}

.member-priority-heading h4 {
  margin:0 0 2px;
}

.member-priority-heading span,
.member-priority-heading small {
  color:var(--muted);
  font-size:11px;
}

#member-priority-selected-list,
.member-priority-available-list {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.member-priority-selected-row {
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.member-priority-number {
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border:1px solid var(--accent);
  border-radius:50%;
  color:var(--accent);
  font-weight:900;
}

.member-priority-actions {
  display:flex;
  align-items:center;
  gap:5px;
}

.member-priority-actions button {
  min-width:34px;
}

.member-loot-row-available {
  grid-template-columns:minmax(0,1fr) auto;
}

.loot-phase-actions {
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.loot-metadata-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.loot-admin-item .loot-item-identity {
  width:100%;
}

.loot-admin-item-count {
  padding-left:42px;
  color:var(--muted);
  font-size:10px;
}

@media(max-width:700px) {
  .member-priority-selected-row {
    grid-template-columns:36px minmax(0,1fr);
  }

  .member-priority-actions {
    grid-column:2;
    justify-content:flex-start;
  }

  .loot-item-tooltip {
    left:auto;
    right:0;
    width:min(310px,75vw);
  }
}


/* Strict TBC Anniversary Wowhead item presentation */
.loot-item-identity.wowhead-tbc-item {
  position:relative;
}

.loot-item-identity.wowhead-tbc-item .iconsmall,
.loot-item-identity.wowhead-tbc-item .iconmedium,
.loot-item-identity.wowhead-tbc-item .iconlarge {
  flex:0 0 auto;
  margin:0 !important;
}

.loot-unresolved-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#111;
  color:#d9a441;
  font-size:25px;
  font-weight:900;
}

.loot-item-identity.compact .loot-unresolved-icon {
  width:32px;
  height:32px;
  font-size:20px;
}


/* =========================================================
   Officer Loot Workflow
   ========================================================= */

.loot-submission-summary {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}

.loot-submission-summary > div {
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.loot-submission-summary span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.loot-submission-summary strong {
  font-size:20px;
}

.loot-officer-toolbar {
  display:grid;
  grid-template-columns:1fr 210px;
  gap:8px;
  margin-bottom:12px;
}

.loot-officer-layout {
  display:grid;
  grid-template-columns:minmax(240px,.72fr) minmax(420px,1.5fr);
  gap:14px;
}

.loot-submission-members {
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:620px;
  overflow:auto;
}

.loot-submission-member {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
  color:var(--text);
  text-align:left;
  cursor:pointer;
}

.loot-submission-member:hover,
.loot-submission-member.active {
  border-color:var(--accent);
}

.loot-submission-member > span:not(.loot-submission-name) {
  color:var(--muted);
  font-size:11px;
}

.loot-submission-name {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.loot-submission-detail {
  min-height:320px;
}

.loot-member-detail-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}

.loot-member-detail-head h3 {
  margin:2px 0 4px;
}

.loot-member-detail-head > div > span {
  color:var(--muted);
  font-size:11px;
}

.loot-member-wishlist {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:12px;
}

.loot-member-wishlist-row {
  display:grid;
  grid-template-columns:42px 1fr;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel2);
}

.loot-member-wishlist-row > div {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.loot-member-wishlist-row span {
  color:var(--muted);
  font-size:11px;
}

.loot-member-note,
.loot-phase-officer-notes {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:14px;
}

.loot-member-note > span,
.loot-phase-officer-notes > span {
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

.loot-member-note textarea,
.loot-phase-officer-notes textarea {
  width:100%;
  resize:vertical;
}

.loot-member-detail-actions,
.loot-phase-lock-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.loot-phase-lock-status {
  margin-bottom:10px;
}

.loot-ranking-filters {
  display:grid;
  grid-template-columns:minmax(240px,1fr) 210px 210px;
  gap:8px;
}

#member-loot-lock-state {
  margin:10px 0;
}

@media(max-width:1000px) {
  .loot-officer-layout {
    grid-template-columns:1fr;
  }

  .loot-ranking-filters {
    grid-template-columns:1fr;
  }
}

@media(max-width:700px) {
  .loot-submission-summary {
    grid-template-columns:1fr 1fr;
  }

  .loot-officer-toolbar {
    grid-template-columns:1fr;
  }
}


#loot-award-import {
  width:100%;
  resize:vertical;
  font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size:12px;
}


/* =========================================================
   Header Discord widget
   ========================================================= */

.header-discord-widget {
  position:relative;
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  z-index:120;
}

.header-discord-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
  color:var(--text);
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
}

.header-discord-button:hover,
.header-discord-button[aria-expanded="true"] {
  border-color:var(--accent);
  color:var(--accent);
}

.discord-widget-panel {
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:374px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  box-shadow:0 18px 50px rgba(0,0,0,.55);
  z-index:999;
}

.discord-widget-panel[hidden] {
  display:none !important;
}

.discord-widget-panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:2px 2px 10px;
}

.discord-widget-panel-head > div {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.discord-widget-panel-head strong {
  color:var(--text);
  font-size:13px;
}

.discord-widget-panel-head span {
  color:var(--muted);
  font-size:10px;
}

.discord-widget-close {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel2);
  color:var(--text);
  font-size:20px;
  line-height:1;
  cursor:pointer;
}

.discord-widget-close:hover {
  border-color:var(--accent);
  color:var(--accent);
}

.discord-widget-panel iframe {
  display:block;
  width:350px;
  height:500px;
  max-width:100%;
  border:0;
  border-radius:7px;
  background:#1e1f22;
}

@media(max-width:520px) {
  .discord-widget-panel {
    position:fixed;
    top:70px;
    right:12px;
    left:12px;
    width:auto;
  }

  .discord-widget-panel iframe {
    width:100%;
    height:min(500px,70vh);
  }
}


/* =========================================================
   Private Member Tools — Guild Bank / Auction House
   ========================================================= */

.member-private-tools-nav {
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin:18px 0 12px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
}

.member-private-tool {
  min-height:36px;
  padding:0 14px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.member-private-tool:hover {
  color:var(--text);
  border-color:var(--line);
}

.member-private-tool.active {
  color:var(--accent);
  border-color:var(--line);
  background:var(--panel);
}

.member-private-tool-panel {
  margin-top:8px;
}

.member-resource-summary {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}

.member-resource-summary > div {
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.member-resource-summary span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.member-resource-summary strong {
  font-size:18px;
}

.member-resource-date {
  font-size:12px !important;
  line-height:1.3;
}

.member-resource-toolbar {
  display:grid;
  grid-template-columns:minmax(240px,1fr) 220px;
  gap:8px;
  margin-bottom:10px;
}

.member-resource-list {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.member-resource-row {
  display:grid;
  grid-template-columns:minmax(280px,1fr) 80px minmax(140px,.6fr);
  gap:12px;
  align-items:center;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.member-resource-item {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.member-resource-item > img {
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:1px solid var(--line);
  border-radius:7px;
  object-fit:cover;
  background:#111;
}

.member-resource-item > span {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.member-resource-item strong {
  overflow:hidden;
  text-overflow:ellipsis;
}

.member-resource-item small,
.member-auction-price small {
  color:var(--muted);
  font-size:10px;
}

.member-resource-qty {
  color:var(--text);
  font-weight:800;
  text-align:center;
}

.member-resource-note {
  color:var(--muted);
  font-size:11px;
}

.member-auction-row {
  grid-template-columns:minmax(280px,1fr) 70px 125px 125px;
}

.member-auction-price {
  display:flex;
  flex-direction:column;
  gap:2px;
  text-align:right;
}

.member-auction-price strong {
  font-size:12px;
}

@media(max-width:850px) {
  .member-resource-row,
  .member-auction-row {
    grid-template-columns:minmax(0,1fr) auto;
  }

  .member-resource-note,
  .member-auction-price {
    grid-column:1 / -1;
    text-align:left;
  }

  .member-auction-price + .member-auction-price {
    margin-top:-5px;
  }
}

@media(max-width:650px) {
  .member-resource-summary {
    grid-template-columns:1fr;
  }

  .member-resource-toolbar {
    grid-template-columns:1fr;
  }

  .member-private-tools-nav {
    align-items:stretch;
  }

  .member-private-tool {
    flex:1 1 auto;
  }
}


.economy-import-card {
  margin-bottom:14px;
}

.economy-import-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:10px;
}

#admin-bank-tsm-text,
#admin-ah-tsm-text {
  width:100%;
  min-height:130px;
  resize:vertical;
  font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size:11px;
}

.economy-admin-list {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.economy-admin-row {
  display:grid;
  grid-template-columns:minmax(280px,1fr) 80px minmax(160px,.6fr);
  gap:12px;
  align-items:center;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.economy-admin-row > span:first-child {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.economy-admin-row small {
  color:var(--muted);
  font-size:10px;
}

.economy-admin-ah-row {
  grid-template-columns:minmax(280px,1fr) 70px 120px 120px;
}

@media(max-width:800px) {
  .economy-import-grid {
    grid-template-columns:1fr;
  }

  .economy-admin-row,
  .economy-admin-ah-row {
    grid-template-columns:1fr auto;
  }
}


#admin-bank-afterglowdata {
  width:100%;
  min-height:175px;
  resize:vertical;
  font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size:11px;
}


.economy-admin-ah-row {
  grid-template-columns:minmax(260px,1fr) repeat(4,120px);
}

.member-auction-row {
  grid-template-columns:minmax(260px,1fr) repeat(4,120px);
}

@media(max-width:900px) {
  .economy-admin-ah-row,
  .member-auction-row {
    grid-template-columns:minmax(0,1fr) 1fr;
  }
}


.ah-tracked-card {
  margin-bottom:14px;
}

.ah-tracked-add {
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto minmax(180px,.7fr);
  gap:8px;
  align-items:center;
  margin-bottom:10px;
}

.ah-tracked-list {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.ah-tracked-row {
  display:grid;
  grid-template-columns:minmax(280px,1fr) 120px 90px;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.ah-tracked-name {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.ah-tracked-name small {
  font-size:10px;
}

.ah-tracked-name small.matched {
  color:var(--muted);
}

.ah-tracked-name small.missing {
  color:#d6a35c;
}

.ah-tracked-price {
  text-align:right;
  font-size:12px;
  font-weight:800;
}

@media(max-width:700px) {
  .ah-tracked-add {
    grid-template-columns:1fr;
  }

  .ah-tracked-row {
    grid-template-columns:minmax(0,1fr) auto;
  }

  .ah-tracked-price {
    grid-column:1 / -1;
    text-align:left;
  }
}


/* Guild Bank uses the same Wowhead TBC icon + tooltip presentation as Phase Loot. */
.guild-bank-item-cell {
  display:block;
  min-width:0;
}

.guild-bank-item-cell .loot-item-identity {
  width:100%;
}

.guild-bank-item-cell .loot-item-text {
  min-width:0;
}

.guild-bank-wowhead-item > ins,
.guild-bank-wowhead-item > span:first-child:not(.loot-item-text) {
  flex:0 0 auto;
}


/* =========================================================
   Guild Bank — exact tab / slot layout
   ========================================================= */

#member-bank-summary.member-resource-summary {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:12px 0 14px;
}

.member-bank-summary-card {
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel2);
}

.member-bank-summary-card > span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.member-bank-summary-card > strong {
  font-size:17px;
}

.member-resource-toolbar {
  align-items:center;
}

.member-bank-tabs {
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.member-bank-tab {
  min-height:36px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.member-bank-tab:hover {
  color:var(--text);
}

.member-bank-tab.active {
  color:var(--accent);
  background:var(--panel);
  border-color:var(--accent);
}

.member-bank-grid-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 10px;
}

.member-bank-grid-head > div {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.member-bank-grid-head strong {
  font-size:15px;
}

.member-bank-grid-head span {
  color:var(--muted);
  font-size:10px;
}

.member-bank-slot-grid {
  display:grid;
  grid-template-columns:repeat(14,minmax(42px,1fr));
  gap:5px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
}

.member-bank-slot {
  position:relative;
  aspect-ratio:1 / 1;
  min-width:0;
  border:1px solid #313b48;
  border-radius:6px;
  overflow:hidden;
  background:#0d1218;
}

.member-bank-slot.occupied {
  display:block;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
}

.member-bank-slot.occupied:hover {
  border-color:var(--accent);
  transform:translateY(-1px);
}

.member-bank-slot-icon {
  display:block;
  position:absolute;
  inset:0;
}

/*
  Wowhead inserts the actual item icon into links carrying data-wowhead.
  Keep any injected icon image sized to the entire bank slot.
*/
.member-bank-slot > ins,
.member-bank-slot > ins > img,
.member-bank-slot > img,
.member-bank-slot .wowhead-icon,
.member-bank-slot .wowhead-icon img {
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover;
}

.member-bank-slot-qty {
  position:absolute;
  right:3px;
  bottom:2px;
  z-index:4;
  padding:0 2px;
  border-radius:3px;
  color:#fff;
  background:rgba(0,0,0,.72);
  font-size:11px;
  font-weight:900;
  line-height:16px;
  text-shadow:0 1px 2px #000;
}

.member-bank-slot-number {
  position:absolute;
  left:3px;
  top:2px;
  z-index:4;
  color:rgba(255,255,255,.48);
  font-size:8px;
  font-weight:700;
  text-shadow:0 1px 2px #000;
}

.member-bank-slot.empty-slot {
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.015),
      rgba(255,255,255,.035)
    );
}

.member-bank-slot.empty-slot .member-bank-slot-number {
  color:rgba(255,255,255,.18);
}

.member-bank-search-results {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.member-bank-search-heading {
  margin-bottom:4px;
  color:var(--muted);
  font-size:11px;
}

.member-bank-search-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

@media(max-width:900px) {
  .member-bank-slot-grid {
    grid-template-columns:repeat(10,minmax(38px,1fr));
  }
}

@media(max-width:700px) {
  #member-bank-summary.member-resource-summary {
    grid-template-columns:1fr;
  }

  .member-bank-slot-grid {
    grid-template-columns:repeat(7,minmax(36px,1fr));
  }

  .member-bank-tabs {
    width:100%;
  }

  .member-bank-tab {
    flex:1 1 auto;
  }
}


.member-bank-tabs {
  min-width:0;
}

.member-bank-tab {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

.member-bank-tab small {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:18px;
  padding:0 5px;
  border-radius:9px;
  background:rgba(255,255,255,.06);
  color:var(--muted);
  font-size:9px;
  line-height:18px;
}

.member-bank-tab.active small {
  background:rgba(255,255,255,.09);
  color:var(--text);
}


/* Admin phase-loot item deletion */
.loot-admin-item-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  align-items:stretch;
}

.loot-admin-item-row .loot-admin-item {
  width:100%;
  min-width:0;
}

.loot-admin-item-row.active .loot-admin-item {
  border-color:var(--accent);
}

.loot-admin-item-delete {
  align-self:stretch;
  min-width:72px;
  padding:0 10px;
  white-space:nowrap;
}

@media(max-width:650px) {
  .loot-admin-item-row {
    grid-template-columns:minmax(0,1fr);
  }

  .loot-admin-item-delete {
    min-height:34px;
  }
}


/* =========================================================
   Member Loot Priority — That's My BIS suggestion helper
   ========================================================= */

.member-loot-suggestion-helper {
  margin:14px 0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
}

.member-loot-suggestion-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.member-loot-suggestion-head h4 {
  margin:2px 0 4px;
}

.member-loot-suggestion-head p {
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

.member-loot-suggestion-controls {
  display:grid;
  grid-template-columns:repeat(2,minmax(180px,260px));
  gap:10px;
  margin-bottom:8px;
}

.member-loot-suggestion-controls label {
  display:flex;
  flex-direction:column;
  gap:5px;
}

.member-loot-suggestion-controls label > span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.member-loot-suggestions {
  margin-top:10px;
}

.member-loot-suggestion-spec-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:7px;
}

.member-loot-suggestion-spec-head > div {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.member-loot-suggestion-spec-head span {
  color:var(--muted);
  font-size:10px;
}

.member-loot-suggestion-spec-head a {
  font-size:10px;
  white-space:nowrap;
}

.member-loot-suggestion-list {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.member-loot-suggestion-row {
  display:grid;
  grid-template-columns:42px minmax(260px,1fr) minmax(90px,150px) 70px;
  gap:9px;
  align-items:center;
  padding:8px 9px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
}

.member-loot-suggestion-rank {
  color:var(--accent);
  font-size:12px;
  font-weight:900;
  text-align:center;
}

.member-loot-suggestion-source-name {
  color:var(--muted);
  font-size:10px;
  text-align:right;
}

.member-loot-suggestion-source {
  margin:9px 0 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}

@media(max-width:800px) {
  .member-loot-suggestion-row {
    grid-template-columns:38px minmax(0,1fr) auto;
  }

  .member-loot-suggestion-source-name {
    display:none;
  }
}

@media(max-width:620px) {
  .member-loot-suggestion-controls {
    grid-template-columns:1fr;
  }

  .member-loot-suggestion-row {
    grid-template-columns:34px minmax(0,1fr);
  }

  .member-loot-suggestion-row > button {
    grid-column:2;
    justify-self:start;
  }

  .member-loot-suggestion-spec-head {
    align-items:flex-start;
    flex-direction:column;
  }
}


/* =========================================================
   Admin Loot Submission Dashboard — Member Bonus controls
   ========================================================= */

.loot-submission-bonus-badge {
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:18px;
  margin-top:3px;
  padding:0 6px;
  border:1px solid var(--line);
  border-radius:9px;
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  line-height:16px;
}

.loot-submission-bonus-badge.positive,
.loot-member-bonus-current strong.positive,
.loot-member-bonus-history-row strong.positive {
  color:#69d394;
}

.loot-submission-bonus-badge.negative,
.loot-member-bonus-current strong.negative,
.loot-member-bonus-history-row strong.negative {
  color:#e78585;
}

.loot-member-bonus-panel {
  margin:0 0 14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
}

.loot-member-bonus-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.loot-member-bonus-head h4 {
  margin:2px 0 4px;
}

.loot-member-bonus-head p {
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.loot-member-bonus-current {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  min-width:70px;
}

.loot-member-bonus-current span {
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.loot-member-bonus-current strong {
  font-size:26px;
  line-height:1;
}

.loot-member-bonus-reason {
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:12px;
}

.loot-member-bonus-reason > span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}

.loot-member-bonus-actions {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:9px;
}

.loot-member-bonus-actions button {
  min-width:54px;
}

.loot-member-bonus-history {
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.loot-member-bonus-history h5 {
  margin:0 0 8px;
}

.loot-member-bonus-history-list {
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:220px;
  overflow:auto;
}

.loot-member-bonus-history-row {
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding:8px 9px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel);
}

.loot-member-bonus-history-row > strong {
  font-size:13px;
  font-weight:900;
}

.loot-member-bonus-history-row > span {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.loot-member-bonus-history-row b {
  font-size:10px;
}

.loot-member-bonus-history-row small {
  color:var(--muted);
  font-size:9px;
}

@media(max-width:700px) {
  .loot-member-bonus-head {
    flex-direction:column;
  }

  .loot-member-bonus-current {
    align-items:flex-start;
  }
}

.loot-resource-form{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:8px;margin-bottom:12px}
.loot-resource-form textarea,.loot-resource-form #loot-resource-status{grid-column:1/-1}
.inline-check{display:flex;align-items:center;gap:7px}
.loot-resource-admin-list,.loot-guild-request-admin-list{display:flex;flex-direction:column;gap:7px}
.loot-resource-admin-row,.loot-guild-request-admin-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.loot-resource-admin-row>div,.loot-guild-request-admin-row>div{display:flex;flex-direction:column;gap:3px}
.loot-resource-admin-row span,.loot-resource-admin-row small,.loot-guild-request-admin-row small{color:var(--muted);font-size:10px}


/* Admin -> Raid Resources downloadable file attachment. */
.loot-resource-file-field {
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:10px;
  border:1px dashed var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.loot-resource-file-field > span {
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}

#admin-subtab-raid-resources .loot-admin-card {
  margin-top:0;
}


.loot-resource-field {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.loot-resource-field > span:first-child {
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}

.loot-resource-field > small,
.loot-resource-file-field > small {
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}

.loot-resource-wide-field,
.loot-resource-file-field {
  grid-column:1 / -1;
}


/* ============================================================
   Admin navigation cleanup
   Group tools by job while preserving all existing data-admin-tab
   selectors and one-click navigation.
   ============================================================ */

.admin-panel {
  gap:18px;
}

.admin-topbar {
  align-items:center;
  padding-bottom:2px;
}

.admin-nav-groups {
  display:grid;
  grid-template-columns:
    minmax(0,1.15fr)
    minmax(0,1.25fr)
    minmax(180px,.62fr)
    minmax(220px,.78fr);
  align-items:stretch;
  gap:8px;
  width:100%;
  max-width:none;
  padding:8px;
  overflow:visible;
}

.admin-nav-group {
  min-width:0;
  padding:8px 9px 9px;
  border:1px solid transparent;
  border-radius:9px;
  background:
    rgba(255,255,255,.015);
}

.admin-nav-group + .admin-nav-group {
  border-left-color:
    rgba(255,255,255,.07);
}

.admin-nav-group-label {
  display:block;
  margin:0 6px 6px;
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  line-height:1;
  text-transform:uppercase;
}

.admin-nav-group-buttons {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.admin-nav-groups .admin-subtab {
  min-height:34px;
  padding:7px 10px;
  border-radius:7px;
  font-size:12px;
  white-space:nowrap;
}

.admin-nav-groups .admin-subtab:hover {
  background:
    rgba(255,255,255,.025);
}

.admin-nav-groups .admin-subtab.active {
  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.03);
}

/*
  Give the active tool a clearer location without making the navigation
  visually heavy.
*/
.admin-nav-groups .admin-subtab.active::before {
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  margin-right:7px;
  border-radius:50%;
  background:var(--accent);
  vertical-align:2px;
}

/* Medium screens: two clean rows instead of one squeezed strip. */
@media(max-width:1200px) {
  .admin-nav-groups {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .admin-nav-group + .admin-nav-group {
    border-left-color:transparent;
  }
}

/* Small screens: stacked groups, buttons remain easy to tap. */
@media(max-width:700px) {
  .admin-nav-groups {
    display:grid;
    grid-template-columns:1fr;
    overflow:visible;
  }

  .admin-nav-group {
    padding:8px;
  }

  .admin-nav-group-buttons {
    display:grid;
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .admin-nav-groups .admin-subtab {
    width:100%;
    text-align:left;
  }
}

@media(max-width:430px) {
  .admin-nav-group-buttons {
    grid-template-columns:1fr;
  }
}


/* ============================================================
   Loot point system / tier administration
   ============================================================ */

.loot-point-settings-grid {
  display:grid;
  grid-template-columns:
    repeat(4,minmax(100px,1fr));
  gap:10px;
  margin-top:12px;
}

.loot-point-settings-grid label {
  display:grid;
  gap:5px;
}

.loot-point-settings-grid label span {
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}

.loot-point-settings-actions,
.loot-pool-sync-row {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:12px;
}

.loot-tier-assignment-list {
  display:grid;
  gap:6px;
  margin-top:12px;
  max-height:520px;
  overflow:auto;
}

.loot-tier-assignment-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 120px;
  gap:12px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.loot-tier-assignment-row > div {
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:2px;
}

.loot-tier-assignment-row span {
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.loot-bad-luck-toggle-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin:12px 0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.loot-bad-luck-toggle-row > div {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.loot-bad-luck-toggle-row span {
  color:var(--muted);
  font-size:11px;
}

.loot-bad-luck-toggle-row button.active {
  border-color:var(--good);
  color:var(--good);
}

.header-clocks {
  display:flex;
  flex-direction:column;
  gap:3px;
  align-items:flex-end;
}

#local-clock {
  color:var(--text);
}

#clock {
  color:var(--muted);
}

@media(max-width:800px) {
  .loot-point-settings-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .loot-point-settings-actions,
  .loot-pool-sync-row,
  .loot-bad-luck-toggle-row {
    align-items:stretch;
    flex-direction:column;
  }

  .header-clocks {
    align-items:flex-start;
  }
}

@media(max-width:520px) {
  .loot-point-settings-grid {
    grid-template-columns:1fr;
  }

  .loot-tier-assignment-row {
    grid-template-columns:1fr;
  }
}


/* ============================================================
   Compact drag/drop priority tier board
   ============================================================ */

.loot-tier-assignment-list {
  max-height:none;
  overflow:visible;
}

.loot-tier-board {
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}

.loot-tier-board-column {
  min-width:0;
  min-height:160px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  transition:
    border-color .12s ease,
    background .12s ease;
}

.loot-tier-board-column.drag-over {
  border-color:var(--accent);
  background:
    rgba(215,167,59,.07);
}

.loot-tier-board-head {
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  margin-bottom:7px;
  padding:0 2px 7px;
  border-bottom:1px solid var(--line);
}

.loot-tier-board-head > div {
  display:flex;
  align-items:baseline;
  gap:6px;
}

.loot-tier-board-head strong {
  color:var(--text);
}

.loot-tier-board-head span,
.loot-tier-board-head small {
  color:var(--muted);
  font-size:10px;
}

.loot-tier-board-items {
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  gap:5px;
  max-height:330px;
  overflow:auto;
  padding-right:2px;
}

.loot-tier-chip {
  display:flex;
  min-width:0;
  max-width:100%;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  padding:5px 7px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#0d131b;
  color:var(--text);
  cursor:grab;
  text-align:left;
}

.loot-tier-chip:hover {
  border-color:#445365;
  background:#111923;
}

.loot-tier-chip:active {
  cursor:grabbing;
}

.loot-tier-chip.dragging {
  opacity:.45;
}

.loot-tier-chip strong {
  display:block;
  max-width:100%;
  overflow:hidden;
  font-size:11px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.loot-tier-chip span {
  display:block;
  max-width:100%;
  overflow:hidden;
  color:var(--muted);
  font-size:9px;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.loot-tier-drop-empty {
  width:100%;
  padding:18px 8px;
  color:var(--muted);
  font-size:10px;
  text-align:center;
}

@media(max-width:900px) {
  .loot-tier-board {
    grid-template-columns:1fr;
  }

  .loot-tier-board-items {
    max-height:220px;
  }
}


/* ============================================================
   V4 — Member Loot Priority cleanup
   ============================================================ */

.member-priority-layout {
  display:grid;
  grid-template-columns:
    minmax(380px,.9fr)
    minmax(480px,1.35fr);
  gap:14px;
  align-items:start;
}

.member-priority-selected,
.member-priority-available {
  min-width:0;
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:
    rgba(10,15,22,.45);
}

.member-priority-heading {
  align-items:center;
  margin-bottom:8px;
}

.member-priority-heading h4 {
  font-size:14px;
}

.member-priority-overview {
  display:grid;
  grid-template-columns:
    minmax(150px,.8fr)
    minmax(220px,1.2fr);
  gap:8px;
  margin-bottom:8px;
}

.member-priority-budget,
.member-priority-tier-costs {
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel2);
}

.member-priority-budget {
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 10px;
  align-items:center;
}

.member-priority-budget > span {
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.member-priority-budget > strong {
  color:var(--accent);
  font-size:18px;
}

.member-priority-budget > strong small {
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}

.member-priority-budget-bar {
  grid-column:1/-1;
  height:4px;
  overflow:hidden;
  border-radius:999px;
  background:#090d12;
}

.member-priority-budget-bar > span {
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
}

.member-priority-tier-costs {
  display:flex;
  justify-content:space-around;
  gap:6px;
  align-items:center;
}

.member-priority-tier-costs span {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px;
  color:var(--muted);
  font-size:9px;
}

.member-priority-tier-costs b {
  color:var(--text);
  font-size:11px;
}

.member-priority-rules-placeholder {
  margin:0 0 9px;
  border:1px solid var(--line);
  border-radius:8px;
  background:
    rgba(255,255,255,.015);
}

.member-priority-rules-placeholder summary {
  padding:8px 10px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.member-priority-rules-placeholder p {
  margin:0;
  padding:0 10px 9px;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}

#member-priority-selected-list,
.member-priority-available-list {
  gap:5px;
}

.member-priority-selected-row {
  grid-template-columns:
    34px
    minmax(0,1fr)
    auto
    auto;
  gap:7px;
  padding:7px 8px;
}

.member-priority-number {
  width:27px;
  height:27px;
  font-size:11px;
}

.member-priority-tier-badge {
  min-width:74px;
  min-height:22px;
  padding:2px 6px;
  font-size:9px;
}

.member-priority-actions {
  gap:3px;
}

.member-priority-actions button {
  min-width:28px;
  min-height:28px;
  padding:4px 6px;
  font-size:11px;
}

.member-priority-actions .member-priority-remove {
  width:28px;
  padding:2px;
  font-size:17px;
  line-height:1;
}

.member-priority-available-list {
  max-height:610px;
  overflow:auto;
  padding-right:3px;
}

.member-loot-row-available {
  grid-template-columns:
    minmax(0,1fr)
    auto
    52px;
  gap:7px;
  padding:7px 8px;
}

.member-loot-row-available > button {
  min-height:28px;
  padding:4px 9px;
  font-size:10px;
}

@media(max-width:1050px) {
  .member-priority-layout {
    grid-template-columns:1fr;
  }

  .member-priority-available-list {
    max-height:520px;
  }
}

@media(max-width:650px) {
  .member-priority-overview {
    grid-template-columns:1fr;
  }

  .member-priority-selected-row {
    grid-template-columns:
      30px
      minmax(0,1fr)
      auto;
  }

  .member-priority-actions {
    grid-column:2/-1;
  }

  .member-loot-row-available {
    grid-template-columns:
      minmax(0,1fr)
      auto;
  }

  .member-loot-row-available > button {
    grid-column:2;
  }
}


/* ============================================================
   V4 — Recruitment consolidation
   ============================================================ */

#admin-recruitment-active,
#admin-recruitment-archive {
  gap:7px;
}

.admin-recruitment-card {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel2);
}

.admin-recruitment-summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:10px 12px;
}

.admin-recruitment-identity {
  min-width:0;
}

.admin-recruitment-name-line {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  margin-bottom:3px;
}

.admin-recruitment-name-line > strong {
  font-size:13px;
}

.admin-recruitment-controls {
  display:flex;
  align-items:center;
  gap:9px;
}

.admin-recruitment-controls select {
  min-width:108px;
  padding:6px 8px;
  font-size:11px;
}

.admin-recruitment-details {
  border-top:1px solid var(--line);
  background:#0c1118;
}

.admin-recruitment-details summary {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:7px 12px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}

.admin-recruitment-details summary::-webkit-details-marker {
  display:none;
}

.admin-recruitment-details summary::before {
  content:"+";
  margin-right:6px;
  color:var(--accent);
}

.admin-recruitment-details[open] summary::before {
  content:"−";
}

.admin-recruitment-details summary > span {
  margin-left:auto;
  font-weight:500;
}

.admin-recruitment-detail-grid {
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:8px;
  padding:0 12px 11px;
}

.admin-recruitment-detail {
  padding:8px 9px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel);
}

.admin-recruitment-detail.wide {
  grid-column:1/-1;
}

.admin-recruitment-detail > span {
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.admin-recruitment-detail p {
  margin:4px 0 0;
  color:var(--text);
  font-size:11px;
  line-height:1.45;
  white-space:pre-wrap;
}

.admin-recruitment-link {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel);
  font-size:10px;
  text-decoration:none;
}

.admin-recruitment-link:hover {
  border-color:#445365;
}

@media(max-width:720px) {
  .admin-recruitment-summary {
    grid-template-columns:1fr;
  }

  .admin-recruitment-controls {
    justify-content:space-between;
  }

  .admin-recruitment-detail-grid {
    grid-template-columns:1fr;
  }

  .admin-recruitment-detail.wide {
    grid-column:auto;
  }
}


/* ============================================================
   V5 — That's My BIS tier / point integration
   ============================================================ */

.member-loot-suggestion-row {
  grid-template-columns:
    42px
    minmax(250px,1fr)
    78px
    minmax(90px,150px)
    70px;
}

.member-loot-suggestion-tier {
  display:flex;
  min-width:68px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  padding:4px 6px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel2);
  text-align:center;
  white-space:nowrap;
}

.member-loot-suggestion-tier strong {
  color:var(--text);
  font-size:10px;
  line-height:1.1;
}

.member-loot-suggestion-tier small {
  color:var(--accent);
  font-size:9px;
  font-weight:800;
  line-height:1.1;
}

.member-loot-suggestion-row > button:disabled {
  cursor:not-allowed;
}

@media(max-width:900px) {
  .member-loot-suggestion-row {
    grid-template-columns:
      38px
      minmax(0,1fr)
      72px
      66px;
  }

  .member-loot-suggestion-source-name {
    display:none;
  }
}

@media(max-width:620px) {
  .member-loot-suggestion-row {
    grid-template-columns:
      34px
      minmax(0,1fr)
      68px;
  }

  .member-loot-suggestion-row > button {
    grid-column:2/4;
    justify-self:start;
  }
}


/* ============================================================
   V6 — Faster bulk tier sorting
   ============================================================ */

.loot-tier-bulk-toolbar {
  display:grid;
  gap:8px;
  margin:10px 0;
  padding:9px;
  border:1px solid var(--line);
  border-radius:9px;
  background:
    rgba(255,255,255,.015);
}

.loot-tier-filter-row {
  display:grid;
  grid-template-columns:
    minmax(150px,1fr)
    minmax(120px,.7fr)
    minmax(120px,.6fr)
    64px;
  gap:7px;
  align-items:end;
}

.loot-tier-filter-row label {
  display:grid;
  gap:3px;
}

.loot-tier-filter-row label > span {
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.loot-tier-filter-row select {
  min-width:0;
  min-height:32px;
  padding:5px 7px;
  font-size:10px;
}

.loot-tier-filter-stats {
  display:flex;
  min-height:32px;
  align-items:baseline;
  justify-content:center;
  gap:4px;
  padding:6px 7px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel2);
}

.loot-tier-filter-stats strong {
  color:var(--accent);
  font-size:13px;
}

.loot-tier-filter-stats span {
  color:var(--muted);
  font-size:9px;
}

.loot-tier-selection-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.loot-tier-selection-actions,
.loot-tier-bulk-actions {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  align-items:center;
}

.loot-tier-selection-row button {
  min-height:29px;
  padding:4px 8px;
  font-size:9px;
}

.loot-tier-bulk-actions > span {
  margin-right:3px;
  color:var(--muted);
  font-size:9px;
}

.loot-tier-bulk-actions > span strong {
  color:var(--text);
}

.loot-tier-bulk-hint {
  color:var(--muted);
  font-size:9px;
}

.loot-tier-chip {
  position:relative;
  flex-direction:row;
  align-items:center;
  gap:5px;
}

.loot-tier-chip.selected {
  border-color:var(--accent);
  background:
    rgba(215,167,59,.09);
}

.loot-tier-chip-check {
  display:grid;
  width:15px;
  height:15px;
  flex:0 0 15px;
  place-items:center;
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--accent);
  font-size:9px;
  font-weight:900;
}

.loot-tier-chip.selected .loot-tier-chip-check {
  border-color:var(--accent);
  background:
    rgba(215,167,59,.12);
}

.loot-tier-chip-copy {
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:1px;
}

.loot-tier-chip-copy > strong,
.loot-tier-chip-copy > span {
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

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

  .loot-tier-selection-row {
    align-items:stretch;
    flex-direction:column;
  }
}

@media(max-width:520px) {
  .loot-tier-filter-row {
    grid-template-columns:1fr;
  }
}


.roster-loot-prio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
  color: #c9d1dc;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.roster-loot-prio-toggle:hover {
  border-color: rgba(224,107,38,.45);
}
.roster-loot-prio-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #e06b26;
}
.roster-loot-prio-toggle:has(input:checked) {
  border-color: rgba(214,168,75,.45);
  background: rgba(214,168,75,.07);
  color: #e1bd72;
}


/* Guild Settings / white-label branding */
.guild-brand-header-logo {
  width:72px;
  height:72px;
  object-fit:contain;
  margin-right:18px;
  align-self:center;
  flex:0 0 auto;
}

.guild-settings-form {
  display:grid;
  gap:16px;
}

.guild-settings-card {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  padding:16px;
}

.guild-settings-card-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}

.guild-settings-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.guild-settings-grid label {
  display:grid;
  gap:6px;
  color:var(--text);
  font-weight:700;
}

.guild-settings-grid input,
.guild-settings-grid textarea,
.guild-settings-grid select {
  width:100%;
}

.guild-settings-span-2 {
  grid-column:1 / -1;
}

.guild-branding-assets-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.guild-branding-asset {
  display:grid;
  gap:9px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
}

.guild-branding-preview {
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px dashed var(--line);
  border-radius:8px;
  background:rgba(0,0,0,.2);
}

.guild-branding-preview.wide {
  min-height:90px;
}

.guild-branding-preview.small {
  min-height:72px;
}

.guild-branding-preview img {
  max-width:100%;
  max-height:120px;
  object-fit:contain;
}

.guild-branding-preview.small img {
  max-height:64px;
}

.guild-settings-save {
  width:100%;
}

@media (max-width:1050px) {
  .guild-branding-assets-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:720px) {
  .guild-settings-grid,
  .guild-branding-assets-grid {
    grid-template-columns:1fr;
  }

  .guild-settings-span-2 {
    grid-column:auto;
  }
}

/* Game Profiles / WoW Forever Launch Mode */
.game-profile-list{display:grid;gap:16px}.game-profile-card{border:1px solid #25303d;border-radius:12px;background:#0f151d;padding:16px}.game-profile-card.active{border-color:#d4a958;box-shadow:0 0 0 1px rgba(212,169,88,.15) inset}.game-profile-card-head,.game-profile-title-line,.game-profile-actions,.launch-import-actions,.launch-toolbar,.launch-member-name-line{display:flex;align-items:center;gap:12px}.game-profile-card-head{justify-content:space-between;align-items:flex-start}.game-profile-title-line h3{margin:0}.game-profile-active-badge,.launch-status-badge{display:inline-flex;align-items:center;border:1px solid rgba(212,169,88,.55);border-radius:999px;padding:3px 8px;font-size:11px;font-weight:900;letter-spacing:.05em;color:#f0c86d;background:rgba(212,169,88,.09);text-transform:uppercase}.game-profile-section-label{margin:16px 0 8px;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#d4a958}.game-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.game-module-toggle{display:flex!important;align-items:center;gap:8px!important;flex-direction:row!important;padding:9px 10px;border:1px solid #273240;border-radius:8px;background:#0b1118}.game-module-toggle input{width:auto!important}.game-class-config-label{display:grid!important;gap:6px!important;margin-top:16px}.game-class-config-label textarea{width:100%;font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif)}.game-profile-actions{justify-content:flex-end;margin-top:12px}.launch-toolbar{display:grid;grid-template-columns:1fr 1fr 2fr;align-items:end;margin-bottom:14px}.launch-toolbar label{display:grid;gap:6px}.launch-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}.launch-summary-card{display:grid;gap:3px;padding:14px;border:1px solid #26313f;border-radius:10px;background:#101720}.launch-summary-card strong{font-size:24px;color:#f0c86d}.launch-summary-card span{font-size:12px;color:#9aa9bd}.launch-import-card textarea{width:100%;min-height:150px;font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif)}.launch-import-actions{margin-top:10px}.launch-add-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) auto;gap:8px;align-items:end}.launch-member-list{display:grid;gap:10px;margin-top:16px}.launch-member-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(600px,2fr);gap:12px;align-items:center;padding:12px;border:1px solid #26313f;border-radius:10px;background:#0e141c}.launch-member-row.status-trial{border-left:3px solid #d4a958}.launch-member-row.status-active{border-left:3px solid #45a36b}.launch-member-row.status-inactive,.launch-member-row.status-removed{opacity:.72}.launch-member-actions{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr)) minmax(100px,.8fr) auto auto;gap:7px}.launch-member-actions input,.launch-member-actions select{min-width:0}.hidden{display:none!important}
@media(max-width:1100px){.game-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.launch-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.launch-add-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.launch-member-row{grid-template-columns:1fr}.launch-member-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.game-module-grid,.launch-toolbar,.launch-summary-grid,.launch-add-grid,.launch-member-actions{grid-template-columns:1fr}.game-profile-card-head{flex-direction:column}}


/* WoW Forever loot discovery */
.launch-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.launch-stat{display:grid;gap:4px;padding:14px 16px;border:1px solid #26313f;border-radius:12px;background:linear-gradient(180deg,#111923 0%,#0d141d 100%)}.launch-stat strong{font-size:24px;line-height:1;color:#f0c86d}.launch-stat span{font-size:12px;color:#9aa9bd;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.forever-loot-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 14px}.forever-loot-toolbar input[type="search"]{min-width:280px;flex:1}.forever-loot-check{display:flex!important;align-items:center;gap:8px}.forever-loot-check input{width:auto!important}.forever-loot-list,.forever-loot-admin-list{display:grid;gap:10px}.forever-loot-row{display:grid;grid-template-columns:minmax(280px,1.3fr) minmax(220px,1fr) minmax(150px,.65fr);gap:16px;align-items:start;padding:16px 18px;border:1px solid #28313e;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.02) 100%);box-shadow:0 6px 18px rgba(0,0,0,.14);position:relative;overflow:hidden}.forever-loot-row::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#52667e;opacity:.9}.forever-loot-row.q4::before{background:#a855f7}.forever-loot-row.q3::before{background:#3b82f6}.forever-loot-row.in-pool{box-shadow:0 0 0 1px rgba(212,169,88,.24),0 8px 20px rgba(0,0,0,.18)}.forever-loot-main,.forever-loot-source-block,.forever-loot-side{display:grid;gap:8px;min-width:0}.forever-loot-title-line{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.forever-loot-main a{font-weight:800;font-size:18px;line-height:1.2;text-decoration:none;color:#e6eef9}.forever-loot-main a:hover{text-decoration:underline}.forever-loot-row.q4 .forever-loot-main a{color:#d89cff}.forever-loot-row.q3 .forever-loot-main a{color:#7bb7ff}.forever-loot-badges{display:flex;flex-wrap:wrap;gap:8px}.forever-loot-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 10px;border:1px solid #344153;border-radius:999px;background:#101821;color:#d7deea;font-size:12px;font-weight:700;letter-spacing:.01em}.forever-loot-badge.muted{color:#b6c2d3;background:#0d141d}.forever-loot-badge.pool{color:#f0c86d;border-color:rgba(212,169,88,.45);background:rgba(212,169,88,.09)}.forever-loot-badge.q4{color:#e8c4ff;border-color:rgba(168,85,247,.45);background:rgba(168,85,247,.12)}.forever-loot-badge.q3{color:#cce1ff;border-color:rgba(59,130,246,.45);background:rgba(59,130,246,.12)}.forever-loot-kicker{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#8fa1b8}.forever-loot-source{font-size:14px;font-weight:700;color:#eef3fb;line-height:1.35}.forever-loot-source-sub,.forever-loot-seen{font-size:12px;color:#9ca9ba;line-height:1.45}.forever-loot-side{justify-items:start}.forever-loot-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.forever-loot-actions button{white-space:nowrap}.forever-loot-run-list{display:grid;gap:8px}.forever-loot-run{display:grid;grid-template-columns:80px 170px 1fr;gap:10px;padding:12px;border:1px solid #26313f;border-radius:10px;background:#0f151d;font-size:12px}.forever-loot-run .error-text{grid-column:1/-1;color:#ff9b9b;white-space:pre-wrap}.forever-loot-admin-list .empty,.forever-loot-list .empty{padding:18px}.forever-loot-admin-list .forever-loot-row{grid-template-columns:minmax(250px,1.2fr) minmax(200px,1fr) minmax(220px,.9fr)}@media(max-width:1100px){.launch-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.forever-loot-row,.forever-loot-admin-list .forever-loot-row{grid-template-columns:1fr}}@media(max-width:850px){.forever-loot-row,.forever-loot-admin-list .forever-loot-row{padding:14px}.forever-loot-actions{justify-content:flex-start}.forever-loot-run{grid-template-columns:1fr}}@media(max-width:640px){.launch-stat-grid{grid-template-columns:1fr}.forever-loot-toolbar input[type="search"]{min-width:0;width:100%}}


/* Loot Discovery — glanceable gear cards */
.forever-loot-toolbar{
  position:sticky;
  top:0;
  z-index:8;
  padding:10px;
  border:1px solid #26313f;
  border-radius:12px;
  background:rgba(10,15,22,.96);
  backdrop-filter:blur(10px);
}
.forever-loot-toolbar select{min-width:150px}
.forever-loot-toolbar #forever-loot-instance{min-width:210px}
.forever-loot-toolbar #forever-loot-slot{min-width:130px}

.forever-loot-row{
  grid-template-columns:minmax(420px,1.5fr) minmax(260px,.9fr) minmax(150px,.45fr);
  padding:15px 18px;
}
.forever-loot-title-line{display:flex;align-items:center;gap:12px}
.forever-loot-icon{
  width:46px;height:46px;flex:0 0 46px;object-fit:cover;
  border:1px solid #48576b;border-radius:7px;background:#090d12;
}
.forever-loot-name{font-size:17px!important}
.forever-loot-item-id{margin-top:3px;color:#7890ad;font-size:11px;font-weight:700}
.forever-loot-badge.ilvl{color:#f4d57c;border-color:rgba(212,169,88,.5);background:rgba(212,169,88,.08)}
.forever-loot-badge.slot,.forever-loot-badge.type{color:#d8e5f6}
.forever-loot-stats{
  display:flex;flex-wrap:wrap;gap:5px 14px;
  margin-top:2px;padding-top:8px;border-top:1px solid rgba(255,255,255,.06);
  color:#dce6f4;font-size:12px;line-height:1.35
}
.forever-loot-stats span{white-space:nowrap}
.forever-loot-stats span:not(:first-child)::before{content:"•";margin-right:8px;color:#52667e}
.forever-loot-stats.pending{color:#718198;font-style:italic}
.forever-loot-stats.pending span::before{display:none}
.forever-loot-instance-name{font-size:15px;font-weight:900;color:#f0f5fc}
.forever-loot-boss{font-size:12px;font-weight:700;color:#d4a958}
.forever-loot-source-sub{margin-top:2px}
.forever-loot-side{align-content:start}

@media(max-width:1200px){
  .forever-loot-row,.forever-loot-admin-list .forever-loot-row{grid-template-columns:1fr 1fr}
  .forever-loot-side{grid-column:1/-1;grid-template-columns:auto 1fr;align-items:center}
}
@media(max-width:820px){
  .forever-loot-row,.forever-loot-admin-list .forever-loot-row{grid-template-columns:1fr}
  .forever-loot-side{grid-column:auto;grid-template-columns:1fr}
  .forever-loot-toolbar{position:static}
}

/* ============================================================
   MOCKUP-FAITHFUL 2026 VISUAL SYSTEM
   Matches the approved Home / Loot / Admin concepts while
   preserving existing application behavior and admin branding.
   ============================================================ */
:root{
  --mock-bg:#071019;
  --mock-bg-deep:#04080d;
  --mock-panel:#0d1722;
  --mock-panel-2:#101d2a;
  --mock-line:#24364a;
  --mock-line-soft:rgba(159,186,216,.12);
  --mock-text:#eef5ff;
  --mock-muted:#8fa4bd;
  --mock-gold:#e0ad4f;
  --mock-gold-soft:rgba(224,173,79,.12);
  --mock-blue:#76a9e8;
  --mock-green:#63d68a;
  --mock-shadow:0 16px 36px rgba(0,0,0,.30);
}

body{
  background:
    radial-gradient(circle at 12% 0%,rgba(224,173,79,.07),transparent 28%),
    radial-gradient(circle at 88% 8%,rgba(69,118,184,.08),transparent 30%),
    linear-gradient(180deg,#07111b 0%,#05090e 100%);
  color:var(--mock-text);
}

/* Global top bar */
.tabs.site-primary-nav.mock-top-nav{
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  align-items:center;
  gap:4px;
  min-height:64px;
  padding:0 max(24px,4vw);
  border-bottom:1px solid rgba(151,177,206,.16);
  background:rgba(4,10,16,.95);
  backdrop-filter:blur(16px);
  box-shadow:0 8px 28px rgba(0,0,0,.24);
}
.site-nav-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:230px;
  margin-right:12px;
  color:#f4c86f;
  text-decoration:none;
  font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size:22px;
  letter-spacing:.12em;
}
.site-nav-brand img{
  width:44px;
  height:44px;
  object-fit:contain;
  filter:drop-shadow(0 0 16px rgba(226,117,43,.25));
}
.site-primary-nav .site-primary-button,
.site-primary-nav .site-primary-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:64px;
  padding:0 16px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#aebed1;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  position:relative;
}
.site-primary-nav .site-primary-button:hover,
.site-primary-nav .site-primary-link:hover{
  color:#f7d890;
  background:linear-gradient(180deg,rgba(224,173,79,.02),rgba(224,173,79,.08));
}
.site-primary-nav .site-primary-button.active{
  color:#f3c56a;
  background:linear-gradient(180deg,rgba(224,173,79,.10),rgba(224,173,79,.04));
}
.site-primary-nav .site-primary-button.active::after{
  content:"";
  position:absolute;
  left:10px;right:10px;bottom:0;
  height:2px;
  background:var(--mock-gold);
  box-shadow:0 0 14px rgba(224,173,79,.65);
}
.site-nav-spacer{flex:1}
.site-nav-search-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  width:min(220px,18vw);
  min-width:150px;
  padding:0 12px;
  border:1px solid #233448;
  border-radius:9px;
  background:#071019;
}
.site-nav-search-wrap input{
  width:100%;min-width:0;height:38px;
  border:0!important;background:transparent!important;color:#dce9f8!important;padding:0!important;
}
.site-discord-proxy{
  min-height:40px!important;
  padding:0 14px!important;
  border:1px solid #263950!important;
  border-radius:9px!important;
  background:#09131d!important;
  color:#c8d8ea!important;
}
.site-nav-account-host{display:flex;align-items:center}
.site-nav-account-host .top-member-auth{display:flex;align-items:center;gap:8px;margin:0}
.site-nav-account-host .header-discord-widget{display:none}
.site-nav-account-host .top-member-login,
.site-nav-account-host .top-member-account{
  min-height:40px;border-radius:9px;border:1px solid #263950;background:#09131d;color:#d7e3ef;padding:0 12px;
}

/* Configurable hero. Existing Admin banner image remains the background source. */
body>header{
  position:relative;
  min-height:255px;
  overflow:hidden;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:30px;
  padding:34px max(24px,6vw) 24px;
  border-bottom:1px solid rgba(151,177,206,.15);
  background:
    radial-gradient(circle at 70% 20%,rgba(190,97,28,.15),transparent 35%),
    linear-gradient(90deg,#0b141e 0%,#0a131d 55%,#08111a 100%);
  box-shadow:inset 0 -85px 100px rgba(3,7,11,.50);
}
body>header::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:70px;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(4,9,14,.46));
}
.guild-hero-copy{position:relative;z-index:2;max-width:760px}
#guild-header-eyebrow{font-size:12px;letter-spacing:.30em;color:#dda94b;margin-bottom:8px}
#guild-header-title{
  margin:0;
  font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size:clamp(42px,5.2vw,72px);
  line-height:.96;
  letter-spacing:.015em;
  color:#f4c873;
  text-shadow:0 3px 18px rgba(0,0,0,.5);
}
.guild-hero-tagline{
  margin-top:10px;
  color:#e7edf6;
  font-size:12px;
  font-weight:800;
  letter-spacing:.34em;
}
#guild-header-subtitle{max-width:640px;margin-top:12px;color:#b3c0d0;font-size:15px;font-style:italic;line-height:1.45}
.site-header-right{position:relative;z-index:3;align-items:flex-end}
body>header .top-member-auth{display:none}
.header-clocks{
  display:grid;gap:4px;min-width:240px;padding:11px 13px;
  border:1px solid rgba(163,188,218,.15);border-radius:10px;
  background:rgba(5,11,17,.52);backdrop-filter:blur(8px);text-align:right;
}
.hero-guild-stats{
  display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;
}
.hero-stat{
  display:flex;align-items:center;gap:10px;min-width:128px;padding:9px 13px;
  border:1px solid rgba(222,173,78,.22);border-radius:999px;
  background:rgba(5,11,17,.52);backdrop-filter:blur(7px);
}
.hero-stat strong{font-size:17px;color:#f2f6fb;white-space:nowrap}
.hero-stat span{font-size:11px;color:#9fb0c4;line-height:1.2}
.guild-brand-header-logo{display:none!important}
.afterglow-header-image-wrap::after{
  background:linear-gradient(90deg,rgba(3,7,11,.91) 0%,rgba(3,7,11,.68) 34%,rgba(3,7,11,.20) 72%,rgba(3,7,11,.36) 100%)!important;
}

/* Section subnavigation sits below hero */
.site-secondary-nav{
  position:sticky;top:64px;z-index:90;
  display:flex;justify-content:center;gap:6px;padding:8px max(24px,6vw);
  border-bottom:1px solid rgba(151,177,206,.10);background:rgba(6,11,17,.94);backdrop-filter:blur(12px);
}
.site-secondary-nav.hidden{display:none}
.site-secondary-button{min-height:34px;padding:7px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#8ea2bb;font-weight:800}
.site-secondary-button.active{border-color:rgba(224,173,79,.45);background:rgba(224,173,79,.10);color:#f0c76d}

main{padding:14px max(24px,1.8vw) 72px}
.tab-panel.active{gap:18px}

/* Public banner remains public; editor has been relocated into Admin Guild Settings. */
#afterglow-site-banner-wrap{background:#060b11}
.afterglow-site-banner{font-size:13px!important}
.admin-relocated-banner-editor{
  width:100%!important;margin:0 0 18px!important;padding:16px!important;border-radius:14px!important;
  background:linear-gradient(180deg,#101a25,#0b131c)!important;
}

/* HOME: approved 3x2 command-center composition */
.mock-home-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr 1.05fr;
  gap:14px;
  align-items:stretch;
}
.mock-dashboard-card{
  min-width:0;
  border:1px solid #26374a;
  border-radius:13px;
  background:linear-gradient(180deg,#0d1823 0%,#09121a 100%);
  box-shadow:var(--mock-shadow);
  overflow:hidden;
}
.mock-dashboard-card>.section-head{
  min-height:48px;margin:0;padding:12px 16px;
  border-bottom:1px solid rgba(151,177,206,.13);
  background:linear-gradient(180deg,rgba(255,255,255,.025),transparent);
}
.mock-dashboard-card>.section-head>div{display:flex;align-items:center;gap:9px}
.mock-dashboard-card .section-head h2{font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);font-size:18px;color:#eef4fb}
.mock-card-icon{color:#e5af50;font-size:20px;font-weight:900}
.mock-link-button{padding:0;border:0;background:transparent;color:#8fb2da;font-size:12px;font-weight:700}
.mock-panel-flat{border:0;border-radius:0;background:transparent;box-shadow:none;min-height:310px;padding:4px 16px}
.mock-raid-list{padding:10px 14px 14px;display:block!important}
.mock-raid-list .upcoming-raid-day-tabs{margin-bottom:8px}
.mock-raid-list .upcoming-raid-day-cards{display:grid;gap:8px}
.mock-raid-list .card,
.mock-raid-list .raid-card{
  border-radius:10px!important;border:1px solid rgba(151,177,206,.12)!important;background:#0a131d!important;box-shadow:none!important;padding:12px!important;
}
.report-row{padding:13px 0;border-bottom:1px solid rgba(151,177,206,.10)}
.report-title{font-weight:800;color:#9dc7ff;text-decoration:none}
#activity .row{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:13px 0;color:#bfd0e2}
#activity .row strong{color:#9dc7ff}
#activity .row small{grid-column:2;grid-row:1;color:#8297af}
.dashboard-loot-snapshot,.dashboard-recruitment-copy{padding:14px 16px 16px}
.dashboard-loot-feature{display:grid;gap:12px}
.dashboard-loot-top{display:flex;gap:12px;align-items:center}
.dashboard-loot-top img{width:72px;height:72px;border:1px solid #4b5d71;border-radius:10px;object-fit:cover}
.dashboard-loot-top a{display:block;color:#c392ff;font-size:16px;font-weight:900;text-decoration:none}
.dashboard-loot-top strong{display:block;margin-top:3px;color:#e9b84f}
.dashboard-loot-stats{display:flex;flex-wrap:wrap;gap:6px 12px;color:#d7e2ef;font-size:12px}
.dashboard-loot-source{color:#8fa4bb;font-size:12px}
.dashboard-loot-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:10px;border-top:1px solid rgba(151,177,206,.10)}
.dashboard-loot-footer span{color:#6bd68d;font-weight:800}
.dashboard-loot-footer button{background:transparent;color:#9fc4ee;padding:0}
.dashboard-recruitment-copy h3{font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);font-size:21px;margin:0 0 8px}
.dashboard-recruitment-copy>p{color:#9fb0c4;line-height:1.45}
.dashboard-role-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}
.dashboard-role-grid>div{padding:10px;border:1px solid #273a50;border-radius:9px;background:#0b1620;text-align:center}
.dashboard-role-grid strong,.dashboard-role-grid span{display:block}
.dashboard-role-grid span{margin-top:3px;color:#63d68a;font-size:11px;font-weight:800}
.dashboard-recruit-cta{width:100%;min-height:40px;border:1px solid #d9a844;background:linear-gradient(180deg,rgba(224,173,79,.16),rgba(224,173,79,.08));color:#efc46b;border-radius:8px}
.mock-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:9px}
.mock-service-grid .service{min-height:82px;border-radius:9px;padding:12px;background:#0a151f;border-color:#263a50;box-shadow:none}
.mock-service-grid .status{font-size:10px}

/* LOOT DISCOVERY: approved summary/filter/grid design */
#tab-forever-loot{gap:12px}
.forever-loot-summary-strip{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
  border:1px solid #223448;border-radius:12px;background:#09131d;overflow:hidden;
}
.forever-loot-summary-strip article{display:flex;align-items:center;gap:12px;padding:14px 18px;border-right:1px solid rgba(224,173,79,.24)}
.forever-loot-summary-strip article:last-child{border-right:0}
.loot-summary-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:rgba(224,173,79,.08);color:#e3ae50;font-size:21px}
.forever-loot-summary-strip strong{display:block;font-size:20px;color:#f5f8fc}
.forever-loot-summary-strip article div span{display:block;margin-top:2px;color:#8fa3bb;font-size:11px}
.forever-loot-toolbar{
  position:sticky;top:64px;z-index:80;
  display:grid!important;grid-template-columns:minmax(280px,1.6fr) repeat(5,minmax(130px,.7fr)) auto auto;
  gap:8px!important;margin:0!important;padding:10px!important;
  border:1px solid #223448!important;border-radius:11px!important;background:rgba(7,15,23,.96)!important;backdrop-filter:blur(14px);box-shadow:0 10px 24px rgba(0,0,0,.20);
}
.forever-loot-toolbar input,.forever-loot-toolbar select{height:40px!important;border-radius:8px!important;background:#071019!important;border-color:#294058!important}
.forever-loot-check{padding:0 8px;white-space:nowrap}
#forever-loot-clear{min-height:40px;border-color:#33475f}
.forever-loot-viewbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px}
.forever-loot-viewbar label{display:flex;align-items:center;gap:8px;color:#8fa3ba;font-size:12px}
.forever-loot-viewbar select{height:34px;background:#09131d;border:1px solid #2b4057;color:#d9e5f3;border-radius:7px;padding:0 9px}
.forever-loot-view-toggle{display:flex;gap:5px}
.forever-loot-view-toggle button{background:#09131d;border:1px solid #2b4057;color:#93a8c1;min-height:34px;border-radius:7px}
.forever-loot-view-toggle button.active{color:#f0bc5b;border-color:#dca94b;background:rgba(224,173,79,.10)}
#forever-loot-status{color:#9aabc0;font-weight:700;font-size:12px;padding:0 2px}
#forever-loot-table.table-panel{padding:0;border:0;background:transparent;box-shadow:none}
.forever-loot-list{
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px!important;
}
.forever-loot-row{
  display:flex!important;flex-direction:column;gap:11px!important;min-height:330px;padding:13px!important;
  border:1px solid #2a3c51!important;border-radius:10px!important;background:linear-gradient(180deg,#0e1924,#09131d)!important;box-shadow:0 10px 24px rgba(0,0,0,.20)!important;
}
.forever-loot-row::before{width:2px!important}
.forever-loot-row.q4{border-color:rgba(173,89,246,.62)!important}
.forever-loot-row.q3{border-color:rgba(65,147,241,.62)!important}
.forever-loot-main{gap:8px!important}
.forever-loot-title-line{align-items:flex-start!important;gap:9px!important}
.forever-loot-icon{width:52px!important;height:52px!important;border-radius:8px!important}
.forever-loot-name{font-size:15px!important;line-height:1.15!important}
.forever-loot-item-id{font-size:10px!important;color:#6f849e!important}
.forever-loot-badges{gap:5px!important}
.forever-loot-badge{min-height:25px!important;padding:3px 8px!important;font-size:10px!important}
.forever-loot-stats{display:grid!important;gap:2px!important;padding:8px 0 0!important;border-top:1px solid rgba(151,177,206,.09)!important;color:#d5e0ed!important;font-size:11px!important;line-height:1.25!important}
.forever-loot-stats span{white-space:normal!important}
.forever-loot-stats span:not(:first-child)::before{display:none!important}
.forever-loot-source-block{margin-top:auto;padding-top:9px;border-top:1px solid rgba(151,177,206,.09)}
.forever-loot-kicker{font-size:9px!important;color:#8ba0b8!important}
.forever-loot-instance-name{font-size:13px!important;color:#e6edf5!important}
.forever-loot-boss{font-size:11px!important;color:#d9a94d!important}
.forever-loot-source-sub{font-size:10px!important;color:#8195ad!important}
.forever-loot-side{display:flex!important;align-items:center;justify-content:space-between!important;width:100%;padding:9px 0 0!important;border-left:0!important;border-top:1px solid rgba(151,177,206,.09)!important;text-align:left!important}
.forever-loot-side .forever-loot-kicker{display:none}
.forever-loot-seen{font-size:10px!important;color:#8da1b9!important}
.forever-loot-list.is-list{grid-template-columns:1fr!important}
.forever-loot-list.is-list .forever-loot-row{display:grid!important;grid-template-columns:minmax(300px,1.3fr) minmax(220px,.9fr) 170px!important;min-height:unset!important}
.forever-loot-list.is-list .forever-loot-source-block{margin-top:0;border-top:0;padding-top:0}
.forever-loot-list.is-list .forever-loot-side{display:grid!important;border-top:0!important;border-left:1px solid rgba(151,177,206,.09)!important;padding:0 0 0 14px!important}

/* ADMIN COMMAND CENTER: sidebar + overview, existing forms stay functional. */
#tab-admin{gap:14px}
#admin-panel{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr);
  gap:12px!important;
  align-items:start;
}
#admin-panel.hidden{display:none!important}
.admin-topbar{grid-column:1/-1;padding:4px 4px 8px;border-bottom:1px solid rgba(151,177,206,.10)}
.admin-topbar .eyebrow,.admin-topbar h2{display:none}
.admin-nav-groups{
  grid-column:1;grid-row:2 / span 50;
  position:sticky;top:78px;
  display:flex!important;flex-direction:column!important;gap:6px!important;width:100%!important;padding:10px!important;
  border:1px solid #22364a!important;border-radius:12px!important;background:#08121b!important;
}
.admin-nav-group{padding:5px!important;background:transparent!important;border:0!important}
.admin-nav-group-label{margin:4px 8px 5px!important;color:#7087a2!important}
.admin-nav-group-buttons{display:grid!important;grid-template-columns:1fr!important;gap:3px!important}
.admin-nav-groups .admin-subtab{width:100%!important;min-height:38px!important;text-align:left!important;border-radius:8px!important;padding:8px 10px!important;color:#9fb0c4!important}
.admin-nav-groups .admin-subtab.active{background:linear-gradient(90deg,rgba(224,173,79,.18),rgba(224,173,79,.06))!important;border:1px solid rgba(224,173,79,.54)!important;color:#efc46a!important;box-shadow:inset 3px 0 0 #dda948!important}
.admin-nav-groups .admin-subtab.active::before{display:none!important}
.admin-subpanel{grid-column:2;grid-row:2;min-width:0}
.admin-subpanel.active{display:grid!important;gap:12px!important}
.admin-section,.guild-settings-card,.admin-command-card{
  border:1px solid #22364a!important;border-radius:12px!important;background:linear-gradient(180deg,#0e1924,#09131d)!important;box-shadow:0 12px 28px rgba(0,0,0,.20)!important;
}
.admin-command-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.admin-command-stats article{padding:15px 16px;border:1px solid #22364a;border-radius:11px;background:#0a151f}
.admin-command-stats span{display:block;color:#8da1b8;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.admin-command-stats strong{display:block;margin-top:7px;font-size:25px;color:#f4c56a}
.admin-overview-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.admin-command-card{padding:15px;min-width:0}
.admin-command-card>.section-head{margin-bottom:12px}
.admin-command-card h3{font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);font-size:18px}
.admin-overview-copy{display:grid;gap:7px;color:#8fa3ba}
.admin-overview-copy strong{font-size:20px;color:#eef5fb}
.admin-active-pill{width:max-content;padding:5px 8px;border-radius:999px;background:rgba(99,214,138,.10);color:#6bd68d!important;font-size:11px;font-weight:800}
.admin-branding-callout{display:grid;gap:10px;min-height:130px;padding:14px;border:1px solid #294158;border-radius:10px;background:linear-gradient(135deg,rgba(224,173,79,.09),rgba(6,14,21,.5))}
.admin-branding-callout span{color:#91a4ba}
.admin-branding-callout button{width:max-content}
.admin-feature-list,.admin-system-list{display:grid;gap:0}
.admin-feature-list>div,.admin-system-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(151,177,206,.09)}
.admin-feature-list>div:last-child,.admin-system-list>div:last-child{border-bottom:0}
.admin-feature-list .on{color:#67d88d}.admin-feature-list .off{color:#78899d}
.admin-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.admin-quick-grid button{min-height:58px;border:1px solid #2a4159;background:#0a1722;color:#c8d8ea;border-radius:9px}

/* Responsive */
@media(max-width:1350px){
  .site-nav-brand{min-width:180px;font-size:18px}.site-primary-nav .site-primary-button,.site-primary-nav .site-primary-link{padding:0 10px}.site-nav-search-wrap{display:none}
  .mock-home-grid{grid-template-columns:1fr 1fr}
  .mock-card-logs,.mock-card-services{grid-column:auto}
  .forever-loot-toolbar{grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(120px,.7fr));}
  .forever-loot-summary-strip{grid-template-columns:repeat(3,1fr)}
  .forever-loot-summary-strip article:nth-child(3){border-right:0}.forever-loot-summary-strip article{border-bottom:1px solid rgba(224,173,79,.18)}
  .admin-command-stats{grid-template-columns:repeat(3,1fr)}
  .admin-overview-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:980px){
  .site-nav-brand{min-width:auto}.site-nav-brand strong{display:none}
  .site-primary-nav .site-primary-button span,.site-primary-nav .site-primary-link span{display:none}
  body>header{grid-template-columns:1fr;min-height:230px}.site-header-right{display:none}
  .mock-home-grid{grid-template-columns:1fr}
  .forever-loot-summary-strip{grid-template-columns:1fr 1fr}
  .forever-loot-toolbar{position:static;grid-template-columns:1fr 1fr}
  #admin-panel{grid-template-columns:1fr}.admin-nav-groups{grid-column:1;grid-row:auto;position:static}.admin-subpanel{grid-column:1;grid-row:auto}.admin-overview-grid{grid-template-columns:1fr}.admin-command-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
  .tabs.site-primary-nav.mock-top-nav{padding:0 10px;overflow-x:auto}.site-discord-proxy,.site-nav-account-host{display:none}
  #guild-header-title{font-size:40px}.guild-hero-tagline{letter-spacing:.18em}.hero-guild-stats{display:grid;grid-template-columns:1fr 1fr}.hero-stat{min-width:0}
  main{padding:10px 10px 50px}.dashboard-role-grid{grid-template-columns:1fr 1fr}.mock-service-grid{grid-template-columns:1fr}
  .forever-loot-summary-strip{grid-template-columns:1fr}.forever-loot-toolbar{grid-template-columns:1fr}.forever-loot-list{grid-template-columns:1fr!important}
  .admin-command-stats{grid-template-columns:1fr}
}


/* Header / Hero editor inside Admin > Guild Settings */
#admin-subtab-guild-settings .admin-relocated-banner-editor {
  width:100%;
  margin:0 0 18px;
  padding:20px;
  border:1px solid rgba(215,170,81,.28);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(215,170,81,.055),rgba(15,21,32,.96));
  box-shadow:0 14px 30px rgba(0,0,0,.18);
}
#admin-subtab-guild-settings .admin-relocated-banner-editor .afterglow-banner-editor-head {
  margin-bottom:16px;
}
#admin-subtab-guild-settings .admin-relocated-banner-editor .afterglow-banner-editor-head strong {
  display:block;
  color:#f0f4fa;
  font-size:20px;
  letter-spacing:-.02em;
}
#admin-subtab-guild-settings .admin-relocated-banner-editor .eyebrow { margin-bottom:5px; }
#admin-subtab-guild-settings .afterglow-banner-editor-grid {
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
}
#admin-subtab-guild-settings #afterglow-banner-text {
  min-height:72px;
  padding:12px 14px;
  border:1px solid var(--line,#273140);
  border-radius:12px;
  background:#090f17;
  color:var(--text,#f2f4f7);
  font:inherit;
}
#admin-subtab-guild-settings .afterglow-header-image-editor {
  margin-top:16px;
  padding-top:16px;
}
#admin-subtab-guild-settings .afterglow-header-image-editor input[type=file] {
  padding:9px;
  border:1px solid var(--line,#273140);
  border-radius:12px;
  background:#090f17;
}
#admin-subtab-guild-settings .afterglow-header-framing {
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  background:rgba(0,0,0,.16);
}
@media(max-width:800px){
  #admin-subtab-guild-settings .afterglow-banner-editor-grid,
  #admin-subtab-guild-settings .afterglow-header-image-editor,
  #admin-subtab-guild-settings .afterglow-header-framing { grid-template-columns:1fr; }
}


/* Homepage layout editor */
.homepage-panel-hidden {
  display:none !important;
}

.homepage-layout-card {
  margin-top:18px;
}

.homepage-layout-list {
  display:grid;
  gap:9px;
  margin-top:14px;
}

.homepage-layout-row {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  min-height:62px;
  padding:10px 12px;
  border:1px solid #26374a;
  border-radius:12px;
  background:linear-gradient(180deg,#0d1823 0%,#09121a 100%);
  transition:border-color .15s ease, transform .15s ease, opacity .15s ease;
}

.homepage-layout-row:hover {
  border-color:rgba(229,175,80,.5);
}

.homepage-layout-row.dragging {
  opacity:.48;
  border-color:#e5af50;
  transform:scale(.995);
}

.homepage-layout-handle {
  display:grid;
  place-items:center;
  width:32px;
  height:38px;
  border:1px solid rgba(151,177,206,.16);
  border-radius:9px;
  color:#9cb0c8;
  cursor:grab;
  user-select:none;
  font-size:17px;
  letter-spacing:-4px;
  padding-right:4px;
}

.homepage-layout-handle:active {
  cursor:grabbing;
}

.homepage-layout-row-copy {
  display:grid;
  gap:3px;
}

.homepage-layout-row-copy strong {
  color:#eef4fb;
}

.homepage-layout-row-copy small {
  color:#8194aa;
}

.homepage-layout-visible {
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border:1px solid rgba(151,177,206,.14);
  border-radius:999px;
  color:#b8c7d8;
  font-size:12px;
  font-weight:800;
}

.homepage-layout-visible input {
  width:auto !important;
  accent-color:#d7aa51;
}

.homepage-layout-row-buttons {
  display:flex;
  gap:6px;
}

.homepage-layout-move {
  min-width:36px;
  padding:7px 9px;
}

.homepage-layout-actions {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

@media (max-width:720px) {
  .homepage-layout-row {
    grid-template-columns:auto minmax(0,1fr) auto;
  }

  .homepage-layout-row-buttons {
    grid-column:2 / -1;
    justify-content:flex-end;
  }
}


/* === WoW Forever Phase 1: profiles, professions, readiness, health === */

.forever-profession-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px;
}

.forever-profession-card {
  border:1px solid #27374a;
  border-radius:16px;
  background:linear-gradient(180deg,#101925 0%,#0b121b 100%);
  overflow:hidden;
}

.forever-profession-card-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.forever-profession-card-head h3 {
  margin:0;
  font-size:20px;
}

.forever-profession-count {
  display:grid;
  place-items:center;
  min-width:38px;
  height:38px;
  border:1px solid rgba(215,170,81,.45);
  border-radius:999px;
  background:rgba(215,170,81,.09);
  color:#f0c86d;
  font-weight:900;
}

.forever-profession-members {
  display:grid;
}

.forever-profession-member {
  display:grid;
  gap:3px;
  padding:12px 18px;
  border-bottom:1px solid rgba(255,255,255,.05);
}

.forever-profession-member:last-child {
  border-bottom:0;
}

.forever-profession-member span {
  color:#91a1b7;
  font-size:12px;
}

.launch-member-profile {
  display:grid !important;
  gap:14px;
  padding:18px !important;
}

.launch-readiness-pill {
  padding:4px 8px;
  border:1px solid #44546a;
  border-radius:999px;
  color:#b6c5d8;
  font-size:11px;
  font-weight:900;
}

.launch-readiness-pill.ready {
  border-color:rgba(115,201,145,.55);
  background:rgba(115,201,145,.10);
  color:#8ddeaa;
}

.launch-profile-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.launch-profile-grid label {
  display:grid;
  gap:5px;
}

.launch-profile-grid label > span {
  color:#8799af;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.launch-profile-grid input,
.launch-profile-grid select {
  width:100%;
  min-width:0;
}

.launch-profile-span-2 {
  grid-column:span 2;
}

.launch-readiness-editor {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:8px;
  padding:12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  background:#09111a;
}

.launch-readiness-editor label {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:6px 9px;
  border:1px solid #253445;
  border-radius:9px;
  color:#aebed1;
  font-size:12px;
  font-weight:800;
}

.launch-readiness-editor input {
  width:auto !important;
  accent-color:#d7aa51;
}

.launch-readiness-editor .derived::before {
  content:"○";
  color:#687b93;
}

.launch-readiness-editor .derived.complete {
  border-color:rgba(115,201,145,.38);
  color:#8ddeaa;
}

.launch-readiness-editor .derived.complete::before {
  content:"✓";
  color:#73c991;
}

.forever-readiness-list {
  display:grid;
  gap:10px;
  margin-top:16px;
}

.forever-readiness-member {
  padding:15px 16px;
  border:1px solid #27374a;
  border-radius:14px;
  background:linear-gradient(180deg,#101925 0%,#0b121b 100%);
}

.forever-readiness-member-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.forever-readiness-member-head > div:first-child {
  display:grid;
  gap:4px;
}

.forever-readiness-member-head span {
  color:#91a1b7;
  font-size:12px;
}

.forever-readiness-score {
  min-width:58px;
  padding:8px 10px;
  border:1px solid #43546b;
  border-radius:999px;
  text-align:center;
  color:#d9e4f2;
  font-weight:900;
}

.forever-readiness-score.ready {
  border-color:rgba(115,201,145,.55);
  background:rgba(115,201,145,.10);
  color:#8ddeaa;
}

.forever-readiness-checks {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}

.forever-readiness-checks span {
  padding:5px 8px;
  border:1px solid #2c3c50;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}

.forever-readiness-checks .complete {
  border-color:rgba(115,201,145,.35);
  color:#8ddeaa;
  background:rgba(115,201,145,.07);
}

.forever-readiness-checks .missing {
  color:#8fa0b5;
}

.forever-health-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
}

.forever-health-card {
  display:grid;
  gap:10px;
  padding:16px;
  border:1px solid #2a3b50;
  border-radius:15px;
  background:linear-gradient(180deg,#101925 0%,#0b121b 100%);
}

.forever-health-card.healthy {
  border-color:rgba(115,201,145,.28);
}

.forever-health-card.warning {
  border-color:rgba(215,170,81,.34);
}

.forever-health-card.error {
  border-color:rgba(210,100,100,.45);
}

.forever-health-card-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.forever-health-state {
  padding:4px 8px;
  border-radius:999px;
  border:1px solid currentColor;
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.forever-health-card.healthy .forever-health-state { color:#82d9a0; }
.forever-health-card.warning .forever-health-state { color:#f0c86d; }
.forever-health-card.error .forever-health-state { color:#ef9292; }

.forever-health-card p {
  margin:0;
  color:#c3d0df;
  line-height:1.45;
}

.forever-health-card small {
  color:#778ba3;
}

.forever-service-health {
  display:grid;
}

.forever-service-health-row {
  display:grid;
  grid-template-columns:minmax(140px,.8fr) 90px minmax(220px,1.5fr) 150px;
  gap:12px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:12px;
}

.forever-service-health-row:last-child {
  border-bottom:0;
}

.forever-service-health-row .healthy { color:#82d9a0; }
.forever-service-health-row .warning { color:#f0c86d; }
.forever-service-health-row .error { color:#ef9292; }

@media (max-width:1000px) {
  .launch-profile-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .forever-service-health-row {
    grid-template-columns:1fr;
    gap:4px;
  }
}

@media (max-width:640px) {
  .launch-profile-grid {
    grid-template-columns:1fr;
  }

  .launch-profile-span-2 {
    grid-column:auto;
  }

  .forever-readiness-member-head {
    align-items:flex-start;
  }
}


/* === WoW Forever Phase 2: discovery intelligence === */

.forever-completion-grid,
.forever-gear-member-list,
.forever-watch-events {
  display:grid;
  gap:12px;
}

.forever-completion-grid {
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}

.forever-completion-card {
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid #28394d;
  border-radius:16px;
  background:linear-gradient(180deg,#101925 0%,#0b121b 100%);
}

.forever-completion-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.forever-completion-head h3 {
  margin:0;
  font-size:20px;
}

.forever-completion-head > strong {
  color:#f0c86d;
  font-size:24px;
}

.forever-completion-progress {
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:#081019;
  border:1px solid #223044;
}

.forever-completion-progress span {
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#8b6a2d,#d7aa51);
}

.forever-completion-stats {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.forever-completion-stats span {
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:10px;
  color:#93a5bb;
  font-size:12px;
}

.forever-completion-stats strong {
  color:#eaf0f8;
}

.forever-completion-card > small {
  color:#7589a1;
}

.forever-gear-slot-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
  margin-bottom:18px;
}

.forever-gear-slot-card {
  display:grid;
  gap:5px;
  padding:14px;
  border:1px solid #28394d;
  border-radius:14px;
  background:#0c151f;
}

.forever-gear-slot-card > span {
  color:#d7aa51;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.forever-gear-slot-card strong {
  color:#eef4fb;
}

.forever-gear-slot-card small {
  color:#8295ad;
}

.forever-gear-member-card {
  padding:17px;
  border:1px solid #28394d;
  border-radius:16px;
  background:linear-gradient(180deg,#101925 0%,#0b121b 100%);
}

.forever-gear-member-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.forever-gear-member-head > div {
  display:grid;
  gap:4px;
}

.forever-gear-member-head > div > span {
  color:#899cb4;
  font-size:12px;
}

.forever-gear-needs-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:10px;
}

.forever-gear-need {
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  background:#09121b;
}

.forever-gear-need > div:first-child {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.forever-gear-need > div:first-child span {
  color:#8497af;
  font-size:11px;
}

.forever-gear-options {
  display:grid;
  gap:5px;
}

.forever-gear-options a {
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:#b8d4f2;
  text-decoration:none;
  font-size:12px;
}

.forever-gear-options a:hover {
  color:#f0c86d;
}

.forever-gear-options small {
  color:#768ca5;
  white-space:nowrap;
}

.forever-watch-source-list {
  display:grid;
  gap:8px;
}

.forever-watch-source {
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 12px;
  border:1px solid #27384b;
  border-radius:11px;
  background:#0a131d;
  min-width:0;
}

.forever-watch-source a {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.forever-watch-event {
  display:grid;
  gap:8px;
  padding:14px 15px;
  border:1px solid #293b50;
  border-radius:13px;
  background:#0b141e;
}

.forever-watch-event.event-new_item {
  border-left:4px solid #73c991;
}

.forever-watch-event.event-item_changed {
  border-left:4px solid #d7aa51;
}

.forever-watch-event.event-new_instance {
  border-left:4px solid #6fa7d8;
}

.forever-watch-event-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.forever-watch-event-head > span {
  color:#8fa5bd;
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.forever-watch-event-head small {
  color:#6f839b;
}

.forever-watch-event > p {
  margin:0;
  color:#8498b0;
  font-size:12px;
}

.forever-watch-change-list {
  display:grid;
  gap:6px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.06);
}

.forever-watch-change-list > div {
  display:grid;
  grid-template-columns:minmax(110px,.5fr) minmax(0,1fr);
  gap:10px;
  font-size:12px;
}

.forever-watch-change-list strong {
  color:#a9b8c9;
}

.forever-watch-change-list span {
  color:#d9b96f;
  overflow-wrap:anywhere;
}

@media (max-width:700px) {
  .forever-completion-stats {
    grid-template-columns:1fr;
  }

  .forever-gear-member-head {
    flex-direction:column;
  }

  .forever-watch-change-list > div {
    grid-template-columns:1fr;
  }
}


/* === WoW Forever Phase 3: progression, strategy, raid ops === */

.forever-dungeon-level {
  margin-top:6px;
  color:#9db1c8;
  font-size:12px;
  font-weight:800;
}

.forever-progression-grid,
.forever-strategy-grid,
.forever-raid-ops-list,
.forever-admin-progression,
.forever-admin-strategy-list,
.forever-admin-raid-briefs {
  display:grid;
  gap:14px;
}

.forever-progression-grid {
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
}

.forever-progression-zone,
.forever-strategy-card,
.forever-raid-brief-card,
.forever-admin-zone,
.forever-admin-raid-brief {
  border:1px solid #28394d;
  border-radius:16px;
  background:linear-gradient(180deg,#101925 0%,#0b121b 100%);
  padding:18px;
}

.forever-progression-zone-head,
.forever-strategy-card-head,
.forever-raid-brief-head,
.forever-admin-zone-head,
.forever-admin-raid-brief-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.forever-progression-zone-head h3,
.forever-strategy-card-head h3,
.forever-raid-brief-head h3 {
  margin:0;
  font-size:22px;
}

.forever-progression-zone-head span,
.forever-strategy-card-head span,
.forever-raid-brief-head span,
.forever-admin-zone-head span,
.forever-admin-raid-brief-head span {
  color:#899db5;
  font-size:12px;
}

.forever-progression-zone-count {
  min-width:58px;
  padding:8px 10px;
  border:1px solid rgba(215,170,81,.45);
  border-radius:999px;
  color:#f0c86d;
  text-align:center;
  font-weight:900;
}

.forever-progression-zone-notes {
  color:#9eafc2;
  line-height:1.5;
  margin:12px 0;
}

.forever-progression-encounters {
  display:grid;
  gap:8px;
  margin-top:14px;
}

.forever-progression-encounter {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.06);
  border-left:4px solid #42556c;
  border-radius:10px;
  background:#09121b;
}

.forever-progression-encounter > div {
  display:grid;
  gap:3px;
}

.forever-progression-encounter span,
.forever-progression-encounter small {
  color:#7f93ab;
  font-size:11px;
}

.forever-progression-encounter.status-progress { border-left-color:#d7aa51; }
.forever-progression-encounter.status-cleared,
.forever-progression-encounter.status-farm { border-left-color:#73c991; }

.forever-strategy-card {
  display:grid;
  gap:16px;
}

.forever-strategy-card section {
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  background:#09121b;
}

.forever-strategy-card h4 {
  margin:0 0 7px;
  color:#f0c86d;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.forever-strategy-card p {
  margin:0;
  color:#c0cddd;
  line-height:1.55;
  white-space:pre-wrap;
}

.forever-strategy-role-grid,
.forever-strategy-mechanics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.forever-planner-token {
  padding:7px 10px;
  border:1px solid rgba(111,167,216,.45);
  border-radius:999px;
  color:#a9d4fa !important;
  background:rgba(111,167,216,.08);
  font-weight:900;
}

.forever-raid-brief-card {
  display:grid;
  gap:14px;
}

.forever-raid-objective,
.forever-raid-notes,
.forever-raid-linked-strategies {
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  background:#09121b;
}

.forever-raid-objective p,
.forever-raid-notes p {
  margin:6px 0 0;
  color:#b9c7d8;
  white-space:pre-wrap;
  line-height:1.5;
}

.forever-raid-notes.bench {
  border-color:rgba(215,170,81,.20);
}

.forever-raid-linked-strategies {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.forever-raid-linked-strategies > span {
  padding:5px 8px;
  border:1px solid #30445a;
  border-radius:999px;
  color:#a9bdd4;
  font-size:11px;
}

.forever-inline-form {
  display:grid;
  grid-template-columns:minmax(200px,1fr) 120px 110px 110px auto;
  gap:8px;
  margin:14px 0;
}

.forever-admin-zone {
  display:grid;
  gap:12px;
}

.forever-encounter-add {
  display:grid;
  grid-template-columns:minmax(200px,1fr) 150px auto;
  gap:8px;
}

.forever-admin-encounters {
  display:grid;
  gap:7px;
}

.forever-admin-encounter {
  display:grid;
  grid-template-columns:minmax(180px,1fr) 140px 100px auto auto;
  gap:7px;
  align-items:center;
}

.forever-strategy-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}

.forever-strategy-form textarea,
.forever-strategy-form button {
  grid-column:1 / -1;
}

.forever-admin-strategy {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border:1px solid #28394d;
  border-radius:12px;
  background:#09121b;
}

.forever-admin-strategy > div:first-child {
  display:grid;
  gap:4px;
}

.forever-admin-strategy span {
  color:#8195ad;
  font-size:11px;
}

.forever-admin-strategy-actions {
  display:flex;
  gap:7px;
}

.forever-admin-raid-brief {
  display:grid;
  gap:14px;
}

.forever-raid-brief-editor-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.forever-raid-brief-editor-grid label {
  display:grid;
  gap:5px;
}

.forever-raid-brief-editor-grid label > span {
  color:#8598b0;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.forever-raid-brief-editor-grid .span-2 {
  grid-column:1 / -1;
}

.forever-brief-strategies {
  display:grid;
  gap:8px;
}

.forever-brief-strategies > div {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.forever-brief-strategies label {
  display:flex;
  gap:6px;
  align-items:center;
  padding:6px 9px;
  border:1px solid #2c3e53;
  border-radius:999px;
  color:#a8bbd0;
  font-size:11px;
}

.forever-brief-strategies input {
  width:auto !important;
  accent-color:#d7aa51;
}

@media (max-width:900px) {
  .forever-strategy-role-grid,
  .forever-strategy-mechanics {
    grid-template-columns:1fr;
  }

  .forever-inline-form,
  .forever-encounter-add,
  .forever-admin-encounter {
    grid-template-columns:1fr;
  }

  .forever-strategy-form,
  .forever-raid-brief-editor-grid {
    grid-template-columns:1fr;
  }

  .forever-raid-brief-editor-grid .span-2 {
    grid-column:auto;
  }
}


/* === WoW Forever Phase 4: announcements + live homepage === */

html:not([data-game-profile="wow-forever"]) .forever-updates-tab,
html:not([data-game-profile="wow-forever"]) .forever-home-card {
  display:none !important;
}

.forever-home-card { min-height:240px; }

.forever-home-list { display:grid; gap:9px; }

.forever-home-list-row {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.forever-home-list-row:last-child { border-bottom:0; }

.forever-home-list-row > div {
  display:grid;
  gap:3px;
  min-width:0;
}

.forever-home-list-row strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#e7eef7;
}

.forever-home-list-row small,
.forever-home-muted {
  color:#7f93aa;
  font-size:11px;
}

.forever-home-change-dot {
  width:8px;
  height:8px;
  border-radius:999px;
  background:#d7aa51;
  box-shadow:0 0 0 4px rgba(215,170,81,.08);
}

.forever-home-panel { display:grid; gap:14px; }

.forever-home-kpi-row {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.forever-home-kpi-row > div {
  display:grid;
  gap:3px;
  padding:11px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:11px;
  background:#09121b;
}

.forever-home-kpi-row strong {
  color:#f0c86d;
  font-size:21px;
}

.forever-home-kpi-row span {
  color:#7f93aa;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.forever-home-focus {
  display:grid;
  gap:5px;
  padding:13px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  background:#09121b;
}

.forever-home-focus > span {
  color:#d7aa51;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.forever-home-focus > strong {
  color:#eef4fb;
  font-size:18px;
}

.forever-home-focus p {
  margin:0;
  color:#b5c4d6;
  line-height:1.45;
}

.forever-home-focus small { color:#7f93aa; }

.forever-home-ring-wrap {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:15px;
}

.forever-home-ring-wrap > div:last-child {
  display:grid;
  gap:4px;
}

.forever-home-ring-wrap > div:last-child span {
  color:#8094ab;
  font-size:12px;
}

.forever-home-ring {
  --progress:0;
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:
    radial-gradient(circle at center,#0d1721 56%,transparent 58%),
    conic-gradient(#d7aa51 calc(var(--progress) * 1%),#263547 0);
}

.forever-home-ring strong {
  color:#f0c86d;
  font-size:20px;
}

.forever-update-filters {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.forever-update-filters button {
  border:1px solid #2c3e53;
  border-radius:999px;
  background:#0b141e;
  color:#9fb1c7;
  padding:7px 12px;
}

.forever-update-filters button.active {
  border-color:#d7aa51;
  color:#f0c86d;
  background:rgba(215,170,81,.08);
}

.forever-updates-list,
.forever-admin-announcement-list {
  display:grid;
  gap:12px;
}

.forever-update-card {
  display:grid;
  gap:12px;
  padding:18px;
  border:1px solid #293b50;
  border-radius:15px;
  background:linear-gradient(180deg,#101925 0%,#0b121b 100%);
}

.forever-update-card.pinned {
  border-color:rgba(215,170,81,.42);
}

.forever-update-card-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.forever-update-card-head h3 {
  margin:7px 0 0;
  font-size:21px;
}

.forever-update-card > small { color:#7489a2; }

.forever-update-body {
  color:#bdcad9;
  line-height:1.6;
  white-space:pre-wrap;
}

.forever-update-category,
.forever-update-pin,
.forever-update-draft {
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:4px 7px;
  border-radius:999px;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.forever-update-category {
  border:1px solid #344a61;
  color:#a9bed5;
}

.forever-update-pin {
  border:1px solid rgba(215,170,81,.45);
  color:#f0c86d;
}

.forever-update-draft {
  border:1px solid #56677b;
  color:#99a8ba;
}

.category-forever-update { color:#95c7f5; border-color:rgba(111,167,216,.42); }
.category-raid { color:#d2b3f2; border-color:rgba(169,120,215,.42); }
.category-loot { color:#f0c86d; border-color:rgba(215,170,81,.42); }
.category-website { color:#91d7ad; border-color:rgba(115,201,145,.42); }

.forever-announcement-form {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}

.forever-announcement-form label {
  display:grid;
  gap:5px;
}

.forever-announcement-form label > span {
  color:#8498b0;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.forever-announcement-form .span-3 { grid-column:span 3; }
.forever-announcement-form .span-4 { grid-column:1 / -1; }

.forever-check-option {
  display:flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:8px !important;
  padding:8px 10px;
  border:1px solid #293b50;
  border-radius:10px;
}

.forever-check-option input {
  width:auto !important;
  accent-color:#d7aa51;
}

.forever-check-option span {
  text-transform:none !important;
  letter-spacing:0 !important;
  font-size:12px !important;
}

.forever-announcement-form-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.forever-admin-announcement {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border:1px solid #293b50;
  border-radius:13px;
  background:#0a131d;
}

.forever-admin-announcement.draft { opacity:.72; }

.forever-admin-announcement > div:first-child {
  display:grid;
  gap:5px;
}

.forever-admin-announcement-meta {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.forever-admin-announcement small { color:#7489a2; }

.forever-admin-announcement-actions {
  display:flex;
  gap:7px;
}

@media (max-width:760px) {
  .forever-home-kpi-row { grid-template-columns:1fr; }

  .forever-announcement-form { grid-template-columns:1fr; }

  .forever-announcement-form .span-3,
  .forever-announcement-form .span-4 { grid-column:auto; }

  .forever-admin-announcement {
    align-items:flex-start;
    flex-direction:column;
  }
}


/* === WoW Forever Phase 5: strategy cross-linking === */
.forever-progression-encounter-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.forever-strategy-link {
  appearance:none;
  border:1px solid rgba(215,170,81,.38);
  border-radius:999px;
  background:rgba(215,170,81,.07);
  color:#efc76c;
  padding:6px 9px;
  font:inherit;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
  cursor:pointer;
  text-decoration:none;
}

.forever-strategy-link:hover {
  border-color:#d7aa51;
  background:rgba(215,170,81,.13);
  color:#ffe0a0;
}

.forever-home-strategy-link {
  width:max-content;
  margin-top:5px;
}

.forever-strategy-card {
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.forever-strategy-card.strategy-highlight {
  border-color:#d7aa51;
  box-shadow:0 0 0 2px rgba(215,170,81,.10),0 0 30px rgba(215,170,81,.12);
  transform:translateY(-2px);
}

.forever-raid-linked-strategies .forever-strategy-link {
  font-size:11px;
  color:#a9bdd4;
  border-color:#30445a;
  background:transparent;
}

.forever-raid-linked-strategies .forever-strategy-link:hover {
  color:#f0c86d;
  border-color:#d7aa51;
}


/* === WoW Forever Phase 7: expanded Database Watch === */
.forever-watch-event.event-instance_changed {
  border-left:4px solid #8aa7c2;
}

.forever-watch-event.event-loot_published {
  border-left:4px solid #73c991;
}

.forever-watch-directory {
  display:grid;
  gap:10px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.06);
}

.forever-watch-directory-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}

.forever-watch-directory-head span {
  color:#8296ad;
  font-size:11px;
}

.forever-watch-directory-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:8px;
}

.forever-watch-directory-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:10px 11px;
  border:1px solid #27394d;
  border-radius:10px;
  background:#09121b;
}

.forever-watch-directory-row > div:first-child {
  display:grid;
  gap:3px;
  min-width:0;
}

.forever-watch-directory-row strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.forever-watch-directory-row span,
.forever-watch-directory-row small {
  color:#8195ad;
  font-size:10px;
}

.forever-watch-directory-meta {
  display:grid;
  justify-items:end;
  gap:4px;
}

.directory-status {
  display:inline-flex;
  width:max-content;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid #34485f;
  font-size:9px !important;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.directory-status.status-published {
  color:#82d9a0;
  border-color:rgba(115,201,145,.42);
}

.directory-status.status-pending {
  color:#f0c86d;
  border-color:rgba(215,170,81,.42);
}

@media (max-width:640px) {
  .forever-watch-directory-row {
    align-items:flex-start;
    flex-direction:column;
  }

  .forever-watch-directory-meta {
    justify-items:start;
  }
}


/* === WoW Forever Phase 8: profession directory === */

.forever-profession-toolbar {
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(170px,240px) auto;
  gap:9px;
  margin:16px 0 8px;
}

.forever-profession-member {
  display:grid;
  gap:8px;
  padding:11px 12px;
}

.forever-profession-member-main {
  display:grid;
  gap:3px;
}

.forever-profession-member-detail {
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.forever-profession-member-detail > span {
  display:inline-flex;
  padding:4px 7px;
  border:1px solid #304258;
  border-radius:999px;
  color:#a7bad0;
  font-size:10px;
}

.forever-profession-member-detail .profession-level {
  color:#f0c86d;
  border-color:rgba(215,170,81,.38);
  font-weight:900;
}

.forever-profession-recipes {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.forever-profession-recipes > span {
  padding:4px 7px;
  border-radius:7px;
  background:#09121b;
  border:1px solid rgba(255,255,255,.06);
  color:#8fa4bb;
  font-size:10px;
}

.forever-profession-craft-index {
  border-top:1px solid rgba(255,255,255,.06);
  padding-top:10px;
}

.forever-profession-craft-index summary {
  cursor:pointer;
  color:#d7aa51;
  font-size:11px;
  font-weight:900;
}

.forever-profession-craft-index > div {
  display:grid;
  gap:6px;
  margin-top:9px;
}

.forever-profession-craft-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:7px 8px;
  border-radius:8px;
  background:#09121b;
}

.forever-profession-craft-row strong {
  color:#dfe8f3;
  font-size:11px;
}

.forever-profession-craft-row span {
  color:#8195ad;
  font-size:10px;
  text-align:right;
}

.launch-profile-span-4 {
  grid-column:1 / -1;
}

.launch-profession-details-field small {
  color:#758aa2;
  line-height:1.35;
}

.launch-profession-details-field textarea {
  min-height:86px;
  resize:vertical;
}

@media (max-width:760px) {
  .forever-profession-toolbar {
    grid-template-columns:1fr;
  }

  .forever-profession-craft-row {
    flex-direction:column;
  }

  .forever-profession-craft-row span {
    text-align:left;
  }
}


/* === WoW Forever Phase 9: member-facing readiness === */

.forever-member-readiness-section {
  display:grid;
  gap:16px;
}

.member-readiness-overview {
  display:grid;
  grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr);
  gap:14px;
}

.member-readiness-score,
.member-readiness-profile,
.member-readiness-detail-grid > section {
  border:1px solid #28394d;
  border-radius:14px;
  background:#0a131d;
}

.member-readiness-score {
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px;
}

.member-readiness-score > div:last-child {
  display:grid;
  gap:4px;
}

.member-readiness-score > div:last-child > span {
  color:#d7aa51;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.member-readiness-score > div:last-child > strong {
  color:#eef4fb;
  font-size:18px;
}

.member-readiness-score small {
  color:#7e92aa;
}

.member-readiness-ring {
  --progress:0;
  width:94px;
  height:94px;
  min-width:94px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:
    radial-gradient(circle at center,#0d1721 56%,transparent 58%),
    conic-gradient(#d7aa51 calc(var(--progress) * 1%),#263547 0);
}

.member-readiness-ring strong {
  color:#f0c86d;
  font-size:21px;
}

.member-readiness-profile {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  overflow:hidden;
  background:#243448;
}

.member-readiness-profile > div {
  display:grid;
  gap:4px;
  padding:13px;
  background:#0a131d;
}

.member-readiness-profile span {
  color:#778da5;
  font-size:9px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.member-readiness-profile strong {
  color:#e7eef7;
}

.member-readiness-checklist {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:8px;
}

.member-readiness-check {
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid #293b50;
  border-radius:11px;
  background:#0a131d;
}

.member-readiness-check.complete {
  border-color:rgba(115,201,145,.28);
}

.member-readiness-check.incomplete {
  border-color:rgba(215,170,81,.25);
}

.member-readiness-check-icon {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  min-width:26px;
  border-radius:50%;
  border:1px solid #42556c;
  color:#8297ae;
  font-weight:900;
}

.member-readiness-check.complete .member-readiness-check-icon {
  color:#84d8a1;
  border-color:rgba(115,201,145,.45);
  background:rgba(115,201,145,.08);
}

.member-readiness-check.incomplete .member-readiness-check-icon {
  color:#e6bc62;
  border-color:rgba(215,170,81,.40);
}

.member-readiness-check > div {
  display:grid;
  gap:2px;
}

.member-readiness-check strong {
  color:#e3ebf5;
  font-size:12px;
}

.member-readiness-check small {
  color:#788da5;
  font-size:10px;
}

.member-readiness-detail-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.member-readiness-detail-grid > section {
  padding:14px;
}

.member-readiness-detail-head {
  margin-bottom:10px;
}

.member-readiness-detail-head strong {
  color:#f0c86d;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.member-readiness-profession {
  display:grid;
  gap:5px;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.member-readiness-profession:last-child {
  border-bottom:0;
}

.member-readiness-profession > div {
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.member-readiness-profession span,
.member-readiness-profession small {
  color:#8195ad;
  font-size:10px;
}

.member-readiness-profession small {
  line-height:1.4;
}

.member-readiness-gear-needs {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.member-readiness-gear-needs span {
  padding:6px 9px;
  border:1px solid #30445a;
  border-radius:999px;
  color:#a9bdd4;
  background:#09121b;
  font-size:11px;
}

.member-readiness-footnote {
  color:#70849b;
  font-size:11px;
  text-align:center;
}

@media (max-width:800px) {
  .member-readiness-overview,
  .member-readiness-detail-grid {
    grid-template-columns:1fr;
  }

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

  .member-readiness-profession > div {
    flex-direction:column;
    gap:3px;
  }
}


/* === WoW Forever Phase 10: Needs Attention / Admin Alerts === */

.forever-attention-card {
  margin-bottom:18px;
  border-color:rgba(215,170,81,.20);
}

.forever-alert-summary {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.forever-alert-summary span {
  display:inline-flex;
  padding:5px 8px;
  border:1px solid #34485e;
  border-radius:999px;
  color:#94a8bf;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.forever-alert-summary .critical {
  color:#f29a9a;
  border-color:rgba(218,101,101,.45);
}

.forever-alert-summary .warning {
  color:#f0c86d;
  border-color:rgba(215,170,81,.45);
}

.forever-alert-summary .info {
  color:#91bce4;
  border-color:rgba(111,167,216,.45);
}

.forever-alert-summary .healthy {
  color:#83d8a1;
  border-color:rgba(115,201,145,.45);
}

.forever-alert-list {
  display:grid;
  gap:8px;
}

.forever-alert-row {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 13px;
  border:1px solid #293a4e;
  border-left-width:4px;
  border-radius:11px;
  background:#09121b;
}

.forever-alert-row.severity-critical {
  border-left-color:#d76565;
}

.forever-alert-row.severity-warning {
  border-left-color:#d7aa51;
}

.forever-alert-row.severity-info {
  border-left-color:#6fa7d8;
}

.forever-alert-icon {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid #394d64;
  border-radius:50%;
  color:#9eb1c6;
  font-weight:900;
}

.severity-critical .forever-alert-icon {
  color:#ef9898;
  border-color:rgba(218,101,101,.45);
}

.severity-warning .forever-alert-icon {
  color:#f0c86d;
  border-color:rgba(215,170,81,.45);
}

.severity-info .forever-alert-icon {
  color:#91bce4;
  border-color:rgba(111,167,216,.45);
}

.forever-alert-copy {
  display:grid;
  gap:4px;
  min-width:0;
}

.forever-alert-title-line {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.forever-alert-title-line strong {
  color:#e8eff8;
}

.forever-alert-title-line span {
  min-width:22px;
  height:22px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border-radius:999px;
  background:#162231;
  color:#aec0d3;
  font-size:10px;
  font-weight:900;
}

.forever-alert-copy p {
  margin:0;
  color:#8397ae;
  line-height:1.4;
  font-size:11px;
}

.forever-alert-action {
  white-space:nowrap;
}

.forever-alert-empty {
  display:grid;
  gap:4px;
  padding:18px;
  text-align:center;
  border:1px solid rgba(115,201,145,.22);
  border-radius:11px;
  background:rgba(115,201,145,.04);
}

.forever-alert-empty strong {
  color:#8bdba6;
}

.forever-alert-empty span {
  color:#7f93aa;
  font-size:11px;
}

@media (max-width:720px) {
  .forever-alert-row {
    grid-template-columns:auto minmax(0,1fr);
  }

  .forever-alert-action {
    grid-column:1 / -1;
    width:100%;
  }

  .forever-alert-summary {
    justify-content:flex-start;
  }
}


/* === WoW Forever Phase 11: progression dashboard === */

.forever-progression-dashboard {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:14px;
  margin:16px 0;
}

.forever-progression-focus-card,
.forever-progression-recent-card {
  padding:16px;
  border:1px solid #293b50;
  border-radius:14px;
  background:#0a131d;
}

.forever-focus-zone {
  display:grid;
  gap:15px;
}

.forever-focus-zone > div:first-child {
  display:grid;
  gap:3px;
}

.forever-focus-zone > div:first-child > span,
.forever-focus-encounter > span {
  color:#d7aa51;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.forever-focus-zone > div:first-child > strong {
  color:#edf3fb;
  font-size:22px;
}

.forever-focus-zone small {
  color:#7e93aa;
}

.forever-focus-progress {
  display:grid;
  gap:6px;
}

.forever-progress-bar {
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:#1b2938;
}

.forever-progress-bar > span {
  display:block;
  height:100%;
  border-radius:inherit;
  background:#d7aa51;
}

.forever-focus-encounter {
  display:grid;
  gap:5px;
  padding:12px 13px;
  border:1px solid rgba(215,170,81,.20);
  border-radius:11px;
  background:rgba(215,170,81,.035);
}

.forever-focus-encounter > strong {
  color:#eef4fb;
  font-size:17px;
}

.forever-recent-clear {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.forever-recent-clear:last-child {
  border-bottom:0;
}

.forever-recent-clear-marker {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#73c991;
  box-shadow:0 0 0 4px rgba(115,201,145,.08);
}

.forever-recent-clear > div {
  display:grid;
  gap:2px;
}

.forever-recent-clear strong {
  color:#e5edf7;
  font-size:12px;
}

.forever-recent-clear span,
.forever-recent-clear small {
  color:#7f93aa;
  font-size:10px;
}

.forever-zone-progress-row {
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 12px;
}

.forever-zone-progress-row .forever-progress-bar {
  flex:1 1 auto;
}

.forever-zone-progress-row small {
  flex:0 0 auto;
  color:#72879e;
  font-size:10px;
}

.forever-progression-zone-count {
  display:grid;
  justify-items:end;
  gap:2px;
}

.forever-progression-zone-count strong {
  color:#f0c86d;
  font-size:18px;
}

.forever-progression-zone-count span {
  color:#7e92aa;
  font-size:10px;
}

.forever-admin-encounter {
  grid-template-columns:minmax(140px,1.2fr) 120px 90px 155px 155px auto auto auto;
}

@media (max-width:1100px) {
  .forever-progression-dashboard {
    grid-template-columns:1fr;
  }

  .forever-admin-encounter {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:650px) {
  .forever-recent-clear {
    grid-template-columns:auto minmax(0,1fr);
  }

  .forever-recent-clear small {
    grid-column:2;
  }

  .forever-zone-progress-row {
    align-items:flex-start;
    flex-direction:column;
  }

  .forever-zone-progress-row .forever-progress-bar {
    width:100%;
  }

  .forever-admin-encounter {
    grid-template-columns:1fr;
  }
}


/* === WoW Forever Phase 12: operations suite === */

/* Readiness bulk tools */
.forever-readiness-toolbar {
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(200px,260px) auto;
  gap:8px;
  margin:14px 0 8px;
}

.forever-readiness-bulkbar {
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-bottom:12px;
  padding:9px 10px;
  border:1px solid #293b50;
  border-radius:10px;
  background:#09121b;
}

.forever-readiness-bulkbar > span {
  margin-right:auto;
  color:#8fa4bb;
  font-size:11px;
}

.forever-readiness-select {
  display:grid;
  place-items:center;
}

.forever-readiness-select input {
  width:auto;
  accent-color:#d7aa51;
}

.forever-readiness-member.selected {
  border-color:rgba(215,170,81,.48);
  box-shadow:0 0 0 1px rgba(215,170,81,.08);
}

/* Craft finder + profession coverage */
.forever-craft-finder {
  display:grid;
  gap:10px;
  margin:16px 0;
  padding:15px;
  border:1px solid #293b50;
  border-radius:13px;
  background:#0a131d;
}

.forever-craft-results {
  display:grid;
  gap:7px;
}

.forever-craft-result {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:9px 10px;
  border:1px solid #27394d;
  border-radius:9px;
  background:#09121b;
}

.forever-craft-result > div:first-child {
  display:grid;
  gap:2px;
}

.forever-craft-result span {
  color:#8296ad;
  font-size:10px;
}

.forever-craft-result-crafters {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.forever-craft-result-crafters span {
  padding:4px 7px;
  border:1px solid rgba(115,201,145,.28);
  border-radius:999px;
  color:#93d9aa;
}

.forever-profession-coverage {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:10px 0 14px;
}

.forever-profession-coverage-card {
  display:grid;
  gap:3px;
  padding:11px;
  border:1px solid #293b50;
  border-radius:10px;
  background:#09121b;
}

.forever-profession-coverage-card strong {
  color:#f0c86d;
  font-size:20px;
}

.forever-profession-coverage-card span {
  color:#7f93aa;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

/* Homepage refinement */
.forever-home-warning {
  color:#e4b95e !important;
  margin-top:3px;
}

/* Forever Ops */
.forever-ops-kpis {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  margin-bottom:14px;
}

.forever-ops-kpi {
  display:grid;
  gap:3px;
  padding:12px;
  border:1px solid #293b50;
  border-radius:11px;
  background:#09121b;
}

.forever-ops-kpi strong {
  color:#f0c86d;
  font-size:20px;
}

.forever-ops-kpi span {
  color:#7f93aa;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.forever-ops-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.forever-ops-focus {
  display:grid;
  gap:6px;
}

.forever-ops-focus > span {
  color:#d7aa51;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.forever-ops-focus > strong {
  color:#eef4fb;
  font-size:18px;
}

.forever-ops-focus p {
  margin:0;
  color:#9fb1c6;
  line-height:1.45;
}

.forever-ops-focus small {
  color:#758aa2;
}

.forever-ops-list {
  display:grid;
  gap:7px;
}

.forever-ops-list-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.forever-ops-list-row:last-child {
  border-bottom:0;
}

.forever-ops-list-row > div {
  display:grid;
  gap:2px;
  min-width:0;
}

.forever-ops-list-row strong {
  color:#e3ebf5;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.forever-ops-list-row span,
.forever-ops-list-row small {
  color:#7d91a8;
  font-size:10px;
}

@media (max-width:1100px) {
  .forever-ops-kpis {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:760px) {
  .forever-readiness-toolbar,
  .forever-profession-coverage,
  .forever-ops-grid {
    grid-template-columns:1fr;
  }

  .forever-ops-kpis {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .forever-craft-result {
    align-items:flex-start;
    flex-direction:column;
  }

  .forever-craft-result-crafters {
    justify-content:flex-start;
  }
}


/* === WoW Forever Phase 13: Gear Coverage intelligence === */

.forever-gear-gap-panel {
  margin:16px 0;
  padding:15px;
  border:1px solid #293b50;
  border-radius:14px;
  background:#0a131d;
}

.forever-gear-gap-list {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:8px;
}

.forever-gear-gap {
  appearance:none;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  width:100%;
  padding:11px 12px;
  border:1px solid #2c4056;
  border-left:4px solid #d7aa51;
  border-radius:10px;
  background:#09121b;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.forever-gear-gap.severity-uncovered {
  border-left-color:#d76565;
}

.forever-gear-gap:hover {
  border-color:#d7aa51;
}

.forever-gear-gap > div:first-child {
  display:grid;
  gap:3px;
}

.forever-gear-gap strong {
  color:#e8eff8;
}

.forever-gear-gap span,
.forever-gear-gap small {
  color:#8195ad;
  font-size:10px;
}

.forever-gear-gap-meta {
  display:grid;
  justify-items:center;
  min-width:56px;
}

.forever-gear-gap-meta strong {
  color:#f0c86d;
  font-size:20px;
}

.forever-gear-all-covered {
  grid-column:1 / -1;
  display:grid;
  gap:4px;
  padding:17px;
  border:1px solid rgba(115,201,145,.25);
  border-radius:10px;
  background:rgba(115,201,145,.04);
  text-align:center;
}

.forever-gear-all-covered strong {
  color:#8bdba6;
}

.forever-gear-all-covered span {
  color:#7f93aa;
  font-size:11px;
}

.forever-gear-toolbar {
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(220px,280px) minmax(160px,220px) auto;
  gap:8px;
  margin:14px 0 8px;
}

.forever-gear-slot-title {
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}

.forever-gear-slot-title b,
.forever-gear-gap-badge {
  display:inline-flex;
  padding:3px 6px;
  border:1px solid rgba(215,101,101,.40);
  border-radius:999px;
  color:#ed9292;
  font-size:8px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.forever-gear-slot-title b.pool-gap,
.forever-gear-gap-badge.pool {
  color:#e7bc62;
  border-color:rgba(215,170,81,.40);
}

.forever-gear-gap-badge.covered {
  color:#83d9a1;
  border-color:rgba(115,201,145,.38);
}

.forever-gear-mini-progress {
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:#1b2938;
}

.forever-gear-mini-progress span {
  display:block;
  height:100%;
  border-radius:inherit;
  background:#73c991;
}

.forever-gear-slot-card.has-gap .forever-gear-mini-progress span {
  background:#d7aa51;
}

.forever-gear-slot-card .gap-copy {
  color:#e5b85d;
}

.forever-gear-member-badges {
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.forever-gear-coverage-pill {
  display:inline-flex;
  padding:4px 7px;
  border:1px solid rgba(115,201,145,.35);
  border-radius:999px;
  color:#86d8a2;
  font-size:9px;
  font-weight:900;
}

.forever-gear-coverage-pill.gap {
  color:#e9b960;
  border-color:rgba(215,170,81,.35);
}

.forever-gear-need {
  border-left:4px solid #73c991;
}

.forever-gear-need.pool-gap {
  border-left-color:#d7aa51;
}

.forever-gear-need.uncovered {
  border-left-color:#d76565;
}

.forever-gear-need-head {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.forever-gear-options a {
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.forever-gear-options a.in-pool {
  border-color:rgba(115,201,145,.28);
}

.forever-gear-options a small {
  color:#7d92a9;
  white-space:nowrap;
}

@media (max-width:900px) {
  .forever-gear-toolbar {
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:620px) {
  .forever-gear-toolbar {
    grid-template-columns:1fr;
  }

  .forever-gear-need-head,
  .forever-gear-options a {
    flex-direction:column;
  }

  .forever-gear-member-badges {
    justify-content:flex-start;
  }
}


/* === WoW Forever Phase 14: Discord notifications === */

.forever-notification-destination {
  display:grid;
  grid-template-columns:140px minmax(220px,1fr) minmax(220px,1fr) 190px;
  gap:10px;
}

.forever-notification-destination label {
  display:grid;
  gap:5px;
}

.forever-notification-destination label > span {
  color:#7f93aa;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.forever-notification-toggle-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

.forever-notification-toggle-grid > label {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border:1px solid #293b50;
  border-radius:11px;
  background:#09121b;
  cursor:pointer;
}

.forever-notification-toggle-grid input {
  width:auto;
  margin-top:2px;
  accent-color:#d7aa51;
}

.forever-notification-toggle-grid label > div {
  display:grid;
  gap:3px;
}

.forever-notification-toggle-grid strong {
  color:#e7eef7;
  font-size:12px;
}

.forever-notification-toggle-grid span {
  color:#7f93aa;
  font-size:10px;
  line-height:1.4;
}

@media (max-width:1000px) {
  .forever-notification-destination {
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:650px) {
  .forever-notification-destination,
  .forever-notification-toggle-grid {
    grid-template-columns:1fr;
  }
}


/* === Consolidated Admin navigation === */

.admin-nav-group {
  margin-bottom:5px;
}

.admin-nav-group-label {
  appearance:none;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 7px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#6488b0;
  font:inherit;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  text-align:left;
}

.admin-nav-group-label:hover {
  color:#9ec2e9;
  background:rgba(255,255,255,.025);
}

.admin-nav-chevron {
  font-size:12px;
  transition:transform .18s ease;
}

.admin-nav-group.expanded .admin-nav-chevron {
  transform:rotate(180deg);
}

.admin-nav-group-buttons {
  display:none;
  gap:3px;
  padding-top:3px;
}

.admin-nav-group.expanded .admin-nav-group-buttons {
  display:grid;
}

.forever-admin-hidden-tab {
  display:none !important;
}

.forever-admin-workspace-nav {
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin:0 0 18px;
  padding:8px;
  border:1px solid #24374a;
  border-radius:11px;
  background:#08111a;
  position:sticky;
  top:8px;
  z-index:15;
}

.forever-admin-workspace-nav button {
  appearance:none;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#93a8bf;
  padding:7px 10px;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.forever-admin-workspace-nav button:hover {
  color:#d9e6f4;
  border-color:#31465d;
  background:#0e1a26;
}

.forever-admin-workspace-nav button.active {
  color:#f0c86d;
  border-color:rgba(215,170,81,.48);
  background:rgba(215,170,81,.08);
}

@media (max-width:800px) {
  .forever-admin-workspace-nav {
    position:static;
    overflow-x:auto;
    flex-wrap:nowrap;
  }

  .forever-admin-workspace-nav button {
    white-space:nowrap;
  }
}


/* === Admin sidebar consolidation fixes === */

/*
  Older Admin Command Center CSS forces every group body to display:grid!important.
  These selectors intentionally override that legacy rule so the arrows actually
  collapse and expand the groups.
*/
.admin-nav-groups .admin-nav-group:not(.expanded) > .admin-nav-group-buttons {
  display:none !important;
}

.admin-nav-groups .admin-nav-group.expanded > .admin-nav-group-buttons {
  display:grid !important;
  grid-template-columns:1fr !important;
}

/* The group header is now an actual button. Override the old label styling. */
.admin-nav-groups .admin-nav-group > .admin-nav-group-label {
  display:flex !important;
  width:100% !important;
  margin:4px 0 5px !important;
  padding:6px 8px !important;
  align-items:center !important;
  justify-content:space-between !important;
  border:0 !important;
  background:transparent !important;
  cursor:pointer !important;
}

.admin-nav-groups .admin-nav-group > .admin-nav-group-label:hover {
  background:rgba(255,255,255,.025) !important;
}

.admin-nav-groups .admin-nav-chevron {
  display:inline-block;
  transform:rotate(0deg);
}

.admin-nav-groups .admin-nav-group.expanded .admin-nav-chevron {
  transform:rotate(180deg);
}


/* === Forever Health drill-down diagnostics === */
.forever-alert-diagnostics {
  margin-top:6px;
}

.forever-alert-diagnostics > summary {
  width:max-content;
  cursor:pointer;
  color:#8fb4db;
  font-size:10px;
  font-weight:900;
  letter-spacing:.03em;
}

.forever-alert-diagnostics[open] > summary {
  color:#f0c86d;
}

.forever-alert-diagnostics-body {
  display:grid;
  gap:10px;
  margin-top:9px;
  padding:11px;
  border:1px solid rgba(126,153,184,.18);
  border-radius:9px;
  background:#071019;
}

.forever-alert-diagnostics-body section {
  display:grid;
  gap:5px;
}

.forever-alert-diagnostics-body section > strong {
  color:#d8e4f1;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.forever-alert-diagnostics-body section > p {
  margin:0;
  color:#91a6bd;
  font-size:11px;
  line-height:1.5;
}

.forever-alert-diagnostic-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:6px;
}

.forever-alert-diagnostic-grid > div {
  display:grid;
  gap:2px;
  padding:7px 8px;
  border:1px solid rgba(126,153,184,.13);
  border-radius:7px;
  background:#0a151f;
}

.forever-alert-diagnostic-grid span {
  color:#6f859d;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.forever-alert-diagnostic-grid b {
  color:#d6e1ed;
  font-size:10px;
  overflow-wrap:anywhere;
}

.forever-alert-affected-list {
  display:grid;
  gap:5px;
  max-height:260px;
  overflow:auto;
  padding-right:3px;
}

.forever-alert-affected-list > div {
  display:grid;
  grid-template-columns:minmax(130px,.45fr) minmax(220px,1fr);
  gap:10px;
  padding:7px 8px;
  border-bottom:1px solid rgba(126,153,184,.10);
}

.forever-alert-affected-list b {
  color:#dce7f2;
  font-size:10px;
}

.forever-alert-affected-list span {
  color:#8095ac;
  font-size:10px;
  overflow-wrap:anywhere;
}

.forever-alert-error {
  margin:0;
  max-height:260px;
  overflow:auto;
  padding:9px;
  border:1px solid rgba(215,101,101,.25);
  border-radius:7px;
  background:#0b0d12;
  color:#e7a5a5;
  font:10px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

@media(max-width:720px) {
  .forever-alert-affected-list > div {
    grid-template-columns:1fr;
    gap:3px;
  }
}


/* === WoW Forever Discord character intake / member self-service === */

.member-forever-profile-editor {
  margin:14px 0;
  padding:15px;
  border:1px solid rgba(215,170,81,.22);
  border-radius:13px;
  background:rgba(215,170,81,.025);
}

.member-forever-profile-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.member-forever-profile-form label {
  display:grid;
  gap:5px;
}

.member-forever-profile-form label > span {
  color:#7f93aa;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.member-forever-profile-form .span-2 {
  grid-column:1 / -1;
}

.member-forever-profile-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

@media (max-width:700px) {
  .member-forever-profile-form {
    grid-template-columns:1fr;
  }

  .member-forever-profile-form .span-2 {
    grid-column:auto;
  }

  .member-forever-profile-actions {
    align-items:stretch;
    flex-direction:column;
  }
}


/* === Forever Character Intake diagnostics === */
.forever-intake-diagnostic {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 12px;
  padding:9px 10px;
  border:1px solid #2a3d52;
  border-radius:9px;
  background:#09131d;
}
.forever-intake-diagnostic strong { color:#f0c86d; margin-right:4px; }
.forever-intake-diagnostic span {
  padding:3px 6px;
  border:1px solid #31465d;
  border-radius:999px;
  color:#9db0c5;
  font-size:9px;
  font-weight:800;
}
.forever-intake-diagnostic small {
  flex-basis:100%;
  color:#e6a0a0;
  line-height:1.4;
}


/* === Dedicated Member Hub: WoW Forever profile setup === */

.dedicated-forever-profile-editor {
  display:grid;
  gap:16px;
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(215,170,81,.28);
  border-radius:12px;
  background:
    linear-gradient(
      180deg,
      rgba(215,170,81,.035),
      rgba(10,19,29,.96)
    );
}

.dedicated-forever-profile-head {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
}

.dedicated-forever-profile-head h2 {
  margin:2px 0 5px;
}

.dedicated-forever-profile-head p:not(.eyebrow) {
  margin:0;
  max-width:760px;
  color:#8fa4bb;
  line-height:1.45;
}

.dedicated-forever-profile-readiness {
  display:grid;
  place-items:center;
  min-width:72px;
  padding:9px 12px;
  border:1px solid rgba(215,170,81,.35);
  border-radius:10px;
  background:rgba(215,170,81,.05);
}

.dedicated-forever-profile-readiness.complete {
  border-color:rgba(115,201,145,.38);
  background:rgba(115,201,145,.05);
}

.dedicated-forever-profile-readiness strong {
  color:#f0c86d;
  font-size:20px;
}

.dedicated-forever-profile-readiness.complete strong {
  color:#82d9a0;
}

.dedicated-forever-profile-readiness span {
  color:#7f93aa;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
}

.dedicated-forever-character-lock {
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border:1px solid #2a3c50;
  border-radius:9px;
  background:#09131d;
}

.dedicated-forever-character-lock > span {
  color:#758aa2;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
}

.dedicated-forever-character-lock strong {
  color:#eef4fb;
}

.dedicated-forever-character-lock small {
  color:#6f849c;
}

.dedicated-forever-profile-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.dedicated-forever-profile-form label {
  display:grid;
  gap:5px;
}

.dedicated-forever-profile-form label > span {
  color:#7890aa;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.dedicated-forever-profile-form .span-2 {
  grid-column:1 / -1;
}

.dedicated-forever-profile-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:3px;
}

@media (max-width:720px) {
  .dedicated-forever-profile-head {
    flex-direction:column;
  }

  .dedicated-forever-profile-form {
    grid-template-columns:1fr;
  }

  .dedicated-forever-profile-form .span-2 {
    grid-column:auto;
  }

  .dedicated-forever-character-lock {
    grid-template-columns:1fr;
  }

  .dedicated-forever-profile-actions {
    align-items:stretch;
    flex-direction:column;
  }
}


/* === WoW Forever dedicated Member Hub polish === */

#dedicated-forever-profile-editor.dedicated-forever-profile-editor {
  gap:18px;
  padding:0;
  overflow:hidden;
  border:1px solid #2a3d52;
  border-radius:16px;
  background:#0a121b;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.dedicated-forever-profile-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:28px;
  align-items:center;
  padding:24px 26px;
  border-bottom:1px solid #26394d;
  background:
    radial-gradient(circle at 90% 20%,rgba(215,170,81,.12),transparent 34%),
    linear-gradient(135deg,#101a25 0%,#0b141e 62%,#101820 100%);
}

.dedicated-forever-profile-hero-copy {
  min-width:0;
}

.dedicated-forever-profile-hero-copy h2 {
  margin:4px 0 8px;
  color:#f3f7fb;
  font-size:26px;
  line-height:1.08;
}

.dedicated-forever-profile-hero-copy > p:last-child {
  margin:0;
  max-width:720px;
  color:#8da2ba;
  line-height:1.55;
}

.dedicated-forever-readiness-panel {
  display:grid;
  gap:9px;
  padding:14px 15px;
  border:1px solid rgba(215,170,81,.34);
  border-radius:12px;
  background:rgba(215,170,81,.055);
}

.dedicated-forever-readiness-panel.complete {
  border-color:rgba(115,201,145,.38);
  background:rgba(115,201,145,.055);
}

.dedicated-forever-readiness-value {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}

.dedicated-forever-readiness-value strong {
  color:#f0c86d;
  font-size:28px;
  line-height:1;
}

.dedicated-forever-readiness-panel.complete .dedicated-forever-readiness-value strong {
  color:#82d9a0;
}

.dedicated-forever-readiness-value span {
  color:#a6b8ca;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.dedicated-forever-readiness-bar {
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#1e2c3b;
}

.dedicated-forever-readiness-bar > span {
  display:block;
  height:100%;
  border-radius:inherit;
  background:#d7aa51;
}

.dedicated-forever-readiness-panel.complete .dedicated-forever-readiness-bar > span {
  background:#73c991;
}

.dedicated-forever-readiness-panel small {
  color:#7d91a9;
}

.dedicated-forever-summary-strip {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  margin:0 20px;
  overflow:hidden;
  border:1px solid #26394d;
  border-radius:12px;
  background:#26394d;
}

.dedicated-forever-summary-strip > div {
  display:grid;
  gap:3px;
  padding:13px 14px;
  background:#0d1721;
}

.dedicated-forever-summary-strip span {
  color:#6f859d;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.dedicated-forever-summary-strip strong {
  color:#eaf1f9;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.dedicated-forever-summary-strip small {
  color:#72879e;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.dedicated-forever-next-steps {
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 20px;
  padding:10px 12px;
  border:1px solid rgba(215,170,81,.20);
  border-radius:10px;
  background:rgba(215,170,81,.035);
}

.dedicated-forever-next-steps > span {
  color:#d7aa51;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}

.dedicated-forever-next-steps > div {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.dedicated-forever-next-steps b {
  padding:4px 7px;
  border:1px solid #344a61;
  border-radius:999px;
  color:#a8bacd;
  background:#101b27;
  font-size:9px;
}

#dedicated-forever-profile-form.dedicated-forever-profile-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:0 20px 20px;
}

.dedicated-forever-form-card {
  display:grid;
  align-content:start;
  gap:14px;
  padding:16px;
  border:1px solid #273a4f;
  border-radius:12px;
  background:#0d1721;
}

.dedicated-forever-form-card:first-child {
  grid-column:1 / -1;
}

.dedicated-forever-form-card-head > div {
  display:flex;
  align-items:center;
  gap:10px;
}

.dedicated-forever-form-card-head .step-number {
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  min-width:31px;
  border:1px solid rgba(215,170,81,.35);
  border-radius:8px;
  color:#d7aa51;
  background:rgba(215,170,81,.05);
  font-size:9px;
  font-weight:900;
}

.dedicated-forever-form-card-head h3 {
  margin:0 0 2px;
  color:#eaf1f9;
  font-size:14px;
}

.dedicated-forever-form-card-head p {
  margin:0;
  color:#71869e;
  font-size:10px;
}

.dedicated-forever-field-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.dedicated-forever-field-grid label {
  display:grid;
  gap:6px;
}

.dedicated-forever-field-grid label > span {
  color:#748ba4;
  font-size:9px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.dedicated-forever-field-grid .span-2 {
  grid-column:1 / -1;
}

.dedicated-forever-field-grid select,
.dedicated-forever-field-grid input {
  min-height:38px;
  width:100%;
  border:1px solid #33495f;
  border-radius:8px;
  background:#08121b;
  color:#dfe8f3;
  padding:8px 10px;
}

.dedicated-forever-field-grid select:focus,
.dedicated-forever-field-grid input:focus {
  outline:none;
  border-color:#d7aa51;
  box-shadow:0 0 0 2px rgba(215,170,81,.08);
}

#dedicated-forever-profile-form .dedicated-forever-profile-actions {
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid #273a4f;
  border-radius:12px;
  background:#0b151f;
}

.dedicated-forever-profile-actions > div {
  display:grid;
  gap:3px;
}

.dedicated-forever-profile-actions > div > strong {
  color:#dce6f1;
  font-size:12px;
}

.dedicated-forever-profile-actions .form-status {
  color:#748ba4;
  font-size:10px;
}

.dedicated-forever-profile-actions button[type="submit"] {
  min-width:190px;
  min-height:40px;
  border:1px solid #c99732;
  border-radius:8px;
  background:#c99732;
  color:#0a0d10;
  font-weight:900;
  cursor:pointer;
}

.dedicated-forever-profile-actions button[type="submit"]:hover {
  filter:brightness(1.06);
}

.dedicated-forever-profile-actions button[type="submit"]:disabled {
  opacity:.55;
  cursor:not-allowed;
}

@media (max-width:900px) {
  .dedicated-forever-profile-hero {
    grid-template-columns:1fr;
  }

  .dedicated-forever-summary-strip {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #dedicated-forever-profile-form.dedicated-forever-profile-form {
    grid-template-columns:1fr;
  }

  .dedicated-forever-form-card:first-child {
    grid-column:auto;
  }
}

@media (max-width:620px) {
  .dedicated-forever-profile-hero {
    padding:18px;
  }

  .dedicated-forever-summary-strip,
  .dedicated-forever-next-steps {
    margin-left:12px;
    margin-right:12px;
  }

  .dedicated-forever-summary-strip,
  .dedicated-forever-field-grid {
    grid-template-columns:1fr;
  }

  #dedicated-forever-profile-form.dedicated-forever-profile-form {
    padding:0 12px 12px;
  }

  .dedicated-forever-field-grid .span-2 {
    grid-column:auto;
  }

  #dedicated-forever-profile-form .dedicated-forever-profile-actions {
    align-items:stretch;
    flex-direction:column;
  }

  .dedicated-forever-profile-actions button[type="submit"] {
    width:100%;
  }
}


/* === Dedicated Member Hub header polish === */

.forever-member-header-host {
  min-height:0 !important;
  height:auto !important;
  padding:0 !important;
  border-bottom:1px solid #24374a !important;
  background:
    radial-gradient(circle at 18% 0%,rgba(215,170,81,.10),transparent 28%),
    linear-gradient(180deg,#0d1620 0%,#081019 100%) !important;
}

.forever-member-header-inner {
  width:min(1480px,calc(100% - 40px));
  min-height:82px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto minmax(260px,1fr);
  align-items:center;
  gap:28px;
}

.forever-member-header-brand {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:inherit !important;
  text-decoration:none !important;
}

.forever-member-header-mark {
  display:grid;
  place-items:center;
  min-width:58px;
  height:38px;
  padding:0 10px;
  border:1px solid rgba(215,170,81,.42);
  border-radius:10px;
  background:rgba(215,170,81,.07);
  color:#d7aa51;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.08em;
}

.forever-member-header-brand-copy {
  display:grid;
  gap:2px;
  min-width:0;
}

.forever-member-header-brand-copy strong {
  color:#eef4fb;
  font-size:15px;
}

.forever-member-header-brand-copy small {
  color:#758ba3;
  font-size:10px;
  font-weight:700;
}

.forever-member-header-context {
  display:grid;
  justify-items:center;
  gap:2px;
  min-width:240px;
  text-align:center;
}

.forever-member-header-context > span {
  color:#d7aa51;
  font-size:8px;
  font-weight:1000;
  letter-spacing:.16em;
}

.forever-member-header-context > strong {
  color:#e9f1fa;
  font-size:17px;
}

.forever-member-header-context > small {
  color:#72889f;
  font-size:9px;
}

.forever-member-header-actions {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:9px;
}

.forever-member-header-guild-link {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border:1px solid #2c4156;
  border-radius:8px;
  background:#0b151f;
  color:#a7bbd0 !important;
  font-size:10px;
  font-weight:900;
  text-decoration:none !important;
}

.forever-member-header-guild-link:hover {
  border-color:#d7aa51;
  color:#f0c86d !important;
}

.forever-member-header-refresh {
  min-height:34px !important;
  padding:0 13px !important;
  border:1px solid #c99732 !important;
  border-radius:8px !important;
  background:#c99732 !important;
  color:#0b0e11 !important;
  font-size:10px !important;
  font-weight:1000 !important;
  cursor:pointer;
}

.forever-member-header-refresh:hover {
  filter:brightness(1.06);
}

@media (max-width:900px) {
  .forever-member-header-inner {
    grid-template-columns:1fr auto;
    gap:14px;
    min-height:76px;
  }

  .forever-member-header-context {
    display:none;
  }
}

@media (max-width:620px) {
  .forever-member-header-inner {
    width:calc(100% - 24px);
    grid-template-columns:1fr;
    gap:10px;
    padding:12px 0;
  }

  .forever-member-header-actions {
    justify-content:flex-start;
  }

  .forever-member-header-brand-copy small {
    display:none;
  }
}


/* === WoW Forever availability + readiness cleanup === */

.dedicated-forever-availability-card {
  grid-column:1 / -1;
}

.dedicated-forever-availability-grid {
  display:grid;
  grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr);
  gap:12px;
}

.dedicated-forever-availability-grid > label {
  display:grid;
  gap:6px;
}

.dedicated-forever-availability-grid label > span,
.dedicated-forever-days-field > span {
  color:#748ba4;
  font-size:9px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.dedicated-forever-availability-grid select,
.dedicated-forever-availability-grid textarea {
  width:100%;
  border:1px solid #33495f;
  border-radius:8px;
  background:#08121b;
  color:#dfe8f3;
  padding:8px 10px;
}

.dedicated-forever-availability-grid select {
  min-height:38px;
}

.dedicated-forever-availability-grid textarea {
  min-height:72px;
  resize:vertical;
  line-height:1.45;
}

.dedicated-forever-availability-grid select:focus,
.dedicated-forever-availability-grid textarea:focus {
  outline:none;
  border-color:#d7aa51;
  box-shadow:0 0 0 2px rgba(215,170,81,.08);
}

.dedicated-forever-days-field {
  display:grid;
  gap:7px;
}

.dedicated-forever-day-options {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px;
}

.dedicated-forever-day-option {
  position:relative;
  cursor:pointer;
}

.dedicated-forever-day-option input {
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.dedicated-forever-day-option span {
  display:grid;
  place-items:center;
  min-height:38px;
  padding:0 6px;
  border:1px solid #33495f;
  border-radius:8px;
  background:#08121b;
  color:#8398af;
  font-size:10px;
  font-weight:900;
}

.dedicated-forever-day-option input:checked + span {
  border-color:rgba(215,170,81,.58);
  background:rgba(215,170,81,.10);
  color:#f0c86d;
}

.dedicated-forever-availability-grid .span-2 {
  grid-column:1 / -1;
}

@media (max-width:820px) {
  .dedicated-forever-availability-grid {
    grid-template-columns:1fr;
  }

  .dedicated-forever-availability-grid .span-2 {
    grid-column:auto;
  }

  .dedicated-forever-day-options {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media (max-width:520px) {
  .dedicated-forever-day-options {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* === Admin Forever Readiness: availability review === */

.admin-readiness-availability-controls {
  display:inline-grid;
  grid-template-columns:minmax(150px,190px) minmax(130px,170px);
  gap:8px;
  margin-left:8px;
  vertical-align:middle;
}

.admin-readiness-availability-controls select {
  min-height:36px;
}

.forever-readiness-member-identity {
  min-width:0;
}

.forever-readiness-member-summary {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-left:auto;
}

.forever-availability-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 8px;
  border:1px solid #394d63;
  border-radius:999px;
  background:#101b27;
  color:#98abc0;
  font-size:9px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.forever-availability-badge.available {
  border-color:rgba(115,201,145,.42);
  background:rgba(115,201,145,.07);
  color:#88daa5;
}

.forever-availability-badge.limited {
  border-color:rgba(215,170,81,.46);
  background:rgba(215,170,81,.07);
  color:#efc66d;
}

.forever-availability-badge.unavailable {
  border-color:rgba(218,101,101,.42);
  background:rgba(218,101,101,.07);
  color:#efa0a0;
}

.forever-availability-badge.missing {
  border-color:#3b4f65;
  color:#7e92a8;
}

.forever-availability-toggle {
  min-height:28px !important;
  padding:0 9px !important;
  font-size:9px !important;
}

.forever-availability-detail {
  margin-top:10px;
  padding:12px;
  border:1px solid #2a3d52;
  border-radius:10px;
  background:#08121b;
}

.forever-availability-detail.hidden {
  display:none;
}

.forever-availability-detail-grid {
  display:grid;
  grid-template-columns:minmax(150px,.4fr) minmax(260px,1fr);
  gap:10px;
}

.forever-availability-detail-grid > div {
  display:grid;
  gap:4px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.05);
  border-radius:8px;
  background:#0b151f;
}

.forever-availability-detail-grid > div.wide {
  grid-column:1 / -1;
}

.forever-availability-detail-grid span {
  color:#6f859d;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.forever-availability-detail-grid strong {
  color:#dce6f1;
  font-size:11px;
}

.forever-availability-detail-grid p {
  margin:0;
  color:#93a6bb;
  line-height:1.45;
  white-space:pre-wrap;
}

@media (max-width:900px) {
  .admin-readiness-availability-controls {
    display:grid;
    grid-template-columns:1fr;
    margin:8px 0 0;
  }

  .forever-readiness-member-summary {
    flex-wrap:wrap;
  }

  .forever-availability-detail-grid {
    grid-template-columns:1fr;
  }

  .forever-availability-detail-grid > div.wide {
    grid-column:auto;
  }
}


/* === WoW Forever Raid Night Planner === */

.dedicated-forever-day-options {
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:7px !important;
}

.dedicated-forever-day-row {
  display:grid;
  grid-template-columns:80px minmax(120px,1fr) minmax(120px,1fr);
  gap:8px;
  align-items:end;
  padding:8px;
  border:1px solid #2a3d52;
  border-radius:9px;
  background:#08121b;
  opacity:.62;
}

.dedicated-forever-day-row.selected {
  opacity:1;
  border-color:rgba(215,170,81,.30);
}

.dedicated-forever-day-row > label {
  display:grid;
  gap:4px;
}

.dedicated-forever-day-row > label > span {
  color:#71869e;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}

.dedicated-forever-day-toggle input {
  position:absolute;
  opacity:0;
}

.dedicated-forever-day-toggle > span {
  display:grid;
  place-items:center;
  min-height:38px;
  border:1px solid #33495f;
  border-radius:8px;
  background:#0c1721;
  color:#9aadc1 !important;
  font-size:10px !important;
}

.dedicated-forever-day-toggle input:checked + span {
  border-color:rgba(215,170,81,.55);
  background:rgba(215,170,81,.10);
  color:#f0c86d !important;
}

.dedicated-forever-availability-label-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.dedicated-forever-availability-label-row > span {
  color:#748ba4;
  font-size:9px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.dedicated-forever-availability-label-row small,
.dedicated-forever-exceptions > small {
  color:#6e839b;
  font-size:9px;
}

.dedicated-forever-exceptions {
  display:grid;
  gap:8px;
}

#dedicated-forever-exception-list {
  display:grid;
  gap:7px;
}

.dedicated-forever-exception-row {
  display:grid;
  grid-template-columns:145px 145px 110px 110px minmax(180px,1fr) auto;
  gap:7px;
  align-items:center;
}

.dedicated-forever-exception-row input,
.dedicated-forever-exception-row select {
  min-height:36px;
  border:1px solid #33495f;
  border-radius:8px;
  background:#08121b;
  color:#dfe8f3;
  padding:7px 8px;
}

.admin-raid-night-planner {
  margin:16px 0;
  padding:16px;
  border:1px solid rgba(215,170,81,.24);
  border-radius:14px;
  background:
    radial-gradient(circle at 92% 0%,rgba(215,170,81,.08),transparent 28%),
    #0a131d;
}

.admin-raid-night-controls {
  display:grid;
  grid-template-columns:repeat(5,minmax(120px,1fr)) auto;
  gap:8px;
  align-items:end;
}

.admin-raid-night-controls label,
.admin-raid-night-schedule-fields label {
  display:grid;
  gap:5px;
}

.admin-raid-night-controls label > span,
.admin-raid-night-schedule-fields label > span {
  color:#748ba4;
  font-size:8px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.admin-raid-night-controls input,
.admin-raid-night-controls select,
.admin-raid-night-schedule-fields input {
  min-height:36px;
  border:1px solid #33495f;
  border-radius:8px;
  background:#08121b;
  color:#dce6f1;
  padding:7px 9px;
}

.admin-raid-night-controls > button {
  min-height:36px;
}

.admin-raid-night-schedule-fields {
  display:grid;
  grid-template-columns:minmax(220px,.6fr) minmax(280px,1fr);
  gap:8px;
  margin-top:9px;
}

.admin-raid-night-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px;
}

.admin-raid-night-layout > section,
.admin-raid-night-candidates-section {
  padding:13px;
  border:1px solid #283a4f;
  border-radius:11px;
  background:#09121b;
}

.admin-raid-night-subhead {
  margin-bottom:10px;
}

.admin-raid-night-subhead > div {
  display:grid;
  gap:2px;
}

.admin-raid-night-subhead span {
  color:#e7eef7;
  font-size:12px;
  font-weight:900;
}

.admin-raid-night-subhead small {
  color:#72869d;
  font-size:9px;
}

.raid-night-heatmap {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px;
}

.raid-night-heatmap-cell {
  display:grid;
  gap:3px;
  padding:9px 6px;
  border:1px solid #2d4157;
  border-radius:8px;
  background:
    linear-gradient(
      180deg,
      rgba(115,201,145,calc(min(var(--coverage),100) / 500)),
      rgba(9,18,27,.94)
    );
  text-align:center;
}

.raid-night-heatmap-cell > span {
  color:#7d92aa;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}

.raid-night-heatmap-cell strong {
  color:#edf4fb;
  font-size:18px;
}

.raid-night-heatmap-cell small {
  color:#72879e;
  font-size:8px;
}

.raid-night-scheduled {
  display:grid;
  gap:7px;
}

.raid-night-scheduled-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.raid-night-scheduled-row:last-child {
  border-bottom:0;
}

.raid-night-scheduled-row > div {
  display:grid;
  gap:2px;
}

.raid-night-scheduled-row strong {
  color:#e7eef7;
}

.raid-night-scheduled-row span,
.raid-night-scheduled-row small {
  color:#7c91a8;
  font-size:9px;
}

.admin-raid-night-candidates-section {
  margin-top:12px;
}

.raid-night-candidates {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:9px;
}

.raid-night-candidate {
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid #2a3d52;
  border-radius:10px;
  background:#0b151f;
}

.raid-night-candidate.top {
  border-color:rgba(115,201,145,.42);
  box-shadow:0 0 0 1px rgba(115,201,145,.06);
}

.raid-night-candidate-main {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}

.raid-night-candidate-main > div:first-child {
  display:grid;
  gap:2px;
}

.raid-night-candidate-main > div:first-child > span {
  color:#d7aa51;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}

.raid-night-candidate-main > div:first-child strong {
  color:#eef4fb;
  font-size:16px;
}

.raid-night-candidate-main small {
  color:#71869e;
  font-size:9px;
}

.raid-night-coverage {
  display:grid;
  justify-items:end;
  gap:2px;
  text-align:right;
}

.raid-night-coverage strong {
  color:#83d9a1;
  font-size:18px;
}

.raid-night-coverage span,
.raid-night-coverage small {
  color:#7890a8;
  font-size:8px;
}

.raid-night-counts {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}

.raid-night-counts span {
  padding:4px 7px;
  border:1px solid #34495e;
  border-radius:999px;
  font-size:8px;
  font-weight:900;
}

.raid-night-counts .available { color:#87dba4; border-color:rgba(115,201,145,.35); }
.raid-night-counts .limited { color:#edc36b; border-color:rgba(215,170,81,.35); }
.raid-night-counts .unavailable { color:#eb9696; border-color:rgba(218,101,101,.35); }
.raid-night-counts .unknown { color:#879caf; }

.raid-night-candidate-actions {
  display:flex;
  justify-content:flex-end;
  gap:7px;
}

.raid-night-member-detail {
  display:grid;
  gap:9px;
  padding-top:9px;
  border-top:1px solid rgba(255,255,255,.06);
}

.raid-night-member-detail.hidden {
  display:none;
}

.raid-night-member-detail > div {
  display:grid;
  gap:5px;
}

.raid-night-member-detail > div > span {
  color:#71869e;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}

.raid-night-member-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:5px 0;
}

.raid-night-member-row strong {
  color:#dce6f1;
  font-size:10px;
}

.raid-night-member-row small {
  color:#71869e;
  font-size:8px;
  text-align:right;
}

@media (max-width:1150px) {
  .admin-raid-night-controls {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .admin-raid-night-layout {
    grid-template-columns:1fr;
  }

  .dedicated-forever-exception-row {
    grid-template-columns:1fr 1fr 1fr;
  }
}

@media (max-width:760px) {
  .admin-raid-night-controls,
  .admin-raid-night-schedule-fields {
    grid-template-columns:1fr;
  }

  .raid-night-heatmap {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .dedicated-forever-day-row {
    grid-template-columns:70px 1fr 1fr;
  }

  .dedicated-forever-exception-row {
    grid-template-columns:1fr;
  }

  .raid-night-candidate-main {
    flex-direction:column;
  }

  .raid-night-coverage {
    justify-items:start;
    text-align:left;
  }
}


/* === Homepage Guild Updates navigation fix === */

button.forever-home-update-row {
  appearance:none;
  width:100%;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

button.forever-home-update-row:hover {
  background:rgba(215,170,81,.055);
}

button.forever-home-update-row:hover strong {
  color:#f0c86d;
}

button.forever-home-update-row:focus-visible {
  outline:1px solid rgba(215,170,81,.75);
  outline-offset:-1px;
}

.forever-update-card.forever-update-highlight {
  border-color:rgba(215,170,81,.72) !important;
  box-shadow:
    0 0 0 1px rgba(215,170,81,.18),
    0 0 28px rgba(215,170,81,.10);
}


/* === Guild site footer === */

.guild-site-footer {
  margin-top:28px;
  border-top:1px solid #24374a;
  background:
    linear-gradient(180deg,rgba(8,16,25,.98),rgba(6,12,19,.99));
  color:#9aadc1;
}

.guild-site-footer-inner {
  width:min(1480px,calc(100% - 40px));
  margin:0 auto;
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:18px 0;
}

.guild-site-footer-brand {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:220px;
}

.guild-site-footer-brand img {
  width:36px;
  height:36px;
  object-fit:contain;
  flex:0 0 auto;
}

.guild-site-footer-brand > div {
  display:grid;
  gap:2px;
}

.guild-site-footer-brand strong {
  color:#e8c36b;
  font-size:12px;
  letter-spacing:.08em;
}

.guild-site-footer-brand span {
  color:#6f849b;
  font-size:9px;
}

.guild-site-footer-copy {
  display:grid;
  gap:4px;
  justify-items:end;
  text-align:right;
  max-width:780px;
}

.guild-site-footer-copy p {
  margin:0;
  color:#aebed0;
  line-height:1.45;
  font-size:11px;
}

.guild-site-footer-copy small {
  color:#60758c;
  font-size:9px;
}

.guild-site-footer.footer-text-empty .guild-site-footer-copy p {
  color:#7f93a8;
}

@media (max-width:720px) {
  .guild-site-footer-inner {
    width:calc(100% - 24px);
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }

  .guild-site-footer-copy {
    justify-items:start;
    text-align:left;
  }
}


/* === Official Blizzard WoW Forever news automation === */

.forever-update-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.forever-update-source-link {
  color:#e7b94f;
  font-size:10px;
  font-weight:900;
  text-decoration:none;
}

.forever-update-source-link:hover {
  text-decoration:underline;
}

.forever-update-source-badge {
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border:1px solid rgba(215,170,81,.36);
  border-radius:999px;
  color:#efc66d;
  background:rgba(215,170,81,.06);
  font-size:8px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.admin-forever-news-automation {
  display:grid;
  gap:14px;
  margin-bottom:16px;
  padding:15px;
  border:1px solid rgba(215,170,81,.24);
  border-radius:12px;
  background:
    radial-gradient(circle at 90% 0%,rgba(215,170,81,.08),transparent 32%),
    #0a141e;
}

.admin-forever-news-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.admin-forever-news-head h3 {
  margin:2px 0 4px;
}

.admin-forever-news-head p:not(.eyebrow) {
  margin:0;
  max-width:720px;
  color:#8196ad;
  line-height:1.45;
}

.admin-forever-news-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.admin-forever-news-grid > label:not(.toggle-row) {
  display:grid;
  gap:5px;
}

.admin-forever-news-grid > label:not(.toggle-row) > span {
  color:#7389a1;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.admin-forever-news-grid select {
  min-height:38px;
}

.admin-forever-news-grid .toggle-row {
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:10px;
  border:1px solid #293d52;
  border-radius:9px;
  background:#09131d;
}

.admin-forever-news-grid .toggle-row > span {
  display:grid;
  gap:2px;
}

.admin-forever-news-grid .toggle-row strong {
  color:#e1eaf4;
  font-size:11px;
}

.admin-forever-news-grid .toggle-row small {
  color:#70859d;
  font-size:9px;
}

.admin-forever-news-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.admin-forever-news-actions > div:last-child {
  display:flex;
  gap:8px;
}

.admin-forever-news-diagnostics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.admin-forever-news-diagnostics > div {
  display:grid;
  gap:3px;
  padding:9px 10px;
  border:1px solid #283b50;
  border-radius:8px;
  background:#08121b;
}

.admin-forever-news-diagnostics span {
  color:#687e96;
  font-size:8px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.admin-forever-news-diagnostics strong {
  color:#dce6f1;
  font-size:10px;
  overflow-wrap:anywhere;
}

.forever-admin-announcement small a {
  color:#e7b94f;
  text-decoration:none;
}

.forever-admin-announcement small a:hover {
  text-decoration:underline;
}

@media (max-width:900px) {
  .admin-forever-news-grid,
  .admin-forever-news-diagnostics {
    grid-template-columns:1fr;
  }

  .admin-forever-news-actions {
    align-items:stretch;
    flex-direction:column;
  }

  .admin-forever-news-actions > div:last-child {
    flex-wrap:wrap;
  }
}


.admin-forever-news-source-badges {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}


.forever-update-title-link {
  color:inherit;
  text-decoration:none;
}

.forever-update-title-link:hover {
  color:#f0c86d;
  text-decoration:underline;
  text-underline-offset:3px;
}


/* === Homepage Guild Updates count + NEW badge === */

.forever-home-update-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:20px;
  margin-left:8px;
  padding:0 7px;
  border:1px solid rgba(215,170,81,.34);
  border-radius:999px;
  background:rgba(215,170,81,.08);
  color:#efc66d;
  font-size:9px;
  font-weight:900;
  line-height:1;
  vertical-align:middle;
}

.forever-home-update-title-line {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}

.forever-home-update-title-line strong {
  min-width:0;
}

.forever-home-new-tag {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:18px;
  padding:0 6px;
  border:1px solid rgba(255,78,78,.5);
  border-radius:4px;
  background:rgba(190,28,28,.18);
  color:#ff6262;
  font-size:8px;
  font-weight:1000;
  letter-spacing:.08em;
  line-height:1;
}


/* === Forever Updates collapsible patch notes === */

.forever-update-body-clamp {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
  white-space:pre-line;
}

.forever-update-body-clamp.expanded {
  display:block;
  -webkit-line-clamp:unset;
  overflow:visible;
}

.forever-update-expand {
  margin-top:8px;
  padding:0;
  border:0;
  background:none;
  color:#d8ae56;
  font:inherit;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  cursor:pointer;
}

.forever-update-expand:hover {
  text-decoration:underline;
}


/* === Global typography standardization: Inter everywhere === */

html,
body,
button,
input,
select,
textarea,
option,
table,
th,
td,
nav,
header,
footer,
main,
section,
article,
aside,
div,
span,
p,
a,
label,
small,
strong,
em,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
dl,
dt,
dd,
code,
pre,
kbd,
samp {
  font-family: var(--site-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}


/* === Website Font Manager === */

:root {
  --site-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --site-font-headings: var(--site-font-body);
  --site-font-navigation: var(--site-font-body);
  --site-font-buttons: var(--site-font-body);
  --site-font-hero: var(--site-font-body);
  --site-font-updates: var(--site-font-body);
  --site-font-admin: var(--site-font-body);
  --site-font-tables: var(--site-font-body);
  --site-font-footer: var(--site-font-body);
}

#tab-admin,
.admin-shell,
.admin-panel,
.admin-content,
.admin-card,
.guild-settings-card {
  font-family:var(--site-font-admin) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.card-title,
.panel-title {
  font-family:var(--site-font-headings) !important;
}

nav,
.tabs,
.tab,
.site-secondary-nav,
.admin-nav-groups,
.admin-nav-group,
.admin-subtab,
[data-admin-tab] {
  font-family:var(--site-font-navigation) !important;
}

button,
.btn,
.button,
[role="button"],
input[type="button"],
input[type="submit"] {
  font-family:var(--site-font-buttons) !important;
}

.guild-hero,
.guild-hero *,
#guild-header,
#guild-header *,
.home-hero,
.home-hero *,
.hero,
.hero * {
  font-family:var(--site-font-hero) !important;
}

#forever-updates-list,
#forever-updates-list *,
#home-forever-announcements,
#home-forever-announcements *,
.mock-card-forever-announcements,
.mock-card-forever-announcements * {
  font-family:var(--site-font-updates) !important;
}

table,
thead,
tbody,
tfoot,
tr,
th,
td,
.data-table,
.data-table * {
  font-family:var(--site-font-tables) !important;
}

#guild-site-footer,
#guild-site-footer * {
  font-family:var(--site-font-footer) !important;
}

.site-typography-card {
  display:grid;
  gap:18px;
}

.site-typography-heading h3 {
  margin:4px 0 6px;
}

.site-typography-heading p {
  margin:0;
  color:#8090a3;
  max-width:760px;
}

.site-font-upload-grid,
.site-font-assignment-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.site-font-upload-grid label,
.site-font-assignment-grid label {
  display:grid;
  gap:6px;
}

.site-font-upload-grid label > span,
.site-font-assignment-grid label > span {
  color:#8fa0b4;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.site-font-upload-grid input,
.site-font-upload-grid select,
.site-font-assignment-grid select {
  width:100%;
  min-height:40px;
}

#admin-site-font-upload {
  align-self:end;
  justify-self:start;
}

.site-font-list {
  display:grid;
  gap:8px;
}

.site-font-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 14px;
  border:1px solid rgba(130,150,175,.18);
  border-radius:9px;
  background:rgba(8,16,25,.5);
}

.site-font-row > div {
  min-width:0;
  display:grid;
  gap:3px;
}

.site-font-row strong {
  font-size:15px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.site-font-row small {
  color:#75879b;
}

.site-font-preview {
  display:grid;
  gap:6px;
  padding:16px;
  border:1px dashed rgba(214,173,89,.32);
  border-radius:10px;
  background:rgba(214,173,89,.04);
}

.site-font-preview > span {
  color:#9aaabc;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.site-font-preview strong {
  font-size:20px;
}

.site-font-preview p {
  margin:0;
  color:#9aaabc;
}

.site-typography-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

@media (max-width:760px) {
  .site-font-upload-grid,
  .site-font-assignment-grid {
    grid-template-columns:1fr;
  }

  .site-font-row {
    align-items:flex-start;
    flex-direction:column;
  }
}
