/* Loot council (Core tab, and its editors under Admin). Builds on style.css tokens. */
.cx-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 4px; }
.cx-head h1 { margin: 0; }
.cx-head .mode { font-size: 12.5px; font-weight: 650; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.cx-head .mode.edit { color: var(--accent); border-color: var(--accent); }
.cx-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 14px 0 16px; }
.cx-tabs a { padding: 8px 13px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cx-tabs a:hover { color: var(--text); }
.cx-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.cx-tabs a .n { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.cx-tabs a .n.bad { color: var(--bad); font-weight: 700; }
.cx-status { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.cx-status.dirty { color: var(--warn); } .cx-status.err { color: var(--bad); }
.cx-banner { border-left: 3px solid var(--bad); background: var(--surface); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 0 0 14px; }
.cx-banner button { margin-left: 8px; }
.cx-lede { color: var(--muted); font-size: 14.5px; max-width: 90ch; margin: 0 0 14px; }
.cx-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.cx-bar label { font-size: 13.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.cx input, .cx select, .cx button, .cx textarea { font: inherit; font-size: 13.5px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; }
.cx button { cursor: pointer; } .cx button:hover { border-color: var(--muted); }
.cx button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 650; }
.cx button.ghost { border-color: transparent; background: none; color: var(--muted); padding: 2px 5px; }
.cx button.ghost:hover { color: var(--text); background: var(--surface-2); }
.cx button.ghost.rm:hover { color: var(--bad); }
.cx input[type=number] { width: 64px; }
.cx .muted { color: var(--muted); } .cx .small { font-size: 12.5px; }
.cx .empty { color: var(--muted); font-size: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }

/* summary chips */
.cx-sum { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.cx-sum b { color: var(--text); }
.ri { display: inline-flex; align-items: center; gap: 5px; } .ri i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.ri.T i { background: var(--info); } .ri.H i { background: var(--ok); } .ri.D i { background: var(--warn); }

/* character cards (same look as the freeball board) */
.board { display: grid; grid-template-columns: 230px 1fr; gap: 14px; align-items: start; }
.board.wide { grid-template-columns: 270px 1fr; }
@media (max-width: 860px) { .board, .board.wide { grid-template-columns: 1fr; } }
.pool { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; }
.pool h3 { margin: 0 0 6px; font: 700 14px var(--serif); display: flex; gap: 6px; align-items: center; }
.pool h3 span { color: var(--muted); font-weight: 400; margin-left: auto; font-family: var(--sans); font-size: 12px; }
.pool form { display: flex; gap: 5px; margin-bottom: 6px; } .pool form input { flex: 1; min-width: 0; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 6px; border-top: 3px solid var(--cc, var(--line)); min-height: 70px; }
.col h3 { margin: 0 0 6px; padding: 0 2px; font: 700 13.5px var(--sans); color: var(--cc); display: flex; align-items: center; gap: 6px; }
.col h3 img { width: 20px; height: 20px; border-radius: 4px; } .col h3 span { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12px; }
.over { outline: 2px dashed var(--accent); outline-offset: 2px; }
.list { min-height: 26px; display: flex; flex-direction: column; gap: 3px; }
.card { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--rc, var(--line)); border-radius: 6px; }
.edit .card { cursor: grab; }
.card.dragging { opacity: .4; } .card.nospec { border-left-color: var(--bad); }
.card .row { display: flex; align-items: center; gap: 5px; padding: 3px 5px; min-height: 26px; }
.ic { width: 20px; height: 20px; border-radius: 4px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.ic img { width: 20px; height: 20px; border-radius: 4px; display: block; }
.ic.q { border: 1px dashed var(--bad); color: var(--bad); font-size: 12px; font-weight: 700; }
.card .nm { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .nt { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sp { margin-left: auto; display: flex; gap: 1px; flex: none; }
.card .ed { display: none; border-top: 1px dashed var(--line); padding: 6px; }
.card.open .ed { display: block; }
.alt { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 0 5px; border-radius: 4px; background: var(--surface-2); color: var(--muted); flex: none; }
.pick { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; align-items: center; }
.pick small { width: 100%; color: var(--muted); font-size: 11px; }
.pick button { border: 2px solid transparent !important; background: none !important; padding: 0 !important; border-radius: 6px !important; line-height: 0; }
.pick button img { width: 24px; height: 24px; border-radius: 4px; display: block; }
.pick button.on { border-color: var(--accent) !important; } .pick button.no { opacity: .3; } .pick button.no.on { opacity: .75; }
.pick button.txt { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px 0 0 !important; font-size: 12px; color: var(--muted); line-height: 24px; }
.pick button.txt.on { color: var(--text); }
.pick button.tog { line-height: 22px; padding: 0 8px !important; font-size: 12px; border: 1px solid var(--line) !important; }
.pick button.tog.on { background: var(--accent) !important; color: var(--accent-ink); border-color: var(--accent) !important; }
.card .ed input, .card .ed select { width: 100%; padding: 3px 6px; font-size: 12.5px; margin-top: 3px; }
.warn-l { font-size: 11px; color: var(--warn); margin-top: 3px; }

/* chips: one character on one line, used in rosters, prio and history */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 3px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; max-width: 100%; white-space: nowrap; }
.chip .ic, .chip .ic img { width: 18px; height: 18px; }
.chip .cn { overflow: hidden; text-overflow: ellipsis; }
.chip .tag { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 4px; padding: 0 4px; }
.chip .tag.bad { color: #fff; background: var(--bad); }
.chip.gone { opacity: .6; text-decoration: line-through; }
.edit .chip[draggable=true] { cursor: grab; }
.chip.sel { outline: 2px solid var(--accent); outline-offset: 1px; }

/* raid rosters */
.plist h4 { margin: 10px 0 4px; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.plist h4:first-child { margin-top: 0; }
.plist .chips { display: flex; flex-direction: column; gap: 3px; }
.plist .chip { width: 100%; }
.plist .chip.used { opacity: .5; }
.raid { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.raid-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.raid-h h2 { margin: 0; font-size: 19px; }
.raid-h input.rn { font: 700 17px var(--serif); padding: 3px 8px; width: 220px; }
.raid-h .cnt { font-size: 13px; color: var(--muted); }
.raid-h .cnt b { color: var(--text); }
.raid-h .comp { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-left: auto; flex-wrap: wrap; }
.raid-h .comp .cc { display: inline-flex; align-items: center; gap: 3px; }
.raid-h .comp img { width: 16px; height: 16px; border-radius: 3px; }
/* planned Fills counted in the class line: dashed, like the Fill cells themselves */
.raid-h .comp .cc.plan, .raid-h .comp .cc.mix { padding: 0 3px 1px; border-bottom: 1px dashed var(--muted); }
.raid-h .comp .cc.plan { opacity: .8; font-style: italic; }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1000px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .groups { grid-template-columns: 1fr; } }
.grp { border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: var(--bg); }
.grp h5 { margin: 0 0 5px; font: 700 11.5px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.slot { min-height: 28px; border-radius: 6px; margin-bottom: 3px; display: flex; align-items: center; }
.slot:last-child { margin-bottom: 0; }
.slot.empty { border: 1px dashed var(--line); color: var(--muted); font-size: 11.5px; padding-left: 8px; }
.edit .slot.empty { cursor: pointer; } .edit .slot.empty:hover { border-color: var(--accent); color: var(--accent); }
.slot .chip { width: 100%; }
.rwarn { margin: 8px 0 0; font-size: 12.5px; color: var(--warn); }
.rwarn.bad { color: var(--bad); font-weight: 600; }

/* item links */
.it { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.it .iico { width: 22px; height: 22px; border-radius: 4px; flex: none; border: 1px solid var(--line); background: var(--surface-2); object-fit: cover; }
.it .iico.q3 { border-color: var(--q3); } .it .iico.q4 { border-color: var(--q4); } .it .iico.q5 { border-color: var(--q5); }
.it a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src { font-size: 12px; color: var(--muted); }

/* loot prio */
.prio { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; margin-bottom: 10px; border-left: 4px solid var(--ok); }
.prio.warn { border-left-color: var(--warn); } .prio.bad { border-left-color: var(--bad); }
.prio-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prio-h .it { font-size: 15px; }
.prio-h .sp { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.alerts { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.alerts li { padding: 1px 0; } .alerts li.bad { color: var(--bad); font-weight: 650; } .alerts li.warn { color: var(--warn); } .alerts li.ok { color: var(--ok); }
.alerts li::before { content: "● "; }
.plines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.pl { display: inline-flex; align-items: center; gap: 2px; }
.pl .rk { font-size: 11.5px; font-weight: 700; color: var(--muted); min-width: 16px; text-align: right; margin-right: 2px; }
.cover { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; }
.cover > div { border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; font-size: 12px; background: var(--bg); }
.cover > div b { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.cover > div.miss { border-color: var(--warn); } .cover > div.dup { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--bg)); }
.cover .chip { margin: 1px 0; }

/* item picker */
.ipick { position: relative; display: inline-block; }
.ipick input { width: 320px; max-width: 70vw; }
.ipick ul { position: absolute; z-index: 30; left: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; width: 420px; max-width: 90vw; max-height: 360px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.ipick li { padding: 4px 6px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.ipick li:hover, .ipick li.hi { background: var(--surface-2); }
.ipick li .src { margin-left: auto; text-align: right; }

/* history and loot list tables */
.cx table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cx th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cx td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hchar { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.hchar-h { display: flex; align-items: center; gap: 8px; }
.hchar-h .n { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.hitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; margin-top: 6px; }
.hitems > div { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.hitems .d { color: var(--muted); font-size: 11.5px; margin-left: auto; flex: none; }
.hform { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; margin-bottom: 14px; }
.hform label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.boss { margin-bottom: 14px; }
.boss h3 { font: 700 15px var(--serif); margin: 0 0 6px; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 4px 12px; }
.lrow { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 7px; min-width: 0; }
.lrow:hover { background: var(--surface); }
.lrow .meta { margin-left: auto; display: flex; gap: 4px; flex: none; align-items: center; }
.lrow .meta .b { font-size: 10.5px; }
.cx .card .sp button, .cx .prio-h .sp button.ghost, .cx .pl button.ghost, .cx .hitems button.ghost, .cx td button.ghost { padding: 0 4px; line-height: 20px; font-size: 13px; border: 0; }
.cx .card .nt { flex: 1 1 auto; min-width: 0; }
.cx .card .nm { flex: 0 1 auto; min-width: 30px; }
.cx .card { padding: 0; box-shadow: none; border-radius: 6px; }
.cx .slot { height: 28px; min-height: 0; } .cx .slot.empty { box-sizing: border-box; }

/* loot tiers: S orange, A purple */
.tier { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 4px; font: 800 11px var(--sans); color: #fff; flex: none; }
.tier.tS { background: #e8870e; } .tier.tA { background: #9b4dde; }
.tS-t { color: #e8870e; } .tA-t { color: #b06cf0; }
.lrow.tS { background: color-mix(in srgb, #e8870e 14%, transparent); box-shadow: inset 3px 0 0 #e8870e; }
.lrow.tA { background: color-mix(in srgb, #9b4dde 14%, transparent); box-shadow: inset 3px 0 0 #9b4dde; }
.prio .it.tS a, .hitems .it.tS a { text-decoration: underline 2px #e8870e; text-underline-offset: 3px; }
.cx .tbtn { display: inline-flex; gap: 2px; }
.cx .tbtn button { padding: 0 6px; line-height: 18px; font: 800 11px var(--sans); border-radius: 4px; color: var(--muted); }
.cx .tbtn button.on.S { background: #e8870e; border-color: #e8870e; color: #fff; }
.cx .tbtn button.on.A { background: #9b4dde; border-color: #9b4dde; color: #fff; }
h2.lins { font-size: 20px; margin: 22px 0 8px; }

/* raid rosters: accordions */
.raid-h[data-rtoggle] { cursor: pointer; user-select: none; margin: -12px; padding: 12px; border-radius: 12px; }
.raid-h[data-rtoggle]:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.raid.open .raid-h { margin-bottom: 0; border-radius: 12px 12px 0 0; }
.raid.open .groups { margin-top: 12px; }
.raid:not(.open) { padding-bottom: 12px; }
.chev { width: 11px; height: 7px; flex: none; color: var(--muted); transform: rotate(-90deg); transition: transform .15s; }
.open > .chev, .raid.open .raid-h .chev, h4.acc.open .chev { transform: none; }
.plist h4.acc { cursor: pointer; user-select: none; padding: 4px 4px; margin-left: -4px; margin-right: -4px; border-radius: 6px; }
.plist h4.acc:hover { background: var(--surface-2); }
.plist h4.acc .placed { margin-left: auto; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* character picker (replaces plain dropdowns) */
.cpick { position: relative; display: inline-block; }
.cx .cp-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 200px; min-height: 32px; padding: 3px 8px 3px 4px; text-align: left; }
.cp-btn .chip { border: 0; background: none; padding: 0; }
.cp-btn .chev { margin-left: auto; transform: none; }
.cp-ph { color: var(--muted); padding-left: 4px; }
.cp-pop { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; width: 300px; max-width: 90vw; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.prio-h .cp-pop { left: auto; right: 0; }
.cx .cp-q { width: 100%; box-sizing: border-box; margin-bottom: 4px; }
.cp-list { max-height: 330px; overflow: auto; }
.cp-grp { display: flex; align-items: center; gap: 6px; font: 700 11.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 7px 6px 3px; }
.cp-grp img { width: 16px; height: 16px; border-radius: 3px; }
.cp-row { display: flex; align-items: center; gap: 8px; padding: 2px 4px; border-radius: 6px; cursor: pointer; }
.cp-row .chip { border-color: transparent; background: none; }
.cp-row:hover, .cp-row.hi { background: var(--surface-2); }
.cp-row.cur { box-shadow: inset 2px 0 0 var(--accent); }
.cp-note { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-empty { color: var(--muted); font-size: 13px; padding: 8px; }
.cp-line { margin-top: 4px; } .cp-line small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.card .ed .cpick, .card .ed .cp-btn { width: 100%; }
.cp-grp ~ .cp-row { padding-left: 18px; }
.cx .groups .slot { height: 28px !important; min-height: 0 !important; box-sizing: border-box; overflow: hidden; } .cx .groups .slot .chip { height: 26px; box-sizing: border-box; }
.cx .groups .slot.empty { padding: 0 0 0 8px; text-align: left; font-size: 11.5px; border-radius: 6px; }
.plist .chips[hidden], .cx [hidden] { display: none !important; }
.plist, .plist * { box-sizing: border-box; } .plist { overflow-x: hidden; } .plist h4.acc { margin-left: 0; margin-right: 0; }

/* character list: room between the names and the scrollbar */
.plist { padding-right: 8px; }

/* mains stand out with a warm gold border and a faint glow; alts keep the plain look */
.chip.is-main, .card.is-main { border-top-color: rgba(232, 176, 74, .75); border-right-color: rgba(232, 176, 74, .75); border-bottom-color: rgba(232, 176, 74, .75);
  box-shadow: 0 0 0 1px rgba(232, 176, 74, .18), 0 0 7px rgba(232, 176, 74, .22); }
.chip.is-main .cn, .card.is-main .nm { font-weight: 700; }
.chip.is-alt .cn, .card.is-alt .nm { font-weight: 550; }
.cp-row .chip.is-main { border-color: transparent; box-shadow: none; }
.cp-btn .chip.is-main { box-shadow: none; }

/* professions and raid-night availability */
.card .pf { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; flex: none; }
.card .pf img { width: 16px; height: 16px; border-radius: 3px; }
.card .pf + .sp { margin-left: 4px; }
.av { font-size: 10px; font-weight: 750; border-radius: 4px; padding: 0 4px; line-height: 16px; flex: none; }
.av.ask { color: #1b1300; background: var(--warn); } .av.no { color: #fff; background: var(--bad); }
.cx .pick button.tri { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 3px !important; line-height: 24px; font-size: 12px; border: 1px solid var(--line) !important; color: var(--text); }
.pick button.tri .tb { display: inline-flex; width: 18px; height: 18px; border-radius: 4px; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.pick button.tri.t-yes .tb { background: var(--ok); color: #fff; } .pick button.tri.t-ask .tb { background: var(--warn); color: #1b1300; } .pick button.tri.t-no .tb { background: var(--bad); color: #fff; }

/* raid date */
.cx .raid-h input.rd { width: 150px; padding: 3px 6px; }
.raid-h .rdate { font-size: 13px; color: var(--muted); font-weight: 600; }

/* loot: phases and instances */
.phase { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 12px; }
.ph-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; user-select: none; flex-wrap: wrap; border-radius: 12px; }
.ph-h:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.ph-h h2 { margin: 0; font-size: 20px; }
.phase.open > .ph-h .chev, .ins.open > .ins-h .chev { transform: none; }
.ph-h .tc, .ins-h .tc { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.ph-note { margin: 0 14px 8px; color: var(--muted); font-size: 13.5px; }
.phase > h3.ltype, .phase h3.ltype { margin: 10px 14px 6px; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ins { margin: 0 10px 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.ins-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; user-select: none; flex-wrap: wrap; border-radius: 9px; }
.ins-h:hover { background: var(--surface-2); }
.ins-b { padding: 0 10px 8px; }
.ins-b .boss h4 { font: 700 14px var(--serif); margin: 8px 0 4px; }
.phase:last-child { margin-bottom: 0; }
.phase.open { padding-bottom: 8px; }

/* character cards: room for the name. Edit and delete appear on hover (or when the card is open). */
.cx .card .row { overflow: hidden; }
.cx .card .pf img { width: 14px; height: 14px; }
.cx .card .pf .av { padding: 0 3px; }
@media (hover: hover) {
  .cx .card .sp { display: none; }
  .cx .card:hover .sp, .cx .card.open .sp { display: flex; }
}
/* Three class columns, not four: each card gets the room for its tags (a long alt line with
   T?/S? ran off the edge at four across). Two, then one, on narrower screens. */
.cx .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cx .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cx .cols { grid-template-columns: 1fr; } }

/* phones and narrow windows: the raid character list stacks above the raids, so it gets half
   the screen and its own scroll instead of pushing the raids a long way down */
@media (max-width: 860px) {
  .plist { max-height: 45vh; overflow-y: auto; position: static; }
  .cx .raid-h input.rd { width: 100%; }
  .cx-head .mode { font-size: 11.5px; }
  .ipick input { width: 100%; }
  .hform > label { width: 100%; } .hform input:not([type=checkbox]), .hform .cpick, .hform .cp-btn, .hform .ipick { width: 100%; box-sizing: border-box; }
  .hform .ipick { display: block; }
  .hform > label:has(#hOff) { width: auto; }
  .cx .raid-h input.rn { width: auto; flex: 1 1 200px; }
}
@media (max-width: 860px) { .cx .ipick input { max-width: none; } }
/* alts: a very slightly different background, nothing more */
.chip.is-alt, .card.is-alt { background-color: color-mix(in srgb, var(--surface-2) 55%, var(--bg)); }
.cp-row .chip.is-alt, .cp-btn .chip.is-alt { background-color: transparent; }

/* phones: the "New characters" panel scrolls with the page instead of pinning over the columns */
@media (max-width: 860px) {
  .cx .pool:not(.plist) { position: static; max-height: none; overflow: visible; }
}

/* GBank requests */
.gb .gb-form { display: grid; gap: 10px; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.gb .gb-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.gb .gb-form .req { color: var(--bad); font-size: 11.5px; font-weight: 650; }
.gb .gb-form input.err { border-color: var(--bad); }
.gb .gb-form button.primary { justify-self: start; padding: 8px 16px; }
.gb .gb-form button:disabled { opacity: .5; cursor: not-allowed; }
.gb .gb-what { display: flex; flex-direction: column; gap: 3px; }
.gb .gb-what small { color: var(--muted); font-size: 12px; }
.gb .gb-what b { font-size: 16px; }
.gb .gb-what .ghost { align-self: flex-start; padding: 0; color: var(--accent); }
.gb .gb-mats { margin: 6px 0 2px; padding-left: 18px; font-size: 14px; }
.gb .gb-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gb .gb-grp h3 { font: 700 15px var(--serif); margin: 0 0 6px; }
.cx .gb-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; margin-bottom: 4px; padding: 6px 9px; }
.cx .gb-row.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gb-row .gb-n { font-weight: 650; }
.gb-m { color: var(--muted); font-size: 12.5px; }
.gb .gb-req { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
.gb .gb-req.approved { border-left-color: var(--ok); } .gb .gb-req.denied { border-left-color: var(--bad); opacity: .85; }
.gb .gb-rh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gb .gb-when { margin-left: auto; }
.gb .gb-rb { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13.5px; }
.gb .gb-act { display: flex; gap: 8px; margin-top: 8px; }
/* Requestable on the Loot page */
.rq-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 7px; }
.rq-row:hover { background: var(--surface); }
.rq-row .rq-n { font-weight: 650; min-width: 180px; }
.rq-row .gb-m { flex: 1; }
.rq-row a { font-size: 12.5px; flex: none; }
@media (max-width: 640px) { .rq-row { flex-wrap: wrap; } .rq-row .rq-n { min-width: 0; } }

/* what an enchant does, and its recipe name under it */
.gb-sub { font-weight: 500; color: var(--muted); font-size: 12px; }
.gb-eff { color: var(--ok); font-weight: 650; font-size: 13.5px; }
.gb .gb-what .gb-eff { font-size: 15px; }
.rq-row .rq-n { min-width: 240px; }
.gb-d { display: block; color: var(--text); opacity: .8; font-size: 12.5px; font-weight: 400; line-height: 1.35; }
.rq-row .rq-n .gb-d { max-width: 520px; }
.gb .gb-reason { flex-basis: 100%; color: var(--bad); font-size: 13.5px; }

/* Raid rosters list: Available / Rostered groups */
.plist h3.pgrp { display: flex; align-items: center; gap: 7px; margin: 4px 0 6px; padding: 6px 4px; border-radius: 7px; cursor: pointer; user-select: none;
  font: 700 15px var(--serif); border-bottom: 1px solid var(--line); }
.plist h3.pgrp:hover { background: var(--surface-2); }
.plist h3.pgrp.open .chev { transform: none; }
.plist h3.pgrp + .pgrp-b { margin-bottom: 10px; }
.plist .pgrp-b h4.acc { margin-left: 6px; }
.plist .pgrp-b .chips { margin-left: 6px; }
.plist .pgrp-none { margin: 4px 8px 10px; }

/* Raid rosters list: a search box, then Available and Rostered as two boxes that share the height
   and scroll on their own. A collapsed box shrinks to its header and the other takes the space. */
.cx .plist { display: flex; flex-direction: column; gap: 8px; padding-right: 0; }
.cx .plist .psearch { flex: none; width: 100%; box-sizing: border-box; padding: 7px 10px; border-radius: 9px; }
.plist .pbox { display: flex; flex-direction: column; min-height: 0; flex: 1 1 0; border: 1px solid var(--line); border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 55%, transparent); overflow: hidden; }
.plist .pbox:not(.open) { flex: 0 0 auto; }
.plist .pbox.rost { border-color: color-mix(in srgb, var(--line) 70%, var(--muted)); }
.plist .pbox h3.pgrp { flex: none; margin: 0; padding: 9px 10px; border-radius: 0; border-bottom: 1px solid var(--line);
  font: 700 17px var(--serif); background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.plist .pbox:not(.open) h3.pgrp { border-bottom: 0; }
.plist .pbox h3.pgrp .muted { margin-left: auto; font: 500 12.5px var(--sans); }
.plist .pbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 8px 8px 6px; }
.plist .pbody h4.acc { margin: 8px 0 4px; }
.plist .pbody .chips { margin-left: 0; }
.plist .pbox.rost .chip.used { opacity: .55; }
@media (max-width: 860px) {
  .cx .plist { max-height: none; overflow: visible; }
  .plist .pbox, .plist .pbox:not(.open) { flex: none; }
  .plist .pbody { max-height: 38vh; }
}

/* character list: Available gets three times Rostered's height; both fit in the window */
.plist .pbox.avail.open { flex: 3 1 0; }
.plist .pbox.rost.open { flex: 1 1 0; }
.plist .pbox { border-color: color-mix(in srgb, var(--line) 80%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent); }
.plist .pbox.rost { border-color: color-mix(in srgb, var(--line) 80%, transparent); }
/* search box: quiet border, a magnifying glass, a soft accent ring on focus */
.cx .plist .psearch { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background-color: var(--surface); outline: none; box-shadow: none;
  padding-left: 32px; background-repeat: no-repeat; background-position: 10px 50%; background-size: 15px 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23939aa6' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M20 20l-4.8-4.8'/%3E%3C/svg%3E"); }
.cx .plist .psearch:focus { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

/* raid cells: a note on a rostered raider, lighter and to the right */
.chip .snote, .slot .snote { margin-left: auto; padding-left: 8px; color: var(--muted); font-weight: 400; font-size: 11.5px; font-style: italic;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.slot .chip.has-note .cn { flex: none; max-width: 55%; }
.edit .groups .slot { cursor: pointer; }
.slot.editing { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 6px; }
/* Fill: a slot that still needs filling. Striped, dashed, obviously not a raider. */
.cx .groups .slot.fill { gap: 4px; padding: 0 7px; border: 1px dashed #e8870e; border-radius: 6px; font-size: 12px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, #e8870e 20%, transparent) 0 6px, color-mix(in srgb, #e8870e 6%, transparent) 6px 12px); }
.slot.fill .fill-tag { font: 800 10px var(--sans); letter-spacing: .06em; color: #fff; background: #e8870e; border-radius: 4px; padding: 1px 5px; flex: none; }
.slot.fill img { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.slot.fill .snote { color: var(--text); opacity: .85; }
.raid-h .fillcnt { color: #e8870e; font-weight: 700; }
/* the cell editor */
.slot-pop { position: absolute; z-index: 60; display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow), 0 10px 30px rgba(0, 0, 0, .35); }
.slot-pop b { font-size: 14px; }
.slot-pop .sp-note { width: 100%; box-sizing: border-box; }
.slot-pop .sp-cls { display: flex; flex-wrap: wrap; gap: 4px; }
.slot-pop .sp-cls button { padding: 0; line-height: 0; border: 2px solid transparent; border-radius: 6px; background: none; opacity: .45; }
.slot-pop .sp-cls button.on { border-color: #e8870e; opacity: 1; }
.slot-pop .sp-cls img { width: 26px; height: 26px; border-radius: 4px; }
.slot-pop .sp-act { display: flex; gap: 6px; flex-wrap: wrap; }

/* search box: one clean rounded edge, crisp focus ring that follows the corners */
.cx .plist .psearch { border-radius: 10px; background-clip: padding-box; }
.cx .plist .psearch:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cx .plist .psearch::-webkit-search-decoration { -webkit-appearance: none; }

/* Fill: a solid, light sand colour (no stripes: those mean "ask" / "cannot make it") */
.cx .groups .slot.fill { border: 1px solid color-mix(in srgb, #c49a3c 55%, transparent);
  background: color-mix(in srgb, #d8b25a 24%, var(--surface)); }
.slot.fill .fill-tag { background: #b8892a; }
.raid-h .fillcnt { color: #b8892a; }
.slot-pop .sp-cls button.on { border-color: #b8892a; }

/* Raid rosters: Presentation, for one screenshot of every raid */
.cx .present-btn { margin-left: auto; font-weight: 650; }
body.present-raids header.top, body.present-raids footer { display: none; }
body.present-raids .cx-head, body.present-raids .cx-tabs, body.present-raids .cx-banner { display: none; }
body.present-raids main { padding: 18px 0 24px; }
body.present-raids main > .wrap { max-width: 1840px; }
.pr-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.pr-head h1 { margin: 0; font-size: 30px; }
.pr-head .pr-sub { color: var(--muted); font-size: 15px; }
.pr-head .pr-brand { margin-left: auto; font: 700 22px var(--serif); letter-spacing: .06em; }
.pr-head .pr-brand i { font-style: normal; color: var(--accent); }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(640px, 1fr)); gap: 14px; }
.pr .raid { margin: 0; }
.pr .raid-h { cursor: default; }
.pr .raid-h:hover { background: none; }
.pr .groups { margin-top: 10px; }
.pr .slot.empty { border-style: dashed; opacity: .5; }
.pr-exit { position: fixed; top: 12px; right: 14px; z-index: 70; font: 600 13px var(--sans); padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; opacity: .6; }
.pr-exit:hover { opacity: 1; color: var(--text); }
@media (max-width: 700px) { .pr-grid { grid-template-columns: 1fr; } }
.pr-exit { top: auto; bottom: 14px; }
.pr .cx-sum .b { display: none; }               /* internal badges ("without a spec") stay out of the picture */

/* per-raider data: a quiet asterisk and one line saying who shares it */
.shared-mark { color: var(--accent); font-weight: 800; cursor: help; }
.shared-note { font-size: 11.5px; color: var(--muted); margin: -2px 0 6px; }
/* GBank inside Core */
.gb .gb-title { font-size: 20px; margin: 4px 0 0; }
.gb .cx-tabs.gb-sub { margin-top: 6px; }

/* character cards: the name gets the whole first line; details go on a small second line */
.cx .card .row .nm { flex: 1 1 auto; min-width: 0; }
.cx .card .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; padding: 0 6px 4px 51px; margin-top: -2px; font-size: 11.5px; }
.cx .card .meta .alt { font-size: 10px; }
.cx .card .meta .of { color: var(--muted); } .cx .card .meta .of.bad { color: var(--bad); font-weight: 650; }
.cx .card .meta .nt { color: var(--muted); font-style: italic; max-width: 100%; }
.cx .card .meta .pf { margin-left: auto; }
/* the Main picker inside a card fits the card */
.cx .card .ed .cpick, .cx .card .ed .cp-btn { width: 100%; min-width: 0; box-sizing: border-box; }
.cx .card .ed .cp-btn .chip { min-width: 0; overflow: hidden; }
.cx .card .ed .cp-pop { width: 100%; min-width: 220px; box-sizing: border-box; }
.cx .card .cp-line.need .cp-btn { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.cx .card .cp-line .req { color: var(--bad); font-weight: 600; font-size: 11px; display: block; }

/* group names: looks like the group title until you hover or type */
.cx input.gname { display: block; width: 100%; box-sizing: border-box; margin: 0 0 5px; padding: 2px 5px; border: 1px solid transparent; background: none;
  font: 700 11.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-radius: 5px; }
.cx input.gname::placeholder { color: var(--muted); opacity: 1; }
.cx input.gname:hover { border-color: var(--line); }
.cx input.gname:focus { outline: none; border-color: var(--accent); color: var(--text); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.edit .groups .slot.fill { cursor: grab; }

/* every character card the same height: one name line, one details line (never wraps; long notes end in "...") */
.cx .card .row { height: 26px; min-height: 0; }
.cx .card .meta { flex-wrap: nowrap; height: 18px; overflow: hidden; white-space: nowrap; padding-bottom: 3px; }
.cx .card .meta .nt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cx .card .meta .of, .cx .card .meta .alt { flex: none; }
.cx .card .meta .pf { flex: none; }
.cx .card .meta .of { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* a Discord user: avatar + name, outlined in their top role's colour (who plays a character) */
.cx .dtag { display: inline-flex; align-items: center; gap: 4px; flex: none; max-width: 130px; padding: 0 6px 0 1px; box-sizing: border-box; height: 15px;
  border: 1px solid color-mix(in srgb, var(--mc, var(--line)) 70%, transparent);   /* thin and soft, like the top menu */
  border-radius: 999px; font-size: 11px; line-height: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx .dtag img { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.cx .dtag.big { max-width: none; height: auto; font-size: 13px; line-height: 20px; padding: 2px 9px 2px 3px; }
.cx .dtag.big img { width: 18px; height: 18px; }
.cx .mpick .cp-row { padding: 4px 6px; }
.cx .mpick .cp-note { margin-left: auto; }
.cx .mpick .cp-note + .cp-note { margin-left: 6px; }

/* renaming an in-game character, top of its edit panel */
.cx .card .ed input.cname { width: 100%; box-sizing: border-box; font-weight: 650; }

/* raid night not confirmed (ask first): normal border, a subtle grey striped background; cannot make it: red stripes */
.chip.av-ask, .chip.av-no { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 14%, transparent) 0 5px, transparent 5px 10px) !important; }
.chip.av-no { border: 1px dashed #d9483b !important;     /* cannot make it: all red, dashed, striped (the old Fill look) */
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, #d9483b 22%, transparent) 0 6px, color-mix(in srgb, #d9483b 7%, transparent) 6px 12px) !important; }

/* add form: in-game names + who plays them on Discord */
.cx #addForm { flex-wrap: wrap; }
.cx #addForm .mpick { flex: 1 1 100%; order: 3; }
.cx #addForm .mpick .cp-btn { width: 100%; min-width: 0; box-sizing: border-box; }
.cx #addForm .mpick .cp-pop { width: 100%; min-width: 240px; box-sizing: border-box; }
.cx #addForm .mpick.need .cp-btn { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.cx #addForm button.primary { order: 2; }

/* the server this Loot Council plays on */
.cx .cx-realm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cx .cx-realm b { color: var(--text); }
.cx .cx-realm select { font: 600 13px var(--sans); padding: 3px 6px; }
.cx .card .nm .rl { font-weight: 500; color: var(--muted); font-size: .85em; }
.cx .card .ed select[data-f="realm"] { width: 100%; }

/* Filters: one dropdown for every view filter (mains, alts, the rank below the LC line...) */
.cx .cx-filter { position: relative; margin-left: auto; font-size: 13px; }
.cx .cx-bar .cx-filter { margin-left: 4px; }
.cx .cx-filter summary { list-style: none; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface); }
.cx .cx-filter summary::-webkit-details-marker { display: none; }
.cx .cx-filter summary .fi { color: var(--muted); flex: none; }
.cx .cx-filter[open] summary .fi, .cx .cx-filter summary:hover .fi { color: var(--accent); }
.cx .cx-filter summary::after { content: "\25BE"; color: var(--muted); font-size: 11px; }
.cx .cx-filter[open] summary, .cx .cx-filter summary:hover { border-color: var(--accent); }
.cx .cx-filter summary .n { background: var(--accent); color: var(--accent-ink); border-radius: 9px; padding: 0 6px; font-size: 11px; font-weight: 700; }
.cx .cx-filter .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 190px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  box-shadow: var(--shadow); }
.cx .cx-filter .menu label { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 5px; cursor: pointer; user-select: none; color: var(--text); white-space: nowrap; }
.cx .cx-filter .menu label:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cx .cx-filter .menu input { margin: 0; accent-color: var(--accent); }
.cx .cx-filter .menu span { font-size: 12px; color: var(--muted); }

/* presentation screenshots */
.pr-tools { position: fixed; bottom: 14px; right: 14px; z-index: 70; display: flex; gap: 8px; }
.pr-tools .pr-exit { position: static; }
.pr-shot-all, .pr .pr-shot { display: inline-flex; align-items: center; gap: 6px; font: 650 13px var(--sans); padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.pr-shot-all svg, .pr .pr-shot svg { width: 16px; height: 16px; }
.pr-shot-all:disabled, .pr .pr-shot:disabled { opacity: .6; cursor: wait; }
.pr .raid { position: relative; }
/* what goes in the picture: fixed widths, so every week's post looks the same */
.pr-stage { position: fixed; left: -10000px; top: 0; padding: 22px 26px 24px; background: var(--bg); box-sizing: border-box; width: 1480px; }
.pr-stage.one { width: 820px; }
.pr-stage .pr-grid { grid-template-columns: repeat(2, 1fr); }
.pr-stage .raid { margin: 0; }
.pr-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; padding: 10px 16px; border-radius: 10px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pr-toast.ok { border-color: var(--ok); } .pr-toast.err { border-color: var(--bad); }
.pr-toast a { margin-left: 8px; font-weight: 650; }
.pr-stage .pr-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.pr-stage .pr-foot .pr-brand { font: 700 17px var(--serif); letter-spacing: .06em; color: var(--muted); }
.pr-stage .pr-foot .pr-brand i { font-style: normal; color: var(--accent); }
.pr-stage.one { width: 900px; }
/* presentation footers: under each raid, and under all of them (never in the pictures) */
.pr .pr-rfoot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pr .pr-rfoot .pr-shot { padding: 5px 12px; font-size: 12.5px; }
.pr-foot-bar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.pr-foot-bar .pr-exit { position: static; opacity: 1; }
.cx .pr-foot-bar .pr-shot-all { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; padding: 8px 16px; }
.cx .pr-foot-bar .pr-shot-all:hover { filter: brightness(1.08); }

/* ---- Assignments: a raid per roster, text and pictures per boss, every save a version ---- */
.raid-h select.rinst { font: 600 13px var(--sans); padding: 4px 8px; max-width: 190px; }
.rinst-tag { font-size: 12.5px; font-weight: 650; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.rinst-tag.none { color: var(--muted); font-weight: 500; border-style: dashed; }
.asg-link { font-size: 13px; font-weight: 650; color: var(--accent); text-decoration: none; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 99px; white-space: nowrap; }
.asg-link:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.asg-link .n { font-weight: 500; color: var(--muted); margin-left: 3px; }
.asg-rosters { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.asg-rosters a { display: flex; flex-direction: column; gap: 1px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--text); min-width: 150px; }
.asg-rosters a span { font-size: 12.5px; color: var(--muted); }
.asg-rosters a:hover { border-color: var(--accent); }
.asg-rosters a[aria-current] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.asg { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.asg-bosses { position: sticky; top: 76px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 8px; max-height: calc(100vh - 96px); overflow: auto; }
.asg-bosses h3 { margin: 4px 8px 8px; font-size: 15px; }
.asg-bosses h3 .muted { font: 500 12px var(--sans); }
.asg-bosses a { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--text); }
.asg-bosses a i { grid-row: span 2; align-self: center; font: 600 12px var(--mono); color: var(--muted); text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 3px 0; font-style: normal; }
.asg-bosses a b { font-size: 14px; font-weight: 600; }
.asg-bosses a span { font-size: 12px; color: var(--muted); }
.asg-bosses a.has i { color: #10151c; background: var(--ok); border-color: var(--ok); }
.asg-bosses a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.asg-bosses a[aria-current] { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.asg-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 18px 20px 22px; min-width: 0; }
.asg-panel.drop { outline: 2px dashed var(--accent); outline-offset: -6px; }
.asg-ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.asg-ph h2 { margin: 0 auto 0 0; font-size: 22px; }
.asg-ph select { font: 13px var(--sans); padding: 5px 8px; max-width: 100%; }
.asg-meta { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.asg-meta b { color: var(--text); font-weight: 600; }
.asg-old { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--warn); border-radius: 10px; background: color-mix(in srgb, var(--warn) 12%, transparent); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.asg-none { padding: 22px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.asg-none b { color: var(--text); }
.asg-text { font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.asg-text h3 { font: 700 17px var(--serif); margin: 14px 0 4px; }
.asg-text h4 { font: 700 15px var(--sans); margin: 12px 0 4px; }
.asg-text ul, .asg-text ol { margin: 4px 0 8px; padding-left: 24px; }
.asg-text p, .asg-text div { margin: 0; min-height: 1em; }
.asg-fig { margin: 16px 0 0; }
.asg-fig img { display: block; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; min-height: 60px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.asg-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 5px; }
.asg-fig.missing img, .asg-thumb.missing img { display: none; }
.asg-fig.missing::before, .asg-thumb.missing::before { content: "This picture could not be loaded."; color: var(--bad); font-size: 13px; }
.asg-tools { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: color-mix(in srgb, var(--text) 4%, transparent); margin-top: 10px; }
.asg-tools button { font: 13px var(--sans); padding: 4px 9px; min-width: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; }
.asg-tools button:hover { border-color: var(--accent); }
.asg-tools .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.asg-tools .sw { width: 20px; min-width: 20px; height: 20px; padding: 0; border-radius: 50%; background: var(--c, transparent); position: relative; }
.asg-tools .sw:not([style])::after { content: ""; position: absolute; inset: 3px; border-top: 2px solid var(--bad); transform: rotate(-45deg) translateY(5px); }
.asg-ed { min-height: 220px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: var(--bg); outline: none; }
.asg-ed:focus { border-color: var(--accent); }
.asg-ed:empty::before { content: attr(data-ph); color: var(--muted); }
.asg-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.asg-thumb { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.asg-thumb img { width: 100%; height: 120px; object-fit: contain; border-radius: 6px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.asg-thumb input { font: 13px var(--sans); padding: 4px 7px; width: 100%; }
.asg-thumb-b { display: flex; gap: 4px; }
.asg-thumb-b button { font: 12px var(--sans); padding: 3px 8px; }
.asg-thumb-b .del { margin-left: auto; color: var(--bad); }
.asg-thumb.up { align-items: center; justify-content: center; color: var(--muted); min-height: 120px; }
.asg-add { border: 2px dashed var(--line); border-radius: 10px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; text-align: center; padding: 10px; color: var(--muted); font-size: 12.5px; }
.asg-add b { color: var(--accent); font-size: 14px; }
.asg-add:hover { border-color: var(--accent); }
.asg-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.asg-save { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.asg-save input { flex: 1 1 260px; font: 14px var(--sans); padding: 8px 10px; }
.asg button.primary, .asg-none button.primary { background: var(--accent); border-color: var(--accent); color: #10151c; font-weight: 700; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.asg button.primary:disabled { opacity: .5; cursor: default; }
.asg-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; cursor: zoom-out; }
.asg-zoom img { max-width: 100%; max-height: calc(100vh - 60px); object-fit: contain; }
.asg-zoom span { color: #c9ced8; font-size: 13px; }
@media (max-width: 820px) { .asg { grid-template-columns: 1fr; } .asg-bosses { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; } .asg-bosses h3 { flex-basis: 100%; } .asg-bosses a { flex: 1 1 160px; } }

/* ---- Raid rosters bar: what the week's raids are; search and filters on one row; add and remove a raid ---- */
.cx .rweek { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.cx .rweek > b { color: var(--text); font-size: 15px; }
.cx .rweek .rk { padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); font-size: 13px; white-space: nowrap; }
.cx .rweek .rk b { color: var(--accent); margin-right: 2px; }
.cx .rweek .rk.none { color: var(--muted); border-style: dashed; }
.cx .rweek .rk.none b { color: var(--muted); }
.cx .plist .prow { display: flex; gap: 8px; align-items: stretch; flex: none; }
.cx .plist .prow .psearch { flex: 1 1 auto; min-width: 0; width: auto; }
.cx .plist .prow .cx-filter { margin: 0; flex: none; display: flex; }
.cx .cx-filter summary { padding: 5px 9px; gap: 5px; border-radius: 9px; min-height: 32px; }
.cx .cx-filter summary::after { content: none; }
.cx .cx-filter summary .fi { color: var(--text); }
.cx .raid-add { display: block; width: 100%; margin-top: 12px; padding: 13px; border: 2px dashed var(--line); border-radius: 12px; background: none; color: var(--muted); font: 650 14px var(--sans); cursor: pointer; }
.cx .raid-add:hover { border-color: var(--accent); color: var(--accent); }
.cx .raid-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.cx .raid-del { display: inline-flex; align-items: center; gap: 6px; font: 12.5px var(--sans); padding: 4px 11px; border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); border-radius: 99px; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.cx .raid-del svg { color: var(--bad); flex: none; }
.cx .raid-del:hover { color: var(--bad); border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }

/* ---- a raid's essentials (bottom left of a roster), and Loot prio / Loot history narrowed to one raid, item or character ---- */
.cx .raid-foot { justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.cx .raid-foot .raid-del { margin-left: auto; }
.cx .raid-ess { display: flex; gap: 8px; flex-wrap: wrap; }
.cx .raid-ess .ess { display: flex; flex-direction: column; gap: 1px; padding: 7px 13px; min-width: 150px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); text-decoration: none; color: var(--text); }
.cx .raid-ess .ess b { font-size: 14px; color: var(--accent); }
.cx .raid-ess .ess span { font-size: 12px; color: var(--muted); }
.cx .raid-ess a.ess:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, var(--surface)); }
.cx .raid-ess .ess.off { border-color: var(--line); border-style: dashed; background: none; opacity: .55; cursor: not-allowed; }
.cx .raid-ess .ess.off b { color: var(--muted); }
.cx .raid-h input.rt { font: 13px var(--sans); padding: 4px 6px; }
.cx .raid-h .rdone { font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); }
.cx .scope { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.cx .scope-l { color: var(--muted); }
.cx .scope select { font: 13px var(--sans); padding: 5px 8px; max-width: 230px; }
.cx .scope-on { margin-left: auto; padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cx .scope-x { font-weight: 650; color: var(--accent); }
.cx .scope-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 4px 0 8px; }
.cx .scope-h h2 { margin: 0; font-size: 22px; display: flex; gap: 8px; align-items: center; }
.cx .scope-sub { margin: 20px 0 8px; font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.cx table.psheet { width: 100%; border-collapse: collapse; }
.cx table.psheet th { text-align: left; font: 650 11.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cx table.psheet td { padding: 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; }
.cx table.psheet td:first-child { display: flex; gap: 8px; align-items: center; }
.cx .pord { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cx .pord > span { display: inline-flex; align-items: center; gap: 4px; }
.cx .pord i { font: 600 12px var(--mono); color: var(--muted); font-style: normal; }
.cx .pord .away { opacity: .42; }
.cx .place { font-size: 17px; }
.cx .place.first { color: var(--ok); }
@media (max-width: 720px) { .cx table.psheet td:first-child { display: block; } .cx .scope-on { margin-left: 0; } }

/* ---- "has it": still on prio for an item already received ---- */
.cx .got-tag { display: inline-block; font: 700 11px var(--sans); font-style: normal; letter-spacing: .02em; padding: 1px 7px; border-radius: 99px; background: var(--warn); color: #10151c; white-space: nowrap; cursor: help; vertical-align: middle; }
.cx .pl .got-tag { margin-left: 2px; }
.cx .cx-tabs a .n.got { color: var(--warn); font-weight: 700; }
.cx .got-banner { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--warn); border-left-width: 4px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); font-size: 14px; }
.cx .got-banner button { margin-left: 6px; font: 600 13px var(--sans); }
.cx .raid-ess .ess b .got-tag { margin-left: 4px; }
/* ---- essentials: a name and one number; a done raid has a quiet green edge; start time as two lists ---- */
.cx .raid-ess .ess { flex-direction: row; align-items: baseline; gap: 10px; min-width: 0; padding: 7px 14px; }
.cx .raid-ess .ess .n { font: 700 14px var(--mono); color: var(--text); }
.cx .raid-ess .ess.off .n { color: var(--muted); }
.cx .raid.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.cx .raid-h .rtime { display: inline-flex; align-items: center; gap: 3px; }
.cx .raid-h .rtime select { font: 13px var(--sans); padding: 4px 4px; }
.cx .raid-h .rtime i { font-style: normal; color: var(--muted); }
.cx .raid-h .rday { font-size: 12.5px; color: var(--muted); margin-left: -4px; }
/* essentials, a size down */
.cx .raid-ess { gap: 6px; }
.cx .raid-ess .ess { padding: 4px 10px; gap: 7px; border-radius: 8px; }
.cx .raid-ess .ess b { font-size: 12.5px; }
.cx .raid-ess .ess .n { font-size: 12.5px; }
.cx .raid-ess .ess .got-tag { font-size: 10px; padding: 0 6px; }
/* the weekday, three letters, inside the date box between the date and the calendar icon */
.cx .raid-h .rdwrap { position: relative; display: inline-flex; }
.cx .raid-h .rdwrap input.rd { min-width: 172px; }
.cx .raid-h .rday3 { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); font: 600 12px var(--sans); font-style: normal; color: var(--muted); pointer-events: none; }
/* a done raid: green edge, a soft green glow, and a faint green wash at the top */
.cx .raid.done { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok) 22%, transparent), 0 4px 18px color-mix(in srgb, var(--ok) 16%, transparent);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--ok) 9%, transparent), transparent 70px); }
/* a done raid says so: a small tab sitting on its top-right edge */
.cx .raid.done { position: relative; }
.cx .raid-done { position: absolute; top: -10px; right: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 7px; border: 1px solid color-mix(in srgb, var(--ok) 60%, var(--line)); border-radius: 99px;
  background: var(--bg); color: var(--ok); font: 650 11.5px var(--sans); letter-spacing: .03em; }

/* ---- Assignments: boss portraits, and General above the bosses ---- */
.cx .asg-bosses a { grid-template-columns: 34px 1fr; align-items: center; }
.cx .asg-bosses a .bico { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--line); background: color-mix(in srgb, var(--text) 8%, transparent); }
.cx .asg-bosses a.has .bico { border-color: var(--ok); }
.cx .asg-bosses a .bico.gen { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.cx .asg-bosses a.gen { margin-bottom: 6px; padding-bottom: 9px; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.cx .asg-ph h2 { display: flex; align-items: center; gap: 10px; }
.cx .asg-ph h2 .bico { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--line); flex: none; }
.cx .asg-ph h2 .bico.gen { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.cx .asg-bosses a { padding: 5px 8px; row-gap: 0; align-content: center; }
.cx .asg-bosses a b { align-self: end; line-height: 1.25; }
.cx .asg-bosses a > span:not(.bico) { align-self: start; line-height: 1.25; }
.cx .asg-bosses a .bico { align-self: center; box-sizing: border-box; }
.cx .asg-ph button[data-asg=new] { font: 600 13px var(--sans); padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
.cx .asg-ph button[data-asg=new]:hover { border-color: var(--accent); color: var(--accent); }
.cx .asg-ph .asg-del { display: inline-flex; align-items: center; gap: 6px; font: 13px var(--sans); padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.cx .asg-ph .asg-del svg { color: var(--bad); }
.cx .asg-ph .asg-del:hover { color: var(--bad); border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
/* the version picker and the buttons beside it: one height */
.cx .asg-ph select, .cx .asg-ph button { box-sizing: border-box; height: 34px; padding-top: 0; padding-bottom: 0; line-height: 1; font-size: 13px; border-radius: 8px; display: inline-flex; align-items: center; }
.cx .asg-ph select { display: inline-block; }
.cx .asg-ph button.primary { border: 1px solid var(--accent); }
/* ---- the current version is the obvious one; older ones are a quiet fold at the bottom ---- */
.cx .asg-cur { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; background: var(--ok); color: #10151c; font: 700 12.5px var(--sans); white-space: nowrap; }
.cx .asg-cur.old { background: var(--warn); }
.cx .asg-ph h2 { margin-right: 0; }
.cx .asg-ph .asg-cur { margin-right: auto; }
.cx .asg-panel.oldv { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.cx .asg-panel.oldv .asg-text, .cx .asg-panel.oldv .asg-fig { opacity: .8; }
.cx .asg-old button.primary { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #10151c; font-weight: 700; cursor: pointer; }
.cx .asg-hist { margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.cx .asg-hist summary { cursor: pointer; color: var(--muted); user-select: none; width: max-content; }
.cx .asg-hist summary:hover { color: var(--text); }
.cx .asg-hist > div { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.cx .asg-hist a { display: flex; gap: 10px; align-items: baseline; padding: 5px 8px; border-radius: 7px; text-decoration: none; color: var(--muted); }
.cx .asg-hist a b { color: var(--text); font-weight: 600; min-width: 74px; }
.cx .asg-hist a em { font-style: normal; font-weight: 700; font-size: 11px; color: #10151c; background: var(--ok); border-radius: 99px; padding: 0 7px; }
.cx .asg-hist a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cx .asg-hist a[aria-current] { background: color-mix(in srgb, var(--text) 7%, transparent); }
/* ---- raid spots: 1A..4E. A quiet code at the right of every spot on a roster ---- */
.cx .groups .slot { position: relative; }
.cx .groups .slot .scode { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 600 9.5px var(--mono); letter-spacing: .02em; color: var(--muted); opacity: .6; pointer-events: none; }
.cx .groups .slot .chip { padding-right: 26px; }
.cx .groups .slot.fill { padding-right: 28px; }
/* ---- a spot written into an assignment: the raider on it, as on the roster ---- */
.cx .asg-text .phc { display: inline-flex; align-items: center; vertical-align: middle; position: relative; margin: 1px 2px; }
.cx .asg-text .phc .chip { height: 24px; padding-right: 26px; font-size: 13.5px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 6px; background: var(--bg); }
.cx .asg-text .phc i { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 600 9.5px var(--mono); font-style: normal; color: var(--muted); opacity: .7; pointer-events: none; }
.cx .asg-text .phc.none .chip { border-style: dashed; border-color: var(--line); }
.cx .asg-ed .ph { display: inline-block; padding: 0 8px; margin: 0 1px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, transparent); font: 600 13px var(--sans); white-space: nowrap; user-select: all; cursor: default; }
.cx .ph-pick { position: relative; display: inline-flex; }
.cx .ph-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; display: flex; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.4)); }
.cx .ph-menu .ph-col { display: flex; flex-direction: column; gap: 3px; min-width: 128px; }
.cx .ph-menu em { font: 700 10.5px var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.cx .asg-tools .ph-menu button { display: flex; gap: 7px; align-items: baseline; text-align: left; min-width: 0; padding: 4px 8px; white-space: nowrap; }
.cx .asg-tools .ph-menu button i { font: 600 11px var(--mono); font-style: normal; color: var(--accent); }
@media (max-width: 720px) { .cx .ph-menu { flex-wrap: wrap; max-width: 86vw; } }
/* ---- a new raid starts from its date and start time ---- */
.cx .raid-new { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; margin-top: 12px; padding: 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface); }
.cx .raid-new > b { flex-basis: 100%; font: 700 16px var(--serif); }
.cx .raid-new label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.cx .raid-new input, .cx .raid-new select { font: 13.5px var(--sans); padding: 6px 8px; height: 34px; box-sizing: border-box; }
.cx .raid-new .rdwrap { position: relative; display: inline-flex; }
.cx .raid-new .rdwrap input { min-width: 172px; }
.cx .raid-new .rday3 { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); font: 600 12px var(--sans); font-style: normal; color: var(--muted); pointer-events: none; }
.cx .raid-new .rtime { display: inline-flex; align-items: center; gap: 3px; }
.cx .raid-new .rtime i { font-style: normal; color: var(--muted); }
.cx .raid-new-b { display: inline-flex; gap: 8px; }
.cx .raid-new-b button { height: 34px; padding: 0 14px; border-radius: 8px; font: 600 13.5px var(--sans); cursor: pointer; }
.cx .raid-new-b button.primary { background: var(--accent); border: 1px solid var(--accent); color: #10151c; font-weight: 700; }
.cx .raid-new-b button.primary:disabled { opacity: .45; cursor: not-allowed; }
.cx .raid-new-need { flex-basis: 100%; font-size: 12.5px; color: var(--warn); }
.cx .raid-h .rtime.need select { border-color: var(--bad); }
/* spot codes, quieter still */
.cx .groups .slot .scode, .cx .asg-text .phc i { font-size: 8px; font-weight: 500; opacity: .42; right: 5px; letter-spacing: 0; }
.cx .groups .slot .chip { padding-right: 20px; }
.cx .groups .slot.fill { padding-right: 22px; }
.cx .asg-text .phc .chip { padding-right: 20px; }
/* ---- hover card for a raider named in an assignment ---- */
.cx-tip { position: absolute; z-index: 300; width: max-content; max-width: 300px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); font: 13px var(--sans); pointer-events: none; }
.cx-tip .tip-h { display: flex; align-items: center; gap: 9px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.cx-tip .tip-ic img { display: block; width: 30px; height: 30px; border-radius: 6px; }
.cx-tip .tip-h b { display: block; font-size: 15px; }
.cx-tip .tip-h span { font-size: 12px; color: var(--muted); }
.cx-tip .tip-h em { margin-left: auto; font: 700 10.5px var(--sans); font-style: normal; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; }
.cx-tip .tip-h em.main { background: var(--ok); color: #10151c; }
.cx-tip .tip-h em.alt { border: 1px solid var(--warn); color: var(--warn); }
.cx-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; align-items: center; }
.cx-tip dt { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cx-tip dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.cx-tip dd img { width: 16px; height: 16px; border-radius: 3px; margin-right: 5px; vertical-align: -3px; }
.cx-tip .tip-p { white-space: nowrap; }
.cx-tip .muted { color: var(--muted); }
/* filter bars: every control the same height; search boxes wide enough for their hint */
.cx .cx-bar select, .cx .cx-bar input[type=search], .cx .cx-bar input[type=number] { height: 34px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; font-size: 13.5px; }
.cx .cx-bar input[type=search] { min-width: 250px; padding-left: 10px; padding-right: 10px; }
.cx .asg-text .phc { cursor: pointer; }
/* Raid rosters: alts are the striped ones; "ask before rostering" takes the quiet lighter fill alts had. "Cannot make it" stays red, dashed and striped. */
.cx .raid .chip.av-ask { background-image: none !important; background-color: color-mix(in srgb, var(--surface-2) 55%, var(--bg)); }
.cx .raid .chip.is-alt, .cx .plist .chip.is-alt { background-color: transparent; background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 14%, transparent) 0 5px, transparent 5px 10px) !important; }
/* a Fill can be called something else; the tag keeps its look */
.slot.fill .fill-tag { text-transform: uppercase; white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.slot-pop .sp-lab { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
.slot-pop .sp-lab input { flex: 1 1 auto; min-width: 0; font: 13.5px var(--sans); padding: 5px 8px; }
/* "ask before rostering": a quiet amber sign. A thin dashed amber edge (the class colour stays on the left) and a small "?" before the spot code. */
.cx .raid .chip.av-ask { position: relative; border-top: 1px dashed color-mix(in srgb, var(--warn) 70%, transparent) !important; border-right: 1px dashed color-mix(in srgb, var(--warn) 70%, transparent) !important;
  border-bottom: 1px dashed color-mix(in srgb, var(--warn) 70%, transparent) !important; background-color: color-mix(in srgb, var(--warn) 6%, var(--bg)); }
.cx .raid .chip.av-ask::after { content: "?"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; background: color-mix(in srgb, var(--warn) 85%, transparent); color: #10151c;
  font: 800 9.5px/13px var(--sans); text-align: center; }
.cx .raid .chip.av-ask.has-note::after { display: none; }
/* a roster's header controls: one height */
.cx .raid-h input.rn, .cx .raid-h input.rd, .cx .raid-h .rtime select, .cx .raid-h select.rinst { height: 34px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.cx .raid-h .rtime select, .cx .raid-h select.rinst { font-size: 13.5px; }
/* ---- templates: the roster row's Templates entry, the template part of an assignment, and the box that offers one ---- */
.cx .asg-rosters a.tplchip { margin-left: auto; border-style: dashed; }
.cx .asg-rosters a.tplchip b { color: var(--accent); }
.cx .asg.tplmode .asg-panel { border-style: dashed; }
.cx .asg-bosses h3 select { font: 600 14px var(--sans); padding: 5px 8px; width: 100%; height: 34px; box-sizing: border-box; }
.cx .asg-bosses a.gen.trash { margin-bottom: 6px; }
.cx .asg-bosses a.gen:not(.trash) { margin-bottom: 0; padding-bottom: 5px; border-bottom: 0; }
.cx .asg-bosses .tpl-av { font-style: normal; color: var(--accent); }
.cx .asg-bosses .tpl-all { width: 100%; margin-top: 8px; padding: 8px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 8px; background: none; color: var(--accent); font: 600 12.5px var(--sans); cursor: pointer; }
.cx .asg-bosses .tpl-all:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cx .asg-part-l { display: block; font: 700 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.cx .asg-part-l.own { margin-top: 16px; }
.cx .asg-tpl { padding: 10px 0 14px 14px; border-left: 3px solid color-mix(in srgb, var(--accent) 55%, var(--line)); }
.cx .asg-tplbox { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 14px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 6%, transparent); font-size: 13.5px; }
.cx .asg-tplbox > div:first-child { flex: 1 1 320px; }
.cx .asg-tplbox button.primary { height: 32px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #10151c; font: 700 13px var(--sans); cursor: pointer; }
.cx .asg-tplbox details { flex-basis: 100%; font-size: 13px; }
.cx .asg-tplbox summary { cursor: pointer; color: var(--muted); width: max-content; }
.cx .asg-tplprev { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.cx .asg-tplnone { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.cx .asg-tpled { margin: 12px 0 14px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.cx .asg-tpled .asg-tplprev { margin: 0 0 8px; }
.cx .asg-tpled-b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cx .asg-tpled-b button { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 12.5px var(--sans); cursor: pointer; }
.cx .asg-tpled-b button:hover { border-color: var(--accent); color: var(--accent); }
.cx .asg-text .phc.tpl .chip { height: 22px; padding: 0 8px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--accent) 10%, transparent); font: 700 12px var(--mono); color: var(--accent); }
.cx .ph-menu.codes .ph-col { min-width: 62px; }
/* ---- raid marks ---- */
.cx .mk { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin: 0 1px; background: center / contain no-repeat; user-select: all; }
.cx .mk[data-mk="star"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.6 5.7 21.2l1.5-7.1L1.8 9.2 9 8.4z' fill='%23ffd21f' stroke='%23000' stroke-opacity='.55' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cx .mk[data-mk="circle"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.6' fill='%23ff8a1f' stroke='%23000' stroke-opacity='.55' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='4.2' fill='%23ffc27a' opacity='.55'/%3E%3C/svg%3E"); }
.cx .mk[data-mk="diamond"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l8 10.5-8 10.5L4 12z' fill='%23c66bff' stroke='%23000' stroke-opacity='.55' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M12 1.5L4 12h16z' fill='%23fff' opacity='.22'/%3E%3C/svg%3E"); }
.cx .mk[data-mk="triangle"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l10 18.5H2z' fill='%233fd04e' stroke='%23000' stroke-opacity='.55' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cx .mk[data-mk="moon"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 2.2a10 10 0 1 0 6.3 14.6A8.2 8.2 0 0 1 15.5 2.2z' fill='%23cfe4ff' stroke='%23000' stroke-opacity='.55' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cx .mk[data-mk="square"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' fill='%2338a8ff' stroke='%23000' stroke-opacity='.55' stroke-width='1.2' stroke-linejoin='round'/%3E%3Crect x='3' y='3' width='18' height='8' rx='2' fill='%23fff' opacity='.2'/%3E%3C/svg%3E"); }
.cx .mk[data-mk="cross"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 2.5L12 9.3l7.5-6.8 2.3 2.4-6.9 7.1 6.9 7.1-2.3 2.4-7.5-6.8-7.5 6.8-2.3-2.4 6.9-7.1L2.2 4.9z' fill='%23f2433a' stroke='%23000' stroke-opacity='.55' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cx .mk[data-mk="skull"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8c-5.2 0-9 3.6-9 8.3 0 3 1.5 5.1 3.6 6.4v3.2c0 1.2.9 2.3 2.2 2.3h6.4c1.3 0 2.2-1.100 2.2-2.3v-3.2c2.100-1.300 3.6-3.400 3.6-6.400 0-4.700-3.800-8.300-9-8.300z' fill='%23f4f4f0' stroke='%23000' stroke-opacity='.55' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cellipse cx='8.300' cy='10.800' rx='2.300' ry='2.700' fill='%231b1e24'/%3E%3Cellipse cx='15.700' cy='10.800' rx='2.300' ry='2.700' fill='%231b1e24'/%3E%3Cpath d='M12 13.600l1.300 2.600h-2.600z' fill='%231b1e24'/%3E%3Cpath d='M9.500 18.300v3.200M12 18.300v3.200M14.500 18.300v3.200' stroke='%231b1e24' stroke-width='1.100'/%3E%3C/svg%3E"); }
.cx .asg-tools .mkb { min-width: 28px; padding: 3px 4px; display: inline-flex; align-items: center; justify-content: center; }
.cx .asg-tools .mkb .mk { width: 17px; height: 17px; margin: 0; }
/* the eight marks stay together: they wrap as one group, never split over two rows */
.cx .asg-tools .mk-row { display: inline-flex; flex-wrap: nowrap; gap: 4px; align-items: center; }
/* Assignments: Templates on its own line above the rosters, where the description used to be */
.cx .asg-top { display: flex; margin: 2px 0 10px; }
.cx .asg-top a.tplchip { display: flex; flex-direction: column; gap: 1px; padding: 8px 14px; margin: 0; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--text); min-width: 150px; }
.cx .asg-top a.tplchip b { color: var(--accent); }
.cx .asg-top a.tplchip span { font-size: 12.5px; color: var(--muted); }
.cx .asg-top a.tplchip:hover, .cx .asg-top a.tplchip[aria-current] { border-color: var(--accent); }
.cx .asg-top a.tplchip[aria-current] { box-shadow: inset 0 0 0 1px var(--accent); }
/* ---- named templates ---- */
.cx .tpl-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.cx .tpl-tabs a { padding: 5px 13px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--text); font: 600 13.5px var(--sans); }
.cx .tpl-tabs a:hover { border-color: var(--accent); }
.cx .tpl-tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: #10151c; }
.cx .tpl-tabs button { padding: 5px 12px; border: 1px dashed var(--line); border-radius: 99px; background: none; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }
.cx .tpl-tabs button:hover { border-color: var(--accent); color: var(--accent); }
.cx .asg-cur.tpl { background: none; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); color: var(--accent); }
.cx .tpl-name { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 4px; font-size: 12px; color: var(--muted); max-width: 320px; }
.cx .tpl-name input { font: 600 15px var(--sans); padding: 7px 10px; height: 36px; box-sizing: border-box; }
.cx .asg-tplbox select, .cx .asg-tpled select { font: 600 13px var(--sans); padding: 0 8px; height: 30px; box-sizing: border-box; max-width: 220px; }
.cx .asg-tplbox .tpl-one { font-weight: 700; }
.cx .asg-tplbox.quiet { border-style: solid; border-color: var(--line); background: none; color: var(--muted); padding: 7px 12px; }
.cx .asg-tplbox.quiet > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cx .tpl-allbox { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cx .tpl-allbox select { font: 13px var(--sans); height: 32px; padding: 0 8px; }
.cx .tpl-allbox .tpl-all { margin-top: 0; }
.cx .asg-save input[hidden] { display: none; }
/* a spot code or an empty spot is not a deleted character: no strike-through */
.cx .asg-text .phc .chip.gone, .cx .asg-text .phc .chip.gone .cn { text-decoration: none; opacity: 1; font-style: normal; }
.cx .asg-text .phc.none .chip.gone .cn { color: var(--muted); }
/* ---- Template or Assignment: a labelled band above the work area, and its colour around it ---- */
.cx { --tplc: #b08cff; }
.cx .asg-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; padding: 8px 14px; border-radius: 12px 12px 0 0; border: 1px solid; border-bottom: 0; font-size: 13.5px; }
.cx .asg-mode b { font: 800 12px var(--sans); letter-spacing: .09em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; color: #10151c; }
.cx .asg-mode span { color: var(--text); }
.cx .asg-mode.ros { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.cx .asg-mode.ros b { background: var(--accent); }
.cx .asg-mode.tpl { border-color: color-mix(in srgb, var(--tplc) 65%, var(--line)); background: color-mix(in srgb, var(--tplc) 13%, var(--surface)); }
.cx .asg-mode.tpl b { background: var(--tplc); }
.cx .asg.moded { padding: 14px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 0 0 12px 12px; }
.cx .asg.moded.tplmode { border-color: color-mix(in srgb, var(--tplc) 65%, var(--line)); background: color-mix(in srgb, var(--tplc) 4%, transparent); }
.cx .asg.tplmode .asg-panel { border-style: solid; border-color: color-mix(in srgb, var(--tplc) 45%, var(--line)); }
.cx .asg.tplmode .asg-bosses { border-color: color-mix(in srgb, var(--tplc) 45%, var(--line)); }
.cx .asg.tplmode .asg-bosses a[aria-current] { background: color-mix(in srgb, var(--tplc) 22%, transparent); }
.cx .asg.tplmode .asg-cur.tpl { border-color: var(--tplc); color: var(--tplc); }
.cx .asg.tplmode .tpl-tabs a[aria-current] { background: var(--tplc); border-color: var(--tplc); }
.cx .asg.tplmode button.primary, .cx .asg.tplmode .asg-ph button.primary { background: var(--tplc); border-color: var(--tplc); }
.cx .asg-top a.tplchip b { color: var(--tplc); }
.cx .asg-top a.tplchip:hover, .cx .asg-top a.tplchip[aria-current] { border-color: var(--tplc); }
.cx .asg-top a.tplchip[aria-current] { box-shadow: inset 0 0 0 1px var(--tplc); background: color-mix(in srgb, var(--tplc) 12%, var(--surface)); }
.cx .asg-bosses { top: 76px; }
/* pictures in an assignment are shown at a readable size, never the full width; a click still opens them large. Several sit side by side. */
.cx .asg-fig { display: inline-block; vertical-align: top; margin: 14px 10px 0 0; max-width: min(100%, 388px); }
.cx .asg-fig img { display: block; width: auto; height: auto; max-width: 100%; max-height: 290px; min-height: 0; }
.cx .asg-fig figcaption { max-width: 390px; }
.cx .asg-tplprev .asg-fig img { max-height: 240px; }

/* screenshots straight from the roster page: one button for every raid, a camera on each raid */
.cx .present-btn.shot-all { display: inline-flex; align-items: center; gap: 6px; }
.cx .present-btn.shot-all svg { width: 16px; height: 16px; }
.cx .present-btn.busy { opacity: .6; cursor: wait; }
.raid-h .raid-shot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: 7px;
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; flex: none; }
.raid-h .raid-shot svg { width: 17px; height: 17px; }
.raid-h .raid-shot:hover { color: var(--text); border-color: var(--line); background: var(--surface-2); }
.raid-h .raid-shot.busy { opacity: .5; cursor: wait; animation: shotpulse .9s ease-in-out infinite alternate; }
@keyframes shotpulse { to { opacity: .2; } }
/* the raid camera sits in the card's top right corner, a little above the header row */
.cx .raid { position: relative; }
.raid-h .raid-shot { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; z-index: 1; }
.raid-h[data-rtoggle] { padding-right: 40px; }
.raid.done .raid-h .raid-shot { top: 12px; }

/* Forms: Google Form answers, officers only */
.fm-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.fm-list a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--text); font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.fm-list a[aria-current] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 650; }
.fm-list .n { color: var(--muted); font-size: 12px; }
.fm-addbtn { font-size: 13px; padding: 5px 12px; border-radius: 99px; }
.fm-add { max-width: 640px; display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fm-add h3 { margin: 0; }
.fm-add label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.fm-add input, .fm-add textarea { width: 100%; box-sizing: border-box; }
.fm-how { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--muted); } .fm-how li { margin: 2px 0; }
.fm-addacts { display: flex; gap: 8px; }
.fm-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.fm-title { font: 700 18px var(--serif); padding: 4px 8px; min-width: 260px; }
.fm-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fm-anon, .fm-namecol { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.fm-namecol select { max-width: 220px; }
.fm-del { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.fm-status { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; margin: 0 0 10px; font-size: 14px; }
.fm-missing summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.fm-missing > div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 12px; }
.fm-tabs a { padding: 6px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; font-size: 14px; }
.fm-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.fm-q { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.fm-q h3 { margin: 0 0 10px; font-size: 15.5px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fm-qn { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); font-size: 12px; }
.fm-bars { display: grid; gap: 6px; }
.fm-bar { display: grid; grid-template-columns: minmax(120px, 260px) minmax(80px, 1fr) 34px 44px; gap: 8px; align-items: center; font-size: 14px; }
.fm-track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.fm-track i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.fm-who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 4px; }
.fm-who .chip, .fm-by .chip { font-size: 12px; }
.fm-other { margin-top: 10px; font-size: 14px; } .fm-other ul, .fm-text { margin: 6px 0 0; padding-left: 20px; } .fm-text li, .fm-other li { margin: 4px 0; }
.fm-by { display: inline-flex; gap: 4px; margin-right: 6px; vertical-align: middle; }
.fm-raw { display: inline-block; padding: 1px 8px; border: 1px dashed var(--line); border-radius: 6px; font-size: 12.5px; }
.fm-again { margin-left: 6px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; }
.fm-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .fm-tools input { width: 280px; max-width: 100%; }
.fm-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.fm-table { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.fm-table th, .fm-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fm-table th { position: sticky; top: 0; background: var(--surface); font-size: 12.5px; color: var(--muted); max-width: 220px; }
.fm-table td { max-width: 320px; }
.fm-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
@media (max-width: 700px) { .fm-bar { grid-template-columns: 1fr 60px 30px 40px; } .fm-acts { margin-left: 0; } }

/* Forms: bars or a pie */
.fm-chart { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.fm-chart button { border: 0; border-radius: 0; padding: 5px 12px; font-size: 13px; background: none; color: var(--muted); }
.fm-chart button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); font-weight: 650; }
.fm-pie { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.fm-disc { width: 190px; height: 190px; flex: none; }
.fm-pl text { fill: #fff; font: 700 13px var(--sans); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(0,0,0,.25); stroke-width: 2px; }
.fm-legend { display: grid; gap: 6px; flex: 1 1 280px; }
.fm-leg { display: grid; grid-template-columns: 12px minmax(100px, 1fr) 34px 44px; gap: 8px; align-items: center; font-size: 14px; }
.fm-leg > i { width: 12px; height: 12px; border-radius: 50%; }
.fm-leg .fm-who { grid-column: 2 / -1; }
.fm-legend { max-width: 560px; }

/* Forms pie, laid out as Google Forms does, with its hover */
.fm-q.pie h3 { margin: 0; font-weight: 600; }
.fm-resp { margin: 4px 0 10px; font-size: 12.5px; color: var(--muted); }
.fm-q.pie .fm-pie { gap: 48px; padding: 4px 0 6px 24px; }
.fm-q.pie .fm-disc { width: 220px; height: 220px; overflow: visible; }
.fm-q.pie .fm-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 0 1 auto; max-width: 460px; }
.fm-q.pie .fm-leg { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: default; }
.fm-q.pie .fm-leg > i { flex: none; width: 11px; height: 11px; border-radius: 50%; }
.fm-sl { cursor: pointer; }
.fm-sl .fm-halo { opacity: 0; transition: opacity .12s; pointer-events: none; }
.fm-sl.on .fm-halo { opacity: .45; }
.fm-pl { pointer-events: none; }
.fm-tipbox { position: absolute; z-index: 90; display: grid; gap: 2px; padding: 7px 10px; background: #fff; color: #222; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); font: 13px var(--sans); max-width: 280px; pointer-events: none; }
.fm-tipbox b { font-weight: 700; }
.fm-tipbox em { font-style: normal; color: #555; font-size: 12px; }
@media (max-width: 600px) { .fm-q.pie .fm-pie { padding-left: 0; gap: 18px; } .fm-q.pie .fm-disc { width: 180px; height: 180px; } }
.fm-tipbox[hidden] { display: none; }

.fm-guide { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.fm-guide summary { cursor: pointer; font-weight: 650; }
.fm-guide ol { margin: 8px 0 6px; padding-left: 20px; display: grid; gap: 6px; }
.fm-guide p { margin: 4px 0 0; }
.fm-guide code { font-size: 12.5px; }

/* an entry with nothing written: greyed out, so an empty boss cannot be mistaken for a done one */
.cx .asg-bosses a.none .bico { filter: grayscale(1) brightness(.75); opacity: .45; border-style: dashed; border-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.cx .asg-bosses a.none .bico.gen { color: var(--muted); }
.cx .asg-bosses a.none b { color: var(--muted); font-weight: 500; }
.cx .asg-bosses a.none > span:not(.bico) { font-style: italic; opacity: .8; }
.cx .asg-bosses a.none > span .tpl-av { font-style: normal; opacity: 1; }
.cx .asg-bosses a.none:hover .bico, .cx .asg-bosses a.none[aria-current] .bico { opacity: .7; }
.cx .asg-bosses a.none[aria-current] b { color: var(--text); }

/* a Fill without a label: the classes it asks for give it its colour */
.cx .groups .slot.fill.bare { border: 1px solid color-mix(in srgb, var(--fc) 70%, transparent); border-left: 3px solid var(--fc); }
.slot.fill.bare .fcls { font: 700 11.5px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* raid foot: Clear roster and Remove raid together at the right */
.cx .raid-foot .raid-acts { margin-left: auto; display: inline-flex; gap: 8px; }
.cx .raid-foot .raid-acts .raid-del { margin-left: 0; }
.cx .raid-clear { display: inline-flex; align-items: center; gap: 6px; font: 12.5px var(--sans); padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.cx .raid-clear svg { flex: none; }
.cx .raid-clear:hover { color: var(--text); border-color: color-mix(in srgb, var(--warn, #e8870e) 60%, var(--line)); background: color-mix(in srgb, var(--warn, #e8870e) 8%, transparent); }
/* a Fill without a label: class colours, but plainly an open spot and not a raider */
.cx .groups .slot.fill.bare { border: 1px dashed color-mix(in srgb, var(--fc) 75%, transparent); border-left: 3px dashed var(--fc); }
.slot.fill.bare .fcls { font: italic 600 11.5px var(--sans); opacity: .9; }
.slot.fill.bare img { opacity: .8; filter: saturate(.85); }

/* raids without a date: up and down arrows beside the camera */
.raid-h .raid-mvs { position: absolute; top: 6px; right: 40px; display: inline-flex; gap: 2px; z-index: 1; }
.raid-h .raid-mv { display: inline-grid; place-items: center; width: 24px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.raid-h .raid-mv svg { width: 11px; height: 7px; }
.raid-h .raid-mv:hover:not(:disabled) { color: var(--text); border-color: var(--line); background: var(--surface-2); }
.raid-h .raid-mv:disabled { opacity: .3; cursor: default; }
.raid-h[data-rtoggle]:has(.raid-mvs) { padding-right: 96px; }
.raid.done .raid-h .raid-mvs { top: 12px; }

/* a finished raid's roster is locked: no grab cursor on its raiders */
.cx .raid.done .groups .chip { cursor: default; }

/* raid week: like the Done tag, on the left, in purple */
.cx .raid, .pr .raid { position: relative; }
.cx .raid-week { position: absolute; top: -10px; left: 16px; z-index: 1; display: inline-flex; align-items: center; padding: 1px 9px; border: 1px solid color-mix(in srgb, var(--wk, #b48cf0) 60%, var(--line)); border-radius: 99px;
  background: var(--bg); color: var(--wk, #b48cf0); font: 650 11.5px var(--sans); letter-spacing: .03em; }

/* Finished raids: the same raid cards, read-only, with a Warcraft Logs link */
.cx .fin .raid { margin-bottom: 18px; }
.cx .arch-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx .arch-foot .wcl { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex: 1 1 340px; max-width: 520px; }
.cx .arch-foot .wcl input { flex: 1; min-width: 0; height: 30px; box-sizing: border-box; padding: 4px 9px; font-size: 13px; }
.cx .wcl-open { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, #a874e8 55%, var(--line)); color: #c7a6f5; font: 600 12.5px var(--sans); text-decoration: none; white-space: nowrap; }
.cx .wcl-open:hover { background: color-mix(in srgb, #a874e8 12%, transparent); }
/* the mode pill sits on the heading's middle, not its baseline */
.cx-head { align-items: center; }
.cx-head h1 { line-height: 1.15; }
.cx-head .mode { line-height: 1.45; position: relative; top: 2px; }

/* a raid with a week: its border in the week's colour, no glow (the glow is for finished raids) */
.cx .raid.wk:not(.done), .pr .raid.wk { border-color: color-mix(in srgb, var(--wk) 75%, var(--line)); box-shadow: none; }

/* Fill editor: spec (one class) or role (several classes); planned Fills in the role line */
.slot-pop .sp-spec { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 2px 0 6px; }
.slot-pop .sp-spec small { width: 100%; color: var(--muted); }
.slot-pop .sp-spec button { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 7px; }
.slot-pop .sp-spec button img { width: 16px; height: 16px; border-radius: 3px; }
.slot-pop .sp-spec button.on { outline: 2px solid var(--accent, #f0a63a); }
.ri .rplan { font-style: italic; font-weight: 600; margin-left: 2px; opacity: .8; border-bottom: 1px dashed currentColor; }
.slot .frole { font-size: 10.5px; font-weight: 700; padding: 0 4px; border-radius: 3px; border: 1px dashed var(--muted); color: var(--muted); }

/* Templates page: one list of templates, each with a free name and an optional link */
.asg-bosses.tpl-list h4.tpl-grp { margin: 12px 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.asg-bosses.tpl-list .tpl-new, .tpl-new-b { display: inline-block; margin: 4px 0 6px; font-weight: 600; }
.tpl-meta { display: grid; gap: 10px; margin: 6px 0 12px; }
.tpl-meta .tpl-name { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.tpl-meta .tpl-name input { max-width: 420px; }
.tpl-link { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; }
.tpl-link-l { font-weight: 600; }
.tpl-link-l em { font-weight: 400; color: var(--muted); font-style: normal; }
.tpl-link-s { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-hint { margin: 0; }
.asg-meta .tpl-where { color: var(--text); }

/* Totems and Auras: on every entry of a roster, above what was written */
.ta-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 8px 0 14px; background: color-mix(in srgb, var(--surface, #1a1d24) 85%, transparent); }
.ta-box.warn { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.ta-box > summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; cursor: pointer; list-style-position: inside; }
.ta-box .b.chg { background: color-mix(in srgb, #ffb84a 25%, transparent); color: #ffcf7a; }
.ta-lede { margin: 6px 0; }
.ta-act { display: flex; gap: 8px; align-items: center; margin: 4px 0 6px; }
.ta-notes { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.ta-notes li.bad { color: var(--bad); }
table.ta { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ta th, table.ta td { padding: 4px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); text-align: left; vertical-align: top; }
table.ta thead th { color: var(--muted); font-weight: 600; font-size: 12px; }
table.ta tbody th { min-width: 190px; width: 210px; font-weight: 600; white-space: nowrap; }
table.ta td { min-width: 130px; }
table.ta .ta-tip { display: inline-block; font-style: normal; font-size: 10.5px; width: 15px; height: 15px; line-height: 15px; text-align: center; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); cursor: help; margin-left: 3px; }
table.ta tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
table.ta tbody th small.ta-who { font-style: italic; }
table.ta tr.ta-h th { padding-top: 10px; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; color: var(--muted); }
table.ta tr.ta-h .b { margin-left: 8px; text-transform: none; letter-spacing: 0; }
table.ta td.ta-span { color: var(--muted); font-size: 11.5px; font-style: italic; }
table.ta select { width: 100%; font-size: 12.5px; }
table.ta td.chg { background: color-mix(in srgb, #ffb84a 18%, transparent); box-shadow: inset 3px 0 0 #ffb84a; }
table.ta td.miss { background: color-mix(in srgb, var(--bad) 14%, transparent); }
table.ta td.out { outline: 1px dashed var(--bad); }
.asg-bosses a .ta-mk { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; min-width: 16px; text-align: center; border-radius: 4px; padding: 0 4px; }
.asg-bosses a .ta-mk.bad { background: var(--bad); color: #fff; }
.asg-bosses a .ta-mk.chg { background: #ffb84a; color: #111; }
