:root {
  color-scheme: dark;
  --bg: #101419;
  --panel: #191f26;
  --line: #303944;
  --text: #eeeae2;
  --muted: #a6afb9;
  --gold: #dfbd7e;
  --green: #91cfaf;
  font-family:
    Segoe UI,
    system-ui,
    sans-serif;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
.raid-hero {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid #5b4a32;
  border-radius: 16px;
  background: linear-gradient(125deg, #29251e, #161d25 70%);
  margin-bottom: 12px;
}
.raid-hero > div:last-child {
  flex: 1;
  min-width: 0;
}
.raid-brief {
  font-size: 13px;
  margin: 14px 0;
}
.raid-brief p {
  margin: 6px 0;
}
.raid-brief details {
  color: var(--muted);
  font-size: 12px;
}
.raid-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}
.raid-hero .intro {
  margin: 0;
}
.raid-hero-mark {
  font-size: 48px;
  background: #151a20;
  padding: 18px;
  border-radius: 14px;
  line-height: 1;
}
.raid-voice {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 20px;
}
.raid-voice strong {
  color: var(--gold);
}
.raid-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  margin: 20px 0;
}
.raid-toolbar > .raid-menu {
  margin: 0;
  padding: 16px;
  min-width: 0;
}
.raid-menu > summary {
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  padding: 4px;
}
.raid-menu[open] {
  grid-column: 1/-1;
}
.raid-menu .menu-content > .panel {
  margin-bottom: 14px;
}
#raid-menu-debug {
  grid-column: 1/-1;
  background: transparent;
  padding: 10px 16px;
}
.composition-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.composition-title h2 {
  margin: 4px 0;
  max-width: 540px;
}
.composition-title .eyebrow {
  margin: 0;
  font-size: 10px;
}
.composition-capacity {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.composition-capacity small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.composition-status {
  font-size: 13px;
  color: var(--muted);
}
.lineup-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.lineup-role {
  --role-color: #b7a2f0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--role-color);
  border-radius: 10px;
  background: #12191f;
  padding: 16px;
  min-width: 0;
}
.lineup-role[data-role="TANK"] {
  --role-color: #83b3e8;
}
.lineup-role[data-role="HEALER"] {
  --role-color: #85cca7;
}
.lineup-role > header {
  min-height: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--role-color);
  padding: 0;
  background: transparent;
  border: 0;
}
.lineup-role h3 {
  margin: 0;
  font-size: 15px;
}
.lineup-role header span {
  font-size: 24px;
  font-weight: 600;
}
.lineup-role header small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.lineup-role meter {
  width: 100%;
  height: 7px;
  display: block;
  margin-top: 12px;
  accent-color: var(--role-color);
}
.lineup-role meter::-webkit-meter-bar {
  background: #2a333e;
  border: 0;
  border-radius: 8px;
}
.lineup-role meter::-webkit-meter-optimum-value {
  background: var(--role-color);
}
.role-need {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 14px;
}
.lineup-list {
  padding: 0;
  margin: 0;
  list-style: none;
  max-height: 360px;
  overflow: auto;
  scrollbar-width: thin;
}
.lineup-player {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #29313c;
  min-width: 0;
}
.lineup-player > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.lineup-player strong {
  color: var(--class-color, #a6afb9);
  font-size: 13px;
  display: block;
  overflow-wrap: anywhere;
}
.lineup-player small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.class-mark {
  font-size: 11px;
  font-weight: 700;
  color: var(--class-color, #a6afb9);
  border: 1px solid var(--class-color, #a6afb9);
  background: #202733;
  border-radius: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lineup-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #30303a;
  color: #ddd3f2;
  white-space: nowrap;
}
.lineup-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 18px 0;
}
.lineup-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0;
}
.lineup-secondary > details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.lineup-secondary summary,
.class-breakdown summary {
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}
.class-breakdown {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.composition-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.composition-breakdown article {
  border-left: 2px solid var(--class-color, #6f7e91);
  padding: 8px 12px;
  background: #131a22;
}
.composition-breakdown h3 {
  font-size: 12px;
  margin: 0;
}
.composition-breakdown p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.composition-note {
  font-size: 11px;
  margin-bottom: 0;
}
[data-class="DRUID"] {
  --class-color: #ff9b54;
}
[data-class="WARRIOR"] {
  --class-color: #d8b791;
}
[data-class="PALADIN"] {
  --class-color: #f49cbb;
}
[data-class="HUNTER"] {
  --class-color: #b3d88e;
}
[data-class="ROGUE"] {
  --class-color: #fff290;
}
[data-class="PRIEST"] {
  --class-color: #eeede6;
}
[data-class="SHAMAN"] {
  --class-color: #6cacf4;
}
[data-class="MAGE"] {
  --class-color: #80dbf1;
}
[data-class="WARLOCK"] {
  --class-color: #b6a7ef;
}
@media (max-width: 1100px) {
  .lineup-columns {
    gap: 8px;
  }
  .lineup-role {
    padding: 12px;
  }
  .lineup-tag {
    white-space: normal;
  }
}
@media (max-width: 760px) {
  .raid-toolbar,
  .lineup-columns {
    grid-template-columns: 1fr;
  }
  .raid-hero {
    padding: 20px;
    gap: 14px;
  }
  .raid-hero-mark {
    font-size: 30px;
    padding: 12px;
  }
  .composition-title {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .composition-capacity {
    font-size: 28px;
  }
  .lineup-secondary {
    grid-template-columns: 1fr;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: var(--gold);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  background: var(--gold);
  color: #171b20;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 650;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
button:hover,
.button:hover {
  filter: brightness(1.1);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
input,
textarea,
select {
  display: block;
  width: 100%;
  background: #10161c;
  border: 1px solid #46515e;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 5px;
}
textarea {
  min-height: 105px;
  resize: vertical;
}
label {
  display: block;
  margin: 16px 0 7px;
  font-weight: 600;
}
input[type="checkbox"] {
  display: inline;
  width: auto;
  margin-right: 10px;
}
label.check {
  font-weight: 400;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 16px 0;
  padding: 16px;
}
legend {
  color: var(--gold);
}
:focus-visible {
  outline: 3px solid #9bc4ff;
  outline-offset: 3px;
}
body > aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  background: #14191f;
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 750;
  letter-spacing: 2px;
}
.brand b {
  background: var(--gold);
  color: #151a20;
  font-size: 26px;
  padding: 3px 10px;
  border-radius: 5px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-top: 40px;
}
nav a,
nav .future {
  display: block;
  padding: 11px 12px;
  margin: 4px 0;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
}
nav a.active {
  color: var(--gold);
  background: #28251f;
  border-left: 2px solid var(--gold);
}
nav small {
  display: block;
  font-size: 10px;
}
.future {
  opacity: 0.55;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.workspace {
  margin-left: 252px;
}
header {
  min-height: 76px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.showcase-view-banner,
.showcase-view-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.showcase-view-banner {
  padding: 0.75rem 1rem;
  background: #33211d;
  border-bottom: 1px solid #92574d;
}
.showcase-view-dialog {
  width: min(34rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border: 1px solid #806742;
  border-radius: 12px;
  color: inherit;
  background: #191e1f;
}
.showcase-view-dialog::backdrop {
  background: #000a;
}
.showcase-view-heading {
  justify-content: space-between;
}
.showcase-view-heading h2 {
  margin: 0;
}
.showcase-view-dialog .actions {
  justify-content: center;
  margin-top: 1.25rem;
}
.boundary {
  padding: 10px 40px;
  background: #25241e;
  color: #d8c99f;
  font-size: 12px;
}
main {
  max-width: 1350px;
  padding: 28px 40px 60px;
  margin: auto;
  min-height: 70vh;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 12px 0;
}
h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
.intro {
  color: var(--muted);
  max-width: 760px;
}
.muted,
small {
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.card strong {
  display: block;
  font-size: 34px;
  color: var(--gold);
}
.card small {
  display: block;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.panel {
  margin: 20px 0;
}
.stack .panel {
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 9px;
  border: 1px solid #635637;
  border-radius: 20px;
  background: #29251d;
  color: #e6cd9d;
}
.success {
  color: var(--green);
}
.row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.row:last-child {
  border-bottom: 0;
}
.row p {
  margin: 4px 0;
}
.row a {
  font-weight: 600;
}
.empty {
  color: var(--muted);
  padding: 18px 0;
}
.answer {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.answer dt {
  font-size: 12px;
  color: var(--muted);
}
.answer dd {
  margin: 6px 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.callout {
  border-left: 3px solid var(--gold);
  padding: 12px 18px;
  background: #24251f;
  font-size: 13px;
}
.danger {
  border-color: #88514d;
  background: #3c2728;
  color: #ffbbb2;
}
.history {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
details summary {
  cursor: pointer;
  color: var(--gold);
}
#notice:not(:empty) {
  margin: 20px 40px 0;
  padding: 14px 18px;
  border: 1px solid #846843;
  border-radius: 6px;
  background: #29251e;
}
.gm-menu > summary,
.debug-menu > summary,
.gm-navigation > summary {
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
}
.menu-content {
  padding-top: 16px;
}
.menu-content > .panel {
  margin-top: 0;
}
.menu-content > form,
.menu-content > button {
  margin-bottom: 16px;
}
.gm-navigation {
  padding: 8px 16px;
  color: var(--gold);
}
.gm-navigation > a {
  margin-top: 8px;
}
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
footer {
  padding: 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  background: black;
  padding: 15px;
  z-index: 10;
}
.login {
  max-width: 760px;
  margin-top: 55px;
}
.narrow {
  max-width: 800px;
}
.number {
  font-variant-numeric: tabular-nums;
}
.pagination {
  margin-top: 20px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
main .eyebrow {
  margin-top: 8px;
}
@media (max-width: 1000px) {
  body > aside {
    width: 210px;
    padding: 25px 16px;
  }
  .workspace {
    margin-left: 210px;
  }
  main {
    padding: 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  header,
  .boundary {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 680px) {
  body > aside {
    position: static;
    width: auto;
    padding: 18px;
  }
  .brand {
    font-size: 14px;
  }
  .sidebar-foot,
  aside > .eyebrow {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 15px;
  }
  nav a,
  nav .future {
    font-size: 12px;
    margin: 0;
    padding: 7px;
  }
  .workspace {
    margin: 0;
  }
  header {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .boundary {
    padding: 10px 18px;
  }
  main {
    padding: 18px;
  }
  h1 {
    font-size: 28px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .card {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .card strong {
    font-size: 28px;
  }
  .panel {
    padding: 18px;
  }
  .row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  #notice:not(:empty) {
    margin: 15px 18px;
  }
  footer {
    padding: 18px;
    flex-wrap: wrap;
  }
}
.charter-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}
.raid-calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 3px;
}
.raid-calendar td {
  position: relative;
  vertical-align: top;
  height: 90px;
  padding: 6px;
  border: 1px solid #35404a;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.calendar-create {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gold);
}
.calendar-create > span {
  position: absolute;
  right: 7px;
  top: 3px;
  font-size: 18px;
  opacity: 0.65;
}
.calendar-create:hover,
.calendar-create:focus-visible {
  background: #dfbd7e12;
  filter: none;
}
.calendar-create:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.calendar-day-number {
  position: relative;
  pointer-events: none;
}
.raid-calendar .calendar-raid {
  position: relative;
}
.raid-calendar td.outside {
  border-color: transparent;
}
.raid-calendar td.has-raid {
  background: #352d1f;
  border-color: #d7b36f;
}
.raid-calendar td.today {
  outline: 2px solid #79b8cc;
  outline-offset: -3px;
}
.calendar-raid {
  display: block;
  font-size: 13px;
  margin-top: 6px;
}
.calendar-raid small {
  display: block;
}
.calendar-raid.cancelled {
  opacity: 0.65;
  text-decoration: line-through;
}
@media (max-width: 600px) {
  .raid-calendar td {
    padding: 3px;
    height: 70px;
  }
  .calendar-raid {
    font-size: 18px;
  }
  .calendar-raid .calendar-title,
  .calendar-raid small {
    display: none;
  }
  .raid-calendar th {
    font-size: 11px;
    padding: 2px;
  }
}
.raid-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin: 18px 0;
}
.raid-group {
  min-width: 0;
  background: #11191f;
  border: 1px solid #39444d;
  border-radius: 10px;
  padding: 12px;
}
.raid-seat {
  border-left: 3px solid #58606b;
  padding: 8px 10px;
  margin: 10px 0;
  background: #1b242b;
  overflow-wrap: anywhere;
}
.raid-seat select {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.raid-seat p {
  margin: 8px 0 0;
}
.raid-seat[data-class="DRUID"] {
  border-color: #ff7c0a;
}
.raid-seat[data-class="WARRIOR"] {
  border-color: #c69b6d;
}
.raid-seat[data-class="PALADIN"] {
  border-color: #f48cba;
}
.raid-seat[data-class="HUNTER"] {
  border-color: #aad372;
}
.raid-seat[data-class="ROGUE"] {
  border-color: #fff468;
}
.raid-seat[data-class="PRIEST"] {
  border-color: #ffffff;
}
.raid-seat[data-class="SHAMAN"] {
  border-color: #0070dd;
}
.raid-seat[data-class="MAGE"] {
  border-color: #3fc7eb;
}
.raid-seat[data-class="WARLOCK"] {
  border-color: #8788ee;
}
.group-need {
  padding: 10px 14px;
  border-left: 3px solid;
  margin: 10px 0;
  background: #1b242b;
}
.need-missing {
  border-color: #e8b35c;
}
.need-covered {
  border-color: #76bf8d;
}
.raid-management-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.raid-management-menu .button {
  white-space: normal;
  text-align: center;
  padding: 18px;
}
.raid-management-menu .active {
  outline: 2px solid #e2bf78;
}
.management-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.management-cards article {
  padding: 16px;
  border: 1px solid #33424c;
  background: #111a20;
  border-radius: 10px;
}
.ideal-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  margin: 20px 0;
}
.ideal-palette {
  background: #10191f;
  padding: 14px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  border: 1px solid #33434e;
}
.ideal-palette > h3,
.ideal-palette > p {
  grid-column: 1/-1;
  margin: 4px 0;
}
.ideal-palette section {
  min-width: 0;
  padding: 4px 0 10px;
  border-bottom: 1px solid #293640;
}
.ideal-palette h4 {
  color: var(--class-color);
}
.ideal-palette button.can-supply {
  outline: 2px solid #f3d47b;
  background: #574828;
  box-shadow: 0 0 12px #e9c05d45;
  color: #fff;
}
#ideal-effect-focus {
  color: #e5c682;
  min-height: 22px;
  font-size: 13px;
}
.ideal-board {
  min-width: 0;
}
.ideal-board-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.ideal-board-heading h3 {
  margin: 0;
}
.ideal-board-heading span {
  color: #9eacb8;
  font-size: 12px;
}
.ideal-seat-row {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid #34424e;
  border-radius: 7px;
  margin: 6px 0;
  background: #202b34;
  height: 56px;
  flex-shrink: 0;
}
.ideal-seat-row .ideal-seat {
  flex: 1;
  min-width: 0;
  width: auto;
  border: 0;
  margin: 0;
  background: none;
  color: var(--class-color, #aab6c1);
  padding: 7px;
  min-height: 0;
  overflow: hidden;
}
.ideal-seat-row .ideal-seat > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ideal-seat-row .ideal-seat > .wow-icon {
  flex: 0 0 24px;
}
.ideal-seat-row .ideal-seat small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ideal-seat-tools {
  flex: 0 0 auto;
}
.ideal-palette-shell {
  min-width: 0;
}
.ideal-palette.floating {
  position: fixed;
  top: 10px;
  z-index: 35;
  padding: 10px;
  gap: 4px 10px;
  box-shadow: 0 8px 28px #000b;
  background: #10191ff7;
  backdrop-filter: blur(10px);
}
.ideal-palette.floating > p:not(#ideal-effect-focus) {
  display: none;
}
.ideal-palette.floating > h3 {
  font-size: 12px;
}
.ideal-palette.floating section {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.ideal-palette.floating section h4 {
  margin: 0;
  width: 95px;
  flex: 0 0 95px;
  font-size: 11px;
}
.ideal-palette.floating section h4 .wow-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
.ideal-palette.floating section > div {
  flex-wrap: nowrap;
  gap: 3px;
}
.ideal-palette.floating button {
  padding: 4px;
  min-height: 30px;
  font-size: 0;
}
.ideal-palette.floating button .wow-icon {
  width: 22px;
  height: 22px;
  margin: 0;
}
.ideal-palette.floating #ideal-effect-focus {
  font-size: 11px;
  min-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ideal-builder [data-place],
#ideal-builder [data-options],
#ideal-builder [data-remove],
#ideal-builder .ideal-group,
#ideal-builder .ideal-board-heading,
#ideal-builder .ideal-loadout,
#ideal-builder .visual-effect {
  scroll-margin-top: var(--ideal-dock-height, 0px);
}
@media (max-width: 1150px) {
  .ideal-palette.floating section {
    display: block;
  }
  .ideal-palette.floating section h4 {
    width: auto;
    margin: 0 0 3px;
  }
  .ideal-palette.floating {
    gap: 4px 8px;
  }
}
@media (max-width: 600px) {
  .ideal-palette.floating {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
    top: 4px;
  }
  .ideal-palette.floating section h4 {
    font-size: 10px;
  }
  .ideal-palette.floating section h4 .wow-icon {
    width: 14px;
    height: 14px;
  }
  .ideal-palette.floating section > div {
    gap: 2px;
  }
  .ideal-palette.floating button {
    padding: 2px;
    min-height: 22px;
  }
  .ideal-palette.floating button .wow-icon {
    width: 17px;
    height: 17px;
  }
}
.ideal-seat small {
  display: block;
  color: #a9b5c1;
  font-size: 10px;
  margin-top: 3px;
}
.ideal-seat-tools {
  display: flex;
  align-items: center;
  gap: 0;
}
.ideal-seat-tools button {
  padding: 5px;
  min-width: 30px;
  min-height: 38px;
  margin: 0;
  background: transparent;
  border: 0;
}
.ideal-seat-tools .ideal-delete {
  color: #f17c88;
  font-size: 24px;
}
.ideal-seat-tools .ideal-options {
  position: relative;
  color: #a7b5c3;
  font-size: 18px;
}
.ideal-options i {
  position: absolute;
  right: 4px;
  top: 5px;
  width: 5px;
  height: 5px;
  background: #e1b65b;
  border-radius: 50%;
}
.ideal-seat-tools .ideal-options.configured {
  color: #e8c780;
}
.chosen-buffs {
  display: grid;
  place-items: center;
}
.chosen-buffs .effect-icon {
  width: 26px;
  height: 26px;
}
.chosen-buffs.multiple {
  grid-template-columns: repeat(2, 16px);
  gap: 2px;
}
.chosen-buffs.multiple .effect-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}
.ideal-loadout {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  width: min(350px, calc(100vw - 64px));
  padding: 14px;
  box-sizing: border-box;
  color: #e5eaf0;
  background: #18212c;
  border: 1px solid #bca26b;
  border-radius: 10px;
  box-shadow: 0 18px 45px #000c;
}
.ideal-loadout header {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: start;
  font-size: 12px;
}
.ideal-loadout header button {
  margin: 0;
  padding: 3px 8px;
}
.ideal-loadout p,
.ideal-loadout > small {
  font-size: 11px;
  color: #b7c3cf;
  line-height: 1.5;
}
.ideal-loadout fieldset {
  margin: 10px 0;
  padding: 7px;
  min-width: 0;
  border: 1px solid #394957;
}
.ideal-loadout legend {
  color: #dec489;
  font-size: 12px;
  padding: 0 4px;
}
.ideal-loadout fieldset > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ideal-loadout [data-choice] {
  position: relative;
  padding: 5px;
  margin: 0;
  min-width: 36px;
  min-height: 36px;
  background: #293543;
  border: 1px solid #4d5b69;
  font-size: 10px;
  color: #c5cdd6;
}
.ideal-loadout [data-choice]:hover {
  /* A filter creates a containing block and offsets nested fixed tooltips. */
  filter: none;
  background: #3b4856;
}
.ideal-loadout [aria-pressed="true"] {
  outline: 2px solid #e4c074;
  background: #52452d;
}
.effect-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  vertical-align: middle;
  flex: 0 0 28px;
  object-fit: cover;
}
.spell-tooltip,
.loadout-tooltip,
.effect-float {
  display: none;
  position: absolute;
  z-index: 70;
  width: min(300px, calc(100vw - 60px));
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #7b715c;
  border-radius: 8px;
  background: #0c121af5;
  color: #e8edf2;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  font-weight: normal;
  box-shadow: 0 12px 30px #000b;
}
.loadout-tooltip {
  bottom: calc(100% + 6px);
  left: -6px;
  pointer-events: none;
}
.loadout-tooltip small,
.effect-float small {
  display: block;
  color: #aebbc8;
  font-size: 11px;
  margin-top: 4px;
}
[data-choice]:hover .loadout-tooltip,
[data-choice]:focus-visible .loadout-tooltip {
  display: block;
}
.ideal-effects-rail {
  position: static;
  inset: auto;
  width: auto;
  display: block;
  background: #10191f;
  border: 1px solid #34434e;
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
}
.ideal-effects-rail header h3 {
  color: #e8cb8e;
  margin: 0 0 10px;
}
.ideal-effects-rail header {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ideal-loadout header {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.effect-live-summary {
  font-size: 13px;
  color: #e2bc73;
  margin: 6px 0;
}
.ideal-effects-rail header > small {
  display: block;
  color: #9caebc;
  font-size: 11px;
  line-height: 1.5;
}
.visual-effect-section {
  margin-top: 14px;
  border-top: 1px solid #33424d;
  padding-top: 10px;
}
.visual-effect-section > summary {
  cursor: pointer;
  color: #d1dce7;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 0;
}
.visual-effect-section > summary > span {
  float: right;
  color: #a7b6c5;
  font-size: 11px;
}
.visual-effect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 38px;
  margin-top: 3px;
  padding: 3px 5px;
  border-radius: 5px;
}
.effect-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}
.effect-label > span {
  overflow-wrap: anywhere;
}
.visual-effect.unlit {
  color: #788796;
}
.unlit .effect-icon {
  filter: grayscale(1);
  opacity: 0.3;
}
.lit .effect-icon {
  box-shadow:
    0 0 0 1px #dcb66e80,
    0 0 9px #b7934625;
}
.visual-effect.lit {
  color: #f2dfaf;
  background: #8c774510;
}
.effect-count-wrap {
  position: relative;
  display: inline-flex;
}
.effect-count {
  font-variant-numeric: tabular-nums;
  margin: 0;
  padding: 3px 5px;
  min-width: 25px;
  min-height: 28px;
  border: 1px solid transparent;
  background: transparent;
  color: #e7ca8d;
  font-size: 12px;
}
.unlit .effect-count {
  color: #667583;
}
.effect-count-wrap:hover > .effect-float,
.effect-count-wrap:focus-within > .effect-float {
  display: block;
}
.effect-float {
  bottom: calc(100% + 6px);
  right: 0;
}
.effect-float ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
}
.effect-float li {
  display: flex;
  align-items: start;
  color: var(--class-color);
  padding: 7px 0;
  border-top: 1px solid #2c3741;
  overflow-wrap: anywhere;
}
.effect-float .wow-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 4px;
}
.effect-rules {
  margin-top: 18px;
  font-size: 11px;
  color: #a5b4c2;
}
.effect-rules summary {
  cursor: pointer;
  color: #d5bd8b;
}
.group-effects-heading {
  margin: 14px 0 8px;
  color: #8f9fad;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 9px;
}
.group-effect-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
  background: #0b131b;
  border-radius: 7px;
}
.group-effect {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.group-effect .effect-count-wrap {
  position: absolute;
  right: 0;
  bottom: -3px;
}
.group-effect .effect-count {
  min-width: 14px;
  min-height: 17px;
  font-size: 9px;
  line-height: 13px;
  padding: 0 3px;
  border-radius: 3px;
  background: #111b29;
}
.spell-tooltip,
.effect-float,
.loadout-tooltip {
  position: fixed;
  inset: auto;
  height: max-content;
  min-height: 0;
  max-height: calc(100vh - 24px);
  overflow: auto;
}
.spell-help {
  position: relative;
  cursor: help;
}
.spell-help:hover > .spell-tooltip,
.spell-help:focus > .spell-tooltip {
  display: block;
}
.spell-tooltip {
  pointer-events: none;
}
.spell-name {
  display: block;
  color: #ffda72;
  font-size: 14px;
}
.spell-rank,
.spell-provenance {
  display: block;
  color: #a7b0bf;
  font-size: 10px;
  margin-top: 5px;
}
.spell-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  margin: 10px 0;
  color: #dce3eb;
}
.spell-facts > span {
  display: block;
  font-size: 10px;
}
.spell-facts b {
  display: block;
  font-size: 11px;
  font-weight: normal;
}
.spell-description {
  display: block;
  color: #ffd363;
  white-space: normal;
}
.spell-tooltip .spell-description,
.loadout-tooltip .spell-description {
  margin-top: 8px;
}
.spell-variant {
  display: block;
  border-top: 1px solid #64583d;
  margin-top: 12px;
  padding-top: 10px;
}
.spell-help:focus-visible {
  outline: 2px solid #e1bd73;
  outline-offset: 2px;
}
.unlit .spell-tooltip,
.unlit .effect-float {
  filter: none;
  opacity: 1;
}
.effects-panel {
  margin-top: 24px;
  min-width: 0;
}
.effects-panel h3 {
  color: #e2bf78;
}
.effects-panel small {
  display: block;
  margin: 7px 0;
  color: #aebbc4;
  font-weight: normal;
}
.effects-category,
.effects-groups,
.effect-conflicts {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #394957;
  border-radius: 8px;
}
.effects-category > summary,
.effects-groups > summary,
.effect-conflicts > summary {
  cursor: pointer;
  font-weight: 600;
}
.effects-scroll {
  overflow-x: auto;
}
.effects-panel table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.effects-panel th,
.effects-panel td {
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #34414c;
  min-width: 120px;
  overflow-wrap: anywhere;
}
.effects-panel th[scope="row"] {
  width: 40%;
}
.effect-badge {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 600;
}
.effect-available {
  color: #b2e5c1;
  background: #17372a;
}
.effect-conditional {
  color: #f2d798;
  background: #403522;
}
.effect-missing {
  color: #e6adb3;
  background: #40272d;
}
.effects-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.effects-group-grid article {
  padding: 12px;
  background: #111a20;
  border-radius: 8px;
}
.effects-panel li {
  margin: 8px 0;
}
.effect-summary {
  padding: 10px;
  background: #111a20;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .effects-panel table,
  .effects-panel tbody,
  .effects-panel tr,
  .effects-panel th[scope="row"],
  .effects-panel td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .effects-panel thead {
    display: none;
  }
  .effects-panel tr {
    margin: 12px 0;
    padding: 10px;
    background: #111a20;
    border: 1px solid #34414c;
    border-radius: 8px;
    box-sizing: border-box;
  }
  .effects-panel th[scope="row"],
  .effects-panel td {
    box-sizing: border-box;
  }
  .effects-panel td::before {
    content: attr(data-effect-side);
    display: block;
    font-size: 12px;
    color: #d9bd86;
    margin-bottom: 7px;
  }
}
.ideal-palette h4 {
  margin: 12px 0 8px;
}
.ideal-palette section > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ideal-palette button {
  display: flex;
  align-items: center;
  font-size: 12px;
  padding: 6px 8px;
  margin: 0;
  background: #29343c;
  color: #e9edf1;
}
.ideal-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.ideal-group {
  background: #111a20;
  border: 1px solid #33434e;
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.ideal-group h3 {
  margin: 0 0 12px;
  color: #e2bf78;
}
.ideal-seat {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  margin: 7px 0;
  min-height: 46px;
  background: #202b34;
  color: #d8e2ea;
  border: 1px solid #3a4b59;
  padding: 8px;
  font-size: 12px;
}
.ideal-seat span {
  overflow-wrap: anywhere;
}
.ideal-seat.selected {
  outline: 2px solid #e2bf78;
  background: #3a3424;
}
.ideal-bench {
  border: 1px dashed #7a6b49;
  padding: 16px;
  border-radius: 10px;
  margin-top: 18px;
}
.ideal-bench #ideal-bench-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.ideal-move {
  margin-top: 18px;
}
.raid-compare-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  gap: 18px;
  align-items: start;
}
.class-recap article {
  padding: 10px 0;
  border-bottom: 1px solid #31414b;
}
.class-recap h3 {
  margin: 5px 0;
}
.class-recap p {
  margin: 8px 0;
}
.ideal-comparison ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ideal-comparison-seat {
  padding: 9px 4px;
  border-bottom: 1px solid #293943;
  font-size: 13px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
}
.ideal-comparison-seat.filled {
  color: #a9dcb8;
}
.ideal-comparison-seat.missing {
  color: #dbbd87;
}
@media (max-width: 900px) {
  .ideal-workspace {
    grid-template-columns: 1fr;
  }
  .ideal-palette {
    display: grid;
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
  }
  .ideal-palette > h3 {
    grid-column: 1/-1;
  }
  .raid-compare-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .ideal-palette {
    grid-template-columns: 1fr;
  }
  .ideal-board-heading {
    flex-wrap: wrap;
  }
  .ideal-loadout {
    left: 0;
  }
  .ideal-seat-tools button {
    min-width: 36px;
    min-height: 44px;
  }
  .raid-management-menu {
    grid-template-columns: 1fr;
  }
  .ideal-slot-grid {
    grid-template-columns: 1fr;
  }
}
#raid-groups #groups-dirty {
  color: #ebc782;
}
.wow-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 6px 0 0;
  border-radius: 4px;
  flex-shrink: 0;
}
.wow-choice-icon {
  float: right;
  margin: 0 4px 4px 8px;
}
@supports (appearance: base-select) {
  select.wow-icon-select,
  select.wow-icon-select::picker(select) {
    appearance: base-select;
  }
  select.wow-icon-select::picker(select) {
    background: #10191f;
    color: #e6edf3;
    border: 1px solid #465660;
    border-radius: 8px;
    max-height: 340px;
    overflow-y: auto;
  }
  select.wow-icon-select {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  select.wow-icon-select::picker-icon {
    margin-left: auto;
  }
  select.wow-icon-select option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
  }
  select.wow-icon-select option:checked {
    background: #29343c;
  }
}
.class-mark .wow-icon {
  width: 30px;
  height: 30px;
  margin: 0;
}
.lineup-player small .wow-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
.raid-roster-board {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
/* D133: one real planner, compact groups with a single side pool. */
.composition-simplified {
  padding: 20px;
}
.roster-simplified {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.roster-simplified > header h2 {
  margin: 0;
}
.roster-simplified > header,
.roster-status-summary > header {
  padding: 0;
  border: 0;
  background: transparent;
}
.roster-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 6px;
}
.roster-simplified .roster-live {
  margin: 0;
}
.roster-role-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.roster-role-counts > span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--muted);
}
.roster-simplified .roster-help {
  font-size: 12px;
  margin: 10px 0 16px;
}
.roster-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}
.roster-layout > div,
.roster-sidebar {
  min-width: 0;
}
.roster-simplified .roster-groups-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}
.roster-simplified .roster-group {
  padding: 9px;
  background: #191715;
  border-color: var(--line);
}
.roster-simplified .roster-group > h3 {
  margin: 0 0 10px;
  font-size: 13px;
}
.roster-simplified .roster-seat {
  height: 56px;
  margin: 4px 0;
  padding: 3px;
  position: relative;
  background: #24201d;
  border-color: var(--line);
}
.roster-simplified .roster-seat-person {
  height: 100%;
  gap: 1px;
}
.roster-simplified .roster-person {
  padding: 4px;
  gap: 5px;
}
.roster-simplified .roster-person > .wow-icon {
  width: 22px;
  height: 22px;
}
.roster-simplified .roster-seat .roster-person,
.roster-simplified .roster-empty {
  background: transparent;
  border: 0;
}
.roster-simplified .roster-person:not(.can-supply):hover {
  background: #392f27;
}
.roster-simplified .roster-person.selected {
  background: #4b3726;
  outline: 1px solid var(--gold);
}
.roster-simplified .roster-seat-state {
  position: absolute;
  top: 1px;
  right: 5px;
  margin: 0;
  font-size: 8px;
  line-height: 9px;
  pointer-events: none;
}
.roster-simplified .roster-seat .ideal-seat-tools {
  flex-shrink: 0;
  gap: 0;
}
.roster-simplified .roster-remove {
  padding: 1px 3px;
  font-size: 18px;
  min-width: 19px;
}
.roster-simplified .roster-seat .ideal-options {
  padding: 3px;
  min-width: 22px;
}
.roster-simplified .group-effects-heading {
  font-size: 9px;
  margin: 9px 0 5px;
}
.roster-simplified .group-effect-icons {
  padding: 5px;
  gap: 3px;
  background: #141311;
}
.roster-simplified .group-effect .effect-icon {
  width: 18px;
  height: 18px;
}
.roster-simplified .group-effect .effect-count {
  font-size: 8px;
  padding: 1px 2px;
  min-width: 10px;
}
.roster-sidebar {
  background: #1a1715;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  position: sticky;
  top: 16px;
}
.roster-sidebar > h3 {
  margin: 0;
  font-size: 14px;
}
.roster-sidebar .roster-filter-bar {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.roster-sidebar .roster-filter-bar label:first-child {
  grid-column: 1/-1;
}
.roster-sidebar .roster-filter-bar input,
.roster-sidebar .roster-filter-bar select {
  font-size: 12px;
  padding: 8px;
}
.roster-sidebar .roster-filter-bar label {
  position: relative;
  line-height: 16px;
}
.roster-sidebar .roster-filter-bar select {
  height: 38px;
  padding: 6px 5px;
  font-size: 11px;
  white-space: nowrap;
}
.roster-sidebar .wow-choice-icon {
  position: absolute;
  right: 3px;
  top: 0;
  height: 14px;
  width: 14px;
  margin: 0;
}
.roster-pools {
  max-height: 65vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.roster-pools > details {
  border-top: 1px solid var(--line);
  margin: 7px 0;
  padding-top: 7px;
}
.roster-pools summary {
  font-size: 12px;
}
.roster-pools .roster-class {
  margin: 3px 0 7px;
}
.roster-pools .roster-class > summary {
  font-size: 10px;
  padding: 3px 0;
}
.roster-pools .roster-class > summary .wow-icon {
  height: 14px;
  width: 14px;
}
.roster-pools .roster-pool-players {
  max-height: none;
  overflow: visible;
  gap: 3px;
}
.roster-pools .roster-person {
  background: #24201d;
  border-color: var(--line);
}
.roster-pool-person {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.roster-grade {
  flex: 0 1 auto;
  max-width: 90px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #342b23;
  color: var(--gold);
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.roster-grade[data-grade="ROSTER"] {
  color: #99d6b1;
}
.roster-grade[data-grade="PICKUP"] {
  color: #b7cfff;
}
.roster-simplified .roster-seat .roster-person {
  padding-block: 2px;
}
.roster-seat .roster-identity .roster-grade {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0 4px;
  font-size: 9px;
  line-height: 11px;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-simplified .roster-confirm-one {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  margin: 0;
  border: 1px solid #4d9871;
  border-radius: 5px;
  background: #193c2c;
  color: #a9f1bf;
  font-size: 17px;
}
.roster-simplified .roster-confirm-one:hover {
  background: #285a40;
}
.roster-individual-result:empty {
  display: none;
}
.roster-pools [data-roster-bench] {
  min-height: 70px;
  box-sizing: border-box;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 10px;
}
.roster-bench-hint {
  display: block;
  color: var(--muted);
  font-size: 11px;
  padding-top: 4px;
}
.roster-pools [data-roster-bench].roster-drop-active {
  outline: 2px solid var(--gold);
  background: #443623;
}
.roster-bench-action {
  width: 100%;
  margin: 8px 0;
  font-size: 11px;
}
.roster-simplified #raid-roster-confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding-top: 12px;
}
.roster-simplified #raid-roster-confirm button {
  margin: 0;
}
.roster-simplified #raid-roster-confirm small {
  color: var(--muted);
  font-size: 11px;
  flex-basis: 100%;
}
.roster-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.roster-footer.has-context {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
}
.roster-context {
  min-width: 0;
  position: static;
  width: auto;
  height: auto;
  inset: auto;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  z-index: auto;
}
.roster-context[hidden],
.roster-status-summary[hidden],
.roster-tool-output[hidden] {
  display: none;
}
.roster-context > [data-roster-context-close] {
  margin: 0 0 8px;
  padding: 6px 12px;
  font-size: 11px;
}
.roster-context .roster-tool-output {
  margin-top: 10px;
}
.roster-context textarea {
  width: 100%;
  box-sizing: border-box;
}
.recruitment-needs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
.recruitment-needs span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
#roster-pickup-recruitment {
  margin-top: 14px;
}
#roster-pickup-recruitment > label,
#roster-pickup-recruitment fieldset,
#roster-pickup-recruitment details {
  margin: 12px 0;
}
.recruitment-macros {
  margin-top: 18px;
}
.roster-footer > div,
.roster-status-summary {
  min-width: 0;
}
.roster-footer {
  align-items: start;
}
.roster-simplified .roster-tools {
  margin: 0 0 12px;
}
.roster-status-summary {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.roster-status-summary h4 {
  margin: 0;
  font-size: 14px;
}
.roster-status-summary h5 {
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.roster-status-summary header > small {
  color: var(--muted);
  font-size: 11px;
}
.roster-effect-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  margin: 10px 0;
}
.roster-effect-legend .confirmed {
  color: #8fdbb1;
}
.roster-effect-legend .pending {
  color: #f2cc6c;
}
.roster-effect-legend .missing {
  color: var(--muted);
}
.roster-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 5px;
}
.roster-status-effect {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px;
}
.roster-status-effect.confirmed {
  border-color: #488466;
  background: #153327;
}
.roster-status-effect.pending {
  border-color: #96793b;
  background: #382e1a;
}
.roster-status-effect.missing > .spell-help > img {
  filter: grayscale(1);
  opacity: 0.3;
}
.roster-status-effect .effect-icon {
  width: 22px;
  height: 22px;
}
.roster-status-label {
  font-size: 10px;
  min-width: 0;
  flex: 1;
  line-height: 1.2;
}
.effect-fallback {
  display: block;
  color: #edc46c;
  font-size: 0.75rem;
  line-height: 1.35;
}
.roster-status-label small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 2px;
}
.roster-status-label small.effect-fallback {
  color: #edc46c;
  font-size: 9px;
}
.roster-status-effect .effect-count {
  min-width: 16px;
  font-size: 10px;
}
.roster-status-note {
  font-size: 10px;
  margin-bottom: 0;
}
.roster-simplified .roster-effects,
.roster-statistics,
.raid-composition-reference {
  margin-top: 16px;
}
.roster-statistics > summary,
.roster-macro-drawer > summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.roster-simplified .assignment-macros {
  margin-top: 10px;
  padding-top: 10px;
}
@media (max-width: 1000px) {
  .roster-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .roster-simplified .roster-groups-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  }
}
@media (max-width: 760px) {
  .roster-layout,
  .roster-footer,
  .roster-footer.has-context {
    grid-template-columns: minmax(0, 1fr);
  }
  .roster-sidebar {
    position: static;
  }
  .roster-pools {
    max-height: 420px;
  }
  .roster-simplified .roster-groups-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  }
}
@media (max-width: 420px) {
  .composition-simplified {
    padding: 12px;
  }
  .roster-simplified .roster-groups-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .roster-footer {
    gap: 12px;
  }
}
.raid-roster-board > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.raid-roster-board h3 {
  margin: 4px 0;
}
.raid-roster-board > p {
  color: var(--muted);
  font-size: 13px;
}
.roster-draft-badge {
  padding: 6px 10px;
  border: 1px solid #6e603b;
  border-radius: 20px;
  font-size: 11px;
  color: var(--gold);
}
.roster-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin: 18px 0 12px;
}
.roster-filter-bar label {
  margin: 0;
  font-size: 12px;
}
.roster-filter-bar .wow-choice-icon[hidden] {
  display: none !important;
}
.workboard-heading,
.workboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.workboard-heading h2 {
  margin: 2px 0 8px;
}
.workboard-heading p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.workboard-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.workboard-categories button {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 12px;
  align-content: start;
  min-width: 0;
  white-space: normal;
}
.workboard-categories button.active {
  border-color: var(--gold);
  background: #342e22;
}
.workboard-categories button span {
  font-size: 12px;
  line-height: 1.4;
  min-height: 34px;
}
.workboard-categories strong {
  font-size: 24px;
  color: var(--gold);
}
.workboard-categories small {
  color: var(--muted);
  font-size: 10px;
}
.workboard-current {
  font-size: 15px;
}
.workboard-current small {
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
}
.workboard-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.workboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.workboard-list li > div {
  min-width: 0;
}
.workboard-list h4 {
  margin: 0 0 4px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.workboard-list small {
  font-size: 11px;
  color: var(--muted);
}
.workboard-list p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.workboard-list a {
  font-size: 12px;
  flex-shrink: 0;
}
.workboard-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.workboard-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.workboard-footer button {
  font-size: 12px;
}
.workboard-note,
.workboard-status {
  font-size: 11px;
}
.workboard-status:empty {
  display: none;
}
@media (max-width: 900px) {
  .workboard-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .workboard-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workboard-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
.roster-live {
  min-height: 22px;
  color: var(--gold) !important;
}
.roster-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 14px;
}
.roster-group {
  min-width: 0;
  border: 1px solid #34454f;
  background: #101a20;
  border-radius: 10px;
  padding: 14px;
}
.roster-group h4 {
  margin: 0 0 12px;
  color: var(--gold);
}
.roster-group ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.roster-seat {
  display: block;
  height: 83px;
  min-width: 0;
  border: 1px solid #35434e;
  background: #202c35;
  border-radius: 7px;
  padding: 7px;
  box-sizing: border-box;
}
.roster-seat:has(.roster-person.selected) {
  outline: 2px solid var(--gold);
}
.roster-seat-person {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 4px;
}
.roster-person {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}
.roster-person[draggable="true"] {
  cursor: grab;
}
.roster-person.selected {
  background: #3d3829;
  border-color: var(--gold);
}
.roster-person.can-supply {
  outline: 2px solid #f3d47b;
  background: #574828;
}
.roster-seat .ideal-seat-tools {
  display: flex;
  gap: 3px;
  align-items: center;
}
.roster-seat .ideal-options {
  flex-shrink: 0;
}
.roster-workspace {
  grid-template-columns: minmax(0, 1fr);
}
.roster-workspace > div,
.roster-effects {
  min-width: 0;
}
.roster-effects {
  border: 1px solid #34454f;
  border-radius: 8px;
  padding: 12px;
}
.roster-needs {
  margin: 16px 0;
}
.assignment-macros {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #34454f;
}
.assignment-macro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 12px 0;
}
.assignment-macro textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, monospace;
  resize: vertical;
}
@media (max-width: 600px) {
  .assignment-macro {
    grid-template-columns: minmax(0, 1fr);
  }
}
.roster-person:disabled,
.roster-empty:disabled {
  opacity: 1;
  cursor: default;
}
.roster-person > .wow-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin: 0;
}
.roster-identity {
  min-width: 0;
  flex: 1;
}
.roster-identity strong {
  display: block;
  color: var(--class-color, #c8d0d8);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-identity small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-identity .wow-icon {
  width: 16px;
  height: 16px;
  margin: 0 3px;
}
.roster-remove {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #ff7081;
  padding: 3px 7px;
  font-size: 23px;
}
.roster-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  color: #9cabb9;
  border: 0;
  font-size: 11px;
}
.roster-empty span {
  color: var(--muted);
}
.roster-seat-state {
  display: block;
  margin-left: 7px;
  font-size: 10px;
  color: #8bd3b4;
}
.roster-seat-state.pending {
  color: #e6c577;
}
.roster-unplaced {
  margin-top: 14px;
}
.roster-content .lineup-secondary {
  margin-top: 20px;
  align-items: start;
}
.roster-content .lineup-secondary > details {
  background: #111b21;
}
.roster-content summary {
  padding: 6px 0;
}
.roster-content summary .wow-icon {
  width: 20px;
  height: 20px;
}
.roster-class {
  margin: 6px 0 12px;
}
.roster-class > summary {
  color: var(--class-color, var(--muted));
}
.roster-pool-players {
  display: grid;
  gap: 3px;
  max-height: 270px;
  overflow: auto;
  scrollbar-width: thin;
}
.roster-pool-players .roster-person {
  border-color: #29353f;
  background: #19242d;
}
#raid-roster-confirm {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
#raid-roster-confirm button {
  margin: 4px 8px 4px 0;
}
.compact-raid-effects {
  margin-top: 0;
}
.compact-raid-effects h2 {
  font-size: 18px;
}
.compact-effects-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  margin: 12px 0;
}
.compact-effects-category > summary {
  padding: 10px 0;
  cursor: pointer;
  font-size: 13px;
}
.compact-effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 6px;
}
.compact-effect {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  background: #111c21;
  border: 1px solid #273b39;
  border-radius: 6px;
}
.compact-effect.missing {
  border-color: #765735;
  background: #241f19;
}
.compact-effect-name {
  min-width: 0;
  flex: 1;
  font-size: 11px;
}
.compact-effect-name small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.compact-effect-counts {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
}
.compact-effect .spell-help {
  flex-shrink: 0;
}
.compact-effect.missing > .spell-help > img {
  filter: grayscale(1);
  opacity: 0.55;
}
@media (max-width: 650px) {
  .roster-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .roster-filter-bar label:first-child {
    grid-column: 1/-1;
  }
  .roster-groups-grid {
    grid-template-columns: 1fr;
  }
}
/* Staff player directory: no fixed sidebars, matching controls on small screens. */
.player-search {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
}
.player-search label:first-child {
  flex: 1 1 18rem;
}
.player-search label {
  flex: 0 1 15rem;
  margin: 0;
}
.player-search button {
  margin: 0;
}
.player-directory-table td {
  vertical-align: top;
}
.player-directory-table .character-identity {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
  gap: 0.35rem;
}
.player-directory-table small,
.player-directory-table td > small {
  display: block;
}
.player-character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}
.player-history-entry {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border, #65564a);
  overflow-wrap: anywhere;
}
.player-history-entry h3,
.player-history-entry p {
  margin: 0.4rem 0;
}
.player-report-body {
  white-space: pre-wrap;
}
.player-report-image {
  max-width: min(100%, 32rem);
  max-height: 24rem;
  object-fit: contain;
  border-radius: 0.5rem;
}
.player-directory-choices .button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.game-language-setting {
  position: relative;
  display: block;
  width: 10rem;
  font-size: 0.72rem;
  max-width: 13rem;
  margin: 0;
}
.game-language-setting > span {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  white-space: nowrap;
}
.game-language-setting select {
  height: 44px;
  min-height: 44px;
  width: 100%;
  font-size: 0.8125rem;
  padding: 5px 24px 5px 9px;
  margin: 0;
}
.game-tooltip-line {
  display: block;
  margin-top: 0.22rem;
}
.item-quality-0 {
  color: #9d9d9d;
}
.item-quality-1 {
  color: #ffffff;
}
.item-quality-2 {
  color: #1eff00;
}
.item-quality-3 {
  color: #0070dd;
}
.item-quality-4 {
  color: #a335ee;
}
.item-quality-5 {
  color: #ff8000;
}
.item-quality-6 {
  color: #e6cc80;
}
.item-quality-7 {
  color: #00ccff;
}
.game-item-label {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}
.game-item-label > span:first-of-type,
.game-item-label > a {
  overflow-wrap: anywhere;
}
.game-item-label > a {
  color: inherit;
  text-decoration: none;
}
.game-item-name {
  text-decoration: underline;
}
.game-item-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 3px;
}
.game-tooltip {
  display: none;
  position: fixed;
  z-index: 80;
  width: min(320px, 82vw);
  padding: 12px;
  background: #10131a;
  color: #eee;
  border: 1px solid #bca56b;
  border-radius: 8px;
  font-size: 13px;
  font-family:
    Segoe UI,
    system-ui,
    sans-serif;
  font-weight: normal;
  line-height: 1.4;
  text-align: left;
  height: max-content;
  max-height: calc(100vh - 24px);
  overflow: auto;
}
.game-tooltip > small,
.game-tooltip-reagents {
  display: block;
  margin-top: 0.5rem;
  font-size: 12px;
}
.craft-tip {
  position: fixed !important;
  height: max-content;
  min-height: 0;
  max-height: calc(100vh - 24px);
  overflow: auto;
}
.game-reference {
  position: relative;
}
.game-reference:hover > .game-tooltip,
.game-reference:focus > .game-tooltip,
.game-reference:focus-within > .game-tooltip {
  display: block;
}
@media (max-width: 600px) {
  .game-language-setting {
    max-width: 11rem;
    font-size: 0.66rem;
  }
}
