/* RaidSlot's dashboard (#961): mobile first (360px up), dark, from the
   owner's mockups. Tokens live on :root; components only use tokens. */

/* Vendored woff2 (SIL OFL 1.1, licences in fonts/), latin and latin-ext:
   the public site makes no third-party font requests. Plex and Mono also
   cyrillic and cyrillic-ext (#1673), fetched only for Cyrillic text.
   Barlow Condensed has no Cyrillic, so Russian headings use Fira Sans
   Extra Condensed, vendored for Cyrillic only. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(barlow-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(barlow-condensed-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(barlow-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(barlow-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 600; font-display: swap; src: url(fira-sans-extra-condensed-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 600; font-display: swap; src: url(fira-sans-extra-condensed-cyrillic-ext-600-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 700; font-display: swap; src: url(fira-sans-extra-condensed-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 700; font-display: swap; src: url(fira-sans-extra-condensed-cyrillic-ext-700-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url(ibm-plex-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url(ibm-plex-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url(ibm-plex-sans-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url(ibm-plex-sans-cyrillic-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url(jetbrains-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url(jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url(jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url(jetbrains-mono-cyrillic-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }

:root {
  color-scheme: dark;

  /* Barlow Condensed for headings and big numbers, Plex for UI, Mono for numbers and labels. */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  /* Type scale (1.2 ratio) and spacing (4px base). */
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.2rem;
  --text-xl: 1.44rem;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius: 8px;
  --radius-sm: 6px;
  --touch: 44px;

  /* Ground, panels and hairlines: the brand's navy (#0A1227, #1073). */
  --bg: #070d1c;
  --topbar: #0a1227;
  --surface: #0d1629;
  --surface-2: #111b31;
  --surface-3: #16223b;
  /* A raised panel inside a card (#1627): a step lighter than the card, so its fields (--surface-2) read as inset. */
  --panel: #142039;
  --hover: #15203a;
  --border: #1c2842;
  --border-strong: #273553;
  --avatar: #22304c;
  --hairline: #121c33;
  --stripe-a: #16223b;
  --stripe-b: #1a2640;
  /* Ink: text, secondary, muted (all >= 4.5:1 on the panels); --faint is for marks, not text. */
  --text: #e8edf7;
  --text-2: #c5cfe0;
  --muted: #8c9ab3;
  --faint: #56637d;
  /* The one accent, the brand blue (#0C94F6 to #113BF7): primary buttons (white on it, 4.8:1), the active nav, highlights;
     --accent-ink is it lightened for text and links on the navy (>= 6:1). */
  --accent: #0f68fa;
  --accent-hover: #0b57d8;
  --accent-ink: #5ca6ff;
  --accent-text: #ffffff;
  --accent-soft: rgb(15 104 250 / 0.16);
  --accent-line: rgb(15 104 250 / 0.55);
  /* Roles, and signup statuses (colour plus the word): tank and late off the accent's blue, so neither reads as it. */
  --tank: oklch(0.75 0.1 285);
  --healer: oklch(0.76 0.12 150);
  --dps: oklch(0.72 0.13 25);
  --confirmed: oklch(0.76 0.12 150);
  --tentative: oklch(0.8 0.13 75);
  --late: oklch(0.78 0.1 210);
  --outsider: oklch(0.74 0.16 340);
  --missing: oklch(0.72 0.13 25);
  --danger: oklch(0.72 0.13 25);
  --danger-soft: oklch(0.35 0.09 25 / 0.25);
  --ok: var(--confirmed);
  /* A positive action's button (#2205): RaidSlot Product's green (#2982), white text on it (4.7:1), darker on hover. Words in
     green on the navy stay the lighter --confirmed, the button's too dark to read as text there. */
  --success: #008545;
  --success-hover: #006c38;
  --success-text: #ffffff;
  --success-soft: rgb(0 133 69 / 0.2);
  /* Discord's blurple (#2960): Soft reserve's own, as its button on the raid's Discord post, white on it (4.8:1). */
  --blurple: #5865f2;
  --blurple-hover: #4752c4;
  --blurple-text: #ffffff;
  --warn: var(--tentative);
  --focus: #4c9bff;
  /* The logo's own gradient and blues (design.css's, #3141, under the app's names): decoration only, never under text. */
  --logo-gradient: linear-gradient(135deg, #0c94f6 0%, #113bf7 100%);
  --logo-cyan: #0c94f6;
  --logo-haze-cyan: rgb(12 148 246 / 0.14);
  --logo-haze-indigo: rgb(17 59 247 / 0.12);
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--text-md)/1.5 var(--font);
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.1; margin: 0; }
/* Headings: Barlow Condensed, uppercase; numbers and labels: JetBrains Mono. */
h1, h2, h3, h4, .page-title, .display { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
h2 { font-size: var(--text-xl); }
h3, h4 { font-size: 1.125rem; }
.page-title { font-size: clamp(2rem, 6vw, 2.875rem); font-weight: 700; line-height: 1; letter-spacing: 0.01em; }
.mono, .summary { font-family: var(--font-mono); }
/* A Discord channel (#2655): "#" and its exact name as one token, never wrapped after the # or a leading symbol ("#・absences");
   full-width CJK punctuation set tight, as Discord shows it, not with a gap either side. */
.channel { white-space: nowrap; }
.channel-cjk { margin: 0 -0.25em; }

/* Top nav (#961): the wordmark, the links, the viewer's zone and initials. It fits at every width (#1926): how much its
   right side holds sets two breakpoints, measured in every language with 40px to spare. The bar's class says which:
   bar-member (nothing but the clock), bar-officer (Server settings, or the server switcher), bar-admin (the Admin link,
   or Server settings and the switcher). Below the first, the links move to the bottom tab bar: 1005px, 1065px, 1175px.
   Below the second, the right side is compact: Admin and Server settings as icons, the server chip's badge without its
   name, the clock's time without its city, all in their tooltips: 640px, 1335px, 1665px. Below 640px the wordmark gives
   way to the mark. The links' icons (#2052) widened the nav by 22px a link, which moved each breakpoint up; Teams (#2111),
   longer than Roster in Spanish, French and Russian, moved them up again; Attendance leaving the nav (#2141) moved them down;
   Characters becoming Your characters (#2190) moved them up again, and so did the divider between the raids' links and
   the people's (#2200). */

.topbar {
  background: var(--topbar);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 60px;
  padding: 0 var(--space-4);
}
.brand a { display: flex; align-items: center; gap: var(--space-3); min-height: var(--touch); color: var(--text); text-decoration: none; }
/* The logo (#1073): the mark and the outlined wordmark, for dark backgrounds. */
.brand .logo { display: block; height: 28px; width: auto; }
.brand .logo-mark { display: none; height: 28px; width: auto; }
@media (max-width: 639px) { .brand .logo { display: none; } .brand .logo-mark { display: block; } }

.nav { display: none; gap: var(--space-5); align-self: stretch; }
.nav a, .tabbar a { color: var(--muted); font-size: var(--text-sm); text-decoration: none; }
.nav a { display: flex; align-items: center; gap: 6px; white-space: nowrap; border-bottom: 2px solid transparent; padding-top: 2px; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); font-weight: 500; border-bottom-color: var(--accent); }
/* Between the raids' links and the people's (#2200): a thin line, with a little more room either side than between links. */
.nav-divider { align-self: center; flex: none; width: 1px; height: 20px; margin: 0 var(--space-1); background: var(--border-strong); }

.me { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
/* The chosen server's clock (#1354): its time and city; the full zone, and the viewer's time, on hover or focus. */
.clock-wrap { position: relative; display: inline-flex; min-width: 0; }
.clock { display: inline-block; min-width: 0; font: 500 12px var(--font-mono); color: var(--text-2); padding: 5px 9px;
  border: 1px solid var(--border-strong); border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; cursor: default; }
a.clock { cursor: pointer; }
a.clock:hover, .clock:focus-visible { color: var(--text); background: var(--hover); }
.clock-set { margin-left: 8px; font: 500 12px var(--font); color: var(--accent); }
.clock-tip { display: none; position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); width: max-content; max-width: min(320px, calc(100vw - 32px));
  padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
  font: 400 13px/1.5 var(--font); white-space: pre-line; box-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }
.clock-wrap:hover .clock-tip, .clock:focus + .clock-tip { display: block; }
@media (max-width: 640px) { .clock { padding: 5px 7px; } }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--avatar); color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none;
}

/* The member's Discord avatar (#1334) over their initials, which show if it's missing or fails. */
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The phone's bottom tab bar (mockups 1d/1e). */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  padding: 0 10px env(safe-area-inset-bottom);
  background: var(--topbar); border-top: 1px solid var(--border);
}
/* Each tab's icon over its name (#2052); in the More menu, before it as in the top nav. */
.tabbar a { flex: 1; display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; min-height: 52px; font-size: 12px; }
.tabbar a.active { color: var(--accent-ink); }
/* More (#1205): the links past the fourth, in a menu above the bar. */
.tab-more { flex: 1; display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; min-height: 52px; padding: 0;
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.tab-more[aria-expanded="true"], .tab-more.active { color: var(--accent-ink); }
.tab-more-menu {
  position: absolute; right: 10px; bottom: calc(100% + 6px); min-width: 160px;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--topbar); border: 1px solid var(--border); border-radius: 10px;
}
.tabbar .tab-more-menu a { flex-direction: row; gap: 10px; justify-content: flex-start; min-height: 44px; padding: 0 12px; font-size: var(--text-sm); }
body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }

@media (min-width: 640px) { .topbar-inner { padding: 0 28px; } }
@media (min-width: 1005px) {
  .bar-member .nav { display: flex; }
  .bar-member ~ .tabbar { display: none; }
  body:has(.bar-member) { padding-bottom: 0; }
  body:has(.bar-member) .post-actions, body:has(.bar-member) .team-edit-acts, body:has(.bar-member) .sr-follow { bottom: 0; }
}
@media (min-width: 1065px) {
  .bar-officer .nav { display: flex; }
  .bar-officer ~ .tabbar { display: none; }
  body:has(.bar-officer) { padding-bottom: 0; }
  body:has(.bar-officer) .post-actions, body:has(.bar-officer) .team-edit-acts, body:has(.bar-officer) .sr-follow { bottom: 0; }
  body:has(.bar-officer) .pickbar { bottom: 0; }
}
@media (min-width: 1175px) {
  .bar-admin .nav { display: flex; }
  .bar-admin ~ .tabbar { display: none; }
  body:has(.bar-admin) { padding-bottom: 0; }
  body:has(.bar-admin) .post-actions, body:has(.bar-admin) .team-edit-acts, body:has(.bar-admin) .sr-follow { bottom: 0; }
  body:has(.bar-admin) .pickbar { bottom: 0; }
}

/* The admin portal's own top bar (#3747): the brand with its Admin tag, the portal's pages, Open the app and the avatar. It's
   short at every width, so its nav stays in the bar and there's no tab bar; on a phone the links are their icons alone. */
.bar-portal .topbar-inner { gap: var(--space-4); }
.bar-portal .nav { display: flex; }
.bar-portal ~ .tabbar { display: none; }
body:has(.bar-portal) { padding-bottom: 0; }
.admin-tag { color: var(--accent-ink); background: var(--accent-soft); }
.bar-portal .open-app { margin-left: auto; }
@media (max-width: 639px) {
  .bar-portal .nav { gap: var(--space-4); }
  .bar-portal :is(.nav-label, .settings-link-label) { display: none; }
}

/* Page body. */

.raidslot {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-6);
}
.raidslot > div > * + * { margin-top: var(--space-4); }

/* Signed out (#3127): the sign-in screen alone, centred, with no top bar or tab bar. */
.bar-signed-out, .bar-signed-out ~ .tabbar { display: none; }
body:has(.bar-signed-out) { padding-bottom: 0; }
.signed-out { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); text-align: center; }
.raidslot > .signed-out > * { margin: 0; max-width: 40ch; }
.signed-out-logo { display: block; height: 44px; width: auto; }

.page-title { margin: var(--space-2) 0 var(--space-3); }
/* A page's header (#3178): its nav icon in a tile edged with the logo's gradient (the landing's icon tiles), the title, and a
   muted line on what the page is for, over a faint haze of the logo's blues and a hairline fading out under it. */
.page-header { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4);
  margin: var(--space-2) 0 var(--space-5); padding-bottom: var(--space-4); }
.page-header::before, .team-head::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -40px; top: -28px;
  width: min(520px, 85vw); height: calc(100% + 40px);
  background: radial-gradient(closest-side at 22% 50%, var(--logo-haze-cyan), transparent), radial-gradient(closest-side at 62% 45%, var(--logo-haze-indigo), transparent); }
.page-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-line), var(--border) 45%, transparent); }
.team-head { position: relative; isolation: isolate; }
.page-icon { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 22%; color: var(--logo-cyan);
  background: radial-gradient(120% 120% at 30% 20%, var(--surface-3) 0%, var(--surface) 60%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 8px 24px -12px rgb(10 132 248 / 0.55); }
.page-icon::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: var(--logo-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.page-icon svg { width: 26px; height: 26px; }
.page-header-text { flex: 1 1 0; min-width: 0; }
.page-header .page-title { margin: 0; font-size: clamp(1.75rem, 4.5vw, 2.375rem); overflow-wrap: anywhere; }
.page-header .page-eyebrow { margin-bottom: 2px; }
.page-header .page-sub { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.page-header .page-sub:empty { display: none; }
.page-header > .sr-back { align-self: center; }
/* In a page whose blocks are a grid apart (Settings, the admin portal), the grid's gap is most of the space under it. */
.settings-page > .page-header + div > .card:first-child { margin-top: 0; }
/* On the narrow pages (Settings, Server settings, the admin portal), a smaller title and less room under the hairline. */
.settings-page .page-header { margin-top: 0; padding-bottom: var(--space-2); margin-bottom: var(--space-4); }
.settings-page .page-header .page-title { font-size: clamp(1.75rem, 4.5vw, 2rem); }
.settings-page > .page-header { margin-bottom: 0; }
/* Server settings' plan (#3178): its chip and Upgrade, a small link, after the server's name above the title, a dot apart. */
.page-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); }
.page-eyebrow .plan-badge { display: contents; }
.page-eyebrow .eyebrow-dot { color: var(--faint); }
.page-eyebrow .badge { padding: 0 6px; font-size: 11px; line-height: 18px; }
.plan-upgrade-link { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-radius: 4px; }
.plan-upgrade-link:hover, .plan-upgrade-link:focus-visible { text-decoration: underline; }
@media (max-width: 559px) {
  .page-header { column-gap: var(--space-3); margin-bottom: var(--space-4); padding-bottom: var(--space-3); }
  .page-icon { width: 44px; height: 44px; }
  .page-icon svg { width: 22px; height: 22px; }
}
.lede { color: var(--muted); margin: 0 0 var(--space-4); }
.hint { color: var(--muted); font-size: var(--text-sm); }

/* The footer's legal links, and the legal pages themselves (#841). */
/* On a short page the footer sits at the window's bottom, not under the last card: the app a column at least the window high. */
body { min-height: 100dvh; display: flex; flex-direction: column; }
#app:not(:empty), #app > div { flex: 1 0 auto; display: flex; flex-direction: column; }
#app > div > .raidslot { width: 100%; }
.site-footer { display: flex; gap: var(--space-4); justify-content: center; margin-top: auto; padding: var(--space-6) var(--space-4); font-size: var(--text-sm); }
.site-footer a { color: var(--muted); }
.legal { max-width: 720px; }
.legal mark { padding: 0 var(--space-1); }
.legal .brand-link { display: inline-block; margin-top: var(--space-4); }
.legal .brand-link .logo { display: block; height: 28px; width: auto; }
.error {
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}
.back {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4) 18px;
  margin: var(--space-4) 0;
}
.card h2, .card h3 { margin-bottom: var(--space-3); }
.empty { color: var(--muted); }

/* Buttons and form controls: 44px targets, 16px text so phones don't zoom. */

.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font: 500 var(--text-sm)/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, button:hover { background: var(--hover); }
/* A signup button's icon (#2898), before its label. */
.btn-icon { width: 18px; height: 18px; flex: none; margin-right: var(--space-2); }
/* Sign up's tick once signed up (#3025), in the icon's place and size, the label's colour. */
.signup-tick { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; line-height: 1; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-success { background: var(--success); border-color: var(--success); color: var(--success-text); font-weight: 600; }
.btn-success:hover { background: var(--success-hover); border-color: var(--success-hover); }
.btn-small { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
/* Pressed (#2135): a press sinks the button a pixel and darkens it, so a click always shows; reduced motion keeps the shade. */
.btn:active:not(:disabled), button:active:not(:disabled) { filter: brightness(0.85); }
.btn:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .btn:active:not(:disabled), button:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
}
/* Busy (#2135, Busy.scala): while its request runs, a spinner in place of the label, at the button's own size; disabled. */
button.busy { position: relative; color: transparent; cursor: progress; --spin: var(--text-2); }
button.busy:disabled { opacity: 1; }
button.busy > * { visibility: hidden; }
button.busy::after { content: ""; position: absolute; top: 50%; left: 50%; width: 1em; height: 1em; margin: -0.5em 0 0 -0.5em;
  border: 2px solid var(--spin); border-right-color: transparent; border-radius: 50%; animation: btn-spin 0.7s linear infinite; }
.btn-primary.busy { --spin: var(--accent-text); }
.btn-primary.busy:disabled { background: var(--accent); border-color: var(--accent); }
.btn-danger.busy { --spin: var(--danger); }
/* Copy (#2294, Copy.scala): "✓ Copied" in the success colour after a copy, stacked on the label so the width holds. */
.copy { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.copy-btn { display: inline-grid; white-space: nowrap; }
.copy-btn > span { grid-area: 1 / 1; text-align: center; }
.copy-btn .copy-done, .copy-btn.copied .copy-idle { visibility: hidden; }
.copy-btn.copied .copy-done { visibility: visible; color: var(--confirmed); font-weight: 600; }
.copy-said { margin: 0; }
.btn-success.busy { --spin: var(--success-text); }
.btn-success.busy:disabled { background: var(--success); border-color: var(--success); }
@media (prefers-reduced-motion: reduce) { button.busy::after { animation-duration: 1.6s; } }
@keyframes btn-spin { to { transform: rotate(360deg); } }

input, select {
  width: 100%;
  min-height: var(--touch);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: var(--text-md)/1.3 var(--font);
}
input::placeholder { color: var(--muted); opacity: 0.8; }
input:focus-visible, select:focus-visible { border-color: var(--focus); }

.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field label { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.form-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.actions .btn { width: 100%; }
.input-row { display: flex; flex-direction: column; gap: var(--space-2); }
/* A row's action stays on one line (#1494): longer labels, as in Spanish, don't wrap beside a full-width select. */
.input-row > .btn { white-space: nowrap; }
.officer .field { margin-top: var(--space-4); }
/* The officer tools' sections (#2445): each titled as a heading, a line between them. */
.officer .officer-section { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.officer > h3 + .officer-section { margin-top: 0; padding-top: 0; border-top: 0; }
.officer .section-label, .loot-won .section-label { margin: 0 0 var(--space-1); font: 600 var(--text-md)/1.2 var(--font-display); text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text); }
/* A checkbox right beside its text, which checks it too (#2445). */
.field .check-row { display: flex; align-items: center; gap: var(--space-2); min-height: 40px; font: 14px var(--font); text-transform: none;
  letter-spacing: normal; color: var(--text); cursor: pointer; }
.check-row input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--accent); }
.confirm-box { border: 1px solid var(--danger); background: var(--danger-soft); border-radius: var(--radius); padding: var(--space-4); }
.confirm-box p { margin: 0 0 var(--space-3); }
.confirm-box .field { margin: 0 0 var(--space-3); }
.warn.check { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--danger); margin-bottom: var(--space-3); }
.warn.check input[type=checkbox] { width: 18px; height: 18px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--danger); }
/* The title as it must be typed: not uppercased like the label around it. */
.confirm-box .exact { text-transform: none; letter-spacing: 0; font: 600 13px var(--font-mono); color: var(--text); }
.officer .actions { margin-top: 0; }
/* Soft reserves (#1072): the link takes the row; the select only what it needs. */
.reserves-choice .input-row input { min-width: 0; }

@media (min-width: 560px) {
  .reserves-choice .input-row select { flex: 0 1 12rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .btn { width: auto; }
  .input-row { flex-direction: row; }
  .input-row input { flex: 1; }
  .input-row > .btn, .input-row > .copy { flex: none; }
}

/* Home: the raid list as tappable rows. */

.events { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.event {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: var(--touch);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}
.event:hover { background: var(--hover); border-color: var(--border-strong); }
.event-title { font: 600 1.375rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); color: var(--muted); font: 12px var(--font-mono); }
.badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--muted);
  font: 500 11px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Delete my data (#1156): apart at the bottom of Settings, in the danger colour. */
.danger-zone { margin-top: var(--space-6); border-color: var(--danger); }
.danger-zone h3 { color: var(--danger); margin: 0 0 var(--space-2); }
.deleted-list { margin: 0 0 var(--space-3); padding-left: var(--space-5); display: grid; gap: 4px; }

/* Roster: officer tools, composition, then one card per section. */



/* The officer's changes since confirming, clear of the logs field above. */
.changes { margin-top: var(--space-4); }
.changes h3 { margin-bottom: var(--space-2); }

.roster { list-style: none; margin: 0; padding: 0; }
.roster li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
}
.roster li:first-child { border-top: 0; padding-top: 0; }
.roster-line { min-width: 0; }

/* A character's name in its class's colour (#2031), from WowClasses.ink: WoW's own, the darkest brightened for the navy. */
.class-ink { color: var(--class-ink); }
/* A link out (#2031): its site's icon by it (#2454, was a ↗), underlined on hover and focus, the pointer; the Roster's names and
   the cards' links alike. */
a.ext-link { text-decoration: none; cursor: pointer; }
a.ext-link:hover, a.ext-link:focus-visible { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.ext-mark { display: inline-block; margin-left: 4px; opacity: 0.8; text-decoration: none; }
/* Classic Armory's, Warcraft Logs' (#2454) and Raider.IO's (#2458) icons, Natarus's: 16px, on the text's line. */
.site-icon { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -3px; object-fit: contain; }
a.ext-link:hover .ext-mark, a.ext-link:focus-visible .ext-mark { opacity: 1; }

/* A class tag (#961): the three-letter code on a tint of the class's colour, lightened to read on the dark panels. */
.class-tag {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--class-color) 30%, var(--surface));
  color: color-mix(in oklab, var(--class-color) 55%, #fff);
  font: 500 10px var(--font-mono);
}
/* Blizzard's icon (#974) over the tag: 24px, rounded, on the class's tint. */
.class-tag { position: relative; }
.class-icon { position: absolute; inset: 3px; width: 24px; height: 24px; border-radius: 4px; object-fit: cover; }
.class-tag.none { background: var(--surface-3); color: var(--muted); }

/* A signup status: its colour plus the word. */
.status { margin-left: auto; font-size: 12px; white-space: nowrap; color: var(--status-color, var(--muted)); }
.status.confirmed { --status-color: var(--confirmed); }
.status.tentative { --status-color: var(--tentative); }
.status.late { --status-color: var(--late); }
.status.missing { --status-color: var(--missing); }

/* Characters and attendance: plain lists of rows. */

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}
.item .class-tag { margin-right: var(--space-1); }
.item-body { flex: 1 1 200px; min-width: 0; }
.item.main { border-color: var(--accent-line); background: var(--accent-soft); }
/* Editing or deleting a hand-entered character (#1371) opens under its row. */
.char-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* The characters search (#1454): the field, and "3 of 42" while it hides some. */
/* Linking Battle.net (#2579): the button, why link each account, how to switch; and when a link brought back one already linked. */
.char-link { margin-bottom: var(--space-4); }
.char-link p { margin: 0 0 var(--space-2); }
.char-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.char-add { margin-bottom: var(--space-4); }
.char-link .char-same { border-left: 3px solid var(--warn); margin-bottom: var(--space-3); }
.char-search { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-3); }
.char-search input { flex: 1; min-width: 0; }
.char-search .hint:empty { display: none; }
.list > .item[hidden], .card.empty[hidden] { display: none; }
/* Linked Battle.net accounts (#1455): each heads its characters, Unlink at the end of its heading; hand-entered ones follow. */
.char-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-2); }
.char-group-head h3 { font-size: 16px; }
.char-group-head .btn { margin-left: auto; }
/* The linked accounts, then a collapsible section per game version (#2037), its client's icon, name and tally in its head. */
.char-accounts { margin: 0 0 var(--space-4); }
.char-accounts > div + div { margin-top: var(--space-2); }
.char-accounts .confirm-box { margin: 0 0 var(--space-2); }
.char-version + .char-version { margin-top: var(--space-3); }
.char-version[hidden], .char-version [hidden] { display: none; }
.char-version-title { margin: 0; font-size: 16px; }
.char-version-head { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--touch); padding: var(--space-2) var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.char-version-head[aria-expanded="true"] { margin-bottom: var(--space-3); }
.char-version-head:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.char-version-name { font-weight: 600; }
.char-version-head .caret { margin-left: auto; color: var(--muted); }
.item .char-edit, .item .confirm-box { flex: 1 1 100%; }
/* A card per character (#2019): who, then spec, offspec, role and professions; side by side when wide, and the one being
   edited takes the whole row. */
.char-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.char-cards > [hidden] { display: none; }
/* Cards side by side line up (#3179): each spans nine of the list's rows, its head, its six facts (a subgrid of them, so a
   fact taking two lines in one card takes them in its row's others), raider.io's line and its buttons; the one being edited
   goes back to a plain column. */
.char-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 9; gap: var(--space-3); padding: var(--space-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--text-sm); min-width: 0; }
.char-card > * { min-width: 0; }
.char-card.open { display: flex; flex-direction: column; grid-row: auto; }
.char-card.favorite { border-color: var(--accent-line); background: var(--accent-soft); }
/* A card's star (#2643): a favorite or not, as a toggle beside its sites' icons, filled in the accent when it is. */
.char-star { font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0; min-height: 0; height: 32px; }
.char-star[aria-pressed="true"] { color: var(--accent); }
.char-star:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.char-card.open { grid-column: 1 / -1; }
.char-card-head { display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: var(--space-3); min-width: 0; }
/* A character's game, realm, class and where it came from (#3179): a line of their own under the portrait, the name and the icons. */
.char-head-line { flex: 1 1 100%; order: 4; margin-top: 0; }
.char-card-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* A card's portrait (#2574): Blizzard's avatar, 44px, over the class tag that stands in without one. */
.char-portrait { position: relative; flex: none; width: 44px; height: 44px; }
.char-portrait .class-tag { width: 44px; height: 44px; border-radius: 6px; }
.char-portrait .class-icon { inset: 4px; width: 36px; height: 36px; }
.char-avatar { position: absolute; inset: 0; width: 44px; height: 44px; border-radius: 6px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--border-strong); }
.char-card-title strong { font-size: 16px; }
/* A card's level (#2574): a chip by the name, light on the raised surface so it reads at a glance. */
.char-level { display: inline-block; margin-left: var(--space-2); padding: 1px 6px; border-radius: 4px; vertical-align: 2px;
  background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); font: 600 11px/1.4 var(--font-mono); white-space: nowrap; }
/* A hand-entered character's values (#2591): each a button that turns into its input or picker in place. */
.char-inline { background: none; border: 0; border-bottom: 1px dashed var(--border-strong); border-radius: 0; padding: 0; margin: 0; font: inherit;
  color: inherit; cursor: pointer; text-align: left; min-height: 0; line-height: inherit; }
.char-inline:hover, .char-inline:focus-visible { border-bottom-color: var(--accent); color: var(--text); }
.char-inline-level { margin-left: var(--space-2); }
.char-inline-level .char-level { margin-left: 0; }
.char-inline-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin-top: var(--space-1); }
.char-inline-field { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.char-inline-field .listbox, .char-inline-field .combo { flex: 1 1 12rem; min-width: min(12rem, 100%); }
.char-inline-pair { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.char-inline-pair select { width: auto; }
.char-inline-name input { width: min(14rem, 100%); }
.char-inline-level input { width: 6rem; }
/* While a value is open, the head gives the title its own row, and the line drops its dots. */
.char-card-head:has(.char-inline-field) { flex-wrap: wrap; }
.char-card-head:has(.char-inline-field) .char-card-title { flex: 1 1 100%; order: 3; }
.char-inline-line:has(.char-inline-field) .char-dot { display: none; }
.char-facts { display: grid; grid-template-columns: max-content 1fr; grid-row: span 6; grid-template-rows: subgrid; gap: var(--space-1) var(--space-3); margin: 0; }
.char-card.open .char-facts { grid-row: auto; grid-template-rows: none; }
.char-facts dt { color: var(--muted); align-self: start; }
.char-facts dd { align-self: start; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0; min-width: 0; overflow-wrap: anywhere; }
.char-fact { display: inline-flex; align-items: center; gap: 6px; }
/* A character's teams (#2683): each a small chip linking to its page. */
.char-team { display: inline-block; padding: 0 var(--space-2); border: 1px solid var(--border-strong); border-radius: 999px; color: var(--accent-ink);
  text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-team:hover, .char-team:focus-visible { border-color: var(--accent-line); text-decoration: underline; }
/* Its server, muted after its name, when another of the character's teams shares the name (#2710); the server's name gives way first. */
.char-team:has(.char-team-server) { display: inline-flex; gap: 6px; align-items: baseline; }
.char-team-server { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fact-icon { width: 18px; height: 18px; flex: none; border-radius: 3px; }
.char-card .char-actions { align-self: start; }
.char-card p { margin: 0; }
/* A card's pages elsewhere (#2458): its sites' icons at the head's end, each on a button, outlined on hover and focus. */
.char-links { display: flex; flex: none; gap: var(--space-1); margin-left: auto; align-self: flex-start; }
.site-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid var(--border-strong); background: var(--surface-2); }
.site-btn .site-icon { width: 20px; height: 20px; }
.site-btn:hover, .site-btn:focus-visible { background: var(--surface-3); border-color: var(--accent-line); }
.char-secondary { border: 0; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.char-secondary legend { padding: 0; margin-bottom: var(--space-2); }
.char-secondary .check { display: inline-flex; align-items: center; gap: var(--space-2); }
.char-secondary input[type=checkbox] { width: 18px; height: 18px; margin: 0; }
.char-edit .actions { margin-top: var(--space-3); }
/* A character's Specs & professions (#2992): a dialog centred over the page, the cards' grid as it was behind it and the page's
   scroll held; a full-screen sheet on phones. */
html:has(.char-dialog[open]) { overflow: hidden; }
.char-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: var(--space-5); overflow: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: var(--text-sm); }
.char-dialog::backdrop { background: rgb(3 7 18 / 0.72); }
.char-dialog-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-4); font-size: 18px; }
.char-dialog-title .hint { font-size: var(--text-sm); font-weight: 400; }
@media (max-width: 639px) {
  .char-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: var(--space-4); border: 0; border-radius: 0; }
}
.item.outcome-in { border-left: 4px solid var(--ok); }
.item.outcome-bench { border-left: 4px solid var(--warn); }
.item.outcome-absent { border-left: 4px solid var(--danger); }
.summary { font-size: var(--text-lg); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .btn, button, .event, .nav a { transition: background-color 120ms, border-color 120ms, color 120ms, transform 80ms, filter 80ms; }
}

/* The raid page's header (#962, mockup 1a): tags, title, time, invites and leader; officers' actions; the KPI strip. */
.raid-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4) var(--space-5); }
.raid-title { flex: 1 1 320px; min-width: 0; }
.raid-title .page-title { margin: 0; }
/* Blizzard's art for the raid (#1072, #1294): whole, at its own shape (the journal's 600×300 tile, never upscaled past it),
   with the raid's name small on a bottom gradient. On the raid page it leads the header; beside the title from 720px. */
.raid-banner { position: relative; margin: 0; width: 100%; max-width: 600px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); }
.raid-banner img { display: block; width: 100%; height: auto; }
.raid-banner figcaption { position: absolute; inset: auto 0 0 0; padding: 24px 12px 8px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #fff;
  background: linear-gradient(transparent, rgb(7 13 28 / 0.85)); text-shadow: 0 1px 2px rgb(0 0 0 / 0.6); }
/* Top-aligned with the title column, so it stays put while an in-place editor (#1629) opens or closes. */
.raid-head > .raid-banner { flex: 1 1 100%; align-self: flex-start; }
@media (min-width: 720px) { .raid-head > .raid-banner { flex: 0 0 280px; } }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.tag { font: 500 11px/1.4 var(--font-mono); padding: 4px 8px; border-radius: 4px; background: var(--surface-3); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tag.accent { background: var(--accent-soft); color: var(--accent-ink); }
.raid-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) 20px; margin-top: 10px; color: var(--muted); font-size: var(--text-sm); }
/* Its details sit at text height, so a wrapped one (e.g. the leader on a phone, #1630) isn't a 44px row away; the target
   stays larger than the text, as `.info`'s does. */
.raid-meta .in-place { position: relative; min-height: 0; }
/* Why a team pick was refused (#3689): its own line under the meta row, the select left where it was. */
.raid-meta .raid-team-said { flex-basis: 100%; }
.raid-posted { margin: 6px 0 0; color: var(--muted); font-size: var(--text-sm); }
.raid-posted a { color: var(--text); }
/* Its officers' channel (#2445): as the link reads, a button opening Move to another channel. */
.raid-posted .in-place { min-height: 0; margin: 0; padding: 0 2px; font-family: var(--font-mono); color: var(--text); text-decoration: underline;
  cursor: pointer; }
.raid-posted.warn { color: var(--warn); }
.raid-move { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
/* Move to another channel (#2206): its picker beside it, on one row, as tall as the header's other actions. */
.raid-move-pick { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: var(--space-2); }
.raid-move-pick select { max-width: 16rem; min-height: var(--touch); }
.raid-meta .in-place::before { content: ""; position: absolute; inset: -8px -4px; }
/* The officers' actions, then Delete (#1913): a row beside the title; on a phone, re-post with the lock toggle beside it
   (#1974), and Delete full width under them (#2445). */
.raid-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 559px) {
  .raid-actions { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .raid-actions .lock-toggle { justify-self: start; }
  /* With the reserves' toggle too (#3086), the padlock and SR open or closed (#3091) beside Re-post signup, on its row. */
  .raid-actions:has(.reserves-toggle) { grid-template-columns: 1fr auto auto; }
  .raid-actions .removal-delete { grid-column: 1 / -1; }
  /* Move to another channel (#2206): its own row, its picker under it. */
  .raid-actions .raid-move { grid-column: 1 / -1; }
  .raid-move-pick { flex-wrap: wrap; }
  .raid-move > .btn, .raid-move-pick, .raid-move-pick select, .raid-move-pick .btn { flex: 1 1 100%; max-width: 100%; }
}
/* An icon-only button (#1974): square, its name in its tooltip and label. The lock toggle shows its padlock in the accent
   while the roster is locked. */
.btn.icon-btn { width: var(--touch); padding: 0; flex: none; }
.btn.icon-btn > .tab-icon { margin: 0; width: 18px; height: 18px; }
.lock-toggle.locked { color: var(--accent-ink); border-color: var(--accent); }
/* The reserves toggle's SR closed (#3091): filled red, as SR open is filled green, like a signup's Absent once picked. */
.reserves-toggle.btn-danger, .reserves-toggle.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: var(--bg); font-weight: 600; }
/* What its soft reserves do on their own, or that the officers' choice holds (#3687): one line under the actions. */
.reserves-hint { margin: var(--space-2) 0 0; max-width: 70ch; }
/* Cancel's or Delete's question, the header's full width under its title and actions. */
.raid-header > .removal-ask { margin-top: var(--space-4); }
/* The header's details, which its officers click to change in place (#1629), as a role's spots (#1460). */
.in-place { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; background: none;
  border: 1px dashed transparent; border-radius: 4px; padding: 0 4px; margin: 0 -5px; cursor: text; max-width: 100%; }
.in-place:hover, .in-place:focus-visible { border-color: var(--border-strong); }
.in-place.unset { color: var(--muted); font-style: italic; }
.in-place-input { font: inherit; color: var(--text); text-transform: none; width: 100%; max-width: 60ch; padding: 2px 6px;
  background: var(--surface-2); border: 1px solid var(--focus); border-radius: 4px; }
.in-place-input.invites, .in-place-input.duration { width: 6em; }
/* A raid's start, edited with Create event's picker (#2462): its pop as wide as the form's, within a phone's screen. */
.in-place-picker .when-pop { width: min(340px, calc(100vw - 32px)); }
textarea.in-place-input { resize: vertical; }
/* The image and the tags, for officers: clicked, they go to the officer tools' fields that change them. */
.jumps { cursor: pointer; border-radius: 4px; }
.jumps:hover, .jumps:focus-visible { outline: 1px dashed var(--border-strong); outline-offset: 2px; }
@media (min-width: 560px) { .raid-actions .btn { white-space: nowrap; } }
/* Repeat every week (#2089, 5/6): its button, with why it's off at Free's limit, or that the raid repeats, with a link to
   Schedules; nothing below the Officer level. A row of its own on a phone. */
.raid-repeat:empty { display: none; }
.raid-repeat, .raid-repeat-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.raid-repeat .hint { margin: 0; }
@media (max-width: 559px) { .raid-actions .raid-repeat { grid-column: 1 / -1; } .raid-repeat-pick, .raid-repeat-pick .btn { flex: 1 1 100%; } }
.post-repeat .hint { margin: 4px 0 0; }
/* Its checkbox (#2392), and with no raid picked its every 3 or 7 days beside it; under it on a narrow phone. */
.post-repeat-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); min-height: 38px; }
.post-repeat .post-repeat-check { display: flex; align-items: center; gap: var(--space-2); margin: 0; font: inherit; font-size: 14px;
  text-transform: none; letter-spacing: normal; color: var(--text); }
.post-repeat-check input[type=checkbox] { width: auto; min-height: 0; }
.post-repeat-row select { width: auto; flex: 0 1 auto; }
/* Post the next one (#3430), under it once ticked, with when that is. */
.post-repeat-after { margin-top: var(--space-3); }
.post-repeat-after select { width: auto; max-width: 100%; }
/* A group (#1630) and its party buffs, under its slots. */
.group { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.group-buffs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px; }
.group-buff { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; font-size: 12px;
  background: var(--surface-3); color: var(--text-2); }
.group-buff .buff-icon { width: 18px; height: 18px; border-radius: 50%; }
/* The composition board on the raid page (#1983): groups in columns, each member once, edged in their role's colour. */
.comp-board { margin-top: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comp-board .board-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.comp-board .board-head h2 { font-size: 22px; }
.comp-board .strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; align-items: center; }
.comp-board .chip, .event-roles .chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
/* A role's icon (#2612), in its colour: before its name in chips, spots' and roster roles' labels and the pool's filter. */
.role-icon { flex: none; vertical-align: -3px; margin-right: 4px; }
.role-icon.tank { color: var(--tank); } .role-icon.healer { color: var(--healer); } .role-icon.dps { color: var(--dps); }
.comp-board .chip .role-icon, .event-roles .chip .role-icon { margin-right: 0; }
.event-roles .chip .role-icon { width: 14px; height: 14px; }
.comp-board .chip .n, .event-roles .chip .n { font: 500 12px var(--font-mono); color: var(--accent-ink); }
.comp-board .chip.lock { color: var(--accent-ink); border-color: var(--accent-line); }
.comp-board .chip .tab-icon { width: 13px; height: 13px; margin: 0; }
.comp-board .tank, .event-roles .tank { --role: var(--tank); } .comp-board .healer, .event-roles .healer { --role: var(--healer); }
.comp-board .dps, .event-roles .dps { --role: var(--dps); }
.comp-board .board-body { display: grid; gap: 14px; padding: 14px 16px 16px; align-items: start; }
.comp-board .gg { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: start; min-width: 0; }
@media (min-width: 900px) { .comp-board .gg { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.comp-board .group .column-head { padding: 10px 12px; gap: 8px; }
.comp-board .group .column-head h3 { font-size: 16px; }
.comp-board .group .cards { padding: 8px; gap: 5px; }
.comp-board .group .group-buffs { padding: 0 8px 8px; }
.comp-board .group .group-remove { margin: 0 8px 8px; align-self: flex-start; }
/* A row's groups share one height (#2995): each stretches to the row, its slots fill it and its buffs, if any, sit at its foot. */
.comp-board .group { align-self: stretch; display: flex; flex-direction: column; }
.comp-board .group .cards { flex: 1 1 auto; align-content: start; }
.comp-board .group-buff { background: var(--surface-3); color: var(--text-2); }
/* A card: its role as the left edge, the class tag, name and spec, then its answer and pin. */
.seat { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 6px 6px 6px 9px; border-radius: 6px;
  background: var(--surface-3); border-left: 3px solid var(--role); }
.seat .class-tag { width: 28px; height: 28px; font-size: 9.5px; flex: none; }
.seat .who .name { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.seat .who .name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The card's character pages (#2454): their icons after the name, faint until hovered, a hit area around each that takes no room. */
.seat .site-link { position: relative; display: inline-flex; flex: none; opacity: 0.8; }
.seat .site-link::before { content: ""; position: absolute; inset: -4px -2px; }
.seat .site-link:hover, .seat .site-link:focus-visible { opacity: 1; }
.seat .who .sub { font-size: 11px; display: flex; min-width: 0; }
/* The member's Discord name beside their spec (#2249): the spec gives way first. */
.seat .sub .spec { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.seat .sub .contact { flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.seat .sub .contact::before { content: "\00b7"; padding: 0 .35em; color: var(--muted); }
.seat .sub a.contact { text-decoration: none; }
.seat .sub a.contact:hover, .seat .sub a.contact:focus-visible { color: var(--accent-ink); text-decoration: underline; }
.seat .ends { display: flex; align-items: center; gap: 4px; flex: none; }
.seat .answer { width: 1.25em; text-align: center; font-size: var(--text-sm); }
.seat .answer.confirmed { color: var(--confirmed); }
.seat .pin { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; color: var(--faint); }
.seat .pin.on { color: var(--accent-ink); }
.seat .pin .tab-icon { width: 13px; height: 13px; margin: 0; }
/* A signup from outside a team's raid's roster (#3416): its name in its own colour, its mark after it, and a seat tinted. */
.seat.outsider { background: color-mix(in oklch, var(--outsider) 16%, var(--surface-3)); }
.seat.outsider .name-text, .seat .outside-team { color: var(--outsider); }
.seat .outside-team { display: inline-flex; flex: none; }
.seat .outside-team .tab-icon { width: 13px; height: 13px; margin: 0; }
.seat.free { justify-content: center; border: 1px dashed var(--border); background: transparent; color: var(--faint); font-size: 12px; }
.seat[draggable=true] { cursor: grab; -webkit-user-select: none; user-select: none; }
.seat.ghost, .comp-board .group-head.ghost { opacity: .4; }
.seat.drop, .comp-board .group-head.drop, .pool.drop, .pool-sec.drop { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--hover); }
.comp-board .group-head[draggable=true] { cursor: grab; }
.comp-board .group-head .grip { color: var(--muted); font-size: 14px; line-height: 1; }
button.pin { min-height: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.comp-board .strip .hint { margin: 0 0 0 auto; font-size: 12px; }
/* The toolbar (#2205): Build best composition (green), Clear groups (red) and Post composition. */
.board-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.board-tools .btn { min-height: 38px; padding: 6px 14px; }
.board-tools .more { position: relative; }
.board-tools .more > summary { list-style: none; width: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.board-tools .more > summary::-webkit-details-marker { display: none; }
.board-tools .more .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; display: grid; gap: 6px; padding: 8px; min-width: 180px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / 0.5); }
/* Auto-fill's proposal, over the same board: a banner, what moves marked new, each group's kind and buffs. */
.comp-board .proposal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 16px 0; padding: 12px 14px;
  border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.comp-board .proposal strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 17px; }
.comp-board .proposal p { margin: 0; font-size: 13px; color: var(--text-2); flex: 1 1 260px; }
.comp-board .proposal .acts { display: flex; gap: 8px; margin-left: auto; }
.comp-board .proposal .acts .btn { min-height: 38px; }
/* Clear groups' question (#2205), inline: keep the pinned, then Clear or Cancel. */
.comp-board .proposal.clear-ask { border-color: var(--danger); background: var(--danger-soft); }
.comp-board .proposal.clear-ask .keep { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.comp-board .proposal.clear-ask .keep input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
/* What Build best composition says instead of a proposal when the board is already the best (#2048). */
.comp-board .proposal.settled { border-color: var(--border-strong); background: var(--surface); }
.comp-board .proposal.settled p { font-size: 14px; color: var(--text); }
.comp-board .proposal-notes { margin: 8px 16px 0; display: grid; gap: 2px; }
.comp-board .proposal-notes p { margin: 0; font-size: 12px; color: var(--tentative); }
.seat.new { outline: 1px dashed var(--accent-line); outline-offset: -1px; }
.seat.new::after { content: attr(data-new); position: absolute; top: -7px; right: 6px; padding: 0 5px; border-radius: 3px; background: var(--accent); color: #fff;
  font: 600 9px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.comp-board .why { padding: 0 10px 10px; display: grid; gap: 2px; }
.comp-board .why p { margin: 0; font-size: 12px; color: var(--muted); }
.comp-board .why p.kind { color: var(--accent-ink); font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.comp-board .why p.lacks { color: var(--tentative); }
.comp-board .pool.dim { opacity: .55; }
/* Tap a member, then where they go (#1983): the free seats light up; a bar above the phone's tab bar says who's picked. */
.seat.picked { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--hover); }
.seat.free.target { border: 1px dashed var(--accent); color: var(--accent-ink); background: var(--accent-soft); cursor: pointer; }
.comp-board .group.target { outline: 2px dashed var(--accent-line); outline-offset: -2px; }
.pickbar { position: fixed; left: 0; right: 0; bottom: calc(52px + env(safe-area-inset-bottom)); z-index: 12; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--topbar); border-top: 1px solid var(--accent); }
.pickbar .who .name { font-size: 13px; }
.pickbar .btn { min-height: 40px; flex: none; }
/* Sin lugar: the one pool of who's coming without a seat; beside the groups, on a phone over them. The side column sticks,
   scrolling in itself when taller than the window (#2278). The buffs and the post's sync sit under the groups, at their width
   (#2455: under the pool they left the space under the groups empty); narrower, after the pool, as before. */
@media (min-width: 900px) {
  .comp-board .board-body { grid-template-columns: minmax(0, 1fr) 256px; }
  .comp-board .side-stack { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto;
    overscroll-behavior: contain; scrollbar-width: thin; }
  /* The groups and what's under them share one grid (#2463): the buffs fill the cells the groups' last row leaves empty (25 →
     beside Group 5), else take the whole width under them; the sync note always under, at the groups' width. */
  .comp-board .board-body .board-main { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; align-items: start; }
  .comp-board .board-main > .gg, .comp-board .board-main > .board-under { display: contents; }
  .comp-board .board-under > * { grid-column: 1 / -1; }
  .comp-board .board-under > .buffs { grid-column: span var(--beside); }
  .comp-board .board-under > .buffs .column-head { flex-wrap: wrap; row-gap: 4px; }
}
.comp-board .side-stack, .comp-board .board-main, .comp-board .board-under { display: grid; gap: 14px; align-content: start; min-width: 0; }
.comp-board .board-under:empty { display: none; }
@media (max-width: 899px) {
  .comp-board .board-main { display: contents; }
  .comp-board .board-under { order: 1; }
}
.comp-board .pool { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.comp-board .pool .column-head { padding: 10px 12px; }
.comp-board .pool .column-head h3 { font-size: 16px; }
.pool-tools { display: grid; gap: 8px; padding: 10px 10px 4px; }
.pool-tools input { min-height: 36px; font-size: 14px; width: 100%; }
.pool-tools .segmented { justify-self: start; max-width: 100%; }
/* Its role icons (#2612) fit the pool beside their names. */
.pool-tools .seg { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; }
.pool-tools .seg .role-icon { width: 14px; height: 14px; margin-right: 0; }
.pool-sec { padding: 6px 10px 4px; }
.pool-sec h4 { display: flex; align-items: center; gap: 6px; margin: 4px 2px 6px; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pool-sec h4 .n { margin-left: auto; }
.pool-sec h4 .dot { width: 6px; height: 6px; }
.pool-sec.sec-roster h4 { color: var(--accent-ink); }
.pool-sec .cards { padding: 0; gap: 5px; }
.pool-sec .hint { margin: 2px 2px 6px; font-size: 12px; }
/* The empty bench, a drop target all the same (#2205). */
.pool-sec .hint.drop-here { margin: 0 0 6px; padding: 10px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); text-align: center; color: var(--muted); }
.pool .seat { background: transparent; border: 1px dashed var(--border-strong); border-left: 3px solid var(--role); }
.pool .seat.inroster { background: var(--accent-soft); border-style: solid; border-color: var(--accent-line); border-left-color: var(--role); }
.seat .note { font: 500 10.5px var(--font-mono); color: var(--late); white-space: nowrap; }
.pool .rtag { font: 600 9.5px var(--font-mono); color: var(--role); letter-spacing: .04em; text-transform: uppercase; }
.pool .pool-empty { padding: 4px 12px 6px; margin: 0; font-size: 12px; }
/* The absent (#2255): cards like the bench's, edged red and a little faded, with their reason; the panel's last section ends it. */
.pool-sec .dot.absent { --status-color: var(--danger); }
.pool .seat.absent { background: var(--danger-soft); border-style: solid; border-color: var(--border); border-left-color: var(--danger); opacity: .85; }
/* Their reason (#2258): its own lines under the spec and Discord name, the card's width, quoted; three lines at most. */
.pool .seat.absent .reason { margin-top: 2px; font-size: 11px; font-style: italic; line-height: 1.35; color: var(--danger); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.pool .seat.absent .reason::before { content: "\201c"; }
.pool .seat.absent .reason::after { content: "\201d"; }
.pool > :last-child { padding-bottom: 10px; }
@media (max-width: 640px) {
  .comp-board { margin-left: -6px; margin-right: -6px; }
  .comp-board .board-head { padding: 12px; }
  .comp-board .strip { padding: 10px 12px 0; }
  .comp-board .board-body { padding: 12px; }
  .comp-board .gg { grid-template-columns: 1fr; }
  .comp-board .side-stack { display: contents; }
  .comp-board .pool { order: -1; }
  .comp-board .strip .hint { margin-left: 0; flex-basis: 100%; }
  .board-tools { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .board-tools .btn-primary { grid-column: 1 / -1; order: -1; }
  .board-tools .more > summary { width: 44px; }
  .comp-board .proposal.clear-ask .keep { flex-basis: 100%; }
  .comp-board .proposal { margin: 10px 12px 0; }
  .comp-board .proposal .acts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .comp-board .proposal .acts .btn:only-child { grid-column: 1 / -1; }
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; background: transparent; }
/* Off, Auto-fill and the like keep their green as their text (#2240): their own dark text is for the fill, unreadable without it. */
.btn-success:disabled:not(.busy) { color: var(--confirmed); }
.kpis {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: var(--space-5);
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.kpi { padding: 14px 18px; background: var(--surface); }
.kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font: 500 26px/1.2 var(--font-mono); margin-top: var(--space-1); }
.kpi-value .of { color: var(--muted); }
/* Your signup (#2678), between the raid's header and its KPIs (#2759): character and spec, then the answers as Discord's. */
/* It stands out (#2729): an accent edge and a faint accent wash over the card, its heading in the accent. The answers (#2898)
   wear the post's icons and Discord's colours: Sign up outlined in green, Absent in red, the rest neutral; their answer is
   filled, in its colour (neutral ones a step lighter, ringed), and says so to screen readers with aria-pressed. */
.card.raid-signup { border-color: var(--accent-line); background: linear-gradient(180deg, rgb(15 104 250 / 0.12), rgb(15 104 250 / 0.04)), var(--surface); }
.raid-signup .signup-answers .btn.on { background: var(--surface-3); border-color: var(--text-2); color: var(--text); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--text-2); }
.raid-signup .signup-signed { border-color: var(--success); color: var(--text); font-weight: 600; }
.raid-signup .signup-signed:not(.on):not(:disabled):hover { background: var(--success-soft); }
.raid-signup .signup-answers .signup-signed.on { background: var(--success); border-color: var(--success); color: var(--success-text); box-shadow: none; }
.raid-signup .signup-absent { border-color: var(--danger); }
.raid-signup .signup-absent:not(.on):not(:disabled):hover { background: var(--danger-soft); }
.raid-signup .signup-answers .signup-absent.on { background: var(--danger); border-color: var(--danger); color: var(--bg); box-shadow: none; }
/* Compact (#3441): less padding; its heading with its "i" (how it works, said there, not in paragraphs); then the character, the
   spec and the answers on one row, wrapping as the width needs; on a phone two rows, the picks then the five answers side by
   side, each its icon over its word. */
.card.raid-signup { padding: var(--space-3) var(--space-4); }
.raid-signup .signup-head { position: relative; display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.raid-signup .signup-head h3 { margin: 0; color: var(--accent-ink); }
.raid-signup .signup-head .info { position: relative; opacity: 1; }
/* Its tip opens from the card's edge, not the "i", so a phone's screen holds it. */
.raid-signup .signup-head .info-wrap { position: static; }
.raid-signup .signup-head .info-tip { left: 0; max-width: min(360px, 100%); }
.raid-signup > .hint { margin: 0 0 var(--space-2); }
.raid-signup .signup-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.raid-signup .signup-pick { display: flex; flex: 1 1 26rem; gap: var(--space-2); min-width: 0; }
.raid-signup .signup-pick .field { flex: 1 1 0; min-width: 0; margin: 0; }
.raid-signup .signup-pick .field:first-child { flex-grow: 1.3; }
.raid-signup .signup-row > .signup-none { flex: 1 1 100%; margin: 0; }
.raid-signup .signup-answers { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.raid-signup .signup-answers .btn { padding: var(--space-2) var(--space-3); }
@media (max-width: 639px) {
  .card.raid-signup { padding: var(--space-3); }
  .raid-signup .signup-pick { flex-basis: 100%; }
  .raid-signup .signup-answers { flex-basis: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .raid-signup .signup-answers .btn { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 12px; }
  .raid-signup .signup-answers .btn > .btn-icon { margin: 0; }
  .raid-signup .signup-answers .btn > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Absent's reason (#2745), under the answers, as Discord's form asks it. */
.raid-signup .signup-why { display: grid; gap: var(--space-1); margin-top: var(--space-3); }
.raid-signup .signup-why input.late-minutes { max-width: 10ch; }
/* The reserves another character cleared (#2926): a warning, apart from the Saved line, in the danger colour. */
.raid-signup .signup-cleared { color: var(--danger); }
/* The admin portal's weekly charts (#1745): one series each, in the accent, with its table for screen readers. */
.admin-charts { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.admin-chart { padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-chart-plot { display: block; width: 100%; height: auto; margin-top: var(--space-2); overflow: visible; }
.admin-chart-plot rect { fill: var(--accent); }
.admin-chart-plot rect.hit { fill: transparent; }
.admin-chart-plot g:hover rect:not(.hit) { fill: var(--accent-ink); }
.admin-chart-plot path { fill: none; stroke: var(--accent-ink); stroke-width: 2; }
.admin-chart-plot circle { fill: var(--accent-ink); stroke: var(--surface); stroke-width: 2; }
.admin-chart-legend { font: 500 14px/1.4 var(--font-mono); margin-top: var(--space-1); }
.admin-chart-axis { display: flex; justify-content: space-between; margin-top: var(--space-1); font-size: 12px; color: var(--muted); }
@media (min-width: 760px) { .admin-charts { grid-template-columns: repeat(3, 1fr); } .admin-charts-2 { grid-template-columns: repeat(2, 1fr); } }
.admin-section { margin: var(--space-6) 0 0; font-size: 15px; font-weight: 600; }
/* Every raid's Soft Reserves page (#2571): a game's heading beside its icon, then its raids as cards, two across where they fit. */
.admin-raids-game .admin-section { display: flex; align-items: center; gap: var(--space-2); }
.admin-raids-game .game-icon { width: 22px; height: 22px; }
.admin-raid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.event-row.admin-raid { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumb text go"; color: var(--text); text-decoration: none; }
.admin-raid-list > .admin-raid { margin: 0; }
a.admin-raid:hover { border-color: var(--border-strong); background: var(--hover); }
.admin-raid > .go { grid-area: go; font-size: 22px; color: var(--muted); }
/* Every class and spec of a game version (#2979): a card per class, two across where they fit; its specs one per line, each value
   wrapping under its name on a phone. What's missing is a badge in the warning colour. */
.admin-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.admin-classes-game { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.admin-classes-game .listbox { flex: 0 1 16rem; min-width: min(16rem, 100%); }
.admin-class-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.admin-class-list > .admin-class { margin: 0; }
.admin-class-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.admin-class-name { margin: 0; font-size: 17px; font-weight: 600; }
.admin-class-name .hint, .admin-spec-name .hint { font-weight: 400; font-size: 12px; }
.admin-icon { width: 32px; height: 32px; border-radius: 6px; flex: none; }
.admin-icon.spec { width: 24px; height: 24px; border-radius: 4px; }
.admin-icon.none { display: inline-grid; place-items: center; background: var(--surface-3); color: var(--warn); font: 600 13px var(--font-mono); box-shadow: inset 0 0 0 1px var(--warn); }
.admin-class-color { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.admin-class-color .swatch { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--border-strong); }
.admin-emoji { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.admin-emoji img { width: 20px; height: 20px; }
.admin-spec-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.admin-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.admin-spec-name { font-weight: 500; }
.badge.admin-gap { background: transparent; color: var(--warn); box-shadow: inset 0 0 0 1px currentColor; }
.admin-gaps { margin: 0; }
/* What follows a tile's value, smaller on its own line (#2578), so "$19.96" and "at $4.99 a month" never wrap into each other;
   the admin page as wide as its servers' table wants, and a section's first block right under its heading. */
.kpi-sub { font: 12px/1.4 var(--font-mono); color: var(--muted); margin-top: 2px; }
.settings-page.admin-page { max-width: 960px; }
.admin-page .admin-section + * > :first-child { margin-top: 0; }
/* The servers the bot is in (#2578), by id: a sortable table; on a phone, a card per server, each value under its column's name. */
.admin-servers-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-4) 0 var(--space-3); }
.admin-servers-tools input { flex: 1 1 220px; }
.admin-servers-tools .hint { flex: none; }
.admin-servers-tools .admin-servers-sort { display: none; }
.admin-servers-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-servers-table th, .admin-servers-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: right; font: 13px var(--font-mono); white-space: nowrap; }
.admin-servers-table :is(th, td).col-server, .admin-servers-table :is(th, td).col-premium { text-align: left; }
.admin-servers-table th button { all: unset; cursor: pointer; font: 500 12px var(--font); color: var(--muted); }
.admin-servers-table th[aria-sort=ascending] button::after { content: " ▲"; }
.admin-servers-table th[aria-sort=descending] button::after { content: " ▼"; }
.admin-servers-table th:is([aria-sort=ascending], [aria-sort=descending]) button { color: var(--text); }
.admin-servers-table tbody:last-child tr:last-child td { border-bottom: 0; }
.admin-servers-table td.col-server { color: var(--text); }
.admin-servers-table .admin-server-name { font-family: var(--font); white-space: normal; }
.admin-servers-table .admin-server-id { color: var(--muted); font-size: 11px; user-select: all; }
/* Premium we grant and revoke (#2949): where a server's comes from beside its badge, its actions, and the panel under its row. */
.admin-servers-table td.col-premium { white-space: normal; min-width: 180px; }
.admin-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.admin-source { font: 12px/1.35 var(--font); color: var(--muted); }
.admin-server-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
.admin-servers-table tr.admin-server-detail td { text-align: left; white-space: normal; font: var(--text-sm)/1.45 var(--font); background: var(--surface-2); }
.admin-grant, .admin-revoke, .admin-history { display: grid; gap: var(--space-3); max-width: 560px; }
.admin-revoke p, .admin-history ul { margin: 0; }
.admin-history ul { padding-left: 1.2em; display: grid; gap: 4px; }
.admin-grant label, .admin-grant-by-id label { display: grid; gap: 4px; font-size: var(--text-sm); color: var(--text-2); }
.admin-grant label.admin-grant-indefinite { display: flex; align-items: center; gap: var(--space-2); color: var(--text); cursor: pointer; }
.admin-panel-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.admin-grant-by-id { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); }
.admin-grant-by-id label { flex: 1 1 260px; }
.admin-server-off-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-3); }
.admin-server-off-list .admin-server-actions { justify-content: flex-start; }
@media (min-width: 760px) {
  .admin-servers-table td.col-actions .btn { min-height: 30px; padding: 4px 10px; font-size: 12px; }
  .admin-servers-table td.col-actions .admin-server-actions { flex-wrap: nowrap; }
}
.badge.premium.plan-cancelling { background: transparent; color: var(--tentative); box-shadow: inset 0 0 0 1px currentColor; }
.badge.premium.plan-lifetime { background: var(--accent); color: var(--accent-text); box-shadow: none; }
.admin-servers > .btn { margin-top: var(--space-3); }
@media (max-width: 759px) {
  .admin-servers-tools .admin-servers-sort { display: block; flex: 1 1 160px; }
  .admin-servers-table, .admin-servers-table tbody, .admin-servers-table tr, .admin-servers-table td { display: block; }
  .admin-servers-table { background: none; border: 0; }
  .admin-servers-table thead { display: none; }
  .admin-servers-table tr { margin-bottom: var(--space-2); padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
  .admin-servers-table td { display: flex; justify-content: space-between; gap: var(--space-3); padding: 3px 0; border: 0; }
  .admin-servers-table td::before { content: attr(data-label); font: 12px var(--font); color: var(--muted); }
  .admin-servers-table td.col-server { padding-bottom: 6px; font-weight: 600; }
  .admin-servers-table td.col-server::before { content: none; }
  .admin-servers-table tbody:last-child tr:last-child td { border-bottom: 0; }
  .admin-servers-table tr.admin-server-detail td { display: block; padding: 4px 0; background: none; }
  .admin-servers-table td.col-actions { padding-top: 8px; }
  .admin-servers-table td.col-actions::before { content: none; }
  .admin-server-actions { justify-content: flex-start; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 760px) {
  /* One row of equal tiles, however many the raid has (#1480 took Avg item level out; Buffs covered is optional). */
  .kpis { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .kpi:last-child:nth-child(odd) { grid-column: auto; }
}

/* A panel's head, a role's mark and a count against its spots (#963). */
.column-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.column-head h3 { font-size: 18px; line-height: 1; }
.count { margin-left: auto; font: 500 12px var(--font-mono); color: var(--accent-ink); }
.count.full { color: var(--muted); }
.count.over { color: var(--danger); }
.count-input { width: 3.5em; font: 500 12px var(--font-mono); padding: 1px 4px; }
.cards { display: grid; gap: 6px; padding: 10px; }
.who { flex: 1; min-width: 0; }
.who .name { font-size: var(--text-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-color, var(--faint)); }
.dot.confirmed { --status-color: var(--confirmed); }
.dot.tentative { --status-color: var(--tentative); }
.dot.late { --status-color: var(--late); }
.synced { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); font-size: 13px; color: var(--text-2);
  background: oklch(0.35 0.08 275 / 0.35); border: 1px solid oklch(0.5 0.1 275 / 0.4); }
.synced .dot { width: 8px; height: 8px; }
.synced .mono { color: var(--text); }

/* Buffs & utility (#964, #1247): a grid of icons; missing ones dimmed and marked; each one's spell and who brings it in a tooltip. */
.buffs { padding: 0; }
.buffs .column-head { border-bottom: 0; padding-bottom: 0; }
.buffs .column-head .count { white-space: nowrap; }
/* #3076: balanced rows, centred: each icon spans two half-icon tracks (`--tracks`, set as the card resizes), and a shorter
   row's first starts one track in. */
.buff-grid { position: relative; display: grid; grid-template-columns: repeat(var(--tracks, auto-fill), 23px); row-gap: 6px;
  justify-content: center; padding: 12px 11px 14px; }
.buff-cell { grid-column-end: span 2; justify-self: center; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border);
  cursor: default; outline: none; }
.buff-cell > * { grid-area: 1 / 1; }
.buff-icon { width: 28px; height: 28px; border-radius: 4px; }
.buff-initial { font: 600 12px var(--font-mono); color: var(--text-2); }
.buff-cell.missing { border-color: var(--missing); background: oklch(0.35 0.09 25 / 0.2); }
.buff-cell.missing .buff-icon, .buff-cell.missing .buff-initial { opacity: 0.35; filter: grayscale(1); }
.buff-flag { align-self: start; justify-self: end; margin: -6px -6px 0 0; width: 14px; height: 14px; border-radius: 50%; background: var(--missing);
  color: #fff; font: 700 10px/14px var(--font-mono); text-align: center; }
.buff-cell:hover, .buff-cell:focus-visible { border-color: var(--accent-line); }
/* #2249: an icon's spell tooltip, as the game shows it (the reserves page's item tooltip box), at the pointer or the tap, in the
   window; RaidSlot's who-brings-it line under it. */
.buff-cell.open .sr-tip { display: block; position: fixed; left: var(--tip-x, 0); top: var(--tip-y, 0); right: auto; bottom: auto;
  width: 300px; max-width: calc(100vw - 8px); pointer-events: none; }
/* #2249: where a wiki-sourced tooltip's text is from (CC BY-SA). */
.sr-tip-source { margin-top: 4px; font-size: 11px; color: #9d9d9d; }
.buff-tip-cover { margin-top: 6px; padding-top: 6px; border-top: 1px solid #4a5574; }
.buff-tip-name { font-weight: 600; color: var(--text); }
.buff-tip-by { color: var(--text-2); }
.buff-tip-by.missing { color: var(--missing); }
.buffs > .hint { margin: 0; padding: 0 14px 10px; font-size: 12px; }
.board-under > .card { margin: 0; }
.role-dot { flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--faint); }
.role-dot.tank { background: var(--tank); }
.role-dot.healer { background: var(--healer); }
.role-dot.dps { background: var(--dps); }
.squares { display: flex; gap: 3px; }
.sq { display: inline-block; width: 10px; height: 14px; border-radius: 2px; background: #1f2b46; }
.sq.in { background: oklch(0.62 0.1 150); }
/* A raid on the bench (#1115): striped, so it reads apart from in and out whatever it counts for. */
.sq.bench { background: repeating-linear-gradient(135deg, oklch(0.62 0.1 150) 0 2px, #1f2b46 2px 4px); }
/* A raid that doesn't count for a team's row (#2049, 5/6): before it was assigned, or another of its member's characters came. */
.sq.off { background: transparent; box-shadow: inset 0 0 0 1px #4a5160; }
/* An excused absence (#2655): neutral like one that doesn't count, with a dot, its note on hover. */
.sq.excused { background: radial-gradient(circle, #8a93a6 0 1.5px, transparent 2px); box-shadow: inset 0 0 0 1px #4a5160; }
/* A member's history (#1115): one row a raid, its outcome coloured like the board's squares. */
/* A member's history's header (#2707): their character as its Characters card shows it, larger; then their stats as chips,
   each outcome's icon in its row's colour, the share stronger. */
.member-head { margin: var(--space-2) 0 var(--space-4); }
.member-char { gap: var(--space-4); margin-bottom: var(--space-3); }
.member-char .char-portrait, .member-char .char-portrait .class-tag, .member-char .char-avatar { width: 64px; height: 64px; border-radius: 8px; }
.member-char .char-portrait .class-icon { inset: 6px; width: 52px; height: 52px; }
.member-char .page-title { margin: 0; }
.member-char .char-level { font-size: 13px; vertical-align: middle; letter-spacing: 0; }
.member-char .hint { margin-top: var(--space-1); }
/* One character's page's "See the whole account" (#2901), under its stats. */
.member-whole { margin: calc(-1 * var(--space-2)) 0 var(--space-3); font-size: var(--text-sm); }
.att-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.att-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); font: 500 13px/1.4 var(--font-mono); white-space: nowrap; }
.att-chip .outcome-icon { flex: none; }
.att-chip.outcome-in .outcome-icon { color: oklch(0.76 0.12 150); }
.att-chip.outcome-bench .outcome-icon { color: var(--accent-ink); }
.att-chip.outcome-absent .outcome-icon, .att-chip.outcome-no-answer .outcome-icon { color: var(--danger); }
.att-chip.outcome-excused .outcome-icon { color: var(--text-2); }
.att-chip.att-share { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--text); font-weight: 700; font-size: 15px; }
/* Plan an absence's bar (#2707): Soft Reserves' exports' (#2566), at the foot of a member's own page. */
.away-bar .actions { margin-top: 0; }
.hist-table { padding: 0; }
.hist-row { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-3); padding: 10px 16px; border-bottom: 1px solid var(--hairline); font-size: var(--text-sm); }
.hist-row:last-child { border-bottom: 0; }
.hist-when { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.hist-raid { color: var(--text); font-weight: 600; text-decoration: none; }
.hist-as { color: var(--text-2); grid-column: 1; }
.hist-outcome { grid-column: 2; grid-row: 2 / span 2; align-self: center; font: 500 12px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.outcome-in .hist-outcome { color: oklch(0.76 0.12 150); }
.outcome-bench .hist-outcome { color: var(--accent-ink); }
.outcome-absent .hist-outcome, .outcome-no-answer .hist-outcome { color: var(--danger); }
/* Excused (#2655): neither in nor out; its note under it. Editors' Excuse / Undo at the row's end, its note's form below it. */
.outcome-excused .hist-outcome { color: var(--text-2); }
.hist-note { display: block; font: 400 12px var(--font); text-transform: none; color: var(--muted); }
.hist-actions { grid-column: 1 / -1; justify-self: end; }
.hist-excuse-form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.hist-excuse-form input { flex: 1 1 12rem; }
@media (min-width: 720px) {
  .hist-row { grid-template-columns: 9rem 1fr 12rem 9rem; align-items: center; }
  .hist-table.editing .hist-row { grid-template-columns: 9rem 1fr 12rem 9rem 6.5rem; }
  .hist-when, .hist-as, .hist-outcome, .hist-actions { grid-column: auto; grid-row: auto; }
  .hist-excuse-form { grid-column: 1 / -1; }
}
a.att-name, .att-name a { color: var(--text); text-decoration: none; }
a.att-name:hover, .att-name a:hover { color: var(--accent-ink); text-decoration: underline; }
/* Parked jobs (#1114): what didn't go through, on the raid page's officer tools. */
.parked { margin-top: var(--space-4); padding: var(--space-4); border: 1px solid var(--danger); border-radius: var(--radius); background: var(--danger-soft); }
.parked h3 { margin: 0 0 var(--space-3); }
.parked-job { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; }
.parked-what { font-weight: 600; }
.parked-job .hint { margin: 2px 0 0; }
/* A board's Custom range (#2699): From and To beside its windows, wrapping under them on a phone. */
.filters:has(.att-range) { align-items: flex-end; }
.att-range { display: flex; flex: 1 1 320px; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.att-range .field { flex: 0 1 170px; min-width: 140px; margin: 0; }
.seg-label { align-self: center; padding: 0 var(--space-2); color: var(--muted); font-size: var(--text-sm); }
.contested { font: 500 10px var(--font-mono); color: var(--accent-ink); white-space: nowrap; }

/* Segmented switches, an attendance row's name, and the reminders' rows. */
.segmented { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; }
.seg { min-height: 30px; padding: 6px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: 500 12px var(--font-mono); }
.seg.on { background: var(--avatar); color: var(--text); }
/* A raid's loot system (#3038): Soft reserves or Loot council, as wide as its two choices. */
.loot-system .label { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.loot-system .segmented { width: fit-content; max-width: 100%; margin-top: 6px; }
.att-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rem-row { display: flex; align-items: center; gap: var(--space-2); justify-content: space-between; min-height: 40px; font-size: 13px; }
.rem-row input[type=number] { width: 72px; min-height: 32px; padding: 4px 8px; font-size: 13px; margin-left: auto; }
.rem-row input[type=checkbox] { width: auto; min-height: 0; }
.rem-row input.rem-text { flex: 1; min-width: 0; max-width: 22rem; min-height: 32px; padding: 4px 8px; font-size: 13px; margin-left: auto; }
/* Rows picking from a list (#2535): one label column, so their selects line up as a group. */
.rem-row.rem-pick .rem-name { flex: 0 0 7.5rem; }
.rem-row.rem-pick select { flex: 1; min-width: 0; }

/* The raid's Warcraft Logs summary (#1555): a member a row, the numbers in columns. */
.logs-table { width: 100%; border-collapse: collapse; margin-top: var(--space-3); }
.logs-table th, .logs-table td { padding: 6px 0 6px var(--space-2); border-top: 1px solid var(--border); text-align: right;
  font: 500 12px var(--font-mono); color: var(--text-2); white-space: nowrap; }
.logs-table thead th, .logs-table thead td { border-top: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.logs-table tbody th { padding-left: 0; text-align: left; font: 500 var(--text-sm) var(--font); color: var(--text);
  overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
/* Its totals (#2752): the raid's damage, all and to bosses, and its length, each an icon, a label and a figure. The table
   scrolls sideways rather than squeeze; on a phone the Interrupts and Dispels headers are their icons alone. */
.logs-totals { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-3) 0 0; }
.logs-total { display: flex; flex-direction: column; gap: 2px; }
.logs-total dt { display: flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.logs-total dd { margin: 0; font: 600 18px var(--font-mono); color: var(--text); }
.logs-icon { flex: none; color: var(--muted); }
.logs-icon.damage { color: oklch(0.72 0.15 45); } .logs-icon.healing { color: oklch(0.75 0.14 150); } .logs-icon.boss { color: oklch(0.75 0.06 300); }
.logs-scroll { overflow-x: auto; }
.logs-table th.logs-util .logs-icon { vertical-align: -3px; margin-right: 4px; }
.logs-table td.cant { color: var(--muted); opacity: 0.55; }
/* Each numeric column's header sorts by it (#2770), its arrow once it does; the names stay put as the table scrolls sideways. */
.logs-table thead th button { all: unset; cursor: pointer; white-space: nowrap; }
.logs-table thead th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.logs-table thead th[aria-sort=descending] button::after { content: " ▼"; }
.logs-table thead th[aria-sort=ascending] button::after { content: " ▲"; }
.logs-table thead th:is([aria-sort=ascending], [aria-sort=descending]) button { color: var(--text); }
.logs-table tbody th, .logs-table thead td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
@media (max-width: 600px) {
  .logs-table th.logs-util .logs-util-label { display: none; }
  .logs-table th.logs-util .logs-icon { margin-right: 0; }
  .logs-table th, .logs-table td { padding-left: 6px; }
  .logs-table tbody th { max-width: 32vw; }
}

/* Soft reserves (#968, mockup 1e): totals, then items, contested first, with who reserved each. */
.reserves-link { display: flex; align-items: center; gap: var(--space-4); color: var(--text); text-decoration: none; }
.reserves-link h3 { margin: 0; }
.reserves-link .go { margin-left: auto; font-size: 22px; color: var(--muted); }
.reserves-link:hover { border-color: var(--border-strong); background: var(--hover); }
/* Blurple as Soft reserve's button on Discord (#2960), its icon and words white. */
.card.reserves-link { border-color: var(--blurple); background: var(--blurple); color: var(--blurple-text); }
.card.reserves-link:hover { border-color: var(--blurple-hover); background: var(--blurple-hover); }
.card.reserves-link h3, .card.reserves-link .hint, .card.reserves-link .go { color: var(--blurple-text); }
.card.reserves-link .btn-icon { filter: brightness(0) invert(1); }
.reserves-link .btn-icon { width: 24px; height: 24px; margin-right: calc(var(--space-2) - var(--space-4)); }
/* Your reserves N/X (#2962), for a member in a group of the composition: beside the title, a chip in the card's white. */
.reserves-link .sr-yours { padding: 1px 8px; border: 1px solid rgb(255 255 255 / 0.6); border-radius: 999px; font-weight: 600; font-size: 13px;
  white-space: nowrap; font-variant-numeric: tabular-nums; }
/* An event of two raids (#3497): a chip each, together. */
.reserves-link .sr-raids { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* On a phone the totals take their own line under the title, the chip beside it; two raids' chips a line of their own above. */
@media (max-width: 640px) {
  .reserves-link { flex-wrap: wrap; row-gap: var(--space-2); }
  .reserves-link .hint, .reserves-link .sr-raids { order: 1; flex-basis: 100%; }
}
/* The raid page's card is a bar at its foot that follows the scroll (#2981), above the phone's tab bar, on the page's own navy
   so what scrolls under it doesn't show round its corners. */
.sr-follow { position: sticky; bottom: calc(52px + env(safe-area-inset-bottom)); z-index: 5; padding: var(--space-2) 0; background: var(--bg); }
.sr-follow:empty { display: none; }
.sr-follow .card { margin: 0; }
a.contested { text-decoration: none; }
.reserves-page { max-width: 640px; margin: 0 auto; }
.sr-head { display: flex; align-items: center; gap: 12px; }
.sr-head .page-title { font-size: 26px; margin: 0; }
.sr-lede { margin: var(--space-4) 0 var(--space-2); }
/* An event of two raids' tabs (#3421): since #3502 a button each, side by side on a phone too, with the raid's art and the
   member's SRs in it; the open one in the accent, standing on the accent line under them so it joins the page below. A long
   name truncates, never the count. */
.sr-raid-tabs { display: flex; gap: var(--space-2); margin-top: var(--space-4); border-bottom: 2px solid var(--accent); }
.sr-raid-tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-3);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  color: var(--muted); font: 600 var(--text-md) var(--font); text-align: left; cursor: pointer; }
.sr-raid-tab:hover { background: var(--hover); color: var(--text-2); }
.sr-raid-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-raid-tab[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); border-color: var(--accent); color: var(--text); cursor: default; }
.sr-tab-art { flex: none; width: 64px; height: 32px; border-radius: var(--radius-sm); object-fit: cover; }
.sr-tab-art.none { background: var(--surface-3); border: 1px solid var(--border); }
.sr-raid-tab:not([aria-selected="true"]) .sr-tab-art { opacity: 0.55; filter: grayscale(0.6); }
.sr-tab-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-tab-count { flex: none; font-size: var(--text-sm); color: var(--muted); }
.sr-raid-tab[aria-selected="true"] .sr-tab-count { color: var(--accent-ink); }
@media (max-width: 559px) {
  .sr-raid-tab { gap: var(--space-2); min-height: 48px; padding: var(--space-2); font-size: var(--text-sm); }
  .sr-tab-art { width: 36px; height: 18px; border-radius: 4px; }
  .sr-tab-count { font-size: 0.75rem; }
}
/* RaidSlot Premium (#1355): the plan on Server settings, right of its title, and the badge on Premium settings. */
.sr-head .plan-badge { margin-left: auto; flex: none; white-space: nowrap; display: flex; align-items: center; gap: var(--space-2); }
/* On a phone (#3006) the plan wraps under the title, lined up with it past the back arrow, so the header fits its width. */
.sr-head > div { min-width: 0; }
@media (max-width: 559px) {
  .sr-head { flex-wrap: wrap; row-gap: var(--space-2); }
  .sr-head .plan-badge { margin-left: 56px; flex: 0 1 auto; min-width: 0; flex-wrap: wrap; white-space: normal; }
}
/* Every PREMIUM badge links to Discord's store (#2810): a hover ring says it's a link. */
a.badge.premium { text-decoration: none; cursor: pointer; }
a.badge.premium:hover { box-shadow: inset 0 0 0 1px var(--accent-ink); }
.badge.premium { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
/* A Premium-only option on Free (#2676): its controls greyed out and disabled (a fieldset's), the notice after them, not greyed. */
.premium-gate-body { border: 0; margin: 0; padding: 0; min-width: 0; }
.premium-locked > .premium-gate-body { opacity: .5; }
.premium-locked > .premium-gate-body :is(input, select, button, textarea, label) { cursor: not-allowed; }
.premium-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); margin-top: var(--space-2); }
.sr-back { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface-2);
  color: var(--muted); font-size: 18px; text-decoration: none; }
.sr-tiles { display: flex; gap: 8px; margin: var(--space-4) 0 var(--space-2); }
.sr-tile { flex: 1; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.sr-tile .mono { font: 500 22px var(--font-mono); color: var(--text); }
.sr-tile.hot { background: var(--accent-soft); }
.sr-tile.hot .mono { color: var(--accent-ink); }
.sr-item { padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.sr-item.hot { border-color: oklch(0.8 0.13 75 / 0.45); }
.sr-top { display: flex; align-items: center; gap: 12px; }
.sr-art { flex: none; width: 40px; height: 40px; border-radius: 8px; background: repeating-linear-gradient(45deg, var(--stripe-a) 0 4px, var(--stripe-b) 4px 8px); border: 1px solid oklch(0.6 0.12 300 / 0.6); }
.sr-name { font-size: 14px; font-weight: 600; color: oklch(0.8 0.1 300); }
.sr-count { font: 500 11px var(--font-mono); color: var(--muted); }
.sr-item.hot .sr-count { color: var(--accent-ink); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sr-chip { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 6px; background: var(--surface-3); font-size: 12px; }
.sr-chip .class-tag { width: 18px; height: 18px; font-size: 7px; }
.sr-chip .class-icon { inset: 0; width: 18px; height: 18px; }
.sr-chip .mono { font-size: 10px; }
.sr-chip .muted { color: var(--muted); }
/* A reserver's chance to win the item (#2199): a die and the percent, in the accent's ink. */
.sr-chance { display: inline-flex; align-items: center; gap: 3px; color: var(--accent-ink); font-weight: 600; }
/* Its tooltip (#2199): the chance and the reserver's attendance, above the chip on hover or focus (a tap on a phone). */
.sr-chip { position: relative; }
.sr-chip-tip { display: none; position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; padding: 6px 10px; border-radius: 6px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 12px; line-height: 1.5; box-shadow: 0 4px 14px rgb(0 0 0 / 0.35); }
.sr-chip:hover .sr-chip-tip, .sr-chip:focus-within .sr-chip-tip { display: block; }
.sr-clear { min-height: 24px; padding: 0 6px; border: 0; background: transparent; color: var(--muted); font-size: 14px; }
.sr-clear:hover { color: var(--danger); background: transparent; }

/* The roster page (#969): tiles, the mains' classes, then a spreadsheet row per member (a card each on a phone). */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.guild .sr-chips { margin: var(--space-3) 0 var(--space-4); }
.guild-table { display: grid; gap: 8px; }
.guild-row { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "tag name ilvl" "tag spec ilvl" "alts alts alts";
  align-items: center; column-gap: 12px; row-gap: 2px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.guild-row > :nth-child(1) { grid-area: tag; width: 30px; height: 30px; }
.guild-row > :nth-child(2) { grid-area: name; }
.guild-row > :nth-child(3) { grid-area: spec; }
.guild-row > :nth-child(4) { grid-area: ilvl; }
.guild-row > :nth-child(5) { display: none; }
.guild-row > :nth-child(6) { grid-area: alts; }
.guild-row.head { display: none; }
.guild-row .name { font-size: 14px; font-weight: 500; }
.guild-row .muted { color: var(--muted); }
.guild-row .mono { font-family: var(--font-mono); }
.guild-row .alts { display: flex; flex-wrap: wrap; gap: 6px; }
.guild-row .alts:not(:empty) { margin-top: 6px; }
@media (min-width: 760px) {
  .guild-table { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
  .guild-row { grid-template-columns: 34px 1.2fr 1.2fr 60px 1fr 2.4fr; grid-template-areas: none; border: 0; border-radius: 0; background: transparent;
    border-bottom: 1px solid var(--hairline); padding: 6px 18px; }
  .guild-row > * { grid-area: auto !important; }
  .guild-row > :nth-child(5) { display: block; }
  .guild-row .alts:not(:empty) { margin-top: 0; }
  .guild-row.head { display: grid; padding: 10px 18px; font: 500 11px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
}

/* The attendance page (#969): team and range filters, tiles, then a strip of raids per member. */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-2) 0 var(--space-4); }
.sr-tile.low { background: oklch(0.35 0.09 25 / 0.25); }
.sr-tile.low .mono { color: var(--missing); }
/* Who's below the threshold (#2049): officers open it from the tile's number. */
.sr-tile .tile-open { display: block; min-height: 32px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  line-height: inherit; text-decoration: underline dotted; text-underline-offset: 4px; }
/* Its threshold (#2415), which the Officer level clicks to change: "below 75% ✎", then a number, Save and Cancel in the tile. */
.sr-tile .tile-edit { min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left;
  text-decoration: underline dotted; text-underline-offset: 3px; }
.sr-tile .tile-edit:hover, .sr-tile .tile-edit:focus-visible { color: var(--text); }
.sr-tile .tile-edit-mark { margin-left: 4px; text-decoration: none; display: inline-block; }
.att-threshold-form { display: grid; gap: 4px; margin-top: 4px; }
.att-threshold-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.att-threshold-row input { width: 5rem; min-width: 0; }
.att-threshold-form .hint { margin: 0; }
/* Whether it's the team's own or the server's default (#2415), under it; its own with Use the server's. */
.sr-tile .att-threshold-source { margin: 4px 0 0; font-size: inherit; }
.att-below { margin-bottom: var(--space-2); }
.att-threshold { margin-top: var(--space-2); }
.att-below-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; align-items: center; gap: 12px; min-height: 36px;
  border-bottom: 1px solid var(--hairline); font-size: 13px; }
.att-below-row:last-child { border-bottom: 0; }
.att-below-row .hint { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-below-row .mono { color: var(--missing); text-align: right; }
.att-table { padding: 6px 18px; }
.att-line { display: grid; grid-template-columns: minmax(80px, 1fr) auto 44px 56px 14px; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--hairline); font-size: 13px; }
/* A row (#2699): its character's portrait (#2574) or class icon, its name in its class's colour; an officer's row opens the
   member's history, so it highlights on hover and focus, with a trailing chevron. */
.att-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.att-portrait { position: relative; flex: none; width: 30px; height: 30px; }
.att-portrait .char-avatar { width: 30px; height: 30px; border-radius: 4px; }
a.att-line { color: var(--text); text-decoration: none; cursor: pointer; margin: 0 -10px; padding: 0 10px; border-radius: 6px; }
a.att-line:hover, a.att-line:focus-visible { background: var(--hover); }
a.att-line:hover .att-name, a.att-line:focus-visible .att-name { text-decoration: underline; text-underline-offset: 3px; }
.att-go { color: var(--muted); font-size: 18px; line-height: 1; text-align: center; }
a.att-line:hover .att-go, a.att-line:focus-visible .att-go { color: var(--accent-ink); }
.att-line:last-child { border-bottom: 0; }
.att-line .att-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-line .mono { font-size: 12px; color: var(--muted); text-align: right; }
.att-line.low .mono { color: var(--missing); }
.att-line .att-owner { color: var(--muted); }
.att-outside { margin-top: var(--space-2); }
.att-outside-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 40px;
  border-bottom: 1px solid var(--hairline); font-size: 13px; }
.att-outside-row:last-child { border-bottom: 0; }
.att-outside-row .att-name, .att-outside-row .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-outside-row .mono { font-size: 12px; color: var(--muted); }
.att-outside-acts { display: flex; gap: var(--space-2); justify-content: flex-end; }
.att-line .squares { flex-wrap: wrap; max-width: 260px; }
.flag { font: 500 10px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--missing); }
/* A small figure loading inside what's shown (#1784): a grey bar; a table being replaced stays, dimmed, until the next one does. */
.skel { display: inline-block; width: 60%; max-width: 8em; height: 0.8em; border-radius: 4px; background: var(--surface-3); vertical-align: middle; }
.mono .skel { width: 3ch; }
.stale { opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .skel { animation: skel-pulse 1.4s ease-in-out infinite; }
  .stale { transition: opacity 0.15s; }
}
@keyframes skel-pulse { 50% { opacity: 0.45; } }
/* A page loading (#2947): RaidSlot's mark in the middle of the page, breathing with a soft glow while its three seats and three
   slots fill in turn; with reduced motion, a slow fade. index.html's boot loader is the same, hidden once the app has drawn. The
   Teams pages at least a screen tall, so the footer isn't pushed down in sight as they land. */
.page-loader { display: flex; align-items: center; justify-content: center; min-height: 50vh; padding: var(--space-6) 0; }
.loader-mark { display: block; width: 72px; height: auto; fill: var(--accent); }
.loader-slot { fill: var(--accent-ink); }
/* A tab or card loading inside a page already shown (#2955): the mark smaller, in the middle of the section. */
.section-loader { min-height: 200px; padding: var(--space-5) 0; }
.section-loader .loader-mark { width: 48px; }
/* What a section shows once it's all in (#2957): no box of its own, hidden till then while only its loader shows. */
.load-reveal { display: contents; }
.load-reveal[hidden] { display: none; }
/* A page behind the logo till it's all in (#3192): laid out but invisible, the logo over its top, so nothing moves once shown. */
.page-pending { position: relative; visibility: hidden; min-height: 60vh; }
.page-pending-below { visibility: hidden; }
.page-pending > .page-gate-logo { visibility: visible; position: absolute; inset: 0 0 auto; margin: 0; }
#app:not(:empty) ~ .boot-loader { display: none; }
.boot-loader { min-height: 80vh; }
@media (prefers-reduced-motion: no-preference) {
  .loader-mark { animation: loader-breathe 1.8s ease-in-out infinite; }
  .loader-slot { opacity: 0.25; animation: loader-fill 1.8s ease-in-out infinite; }
  .loader-slot.s1 { animation-delay: 0.2s; }
  .loader-slot.s2 { animation-delay: 0.4s; }
}
@media (prefers-reduced-motion: reduce) { .loader-mark { animation: loader-fade 2.4s ease-in-out infinite; } }
@keyframes loader-breathe {
  0%, 100% { transform: scale(0.94); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1); filter: drop-shadow(0 0 14px var(--accent-line)); }
}
@keyframes loader-fill { 0%, 15% { opacity: 0.25; } 40%, 70% { opacity: 1; } 100% { opacity: 0.25; } }
@keyframes loader-fade { 50% { opacity: 0.6; } }
.guild, .team-page { min-height: 100vh; }
.section-title { margin: var(--space-6) 0 var(--space-2); }
@media (max-width: 480px) {
  .att-line { grid-template-columns: minmax(0, 1fr) auto auto 14px; grid-template-areas: "name pct flag go" "strip strip strip strip"; row-gap: 4px; padding: 8px 0; }
  a.att-line { padding: 8px 10px; }
  .att-line > :first-child { grid-area: name; }
  .att-line .squares { grid-area: strip; }
  .att-line .mono { grid-area: pct; }
  .att-line .att-flag { grid-area: flag; }
  .att-line .att-go { grid-area: go; }
  .att-outside-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name add" "who raids"; row-gap: 2px; padding: 8px 0; }
  .att-outside-row .att-name { grid-area: name; }
  .att-outside-row .hint { grid-area: who; }
  .att-outside-row .mono { grid-area: raids; text-align: right; }
  .att-outside-row .att-outside-acts { grid-area: add; }
}

/* The Soft Reserves page (#969, #2189): a raid card per upcoming raid, its face as on Raids, a chevron at its right; under them
   its hard reserves and the member's own as quality-bordered icons (a contested one badged), then its totals, smaller. */
.loot-cards .card + .card { margin-top: var(--space-3); }
.event-row.loot-card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumb text go" "rows rows rows"; color: var(--text); text-decoration: none; }
a.loot-card:hover { border-color: var(--border-strong); background: var(--hover); }
.loot-card .event-meta .tag { padding: 1px 6px; font-size: 10px; }
.loot-card > .go { grid-area: go; font-size: 22px; color: var(--muted); }
.loot-rows { grid-area: rows; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.loot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.loot-row .hr-tag { padding: 1px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font: 600 10px/1.4 var(--font-mono); letter-spacing: 0.06em; }
.loot-label { font-size: 12px; color: var(--text-2); }
.loot-icon { position: relative; display: inline-flex; color: var(--border-strong); }
.loot-icon .item-art { width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 4px; }
.loot-badge { position: absolute; top: -6px; right: -7px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent);
  color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
/* #2198: an icon's item tooltip, the reserves page's, at the pointer or the tap, in the window. */
.loot-icon.open .sr-tip { display: block; position: fixed; left: var(--tip-x, 0); top: var(--tip-y, 0); right: auto; bottom: auto;
  width: 300px; max-width: calc(100vw - 8px); pointer-events: none; }
.loot-more { font-size: 12px; color: var(--muted); }

/* Item icons (#1017): Blizzard's art over the striped placeholder. */
.sr-art { display: block; overflow: hidden; }
.sr-art img, .item-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.item-art { flex: none; display: inline-block; width: 18px; height: 18px; overflow: hidden; border-radius: 3px;
  background: repeating-linear-gradient(45deg, var(--stripe-a) 0 3px, var(--stripe-b) 3px 6px); border: 1px solid oklch(0.6 0.12 300 / 0.6); }

/* Choose a server (#1142): one row per Discord server, the current one marked; the top bar's chip leads back here. */
/* The top bar's server switcher (#1313): the chosen server's icon and name, and a menu of the member's servers. */
.server-switcher { position: relative; }
.server-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 220px; min-height: 36px;
  font: inherit; font-size: var(--text-sm); color: var(--text-2); background: transparent; cursor: pointer;
  padding: 3px 10px 3px 4px; border: 1px solid var(--border-strong); border-radius: 18px;
}
.server-chip:hover, .server-chip[aria-expanded="true"] { color: var(--text); background: var(--hover); }
.server-chip .server-badge { width: 28px; height: 28px; font-size: 11px; }
.server-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-chip .caret { color: var(--muted); font-size: 11px; }
.server-menu {
  position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); min-width: 240px; max-width: min(320px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 2px; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.4);
}
/* On a phone (#3128), under the top bar against the right gutter, never past the left one: badges and + in full. */
@media (max-width: 639px) { .server-menu { position: fixed; top: calc(var(--topbar-h, 61px) + 6px); right: 16px; max-width: calc(100vw - 32px); } }
.server-menu-item {
  display: flex; align-items: center; gap: var(--space-3); min-height: var(--touch); padding: 4px 8px; width: 100%;
  background: transparent; border: 0; border-radius: 4px; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.server-menu-item:hover, .server-menu-item:focus-visible { background: var(--hover); }
.server-menu-item[aria-checked="true"] { background: var(--accent-soft); font-weight: 600; }
.server-menu-item .server-badge { width: 32px; height: 32px; font-size: 12px; }
/* Refresh servers (#2424): last in the switcher, set apart; beside the Raids page's headline, small and muted. */
.server-menu-item.server-refresh { border-top: 1px solid var(--border); border-radius: 0 0 4px 4px; color: var(--muted); font-size: 13px; text-decoration: none; }
/* Add RaidSlot to another server (#3128): a link styled as the list's rows, a plus where a server's icon goes. */
.server-add { text-decoration: none; color: var(--text); }
.server-add .server-name { white-space: normal; }
.server-add .server-add-badge { background: var(--accent-soft); color: var(--accent-ink); font-size: 22px; font-weight: 400; line-height: 1; }
.lede .server-refresh { color: var(--muted); font-size: 13px; }
.lede .server-refresh:hover { color: var(--text); }
.server-list { display: flex; flex-direction: column; gap: var(--space-2); max-width: 720px; }
.server-row {
  display: flex; align-items: center; gap: var(--space-4); width: 100%; min-height: 56px; padding: var(--space-2) var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.server-row:hover { background: var(--hover); border-color: var(--border-strong); }
.server-row.current { border-color: var(--accent-line); background: var(--accent-soft); }
.server-badge {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--avatar); font-size: 13px; font-weight: 600;
}
.server-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-role { font: 500 12px var(--font-mono); color: var(--muted); padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 5px; }
.server-role.officer { color: var(--confirmed); border-color: currentColor; }
/* On a phone, the icon alone: the menu names them. */



/* Planned absences (#1108) on the member's own page. */
.away { margin-top: var(--space-5); }
.away-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.away-list li { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.away-list .btn { margin-left: auto; }
/* The absence forms' days (#2700): From and To as wide as a date, side by side; Note takes the rest of their row, or one of its own on a phone. */
.away-form { grid-template-columns: 1fr 1fr; }
.away-form .away-note { grid-column: 1 / -1; }
@media (min-width: 641px) { .away-form { grid-template-columns: 11rem 11rem 1fr; } .away-form .away-note { grid-column: auto; } }
/* Today, Tomorrow and This weekend fill the days; the one they hold is lit. Under the fields, what Add absence adds: its line kept, so the button doesn't move. */
.away-quick { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.away-quick .btn[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); }
.away-summary { min-height: 1.4em; margin: var(--space-3) 0 0; font-weight: 600; color: var(--accent-ink); }
/* An absence refused (#2708), on days the member is already out: an error, under the Add button. */
.away .hint.warn { color: var(--danger); font-weight: 600; }
/* A team page's Absent tab (#2599): a card each (#2634), as the Characters page's: their character's portrait (#2574), name
   and spec, an Absent tag; their days, prominent, then their note. Those out today are edged and tinted red. */
.team-absences { margin-top: var(--space-3); }
.team-absence-channel { margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.team-absence-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.team-absence { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius); }
.team-absence.now { border-left-color: var(--danger); background: var(--danger-soft); }
.team-absence-head { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.team-absence-who { min-width: 0; overflow-wrap: anywhere; }
.team-absence-who strong { font-size: 1rem; }
.team-absence-chip { margin-left: auto; flex: none; color: var(--danger); background: var(--danger-soft); }
.team-absence-when { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-weight: 600; }
.team-absence-when .tab-icon { flex: none; margin: 0; color: var(--muted); }
.team-absence.now .team-absence-when .tab-icon { color: var(--danger); }
.team-absence-days { font-variant-numeric: tabular-nums; }
.team-absence-now { color: var(--danger); background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.team-absence-note { margin: 0; color: var(--muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.team-absence-remove { align-self: flex-end; }
/* A team page's Logs tab (#2774): a card per raid with a report, its date and title, then its kills, wipes and duration. */
.team-logs { margin-top: var(--space-3); }
.team-logs-team + .team-logs-team { border-top: 1px solid var(--border); padding-top: var(--space-2); }
.team-logs-guild input { flex: 1; min-width: 0; }
.team-logs-guild-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* Its logs channel picker only as wide as its channels' names, beside its label, at most 20rem (#2800), as #2746's selects. */
.team-logs-channel .rem-row { justify-content: flex-start; }
.team-logs-channel .rem-row.rem-pick select { flex: 0 1 auto; width: auto; max-width: min(100%, 20rem); }
/* The tab's guild and logs channel rows (#2888): apart as a form's fields, their labels one column; on a phone the guild's Edit
   wraps under its name, still in the controls' column. */
.team-logs-settings { display: grid; gap: var(--space-3); margin-bottom: var(--space-3); }
.team-logs-settings > :empty { display: none; }
.team-logs-settings .team-logs-channel > .hint { margin: var(--space-1) 0 0; }
.team-logs-guild .rem-row { justify-content: flex-start; align-items: baseline; }
.team-logs-guild-value { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.team-logs-guild-value .team-logs-guild-name { flex: 0 1 auto; }
/* Where a guild's Warcraft Logs link comes from (#2798): its search link, three steps and the links it takes, close together. */
.wcl-guild-help { margin: 4px 0 0; }
.wcl-guild-help ol { margin: 4px 0; padding-left: 20px; }
.wcl-guild-help p { margin: 0; }
.team-log-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-3); }
.team-log { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4); min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.team-log-raid { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.team-log-raid:hover strong { text-decoration: underline; }
.team-log-date { color: var(--muted); font-size: var(--text-sm); }
.team-log-stats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.team-log-stat { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.team-log-stat .hint { font-size: var(--text-sm); }
.team-log-ask { flex: 1 1 100%; }

/* A row's avatar (#2043): its spec's icon (its class's without one) filling one rounded frame, cropped past Blizzard's baked-in border so every game's
   art sits the same; a hairline ring in the class's colour. A member without a character: the frame, Discord's mark faint. */
.rm-avatar { overflow: hidden; border-radius: 6px; }
.rm-avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--class-color, var(--muted)) 45%, transparent); }
.rm-avatar .class-icon { inset: 0; width: 100%; height: 100%; border-radius: 0; transform: scale(1.16); }
.rm-avatar.none { color: var(--muted); }
.rm-avatar.none .rm-discord { width: 55%; height: 55%; opacity: 0.45; }
/* The Discord name opens their Discord profile: Discord's mark says whose name it is. */
a.rm-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--text); font-size: 15px; font-weight: 600;
  line-height: 22px; text-decoration: none; border-radius: 4px; }
.rm-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-discord { flex: none; color: var(--muted); }
a.rm-name:hover .rm-name-text, a.rm-name:focus-visible .rm-name-text { text-decoration: underline; text-underline-offset: 3px; }
a.rm-name:hover .rm-discord, a.rm-name:focus-visible .rm-discord { color: #5865f2; }
/* Its character: the name and its links on one line with spec, realm and game; the details give way first. */
.rm-sub { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 20px; font-size: 13px; color: var(--muted); }
.rm-sub > .rm-char { flex: none; }
.rm-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.rm-sub > .rm-detail::before { content: "·"; margin-right: 6px; }
.rm-sub > .rm-detail:first-child::before { content: none; }
.rm-char { color: var(--class-ink, var(--text)); font-weight: 600; white-space: nowrap; }
/* Its details (#2078): spec / offspec, realm and game, which give way first, then its professions' icons, which don't; 16px,
   each in the avatars' frame (#2043): cropped past Blizzard's border, a hairline ring. */
.rm-facts { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rm-facts > .rm-detail::before { content: "·"; margin-right: 6px; }
.rm-prof { position: relative; flex: none; width: 16px; height: 16px; overflow: hidden; border-radius: 4px; background: var(--surface-3); }
.rm-prof::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--border-strong); }
.rm-prof img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); }
/* Warcraft Logs (#2031): its 16px icon (#2454) on a button the name's height (#2043), outlined on hover, on the name's line; a
   32px hit area around it that takes no room. */
.rm-logs { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 4px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; }
.rm-logs::before { content: ""; position: absolute; inset: -6px; }
.rm-logs:hover, .rm-logs:focus-visible { color: var(--text); background: var(--surface-3); border-color: var(--accent-line); }
/* A phone gives the character's details their own line. */
@media (max-width: 759px) {
  .rm-sub { flex-wrap: wrap; row-gap: 2px; }
  .rm-sub > .rm-detail, .rm-sub > .rm-facts { flex: 1 1 100%; }
  .rm-sub > .rm-detail::before, .rm-sub > .rm-facts > .rm-detail::before { content: none; }
  /* Its details wrap rather than cut (#2078), the professions' icons flowing after them. */
  .rm-facts { display: block; }
  .rm-facts > .rm-detail { white-space: normal; overflow: visible; }
  .rm-prof { display: inline-block; vertical-align: -3px; margin-left: 6px; }
}

/* A listbox (#1168), for choices with art: the post form's game version, each with its client's icon (#1665), and a
   character's specs and professions (#2030). */
.listbox { position: relative; }
.listbox-pick { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--touch); padding: 6px 12px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); font: inherit; cursor: pointer; }
.listbox-pick .caret { margin-left: auto; color: var(--muted); }
.listbox-pick .listbox-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-icon { display: block; width: 28px; height: 28px; flex: none; object-fit: contain; }
.listbox-icon { display: block; width: 22px; height: 22px; flex: none; border-radius: 4px; object-fit: cover; }
/* Open, it's fixed at its button (Widgets.listbox places it), over a dialog or anything else that scrolls, not in it (#3009). */
.listbox-list { position: fixed; z-index: 20; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 4px; list-style: none;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }
.listbox-list:focus { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.listbox-option { display: flex; align-items: center; gap: var(--space-2); min-height: var(--touch); padding: 4px 8px; border-radius: 4px; cursor: pointer; }
.listbox-option.active { background: var(--accent-soft); }
.listbox-option[aria-selected="true"] { font-weight: 600; }

/* Post a raid's preview (#1113): the raid as it'd post, then Post or Edit. */
.post-preview { margin-top: var(--space-3); padding: var(--space-4); border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--surface-2); }
.post-preview h3 { margin: 0 0 var(--space-3); }
.post-preview .raid-banner { margin-bottom: var(--space-3); }
.preview-title { font: 600 var(--text-lg) var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.post-preview .warn { color: var(--tentative); }
/* The preview as Discord shows the post (#3470): Discord's dark theme, whatever the dashboard's, as the post will look there.
   Its embed's inline fields three to a row, the rest across it; the thumbnail top right; its buttons in their rows. */
.discord-msg { display: flex; gap: 12px; padding: 12px 12px 14px; border-radius: var(--radius); background: #313338; color: #dbdee1;
  font: 400 14px/1.375 "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; overflow-wrap: break-word; }
.discord-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #0a1227; }
.discord-body { flex: 1; min-width: 0; }
.discord-head { display: flex; align-items: center; gap: 4px; }
.discord-name { color: #f2f3f5; font-weight: 500; font-size: 15px; }
.discord-app { padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }
.discord-content { margin-top: 2px; }
.discord-embed { display: flow-root; max-width: 520px; margin-top: 4px; padding: 8px 12px 12px; border-left: 4px solid #0f68fa; border-radius: 4px; background: #2b2d31; }
.discord-title { margin-top: 4px; color: #f2f3f5; font-weight: 600; font-size: 15px; }
.discord-title.unset { color: #949ba4; font-style: italic; }
.discord-desc, .discord-field > div { white-space: pre-line; }
.discord-desc { margin-top: 6px; }
.discord-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.discord-field { grid-column: 1 / -1; min-width: 0; }
.discord-field.inline { grid-column: auto; }
.discord-fname { margin-bottom: 2px; color: #f2f3f5; font-weight: 600; }
.discord-thumb { float: right; width: 72px; margin: 4px 0 4px 12px; border-radius: 4px; }
.discord-image { display: block; max-width: 100%; max-height: 300px; margin-top: 12px; border-radius: 4px; }
.discord-footer { margin-top: 8px; font-size: 12px; }
.discord-emoji { width: 1.375em; height: 1.375em; vertical-align: bottom; object-fit: contain; }
.discord-time { padding: 0 2px; border-radius: 3px; background: rgb(255 255 255 / 0.06); }
.discord-mention { padding: 0 2px; border-radius: 3px; background: rgb(88 101 242 / 0.3); color: #c9cdfb; font-weight: 500; }
.discord-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.discord-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500; }
.discord-btn img { width: 18px; height: 18px; }
.discord-btn.primary { background: #5865f2; } .discord-btn.secondary { background: #4e5058; }
.discord-btn.success { background: #248046; } .discord-btn.danger { background: #da373c; }
.preview-notes > .hint { margin: var(--space-2) 0 0; }
/* On a phone, tighter, so the role columns keep their words whole. */
@media (max-width: 559px) {
  .discord-msg { gap: 8px; padding: 10px 8px 12px; font-size: 13px; }
  .discord-avatar { width: 28px; height: 28px; }
  .discord-embed { padding: 6px 8px 10px; }
  .discord-fields { gap: 6px; }
  .discord-btn { padding: 0 10px; font-size: 13px; }
}
/* A server's Discord icon over its initials (#1142); the initials show if it's missing or fails. */
.server-badge { position: relative; overflow: hidden; }
.server-icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Officers' links on Raids (#1180), and the Weekly schedules page. */
.officer-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
/* Upcoming and Past events (#1613): right of Post a raid and Trash; the full width on a phone. */
.raids-bar { align-items: center; }
/* Trash (#1774): its icon, then how many raids it holds. */
.trash-link { display: inline-flex; align-items: center; gap: 6px; }
.raid-tabs { margin-left: auto; }
.raid-tabs .seg { min-height: 36px; padding: 8px 14px; }
/* Each tab its own accent (#2413): a dot before its name; the open one tinted with it, underlined in it. Upcoming the brand
   blue, Repeating the tank violet, Past events the muted grey. */
.raid-tabs .seg { --tab: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.raid-tabs .seg.tab-repeating { --tab: var(--tank); }
.raid-tabs .seg.tab-past { --tab: var(--muted); }
.raid-tabs .seg::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tab); opacity: 0.6; }
.raid-tabs .seg.on { background: color-mix(in srgb, var(--tab) 16%, var(--avatar)); box-shadow: inset 0 -2px 0 var(--tab); }
.raid-tabs .seg.on::before { opacity: 1; }
@media (max-width: 559px) { .raid-tabs { flex: 1 1 100%; margin-left: 0; } .raid-tabs .seg { flex: 1 1 0; } }
.show-more { display: block; margin: var(--space-3) auto 0; }
/* Raids' rows (#2004): the raid's art as a fixed 2:1 thumbnail (a blank box without any, so rows line up), then its text; its
   roles and hard reserve (#2011) under both on a phone, at the right from 900px. */
.event-row { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "thumb text" "facts facts"; align-items: center;
  gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3); }
.event-row > .raid-thumb { grid-area: thumb; }
.event-text { grid-area: text; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-row .event-meta .tag { padding: 1px 6px; font-size: 10px; }
.event-raid { color: var(--text-2); font-weight: 500; }
.event-facts { grid-area: facts; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; }
.event-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.event-roles .chip { gap: 6px; padding: 3px 8px; font-size: 12px; }
/* A raid card's chips (#3097): one column, a row each, as wide as the widest, its icon and label at the left, its count at the right. */
.event-roles.roles-column { display: grid; grid-template-columns: max-content; gap: 4px; justify-content: start; }
/* ... and the same width on every card (#3100), sized for the longest label with a two-digit count, so the lists' columns line up;
   a longer one still widens its own. Sign up the same width too, its label centred, whatever it says in any language. */
.events { --roles-w: 9.75rem; --signup-w: 9.5rem; }
.events .event-roles.roles-column { grid-template-columns: minmax(var(--roles-w), max-content); }
.roles-column .chip .n { margin-left: auto; padding-left: var(--space-2); }
/* A raid's team on its card (#3083): its name on the team's colour, as its Teams page avatar, light on dark in either theme. */
.team-pill { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 8px; border-radius: 999px;
  background: hsl(var(--team-hue, 220) 42% 32%); border: 1px solid hsl(var(--team-hue, 220) 50% 45%); color: hsl(var(--team-hue, 220) 80% 92%);
  font: 600 11px/1.5 var(--font); letter-spacing: 0.02em; }
@media (min-width: 900px) { .event-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumb text facts"; }
  .event-facts { flex-direction: column; align-items: flex-end; justify-self: end; max-width: 360px; }
  .event-roles:not(.roles-column) { justify-content: flex-end; } }
.event-row .event-title { font-size: 1.125rem; overflow-wrap: anywhere; }
.raid-thumb { flex: none; width: 96px; height: 48px; aspect-ratio: 2 / 1; max-width: none; border-radius: var(--radius-sm); }
.raid-thumb.none { background: var(--surface-2); border: 1px solid var(--border); }
.raid-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .raid-thumb { width: 128px; height: 64px; } .event-row { padding: var(--space-3) var(--space-4); gap: var(--space-4); }
  .event-row .event-title { font-size: 1.375rem; } }
/* A raid just posted (#1426): its row in the list. */
/* An announced Terms or Privacy change (#1752), over every page until it applies. */
/* Below it, the same 16px the page's heading block leaves before its next row (.lede). */
.legal-notices:not(:empty) { margin-bottom: var(--space-4); }
.legal-notice { justify-content: space-between; align-items: center; margin: 0; }
.legal-notice + .legal-notice { margin-top: var(--space-2); }
.legal-notice span { flex: 1 1 16rem; }
.event.new { border-color: var(--accent-line); background: var(--accent-soft); }
/* Sign up from the raids list (#2729): the row's card holds its link and, beside it (under it on a phone), the Sign up button,
   which isn't part of the link. The card's frame moves to the row; its hover and "new" marks with it. */
.events > li.with-signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); }
.events > li.with-signup > .event { border: 0; background: transparent; }
.events > li.with-signup:has(> .event:hover) { background: var(--hover); border-color: var(--border-strong); }
.events > li.with-signup:has(> .event.new) { border-color: var(--accent-line); background: var(--accent-soft); }
.row-signup { width: var(--signup-w); margin-right: var(--space-4); white-space: nowrap; border-color: var(--success); color: var(--text); font-weight: 600; }
.row-signup:hover { background: var(--success-soft); }
.row-signup.answered { border-color: var(--border-strong); color: var(--text-2); font-weight: 500; }
.row-signup.signup-signed { color: var(--confirmed); }
.row-signup.signup-absent { color: var(--danger); }
/* A raid that takes no signups among ones that do (#3100): its chips where theirs are, left of where Sign up would be. */
@media (min-width: 640px) { .events:has(> li.with-signup) > li:not(.with-signup) > .event-row { padding-right: calc(var(--signup-w) + 2 * var(--space-4)); } }
@media (max-width: 639px) { .events > li.with-signup { grid-template-columns: minmax(0, 1fr); }
  .row-signup { justify-self: end; margin: 0 var(--space-3) var(--space-3); }
  .events > li.with-signup > .event { padding-bottom: var(--space-2); }
  /* With its chips in a column (#3097), Sign up sits at the right of them, level with the last, not on a row of its own. */
  .events > li.with-signup:has(.roles-column) { position: relative; }
  .events > li.with-signup:has(.roles-column) > .event { padding-bottom: var(--space-3); }
  .events > li.with-signup:has(.roles-column) > .row-signup { position: absolute; right: 0; bottom: var(--space-3); margin: 0 var(--space-3) 0 0; } }
.schedules-page .card + .card { margin-top: var(--space-4); }
/* Schedules as raid cards (#2181): not links, so no hover; the actions under the role spots; a paused one dimmed, but its buttons. */
#schedule-panel { margin-bottom: var(--space-4); }
.schedule-card:hover { background: var(--surface); border-color: var(--border); }
.schedule-card .schedule-repeat { color: var(--text-2); }
.schedule-card .schedule-next { color: var(--text-2); }
.schedule-card.paused > .raid-thumb, .schedule-card.paused > .event-text, .schedule-card.paused .event-roles { opacity: 0.5; }
.schedule-card .paused-tag { background: var(--surface-2); color: var(--text); }
.schedule-card .actions { display: grid; grid-template-columns: repeat(3, 6.75rem); gap: var(--space-2); margin: 0; }
.schedule-card .actions .btn { width: auto; padding-inline: var(--space-2); }
/* Edit, Pause or Resume, and Delete the same width on every schedule (#3100); on a phone, a row across the card. */
@media (max-width: 639px) { .schedule-card .actions { flex: 1 1 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* From 900px a schedule's chips column and its actions sit side by side, both centred on the card (#3097). */
@media (min-width: 900px) { .schedule-card .event-facts { flex-direction: row; align-items: center; max-width: none; gap: var(--space-4); } }
/* A schedule's days (#2051), under its first date in Post's form: the seven the same width, on one row (#3473). */
.series-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.series-days .seg { min-width: 0; padding-inline: 2px; }
/* A schedule's own fields (#3473): a step apart, as the form's, and paired fields' boxes level whatever their labels. */
.schedule-fields { display: grid; gap: var(--space-4); min-width: 0; }
.schedule-fields > .hint { margin: 0; }
.schedule-fields .form-grid { align-items: end; }
/* A number with its unit beside it (#3473), e.g. Close signups' "minutes before". */
.input-unit { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.input-unit input { flex: 1 1 4rem; min-width: 0; }
.input-unit-text { flex: none; color: var(--muted); font-size: var(--text-sm); white-space: nowrap; }

/* Post a raid in two columns (#1185): essentials left, settings in tabs right; one column on a phone. */
.post-layout { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
/* The live preview (#1412) on the right under the tabs (#3470), where the form's longer column leaves room, sticky while the
   essentials scroll; after the tabs on a phone. The second row takes the essentials' extra height, so the preview sits right
   under the tabs and sticks within that row; it scrolls inside itself when taller than the screen above Post's bar. */
@media (min-width: 900px) {
  .post-layout { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "main side" "main live"; }
  .post-main { grid-area: main; }
  .post-side { grid-area: side; align-self: start; }
  .post-live { grid-area: live; align-self: start; position: sticky; top: calc(var(--topbar-h, 61px) + var(--space-4)); margin-top: 0;
    max-height: calc(100vh - var(--topbar-h, 61px) - 2 * var(--space-4) - 72px); overflow-y: auto; }
}
/* Post and Cancel (#2004): a bar at the form's foot that sticks to the screen's bottom while the form is in view, above the
   phone's tab bar; edge to edge across the card. */
.post-actions { position: sticky; bottom: calc(52px + env(safe-area-inset-bottom)); z-index: 5; margin: var(--space-4) -18px calc(-1 * var(--space-4));
  padding: var(--space-3) 18px; background: var(--topbar); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.post-actions .actions { margin-top: 0; flex-direction: row; }
.post-actions .actions .btn { width: auto; }
@media (max-width: 559px) { .post-actions .btn-primary { flex: 1; } }
.post-actions .hint.warn { color: var(--danger); margin: var(--space-2) 0 0; }
.post-main, .tabpanel > div { display: grid; gap: var(--space-3); align-content: start; }
/* The form's parts (#3451): each on the settings side's panel (#1627) under its title, a clear gap between them; their fields,
   and the tabs', a step further apart, each help a little off its control. */
.post-main { gap: var(--space-4); }
.post-section { display: grid; gap: var(--space-4); align-content: start; min-width: 0; padding: var(--space-3) var(--space-3) var(--space-4);
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 900px) { .post-section { padding: var(--space-4); } }
.post-section > .post-section-head .post-section-title { margin: 0; font-size: var(--text-md); color: var(--text); }
.post-side .tabpanel > div { gap: var(--space-4); }
.post-raid .field { gap: 6px; }
.post-when label, .post-duration label { font-size: 12px; }
/* Date & time with its optional duration beside it (#2271); Custom's minutes go under the pick. Stacked on a narrow phone. */
.post-when-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, 10.5rem); gap: var(--space-3); align-items: start; }
.post-duration-pick { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.post-duration-pick select, .post-duration-pick input { flex: 1 1 100%; min-width: 0; }
@media (max-width: 559px) { .post-when-row { grid-template-columns: minmax(0, 1fr) 7.5rem; } }
/* On a phone (#3473), the date and its duration one under the other: side by side the date wrapped onto two lines, taller than its duration. */
@media (max-width: 479px) { .post-when-row { grid-template-columns: minmax(0, 1fr); } }
/* Post signup (#2536): its choice, and beside it the date and time when it posts at one; stacked on a phone. */
.post-signup-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.post-signup-row select { flex: 1 1 10rem; width: auto; }
.post-signup-at { flex: 2 1 14rem; min-width: 0; }
/* The settings side on its own lighter panel (#1627), so the two halves read apart; the tabs sit at its top edge. */
/* Its tabs' hints tight under their fields, and its numbers only as wide as a number (#2746). */
.post-side .field > .hint { margin: 0; font-size: 12px; line-height: 1.4; }
.post-side .field > input[type=number] { max-width: 10rem; }
.post-side { min-width: 0; padding: var(--space-1) var(--space-3) var(--space-4); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 900px) { .post-side { padding: var(--space-1) var(--space-4) var(--space-4); } }
/* The row never scrolls sideways (#1415): the tabs show icons alone when their labels don't fit, and "More" holds those that
   don't fit even so. The tablist clips rather than scrolls; the row's fit check keeps anything from being clipped. */
.tabrow { display: flex; border-bottom: 1px solid var(--border-strong); }
.tablist { display: flex; flex: 1 1 auto; min-width: 0; gap: 2px; overflow: hidden; }
.tablist.icons-only .tab { padding: 0 var(--space-2); min-width: var(--touch); }
.tablist.icons-only .tab-label { display: none; }
.tab-overflow-wrap { position: relative; flex: none; }
.tab-overflow[aria-expanded="true"] { color: var(--text); }
.tab-overflow-menu { position: absolute; right: 0; top: 100%; z-index: 20; display: grid; min-width: 12rem; padding: var(--space-1);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); }
.tab-overflow-menu button { display: flex; align-items: center; gap: var(--space-2); min-height: var(--touch); padding: 0 var(--space-3);
  background: transparent; border: 0; color: var(--text); font: 500 var(--text-sm) var(--font); text-align: left; cursor: pointer; }
.tab-overflow-menu button:hover, .tab-overflow-menu button:focus-visible { background: var(--surface-2); }
.tab { flex: 1 0 auto; min-height: var(--touch); padding: 0 var(--space-4); background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font: 500 var(--text-sm) var(--font); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
/* Its icons (#1412): inline strokes in the tab's colour; the selected tab's in the accent. */
.tab { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
.tab-icon { flex: none; }
.btn > .tab-icon { margin-right: var(--space-2); }
.tab[aria-selected="true"] .tab-icon { color: var(--accent-ink); }
.tab:focus-visible, .tabpanel:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.tabpanel { padding-top: var(--space-4); }
.post-art .label { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }


/* A raid's description (#1189). */
#post-description { width: 100%; resize: vertical; min-height: 5rem; padding: 10px 12px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; }
/* The live preview's facts (#2410): a line each, its icon in its own colour; the spots as role chips. */
.preview-facts { display: grid; gap: var(--space-2); margin: var(--space-3) 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14px; }
.preview-facts li { display: flex; align-items: flex-start; gap: var(--space-2); min-width: 0; }
.preview-facts .tab-icon { flex: none; margin-top: 2px; }
.preview-facts .event-roles { justify-content: flex-start; }
.preview-facts .fact-time .tab-icon { color: var(--accent-ink); }
.preview-facts .fact-raids .tab-icon { color: var(--tentative); }
.preview-facts .fact-teams .tab-icon { color: var(--late); }
.preview-facts .fact-reserves .tab-icon { color: var(--tank); }
.preview-facts .fact-duration .tab-icon { color: var(--accent-ink); }
.preview-facts .fact-leader .tab-icon { color: var(--late); }
.preview-facts .game-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
/* What the form hasn't set yet (#2677): a greyed placeholder in its place. */
.preview-title.unset, .preview-facts li.unset { color: var(--muted); font-style: italic; }
.preview-facts li.unset .tab-icon { color: var(--muted); }
.preview-description { white-space: pre-line; margin: var(--space-2) 0; }
.raid-description { white-space: pre-line; margin: var(--space-2) 0 0; max-width: 60ch; color: var(--text-2); }
/* The post's colour (#1189). */
.color-row { flex-direction: row; align-items: center; gap: var(--space-3); }
#post-color { flex: none; width: 56px; height: var(--touch); padding: 2px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
/* Colour as a compact swatch left of Image, on one row (#2705). */
.post-color-image { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.color-row .hint { margin: 0; }
/* Post a raid's date and time (#1199, #1206): RaidSlot's own picker, opening below its field. */
.when-picker { position: relative; }
.when-field { width: 100%; min-height: var(--touch); padding: 0 12px; display: flex; align-items: center; justify-content: flex-start; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; cursor: pointer; }
.when-field[aria-expanded="true"], .when-field:focus-visible { border-color: var(--accent-line); outline: none; }
.when-pop { position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); width: 100%; max-width: 340px; box-sizing: border-box; padding: var(--space-3);
  display: grid; gap: var(--space-2); background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.45); }
.when-month { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.when-nav { width: var(--touch); height: var(--touch); min-width: 0; padding: 0; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; border-radius: var(--radius-sm); }
.when-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.when-dow { text-align: center; font: 500 11px var(--font-mono); color: var(--muted); }
.when-day { height: 40px; min-width: 0; padding: 0; background: none; border: 0; border-radius: var(--radius-sm); color: var(--text); font: inherit; cursor: pointer; }
.when-day:hover, .when-nav:hover { background: var(--surface-2); }
.when-day[aria-pressed="true"] { background: var(--accent); color: #fff; }
.when-day:focus-visible, .when-nav:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 1px; }
.when-time { display: flex; align-items: center; gap: var(--space-2); }
.when-time select { flex: 1; width: auto; min-width: 0; min-height: var(--touch); padding: 0 8px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; }
.when-actions { display: flex; justify-content: flex-end; gap: var(--space-2); }
.when-actions .btn { width: auto; }

/* Hard reserves (#1110): the officers' picker on the raid page, and the reserves page's list. */
/* Soft and hard reserves side by side (#2755) where both fit, else one above the other; one alone takes the row. */
.reserves-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--space-4) var(--space-6); align-items: start; }
.officer .reserves-columns > .field { margin-top: 0; padding-top: 0; border-top: 0; }
/* A hard reserve is released by clicking its chip (#2755): its × shows on hover or focus, always on touch screens. */
.hard-chips button.chip { min-height: 32px; color: var(--text); font: inherit; font-size: 14px; }
.hard-chips button.chip:hover, .hard-chips button.chip:focus-visible { border-color: var(--danger); background: var(--danger-soft); }
.hard-release .chip-x { display: inline-flex; align-items: center; justify-content: center; }
@media (hover: hover) {
  .hard-release .chip-x { opacity: 0; }
  .hard-release:hover .chip-x, .hard-release:focus-visible .chip-x { opacity: 1; }
}
.sr-hard, .sr-unreserved, .sr-soft { margin: var(--space-6) 0 var(--space-4); }
/* Each section's title apart from its cards (#3685). */
.sr-hard > h3, .sr-unreserved > h3, .sr-soft > h3 { margin: 0 0 var(--space-3); }
.sr-item.hard { border-color: var(--accent-line); }
/* Not reserved yet (#3683): its chips alone in the card. */
.sr-unreserved .sr-chips { margin-top: 0; }

/* A field's "i" (#1201): its explanation on hover, keyboard focus or tap. */
.label-row { display: flex; align-items: center; gap: var(--space-2); }
.label-row label, .label-row .label { margin: 0; }
.info-wrap { position: relative; display: inline-flex; }
.info { width: 16px; height: 16px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--muted); font: 600 10px/1 var(--font-mono); cursor: pointer; }
.info::before { content: ""; position: absolute; inset: -14px; } /* a 44px touch target */
/* Quiet at rest (#1210): it fades in while its field is hovered or has focus, and back out after. */
.info { opacity: 0; transition: opacity 150ms ease; }
.field:hover .info, .field:focus-within .info, .info-wrap.open .info,
.has-info:hover .info, .has-info:focus-within .info { opacity: 1; }
/* No hover on touch screens: faint, so it can still be found. */
@media (hover: none) { .info { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .info { transition: none; } }
.info:hover, .info:focus-visible, .info-wrap.open .info { color: var(--text); border-color: var(--accent-line); }
.info-tip { display: none; position: absolute; z-index: 30; left: -8px; top: calc(100% + 8px); width: max-content; max-width: min(280px, calc(100vw - 48px));
  padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
  font: 400 13px/1.4 var(--font); text-transform: none; letter-spacing: 0; box-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }
.info-wrap:hover .info-tip, .info:focus-visible + .info-tip, .info-wrap.open .info-tip { display: block; }

/* The reserves for Gargul (#1111): its CSV, to copy. */
.sr-export { display: grid; gap: var(--space-2); margin: var(--space-3) 0; }
/* The loot addons' own icons (#2281): a little larger than the stroke icons, as a picture reads smaller, kept off the
   button's height; in the export panel, beside how to paste in it. */
.addon-icon { display: block; flex: none; width: 20px; height: 20px; object-fit: contain; }
.btn > .addon-icon { margin: -2px var(--space-2) -2px 0; }
.sr-export-hint { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; }
.addon-icon-wrap { flex: none; }
.sr-export .btn, .sr-export .copy { justify-self: start; }
.sr-export-text { width: 100%; resize: vertical; padding: 10px 12px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: 13px/1.5 var(--font-mono); }
/* The exports' bar (#2566): Post a raid's sticky foot (#2004), on the page rather than across a card's edges; the open export
   above its buttons, which wrap on a phone, sharing each row. Being in the page's flow, it never covers the last row. */
.sr-actions { margin: var(--space-4) 0 0; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); }
.sr-actions .actions { flex-wrap: wrap; }
/* Clear my reserves (#2980), the member's own, at the bar's far end from the exports when there are any. */
.sr-actions .btn + .sr-clear-mine { margin-left: auto; }
.sr-actions .sr-export { margin: 0 0 var(--space-3); }
@media (max-width: 559px) { .sr-actions .actions .btn { flex: 1 1 auto; justify-content: center; } }

/* Subscribe in your calendar (#1213): the member's .ics feed, in Settings. */
.subscribe { display: grid; gap: var(--space-2); justify-items: start; }
.subscribe-panel { width: 100%; }
.subscribe-url { font: 12px var(--font-mono); }

/* A raid's loot (#3032): what went to whom; officers record and remove. */
.loot-form { display: grid; gap: var(--space-3); grid-template-columns: 1fr; margin-bottom: var(--space-3); }
@media (min-width: 640px) { .loot-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.loot-list { list-style: none; margin: 0; padding: 0; display: grid; }
.loot-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--border); }
.loot-art img { width: 32px; height: 32px; border-radius: var(--radius-sm); display: block; }
.loot-item { min-width: 0; display: grid; }
.loot-item .sub { font-size: var(--text-sm); color: var(--muted); }
.loot-to { font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-2); }
/* Its reserved items (#3032): a button per reserver, to give it in one tap. */
.loot-reserved { margin-bottom: var(--space-3); }
.loot-reserved .loot-list li { grid-template-columns: 32px minmax(0, 1fr) auto; }
.loot-give { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
/* Import an addon's export (#3032): the pasted text, then what it recorded and what it couldn't place. */
.loot-import { margin-bottom: var(--space-3); }
.loot-import summary { cursor: pointer; color: var(--accent-ink); }
.loot-import textarea { width: 100%; font: 12px var(--font-mono); margin: var(--space-2) 0; padding: var(--space-2) var(--space-3); resize: vertical;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); }
.loot-unknown { margin: 0; padding-left: var(--space-4); }
.loot-unknown code { font-size: 12px; word-break: break-all; }
/* On a phone, who won it under the item, the button beside both. */
@media (max-width: 480px) {
  .loot-list li { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "art item rm" "art to rm"; row-gap: 2px; }
  .loot-list .loot-art { grid-area: art; }
  .loot-list .loot-item { grid-area: item; }
  .loot-list .loot-to { grid-area: to; }
  .loot-list li > button { grid-area: rm; }
  .loot-reserved .loot-list li { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "art item" "art give"; }
  .loot-reserved .loot-give { grid-area: give; justify-content: flex-start; }
}

/* The loot Fairness board (#3032): a member a row, its flags at the end. */
.fairness { margin-top: var(--space-4); }
.fair-range { display: inline-flex; margin-bottom: var(--space-2); }
.fair-flags { display: flex; flex-wrap: wrap; gap: 2px var(--space-2); margin-top: 2px; white-space: normal; }
.fair-high { color: var(--tentative); }

/* Role spots (#1214): tanks, healers and DPS side by side. */
.spots { display: grid; gap: var(--space-2); justify-items: start; }
.spot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); width: 100%; }
.spot label { font-size: 11px; }
.spots .hint { margin: 0; }
/* Reset to the raid's defaults (#3452): a link after the spots' line, not another button. */
.spots-reset { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer; }

/* The reserve picker (#1223): the raid's loot by boss, a tile each; the member's picks highlighted. Only the bottom bar (the
   exports, Clear my reserves) follows the scroll (#2649, #2980): the "n of N" bar and search stay at the top. */
.sr-picker { display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
.sr-bar { display: grid; gap: var(--space-2); padding: var(--space-2) 0;
  background: var(--surface); border-bottom: 1px solid var(--border); }
.sr-bar h3, .sr-bar .hint { margin: 0; }
/* Not signed up (#2938): why the tiles are dimmed; a reserve or removal the server refused (#2936); and that the reserves are
   locked (#3091). */
.sr-bar .hint.sr-blocked, .sr-bar .hint.sr-refused, .sr-bar .hint.sr-locked { color: var(--danger); font-weight: 600; }
/* Each boss's row (#2338): a rounded highlight inset from the list's edges, tinted on hover and keyboard focus alike; the line
   between bosses is the list's, not the highlight's. */
.sr-boss { border-bottom: 1px solid var(--border); }
.sr-boss-head { width: calc(100% - 8px); margin: 4px; justify-content: space-between; background: none; border: 0;
  border-radius: 8px; padding: var(--space-2); color: var(--text); font-weight: 600; transition: background-color .15s; }
.sr-boss-head:hover, .sr-boss-head:focus-visible { background: var(--hover); }
.sr-boss-head:focus-visible { outline-offset: 0; }
.sr-boss-name { flex: 1; min-width: 0; text-align: left; }
/* #2341: closed, the member's reserves of its loot, under its name, wrapping on a phone. */
.sr-boss-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-weight: 400; }
.sr-boss-name > span:first-child { display: block; }
/* Boss portraits (#1225): each boss's Encounter Journal portrait (#2744), the game's own 128×64 art, shown whole in its
   native 2:1 frame, at its own pixels on a desktop (the frame's border outside them), smaller on a phone. A boss without one
   (Gahz'ranka) has Blizzard's render filling the same frame; a neutral placeholder without either. The row grows to fit it,
   its name and chevron centred beside it. */
.sr-boss-art { --art-w: 128px; --art-h: 64px; position: relative; flex: none; box-sizing: content-box; width: var(--art-w); height: var(--art-h);
  margin-right: var(--space-3); border-radius: 6px; overflow: hidden; background: rgb(24 24 24); border: 1px solid var(--border-strong);
  transition: border-color .15s, box-shadow .15s, filter .15s; }
@media (max-width: 640px) { .sr-boss-art { --art-w: 112px; --art-h: 56px; } }
@media (max-width: 480px) { .sr-boss-art { --art-w: 96px; --art-h: 48px; } }
/* Drawn to the frame, never cropped (the journal's art is the frame's shape); scaled smoothly, as the game does. */
.sr-boss-art img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
/* The render is the model on a flat rgb(24 24 24), the frame's colour: it fills the frame, its top third (the head) kept. */
.sr-boss-art.render img { object-fit: cover; object-position: 50% 30%; }
/* Hovered, it lights up, backdrop and all, and its frame takes the accent: never scaled, which cropped it (#2321). */
.sr-boss-head:hover .sr-boss-art, .sr-boss-head:focus-visible .sr-boss-art { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line);
  filter: brightness(1.15); }
/* Without a portrait (#2565): a game icon for what it is (Any boss, Trash, a boss Blizzard has no render of), centred on the
   same dark tile, so the rows stay alike; smaller on a phone's shorter tile. */
.sr-boss-art.icon { display: flex; align-items: center; justify-content: center; }
.sr-boss-art.icon img { height: min(52px, calc(var(--art-h) - 14px)); width: auto;
  aspect-ratio: 1; border-radius: 4px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6); opacity: 0.9; }
.sr-boss-head::after { content: "▾"; margin-left: var(--space-2); color: var(--muted); }
.sr-boss-head[aria-expanded="false"]::after { content: "▸"; }
.sr-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: var(--space-2) 0; }
.sr-pick { justify-content: flex-start; gap: var(--space-3); min-height: 56px; padding: 6px 10px; text-align: left; background: var(--surface-2); }
.sr-pick-text { display: grid; min-width: 0; }
.sr-pick-name { color: var(--text); overflow-wrap: anywhere; }
.sr-pick .sub { font-size: 12px; color: var(--muted); }
.sr-pick.mine { border-color: var(--accent); background: var(--accent-soft, rgba(37, 99, 235, 0.18)); box-shadow: inset 0 0 0 1px var(--accent); }
.sr-pick.mine .sub::before { content: "✓ Yours "; color: var(--accent-ink); }
.sr-pick[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.sr-pick.hard[aria-disabled="true"] { text-decoration: line-through; }
.sr-pick:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }

/* Item names in their quality's colour (#1225), WoW's own; rare and epic lifted to stay at 4.5:1 or more on our dark tiles. */
.q-poor { color: #9d9d9d !important; }
.q-common { color: #ffffff !important; }
.q-uncommon { color: #1eff00 !important; }
.q-rare { color: #3d9bff !important; }
.q-epic { color: #c27dff !important; }
.q-legendary { color: #ff8000 !important; }

/* Soft reserves per player on the raid page (#1238). */
.sr-limit { display: inline-flex; align-items: center; gap: var(--space-2); }
.sr-limit input { width: 5rem; }

/* Item tooltips (#1232), as the game draws them: on keyboard focus or a long-press, under the tile, never wider. */
.sr-pick-wrap { position: relative; }
.sr-pick-wrap .sr-pick { width: 100%; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.sr-tip { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); padding: 10px 12px;
  background: #0b0f1c; border: 1px solid #4a5574; border-radius: 4px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.5);
  font: 13px/1.4 var(--font); color: #ffffff; text-align: left; }
.sr-pick-wrap.open .sr-tip { display: block; }
/* No room below in the window: above its tile instead. */
.sr-pick-wrap.up .sr-tip { top: auto; bottom: calc(100% + 4px); }
/* #1837: with a mouse over the tile, at the pointer, following it; never in the pointer's way. */
.sr-pick-wrap.follow .sr-tip { position: fixed; left: var(--tip-x, 0); top: var(--tip-y, 0); right: auto; bottom: auto;
  width: 300px; max-width: calc(100vw - 8px); pointer-events: none; }
/* #1456: one SR off an item with several, at the tile's corner. */
.sr-pick-wrap .sr-steps { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.sr-pick-wrap .sr-steps .btn { min-width: 32px; }
.sr-pick-wrap.stepped .sr-pick { padding-right: 84px; }
.sr-tip-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.sr-tip-line { display: flex; justify-content: space-between; gap: var(--space-3); overflow-wrap: anywhere; }
.sr-tip-line.tone-gold { color: #ffd100; }
.sr-tip-line.tone-green { color: #1eff00; }
.sr-tip-line.tone-grey { color: #9d9d9d; }

/* A raid's own reminders (#1268), and the server's defaults under them: each select only as wide as its choices (#2746).
   One option a row (#3449), each set apart by a line: its name in bold, its control, then its help in a softer tone under it. */
.raid-reminders { display: grid; gap: var(--space-4); align-items: start; grid-template-columns: minmax(0, 1fr); }
.raid-reminders select { width: auto; max-width: 100%; align-self: start; }
.raid-reminders .field { gap: 6px; }
.raid-reminders .hint { margin: 0; font-size: 12px; line-height: 1.4; }
/* The Soft reserves tab's options the same way (#3449), its fields a step apart. */
.post-reserves-tab > div:not(.field) { display: grid; gap: var(--space-4); align-content: start; }
.raid-reminders > .field + .field, .post-reserves-tab .field:not(.loot-system) { padding-top: var(--space-4); border-top: 1px solid var(--border); }
.raid-reminders .field > label, .post-reserves-tab .field > .label-row label, .post-reserves-tab .loot-system .label {
  font: 600 var(--text-sm)/1.3 var(--font); text-transform: none; letter-spacing: normal; color: var(--text); }
/* Server settings (#1332): the chosen server's cards, one column; reached from the switcher's menu and the avatar's. */
.server-settings-cards { display: grid; gap: var(--space-4); max-width: 760px; margin-top: var(--space-4); }
.server-settings-cards .card { margin: 0; }
.server-settings-cards .card h3 { margin-top: 0; }
/* The Roster signup card (#2126): the channel and Post roster signup on one line that wraps on a phone. */
.roster-signup-post { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3); margin-top: var(--space-2); }
.roster-signup-post .field { flex: 1 1 14rem; min-width: 0; margin: 0; }
.roster-signup-post select { width: 100%; }
.roster-signup-where { margin: var(--space-2) 0; }
.roster-signup, #reminders, #zone, #setup, .team-edit-form { scroll-margin-top: calc(var(--topbar-h, 61px) + var(--space-4)); }
/* The Teams page's way to it (#2135): its header's button (#2207), and on top while none is posted, why to. */
.signup-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); }
.signup-prompt span { flex: 1 1 16rem; }
.setting-head { gap: var(--space-2); }
.setting-head h3 { margin: 0; }
.rem-name { display: inline-flex; align-items: center; gap: var(--space-2); }
/* A setting row's tip opens under the row, from its left edge, so it fits a phone wherever the "i" is. */
.rem-row.has-info { position: relative; }
.rem-row .info-wrap { position: static; }
.rem-row .info { position: relative; }
.rem-row .info-tip { left: 0; }
/* Your own raid art (#1348): pick, upload, and each raid's picture with Remove; wraps on a phone. */
.raid-art { margin-top: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-2); }
.raid-art-upload { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.raid-art-upload select { flex: 1 1 200px; min-width: 0; }
.raid-art-upload input[type=file] { flex: 1 1 200px; min-width: 0; font-size: var(--text-sm); }
.raid-art-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.raid-art-list li { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; }
.raid-art-list img { width: 120px; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 4px; flex: none; }
.raid-art-list span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* Linked (#1343): where Discord's Link Battle.net button ends. */
.linked-lede { font-size: var(--text-lg); font-weight: 600; margin-top: 0; }
/* The time zone picker (#1339). */
.zone-now { font-weight: 600; }
.zone-pick { position: relative; display: grid; gap: var(--space-2); }
.zone-select { width: 100%; }
/* Create event's "(MDT)" beside Date & time (#2487): the server's zone, an officer's a link to it. */
.zone-tag { margin-left: 4px; font-weight: 400; }
/* Server settings in the top bar (#1339), left of the switcher: gear and label; the gear alone on a phone. */
.settings-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 3px 10px; border: 1px solid var(--border-strong);
  border-radius: 18px; color: var(--text-2); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.settings-link:hover, .settings-link.active { color: var(--text); background: var(--hover); }
.settings-link .gear { font-size: 15px; line-height: 1; }
/* The top bar's compact right side (#1926): see the top nav. */
@media (max-width: 639px) {
  .topbar .settings-link { width: 32px; height: 32px; min-height: 0; padding: 0; justify-content: center; }
  .topbar :is(.settings-link-label, .server-chip-name, .clock-city, .clock-set) { display: none; }
  .topbar .server-chip { padding-right: 8px; }
}
@media (max-width: 1334px) {
  .bar-officer .settings-link { width: 32px; height: 32px; min-height: 0; padding: 0; justify-content: center; }
  .bar-officer :is(.settings-link-label, .server-chip-name, .clock-city, .clock-set) { display: none; }
  .bar-officer .server-chip { padding-right: 8px; }
}
@media (max-width: 1664px) {
  .bar-admin .settings-link { width: 32px; height: 32px; min-height: 0; padding: 0; justify-content: center; }
  .bar-admin :is(.settings-link-label, .server-chip-name, .clock-city, .clock-set) { display: none; }
  .bar-admin .server-chip { padding-right: 8px; }
}
@media (max-width: 640px) { .me { gap: var(--space-2); } }
/* The chosen server's plan (#2651), right of the switcher on every page: Premium's badge, a cancelled subscription's in the
   tentative colour, and on Free an officer's quiet Upgrade link. Where the bar has no room for its words it's the diamond
   alone, the words in its tooltip, wherever the words would crowd the bar, measured in every language: a member's words show
   from 750px to the nav's 1005px and from 1250px, an officer's from 1440px, an admin's from 1665px (#1926's last). */
.nav-plan-wrap { display: inline-flex; flex: none; }
/* A crowded right side gives way in the server's name and the clock's city, which ellipsize, not past the window. */
.me { min-width: 0; }
.me > * { flex-shrink: 0; }
.me > :is(.server-switcher, .clock-wrap) { flex-shrink: 1; min-width: 0; }
.server-switcher .server-chip { max-width: min(220px, 100%); }
.nav-plan { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.badge.premium:is(.nav-plan-cancelling, .nav-plan-ending) { background: transparent; color: var(--tentative); box-shadow: inset 0 0 0 1px currentColor; }
.nav-plan-upgrade { padding: 2px 8px; border-radius: 4px; color: var(--muted); font: 500 12px/1.4 var(--font); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--border-strong); cursor: pointer; }
.nav-plan-upgrade:hover, .nav-plan-upgrade:focus-visible { color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.nav-plan-icon { display: none; font-size: 12px; line-height: 1.4; }
@media (max-width: 749px), (min-width: 1005px) and (max-width: 1249px) {
  .bar-member .nav-plan-label { display: none; }
  .bar-member .nav-plan-icon { display: inline; }
}
@media (max-width: 1439px) {
  .bar-officer .nav-plan-label { display: none; }
  .bar-officer .nav-plan-icon { display: inline; }
}
@media (max-width: 1664px) {
  .bar-admin .nav-plan-label { display: none; }
  .bar-admin .nav-plan-icon { display: inline; }
}
.raid-reminders-edit { display: grid; gap: var(--space-3); }
.raid-reminders-edit .btn { justify-self: start; }
.raid-reminders-edit .premium-gate-body { display: grid; gap: var(--space-3); }
/* The grid's gap spaces its rows; the officer tools' field margin on top of it doubled them (#1490). */
.officer .raid-reminders-edit .field { margin-top: 0; }

/* An item picker (#1269): type part of a name; up to 8 suggestions with icon and quality colour, under the field. */
.combo { position: relative; flex: 1; min-width: 0; }
.combo input { width: 100%; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.45); }
.combo-opt { display: flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 4px 8px; border-radius: 4px; cursor: pointer; }
.combo-opt.active { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.combo-art img { width: 28px; height: 28px; border-radius: 4px; display: block; }
.combo-text { display: grid; min-width: 0; }
.combo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-text .sub { font-size: 12px; color: var(--muted); }

/* The server's Trash (#1271): one card per raid, its actions under it. */
.trash-all { display: grid; gap: var(--space-3); }
.trash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.trash-row { display: grid; gap: var(--space-3); }
.trash-what { display: grid; gap: 2px; min-width: 0; }
.trash-what .event-title { font-weight: 600; overflow-wrap: anywhere; }
.trash-what .event-meta { color: var(--muted); font-size: 14px; }
.trash-row .actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Post a raid's hard reserves (#1288), and its roles to mention (#2653): each picked one a removable chip. */
/* Post a raid's Soft reserves tab (#2322): never faded; under RaidSlot.gg, why Hard reserves wait for a raid with loot. */
.post-reserves-tab .reserves-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); }
.post-reserves-tab .reserves-note .hint { margin: 0; }
.hard-chips { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hard-chips .chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 4px 2px 6px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong); font-size: 14px; }
.hard-chips .chip > span:not(.chip-art) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip-art img { width: 20px; height: 20px; border-radius: 4px; display: block; }
.chip-x { min-width: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; line-height: 1; }
.chip-x:hover { color: var(--text); background: var(--surface-3); }
/* Mention roles (#2665): each role in its Discord colour, its dot, its chip's edge and tint, and its name mixed toward the
   text's colour so even a dark role reads on the dark panels; Discord's default, none, the muted grey. */
.mention-role { --role: var(--muted); }
.mention-role .role-name { color: color-mix(in oklab, var(--role) 55%, var(--text)); }
.hard-chips .chip.mention-role { padding-left: 10px; border-color: color-mix(in oklab, var(--role) 55%, transparent);
  background: color-mix(in oklab, var(--role) 14%, var(--surface-2)); }

/* The Permissions card (#1143): a role and its level per row. */
/* Permissions by level (#1340): each level's roles as chips in their Discord colour, and a search to add one. */
.perm-level { margin-top: var(--space-4); }
.role-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.role-chip { --role: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--role) 55%, transparent); background: color-mix(in oklab, var(--role) 14%, var(--surface-2)); font-weight: 600; }
.role-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--role, var(--muted)); }
.role-chip .chip-x { min-height: 0; width: 26px; height: 26px; }
.role-pick { position: relative; margin-top: var(--space-2); }
.role-search { width: 100%; }
.role-options { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }
.role-option { --role: var(--muted); display: flex; align-items: center; justify-content: flex-start; gap: var(--space-2); width: 100%; min-height: var(--touch); padding: 4px 8px;
  background: transparent; border: 0; border-radius: 4px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.role-option:hover, .role-option:focus-visible { background: var(--hover); }
.role-moves { margin-left: auto; font-size: 12px; color: var(--tentative); }
.role-none { padding: 8px; }
/* What members see (#1448), under the View level: labelled as the levels are, its two choices as wide as their words. */
.members-see .label { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.members-see .segmented { align-self: flex-start; flex-wrap: wrap; max-width: 100%; }
.members-see .seg { flex: 1 1 auto; }

/* The avatar's menu (#1156): the member's attendance, Settings and Sign out. */
.avatar-menu { position: relative; }
button.avatar { border: 0; padding: 0; cursor: pointer; min-height: 0; flex: none; }
.avatar-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 180px; display: grid; padding: 4px;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.45); }
/* Every item a plain row (#3159), its icon in one column before its name; the buttons (View as member, Take the tour, Sign
   out) look like the links. */
.avatar-menu-list :is(a, button) { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 4px;
  background: none; color: var(--text); font: inherit; font-weight: 400; text-align: left; text-decoration: none; justify-content: flex-start;
  cursor: pointer; min-height: 0; white-space: nowrap; }
.avatar-menu-list :is(a, button) > .tab-icon { flex: none; width: 18px; height: 18px; margin: 0; color: var(--muted); }
.avatar-menu-list :is(a, button):hover, .avatar-menu-list :is(a, button):focus { background: var(--hover); }
.avatar-menu-list :is(a, button):is(:hover, :focus) > .tab-icon { color: var(--text); }
/* Sign out (#2439): last, below a rule. */
.avatar-menu-list button.sign-out { border-top: 1px solid var(--border-strong); border-radius: 0 0 4px 4px; margin-top: 4px; }
/* Viewing as a member (#2563): an accent bar over every page, its way back on the right. */
.view-as-notice { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between; align-items: center;
  margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm); }
.view-as-notice span { flex: 1 1 12rem; font-weight: 600; }
/* Why it's on another page (#2702): a line under its title. */
.view-as-notice .view-as-moved { display: block; margin-top: var(--space-1); font-weight: 400; font-size: var(--text-sm); }

/* Settings (#1156). */
.settings-page { max-width: 640px; margin: 0 auto; display: grid; gap: var(--space-4); }
.settings-page .card h3 { margin: 0 0 var(--space-2); }
.settings-page .card h3.game-terms-head { margin-top: var(--space-5); }
.settings-who { display: flex; align-items: center; gap: var(--space-3); }
.avatar.big { width: 48px; height: 48px; font-size: 16px; }
.settings-name { font-weight: 600; font-size: 18px; }
/* The Roster's teams (#2089): a card each, its name, how many and its next raid, opening the team (#2325); then New team and Free's note. Below,
   All members, folded while there are teams: its summary one line, the list as before inside. */
.team-cards { display: grid; gap: var(--space-2); margin: var(--space-3) 0 0; }
/* Positioned (#3472): a dragged card's place is measured from its offsetTop, and the page's offset parent puts it far off. */
.team-card-list { display: grid; gap: var(--space-2); position: relative; }
.team-card-list > .hint { margin: 0; }
/* A team's card (#2111): its thumbnail beside its name, then its roles and classes, its next raid and its numbers. The whole
   card opens the team (#2325): its name's link stretches over it, and its next raid's link stays above that. */
.team-card { margin: 0; padding: 14px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3) var(--space-4); align-items: start;
  position: relative; transition: border-color 0.12s, background 0.12s, transform var(--flip); }
.team-card:hover { border-color: var(--border-strong); background: var(--hover); }
.team-card-link { color: inherit; text-decoration: none; }
.team-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.team-card-link:focus-visible { outline: none; }
.team-card-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Its order (#2325), the Officer level's: the card drags (faded while it does), the one it's over is outlined, and its grip,
   above the card's link, moves it with the arrow keys. */
.team-card[draggable="true"] { cursor: grab; }
.team-card.dragging { opacity: 0.45; }
.team-card.drop-over { border-color: var(--accent); background: var(--accent-soft); }
/* The card a link names (#2597, a team's name in the Join a team post): lit in the accent as it scrolls into view, then
   fading back over GuildText.LinkedFor; without motion, lit till then. */
.team-card.linked { animation: team-linked 3s ease-in; }
@keyframes team-linked { from, 50% { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-line); } }
@media (prefers-reduced-motion: reduce) {
  .team-card.linked { animation: none; border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-line); }
}
/* A leader's name (#2515) opens their Discord profile, above the card's own link. */
.team-card .team-leader-link { position: relative; z-index: 1; }
.team-card-grip { position: relative; z-index: 1; min-height: 0; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--muted);
  font-size: 16px; line-height: 1; cursor: grab; }
/* Keep this one active (#3049): above the card's link, and the notice over the cards that asks for it. */
.team-card .team-keep { position: relative; z-index: 1; }
.team-keep-notice { margin: 0 0 var(--space-3); padding: 12px 18px; border-left: 3px solid var(--accent); }
.team-keep-notice p { margin: var(--space-1) 0 0; }
/* Inactive on Free (#3049): greyed out, its buttons not. */
.team-card-inactive { background: var(--panel); }
.team-card-inactive .team-thumb, .team-card-inactive .team-card-name, .team-card-inactive .team-inactive-note { opacity: 0.55; filter: grayscale(1); }
.team-card-inactive .team-inactive-note { margin: 0; }
.team-inactive-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.team-inactive-acts:empty { display: none; }
.team-keep-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-4); }
.team-card-grip:hover { color: var(--text); background: var(--surface-2); }
.team-card-body { display: grid; gap: 6px; min-width: 0; }
.team-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.team-card-name { margin: 0; font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
/* Its head's right end (#2994): its applications, then Apply or Applied, then its grip, whichever come first pushed there. */
.team-card-head > .team-apps-count, .team-apply-head > *, .team-card-grip { margin-left: auto; }
.team-apps-count ~ .team-apply-head > *, .team-apps-count ~ .team-card-grip, .team-apply-head:not(:empty) ~ .team-card-grip { margin-left: 0; }
/* How many are on it (#2994), at its bottom right: beside what it's recruiting, else alone on its last line. */
.team-card-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3); }
.team-card-foot > .team-recruiting-line { flex: 1 1 auto; min-width: 0; }
.team-card-count { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
/* Its own schedule (#2433), one line under its classes (no role counts since #2398). */
.team-card-schedule { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.team-card-schedule .tab-icon { color: var(--muted); vertical-align: -3px; margin-right: 6px; }
.team-card-schedule .team-recruiting-label { margin-right: 4px; }
/* What it's recruiting (#2398): "Recruiting:" and a chip a class/spec (#2414), its icon and its name in its class's colour; its note under them, muted. */
.team-recruiting-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 14px; }
.team-recruiting-label { color: var(--muted); }
.team-recruiting-note { flex-basis: 100%; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.team-recruiting-label + .team-recruiting-note { flex-basis: auto; }
/* Its thumbnail (#2111): its image, square, else its initials on its own colour. */
.team-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; display: grid; place-items: center;
  background: hsl(var(--team-hue, 220) 42% 32%); border: 1px solid var(--border); }
.team-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-initials { color: hsl(var(--team-hue, 220) 80% 90%); font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .team-card { padding: 12px 14px; gap: var(--space-2) var(--space-3); }
  .team-card .team-thumb { width: 48px; height: 48px; border-radius: 10px; }
  .team-card .team-initials { font-size: 17px; }
  /* Its name on its own line; read-only under it; how many are on it sit at its foot (#2994). */
  .team-card-name { flex: 1 0 60%; }
  .team-card-head .team-locked { order: 3; margin-left: 0; font-size: 13px; }
  .team-card-count { font-size: 13px; }
  .team-card-grip { order: 2; }
  .team-card-head .game-tag { order: 3; }
}
.team-new { display: grid; gap: var(--space-2); justify-items: start; }
.team-new .team-form { justify-self: stretch; }
.team-new .team-premium { margin: 0; }
.team-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* The Teams page's Your characters and Raids without a team (#2141), side by side at the right. */
.guild .page-head .team-acts { justify-content: flex-end; }
/* With Roster signup beside it (#2207), the header's buttons wrap under Teams on a phone. */
.guild .page-head { flex-wrap: wrap; }
.signup-button-wrap { display: contents; }
/* Post roster signup, and where it's posted under it, smaller (#2261); Raids without a team stretches to its height. */
.teams-signup { flex-direction: column; gap: 2px; padding-block: 6px; min-width: 0; }
.teams-signup-where { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
@media (max-width: 559px) {
  .guild .page-head .team-acts { flex: 1 1 100%; margin-bottom: var(--space-3); }
  .guild .page-header .team-acts { margin-bottom: 0; }
  .guild .page-head .team-acts .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}
/* Free's one team (#2089): the Roster's "1 of 1 · More teams with Premium" note. */
.team-premium { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.team-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
/* What a team is recruiting (#2398), under its header: the line, and for officers Edit recruiting and its form. */
.team-recruiting { margin: var(--space-2) 0; }
.team-recruiting-show { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.team-recruiting-show p { margin: 0; }
/* A team's own schedule (#2433), under what it's recruiting, as its line: and for officers Edit schedule's form, its days as Repeating's. */
.team-schedule-own { margin: var(--space-2) 0; }
.team-schedule-form { display: grid; gap: var(--space-2); max-width: 40rem; }
.team-schedule-form .hint { margin: 0; }
.team-schedule-form select, .team-schedule-form input { width: auto; min-width: 0; }
.team-schedule-form .team-form input { flex: 0 1 9rem; min-width: 8rem; }
.team-schedule-days { flex-wrap: wrap; justify-self: start; max-width: 100%; }
.team-schedule-day-name { flex: 0 0 2.75rem; font-weight: 600; }
.team-schedule-form .team-schedule-day select { flex: 0 1 7rem; }
.team-leaders-sep { color: var(--faint); }
@media (max-width: 640px) { .team-leaders-sep { display: none; } }
a.team-leader-link { color: var(--text); font-weight: 600; text-decoration: none; }
a.team-leader-link:hover, a.team-leader-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.team-recruiting-form { display: grid; gap: var(--space-2); max-width: 40rem; }
.team-recruiting-form .hint { margin: 0; }
.team-recruiting-form select { width: auto; min-width: 0; }
.team-recruits { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.team-recruit { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  border: 1px solid color-mix(in oklab, var(--class-ink, var(--border)) 40%, transparent);
  background: color-mix(in oklab, var(--class-ink, var(--surface-3)) 12%, var(--surface)); }
.team-recruit .class-tag { width: 22px; height: 22px; font-size: 7.5px; border-radius: 50%; overflow: hidden; }
.team-recruit .class-icon { inset: 0; width: 22px; height: 22px; border-radius: 50%; }
.team-recruit .team-recruit-remove { margin-right: -6px; }
.team-recruit-remove { min-height: 0; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.team-recruit-remove:hover, .team-recruit-remove:focus-visible { color: var(--text); }
.team-form input { flex: 1; min-width: 10rem; }
/* Recruiting's How many (#2554): a number beside the spec, not a full-width field. */
.team-form .team-recruit-count { flex: 0 0 4.5rem; min-width: 0; width: 4.5rem; }
/* A team's game version (#2210): its picker beside the name, and its tag (a raid card's, #2011) with the version's icon. */
.team-form .team-game { flex: 0 1 13rem; min-width: 11rem; }
/* Create event's New team (#2263): its name and Add team under the Team select. */
.post-new-team { margin-top: var(--space-2); }
.post-new-team .hint { margin: var(--space-2) 0 0; }
.game-tag { display: inline-flex; align-items: center; gap: 5px; }
.game-tag-icon { width: 14px; height: 14px; object-fit: contain; flex: none; }
.game-tag.none { background: none; border: 1px dashed var(--border-strong); }
.team-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2); border-radius: 6px; background: var(--panel); }
.team-confirm p { flex-basis: 100%; margin: 0; }
/* A team's members (#2049, 4/6), on its page (#2089): members and who can be added, each a row that wraps on a phone. */
.team-panel { display: grid; gap: var(--space-2); padding: var(--space-3); border-radius: 6px; background: var(--panel); }
.team-panel h4 { margin: var(--space-2) 0 0; font-size: 14px; }
.team-panel .hint { margin: 0; }
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.member-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--hairline); }
.member-row:first-child { border-top: 0; }
.member-who { flex: 1 1 10rem; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
/* A member's Role button and Remove (#2715): the Role menu checks Team Leader and Raid Leader (#2533). */
.member-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2); margin-left: auto; }
.role-menu { position: relative; }
.role-button { gap: 6px; }
.role-button-kind { color: var(--muted); font-weight: 400; }
.role-button .caret { color: var(--muted); font-size: 11px; }
.role-menu-list {
  position: absolute; z-index: 20; right: 0; top: calc(100% + 4px); min-width: 12rem; display: flex; flex-direction: column; gap: 2px; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.4);
}
.role-menu-item {
  display: flex; align-items: center; justify-content: flex-start; gap: var(--space-2); min-height: var(--touch); padding: 0 var(--space-3); width: 100%;
  background: transparent; border: 0; border-radius: 4px; color: var(--text); font: inherit; text-align: left; cursor: pointer; white-space: nowrap;
}
.role-menu-item:hover, .role-menu-item:focus-visible { background: var(--hover); }
.role-menu-item[aria-checked="true"] { font-weight: 600; }
.role-check { display: inline-block; width: 1em; color: var(--accent); }
/* Remove's question (#2715), under its row, full width: the optional reason RaidSlot DMs them. */
.member-row .remove-ask { flex: 1 1 100%; }
.remove-ask .field .hint { margin: var(--space-1) 0 0; }
.member-char { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-weight: 600; min-width: 0; }
.member-char > * { white-space: nowrap; }
/* A character with its details (#2120), as the Teams page's rows: its spec's icon, then its name and links, its details and
   what the row adds, each on its own line. */
.member-rich { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; column-gap: var(--space-3); }
.member-rich > .class-tag { width: 32px; height: 32px; margin-top: 2px; }
.member-lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.member-lines .rm-facts > .rm-detail::before { content: none; }
/* The search for characters to add (#2120), above the members: a full-width field, its results as the members' rows. */
.team-search { display: grid; gap: var(--space-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--hairline); }
.team-search label { font-size: 14px; font-weight: 600; }
.team-search input { width: 100%; min-width: 0; }
.member-meta { color: var(--muted); font-size: 13px; }
/* Its owner by their Discord @username (#2142), the Roster's Discord link (#2038) at the line's size. */
.member-meta a.rm-name.member-owner { display: inline; color: var(--muted); font-size: 13px; font-weight: 500; line-height: inherit; overflow-wrap: anywhere; }
.member-meta a.rm-name.member-owner .rm-discord { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.member-meta a.rm-name.member-owner .rm-name-text { white-space: normal; }
.bnet-linked { display: inline-flex; margin-left: 6px; color: var(--accent-ink); vertical-align: -2px; }
.member-meta a.rm-name.member-owner:hover, .member-meta a.rm-name.member-owner:focus-visible { color: var(--text); }
/* A team's own page (#2089): its name and Delete on one line that wraps; Members is the team panel at full width. */
.team-head { justify-content: flex-start; }
.team-title { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.team-head .page-title { min-width: 0; overflow-wrap: anywhere; margin: 0; }
/* Its short description (#2958): under its name, the title's whole width, its line breaks kept. */
.team-desc, .team-card-desc { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); }
.team-desc { flex: 1 1 100%; max-width: 60ch; }
.team-card-desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Edit (#2958) and Delete team (#2326), in sight at the line's end; on a phone they drop under the name, at its end. */
.team-head-acts { margin-left: auto; flex: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Its Edit form (#2958): each part a labelled block, its why under it; Save and Cancel at its foot; centred in the page at its readable width (#3417). */
.team-edit-form { display: grid; gap: var(--space-4); margin: var(--space-3) auto; padding: var(--space-4); max-width: 44rem; }
.team-edit-field { display: grid; gap: var(--space-2); min-width: 0; }
.team-edit-field .hint { margin: 0; }
.team-edit-label { font-weight: 600; }
.team-edit-field > input[type="text"], .team-edit-field > input[type="url"], .team-edit-field > textarea { width: 100%; max-width: 32rem; }
.team-edit-field > textarea { min-height: 4.5rem; }
/* The team's Description (#3437): tall enough for its 300 characters with no scrollbar, and not resizable; on a phone its lines
   are shorter, so it's taller. Should a text still need more, the form grows it to fit. */
.team-edit-field > textarea.team-edit-description { resize: none; overflow-y: hidden; height: calc(5 * 1.4rem + 2 * var(--space-2) + 2px); }
@media (max-width: 559px) { .team-edit-field > textarea.team-edit-description { height: calc(8 * 1.4rem + 2 * var(--space-2) + 2px); } }
.team-edit-image { grid-template-columns: auto 1fr; align-items: center; column-gap: var(--space-3); }
.team-edit-image > .team-edit-label, .team-edit-image > .team-edit-why { grid-column: 1 / -1; }
.team-edit-image .team-thumb { width: 56px; height: 56px; border-radius: 12px; }
.team-edit-image-pick { display: grid; gap: var(--space-2); min-width: 0; }
.team-edit-image-pick input[type="file"] { max-width: 100%; }
.team-edit-check { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 500; justify-self: start; }
.team-edit-check input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--accent); }
.team-edit-recruiting select { width: auto; min-width: 0; }
.team-edit-recruiting > input[type="text"] { max-width: 32rem; }
.team-edit-why { margin: 0; color: var(--danger, #d33); font-size: 14px; }
.team-edit-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Save and Cancel (#2974): stuck to the screen's bottom while the long form is in view, above the phone's tab bar, edge to
   edge across the card, as Post a raid's (#2004). */
.team-edit-form .team-edit-acts { position: sticky; bottom: calc(52px + env(safe-area-inset-bottom)); z-index: 5;
  margin: 0 calc(-1 * var(--space-4)) calc(-1 * var(--space-4)); padding: var(--space-3) var(--space-4); background: var(--topbar);
  border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 559px) { .team-edit-form { padding: var(--space-3); } .team-edit-acts .btn { flex: 1 1 auto; justify-content: center; }
  .team-edit-form .team-edit-acts { margin: 0 calc(-1 * var(--space-3)) calc(-1 * var(--space-3)); padding: var(--space-3); } }
/* Its thumbnail beside its name (#2111). */
.team-head .team-thumb { width: 72px; height: 72px; border-radius: 14px; }
.team-head .team-initials { font-size: 26px; }
@media (max-width: 640px) {
  .team-head { flex-wrap: wrap; }
  .team-head .team-thumb { width: 56px; height: 56px; border-radius: 12px; }
  .team-head .team-initials { font-size: 20px; }
  .team-head .team-title { flex: 1 1 0; }
  .team-head-acts { flex: 1 1 100%; justify-content: flex-end; }
}
.team-locked { display: inline-flex; align-items: center; gap: var(--space-2); }
.team-count { margin: 0 0 var(--space-3); }
/* Its pending applications (#2469), the Officer level's: a count on its card and its page, then each one's row. */
.team-apps-count { background: var(--accent); color: var(--accent-text); border-color: transparent; }
/* Apply to a team (#2528): above the card's link, which covers the card; its form under the card's lines. */
.team-apply { position: relative; z-index: 1; display: grid; gap: var(--space-2); justify-items: start; }
.team-apply:empty { display: none; }
.team-apply-form { display: grid; gap: var(--space-2); width: 100%; max-width: 32rem; }
.team-apply-form .hint { margin: 0; }
.team-apply-field { display: grid; gap: 4px; font-size: 14px; }
.team-apply-field .listbox { width: 100%; min-width: 0; }
.team-apply-field textarea, .remove-ask textarea, .team-edit-field > textarea { width: 100%; min-width: 0; resize: vertical; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: var(--text-md)/1.4 var(--font); }
.team-apply-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Its Apply and Applied (#2534): small and quiet in the card's head, at its right (after its applications, when it has some). */
.team-apply-head { display: contents; }
.team-apply-btn, .team-applied { position: relative; z-index: 1; min-height: 32px; padding: 4px 12px; white-space: nowrap; }
.team-applied { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--muted); font: 500 var(--text-sm)/1.2 var(--font); }
.team-applied > span { color: var(--confirmed); }
/* Applied, with Withdraw beside it (#3600); its question under the card's lines, as Apply's form is. */
.team-applied-acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-2); }
.team-withdraw-btn { position: relative; z-index: 1; min-height: 32px; padding: 4px 12px; white-space: nowrap; }
.team-withdraw { width: 100%; max-width: 32rem; padding: var(--space-3); }
.team-withdraw p { margin: 0 0 var(--space-2); }
@media (pointer: coarse) { .team-apply-btn, .team-withdraw-btn { min-height: 40px; } }
.team-join > h3 { margin: var(--space-3) 0 0; }
.team-join > .hint { margin: 0; }
.team-apps { margin: var(--space-3) 0; }
.team-apps h4 { display: flex; align-items: center; gap: var(--space-2); }
.team-app-note { margin: var(--space-1) 0 0; font-size: 14px; overflow-wrap: anywhere; }
.team-app-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; }
/* Reject's reason (#2489), in the buttons' place: the field takes the room left. */
.team-app-reject { flex: 1 1 22rem; justify-content: flex-end; }
.team-app-reject input { flex: 1 1 12rem; min-width: 0; max-width: 24rem; }
@media (max-width: 640px) { .team-app-reject input { flex-basis: 100%; max-width: none; } }
.team-page-members .team-panel { padding: var(--space-4); }
.team-page-members .team-panel h4 { font-size: 15px; }
/* A team's Raids tab (#2089, 3/6): Create team raid, then its upcoming and past raids, as the Raids page lists them. */
.team-raids { display: grid; gap: var(--space-2); }
.team-raids .team-raid-new { justify-self: start; }
.team-raids h4 { margin: var(--space-3) 0 0; font-size: 15px; }
.team-raids .hint { margin: 0; }
/* A team's Composition tab (#2153): its lineup board, the raid board's own; the raid size among its tools; dimmed while it saves. */
.lineup-board .board-tools { display: flex; flex-wrap: wrap; align-items: center; }
.lineup-size { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.lineup-size select { min-height: 38px; }
.lineup-board[aria-busy="true"] .gg { opacity: 0.7; }
/* A team's lineup (#2089, 6/6; #2153): Use in a raid ▾ (or, off, why), and who it didn't seat under the board. */
.lineup-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Export for Fojji Core and for MRT (#2600), open under the lineup's tools as a soft reserves export opens (#2281). */
.lineup-export { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--border); }
/* A team's lineups (#2203): the one shown, picked over the board, with New lineup, Rename and Delete; Rename and Delete in place. */
.lineup-sets { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.lineup-sets-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.lineup-sets-label { display: inline; margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.lineup-sets select, .lineup-sets input { width: auto; flex: 0 1 18rem; min-height: 38px; min-width: 0; max-width: 100%; margin: 0; }
.lineup-sets-ask { font-weight: 600; overflow-wrap: anywhere; }
/* The lineup's New lineup, Rename and Delete (#2624), right after it and wrapping together; the raid size after them. */
.lineup-sets .lineup-set-acts { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }
.lineup-sets .lineup-set-acts .btn { min-height: 38px; white-space: nowrap; }
.lineup-sets .lineup-size { margin-left: var(--space-1, 4px); padding-left: var(--space-3); border-left: 1px solid var(--border); }
/* The lineup board's two More ▾ menus (#3422): the board's (Clear; the exports stay in view, #3442) and the lineup's (Rename,
   Reorder, Delete), as Apply ▾'s; its own row's actions stay out, a thin line between the board's and the raid's. */
.lineup-more { position: relative; }
.lineup-more > summary, .board-tools .lineup-more > summary { list-style: none; width: auto; min-height: 38px; padding: 6px 14px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.lineup-more > summary::-webkit-details-marker { display: none; }
.lineup-more .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; display: grid; gap: 6px; padding: 8px; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / 0.5); }
.lineup-more .menu .btn { justify-content: flex-start; text-align: left; white-space: nowrap; }
.lineup-board .board-tools > .lineup-acts, .lineup-board .board-tools > .lineup-raid-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.lineup-board .board-tools > .lineup-acts + .lineup-raid-acts { padding-left: var(--space-3); border-left: 1px solid var(--border); }
/* Reorder (#2783), in place: the team's lineups in order, each with its grip (dragged, or its arrow keys, as the Teams page's
   cards, #2325) and ↑/↓ for a tap; the shown one marked; Done closes it. */
.lineup-order-box { display: grid; gap: var(--space-2); max-width: 32rem; }
.lineup-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.lineup-order-item { display: flex; align-items: center; gap: var(--space-2); padding: 4px 6px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); transition: transform var(--flip); }
/* Reordered teams and lineups slide into place (#3472, Flip.scala); with reduced motion they jump. */
:root { --flip: 0.25s cubic-bezier(0.2, 0, 0, 1); }
@media (prefers-reduced-motion: reduce) { :root { --flip: 0s; } }
.lineup-order-item.current { border-color: var(--accent-line); }
.lineup-order-item.dragging { opacity: 0.45; }
.lineup-order-item.drop-over { border-color: var(--accent); background: var(--accent-soft); }
.lineup-order-name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.lineup-grip { min-height: 0; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: grab; }
.lineup-grip:hover { color: var(--text); background: var(--surface); }
.lineup-order-item .btn { min-width: 38px; min-height: 38px; padding: 0 10px; }
.lineup-order-box > .btn { justify-self: start; min-height: 38px; }
.lineup-order-box .hint { margin: 0; }
/* On a phone (#2240): Create raid on its own row, then Build best composition, Clear and the exports two by two (#3422, #3610,
   #3442), an odd last one taking the full row, then Apply ▾; the lineup, then its New lineup and More ▾ sharing the next row
   (#2624), then the raid size. */
@media (max-width: 640px) {
  .lineup-board .board-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .lineup-board .board-tools > .lineup-acts, .lineup-board .board-tools > .lineup-raid-acts { display: contents; }
  .lineup-board .board-tools .lineup-acts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lineup-board .board-tools .lineup-more > summary, .lineup-sets .lineup-more > summary { width: 100%; }
  .lineup-sets .lineup-set-acts .lineup-more { flex: 1 1 auto; }
  .lineup-board .board-tools .lineup-use { grid-column: 1 / -1; }
  .lineup-board .board-tools .lineup-use > summary { width: 100%; }
  .lineup-sets { padding: 10px 12px; }
  .lineup-sets select { flex: 1 1 0; }
  .lineup-sets .lineup-size { margin-left: 0; padding-left: 0; border-left: 0; flex: 1 1 100%; }
  .lineup-sets .lineup-set-acts { flex: 1 1 100%; }
  .lineup-sets .lineup-set-acts .btn { flex: 1 1 auto; }
}
/* Create raid with this lineup (#2203): Create event's lineup, its Clear and the choices the team remembers; what it did, over the list. */
.post-lineup { border: 1px solid var(--border); border-radius: var(--radius, 8px); padding: var(--space-3); background: var(--surface-2, transparent); }
.post-lineup-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); font-weight: 600; overflow-wrap: anywhere; }
.post-lineup .hint { margin: var(--space-2) 0; }
.post-lineup .post-lineup-check { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-1, 4px); font: inherit; font-size: 14px;
  text-transform: none; letter-spacing: normal; color: var(--text); }
.post-lineup-check input[type=checkbox] { width: auto; min-height: 0; }
/* The second raid (#3450) in its own box, as a picked lineup's: its title and Remove on top, its select. */
.post-more-raid-box { display: grid; gap: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3);
  background: var(--surface-2); }
.post-more-raid-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.post-more-raid-box .post-more-raid-head label { font: 600 var(--text-sm)/1.3 var(--font); text-transform: none; letter-spacing: normal; color: var(--text); }
/* Soft reserves per player (#3471): each raid's, one under the other, its name beside it. */
.post-sr-raids { display: grid; gap: var(--space-2); }
.post-sr-raid { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.post-sr-raid input[type=number] { flex: none; width: 10rem; max-width: 100%; }
.post-sr-raid-name { min-width: 0; font-size: var(--text-sm); color: var(--text); overflow-wrap: anywhere; }
.lineup-done { margin-bottom: var(--space-3); }
.lineup-done p { margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.board-tools .lineup-use > summary { width: auto; padding: 6px 14px; }
.lineup-use .menu .btn { text-align: left; white-space: nowrap; }
.lineup-use .menu .lineup-apply-hint { margin: 0 0 var(--space-2); max-width: 22rem; white-space: normal; }
.lineup-no-raids { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.lineup-away { margin-top: var(--space-3); }
.lineup-away h4 { margin: 0; font-size: 15px; }
.lineup-away h4 .n { color: var(--muted); font-weight: 500; }
.lineup-away ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.lineup-away li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); opacity: 0.7; }
.lineup-away li .name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.lineup-away li .hint { margin: 0; }
/* Use a team's lineup ▾ on a raid's board (#3690): each team's name over its lineups; who it didn't seat under what it did. */
.lineup-use .menu .menu-team { margin: var(--space-2) 0 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.comp-board .lineup-applied .lineup-away { flex-basis: 100%; margin-top: 0; }
@media (max-width: 640px) {
  .comp-board .board-tools .comp-use-lineup { grid-column: 1 / -1; }
  .comp-board .board-tools .comp-use-lineup > summary { width: 100%; }
}
/* The roster's Discord roles by raid role (#2164), under the Roster signup card's post. */
.roster-roles { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.roster-roles h4 { margin: 0 0 var(--space-1); }
.roster-roles-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-2) var(--space-3); }
.roster-roles-pick .field { margin: 0; min-width: 0; }
.roster-roles-pick select { width: 100%; }
.team-roles .roster-roles-pick + .roster-roles-pick, .team-roles .roster-roles-pick + .hint { margin-top: var(--space-3); }
/* New role… (#2357): the name to type, under its picker. */
.team-role-new { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.team-role-new input { flex: 1; min-width: 0; }
/* Some offered role is above RaidSlot's (#2510): how to move RaidSlot's role up, once, above the role pickers. */
/* A Discord permission problem (#3021), anywhere on the web: red, saying step by step how to fix it in Discord, its names
   bold. Scrolled to the middle when it shows out of sight, clear of the sticky top bar. */
.discord-problem { color: var(--danger); margin: var(--space-2) 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm); background: color-mix(in oklch, var(--danger) 10%, transparent); font-size: var(--text-sm); line-height: 1.5;
  overflow-wrap: anywhere; scroll-margin-top: 76px; scroll-margin-bottom: var(--space-4); }
.discord-problem strong { color: inherit; font-weight: 700; }
.roster-signup > .discord-problem { margin-top: var(--space-4); }
.discord-problem + .roster-roles { margin-top: var(--space-3); }
/* The roster signup post's image (#2164): RaidSlot's banner or the server's own, then raid art's upload row. */
.roster-image { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.roster-image h4 { margin: 0; }
.roster-image-plan { display: inline-flex; align-items: center; gap: var(--space-2); }
.roster-image-now { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-2) 0; }
.roster-image-now img { width: min(100%, 360px); aspect-ratio: 4 / 1; object-fit: cover; border-radius: 4px; }

/* Create event's optional fields (#2705) read muted while empty. */
select.unset, .when-field.unset { color: var(--muted); }
select.unset option { color: var(--text); }
/* A required field Post found missing (#2705): red, its line under it, until it's filled. */
.field.invalid > :is(input, select, textarea), .field.invalid .when-field { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: 13px; }

/* Pick the raid (#2389): the Raid field it takes you to, ringed in red, fading out; with reduced motion, held, then gone. */
.flash-ring { animation: flash-ring 1.8s ease-out; }
@keyframes flash-ring {
  0%, 40% { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger); outline-color: var(--danger); }
  100% { box-shadow: 0 0 0 3px transparent; }
}
@media (prefers-reduced-motion: reduce) { .flash-ring { animation-name: flash-ring-held; } }
@keyframes flash-ring-held { from, to { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger); outline-color: var(--danger); } }
/* A team's Warcraft Logs guild (#2802): its header's button, Warcraft Logs' icon beside the name. */
.team-wcl-link { display: inline-flex; align-items: center; gap: var(--space-2); }
/* Upgrade (#3027): each card provider's plans as a grid of buttons, months over price; Discord's store after them. */
.upgrade-cards { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.upgrade-cards .card { margin: 0; }
.upgrade-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.upgrade-plan { display: flex; flex-direction: column; align-items: center; gap: 2px; height: auto; padding: var(--space-3); }
.upgrade-price { font-weight: 600; }

/* The guided tour (#3111): over every page and its popovers, the page dimmed, a spotlight cut out of it by its shadow, and
   the card beside it (centred without one). It moves only for those who don't ask for reduced motion. */
.tour { position: fixed; inset: 0; z-index: 1000; }
/* Scrolled to, a step's element clears the top bar and the phone's tab bar. */
[data-tour] { scroll-margin: 76px 0 72px; }
/* The tour's example raid (#3160): a banner over the real raid page, so nobody takes it for theirs. */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); }
.demo-badge { flex: none; text-transform: uppercase; letter-spacing: 0.06em; }
.tour-scrim { position: absolute; inset: 0; background: rgb(3 7 18 / 0.72); }
.tour-spot { position: fixed; border-radius: var(--radius); box-shadow: 0 0 0 200vmax rgb(3 7 18 / 0.72); outline: 2px solid var(--accent);
  pointer-events: none; }
.tour-card { position: fixed; width: min(340px, calc(100vw - 24px)); padding: var(--space-4); border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 12px 32px rgb(0 0 0 / 0.45); }
.tour-card:focus { outline: none; }
.tour-card:focus-visible { outline: 2px solid var(--accent); }
.tour-card.centred { left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); transform: translate(-50%, -50%); }
.tour-card h2 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.tour-card p { margin: 0 0 var(--space-4); color: var(--muted); }
.tour-choices { display: grid; gap: var(--space-2); }
.tour-foot { display: flex; align-items: center; gap: var(--space-2); }
.tour-count { margin-right: auto; color: var(--muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.tour-notice { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1000; width: min(320px, calc(100vw - 32px));
  padding: var(--space-3) var(--space-4); border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.45); }
.tour-notice p { margin: var(--space-1) 0 var(--space-3); color: var(--muted); }
.tour-notice .tour-foot { justify-content: flex-end; }
.tour-setup { display: grid; gap: var(--space-3); margin: 0 0 var(--space-4); }
/* The last step holds the Setup checklist (#3132): wider, and scrolled inside when taller than the screen. */
.tour-card.wide { overflow-y: auto; max-height: calc(100dvh - 32px); }
.tour-card.wide.centred { width: min(640px, calc(100vw - 32px)); }
.setup-checklist p { margin: 0; }
.tour-card.wide .tour-foot { position: sticky; bottom: calc(-1 * var(--space-4)); margin: 0 calc(-1 * var(--space-4)) calc(-1 * var(--space-4));
  padding: var(--space-3) var(--space-4); background: inherit; border-top: 1px solid var(--border); }
.tour-check { margin: 0; font-size: var(--text-sm); }
.tour-check.ok { color: var(--success); }
.tour-check.warn { color: var(--danger); }
.tour-card .btn-ghost { background: transparent; border-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .tour-spot { transition: left 0.2s ease, top 0.2s ease, width 0.2s ease, height 0.2s ease; }
  .tour-card { animation: tour-in 0.18s ease-out; }
}
@keyframes tour-in { from { opacity: 0; } }
/* A phone's card is a bottom sheet above the tab bar; the corner notice clears it too. */
@media (max-width: 640px) {
  .tour-card, .tour-card.centred { left: 0; right: 0; top: auto; bottom: calc(52px + env(safe-area-inset-bottom)); width: auto;
    transform: none; border-width: 1px 0 0; border-radius: var(--radius) var(--radius) 0 0; }
  .tour-notice { right: 8px; left: 8px; width: auto; bottom: calc(60px + env(safe-area-inset-bottom)); }
  .tour-card.wide, .tour-card.wide.centred { width: auto; max-height: calc(100dvh - 52px - 24px - env(safe-area-inset-bottom)); }
  /* At the top instead when the sheet would cover its spotlight (#3160: a raid's soft reserves bar, at the foot). */
  .tour-card.sheet-top { top: env(safe-area-inset-top); bottom: auto; border-width: 0 0 1px; border-radius: 0 0 var(--radius) var(--radius); }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .tour-card { animation: tour-sheet-in 0.2s ease-out; }
}
@keyframes tour-sheet-in { from { transform: translateY(16px); opacity: 0; } }

/* Server settings' Setup checklist (#3132): a row per place RaidSlot posts, its channel and how RaidSlot stands there. */
.setup-checklist { display: grid; gap: var(--space-3); }
.setup-rows { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.setup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: start;
  padding-top: var(--space-3); border-top: 1px solid var(--border); }
.setup-row:first-child { padding-top: 0; border-top: 0; }
.setup-row > :not(.setup-what):not(.setup-pick) { grid-column: 1 / -1; }
.setup-what label { font-weight: 600; }
.setup-what .hint { margin: 2px 0 0; }
.setup-pick { display: flex; gap: var(--space-2); align-items: center; }
.setup-pick select { max-width: 20rem; }
.setup-pick .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .setup-row { grid-template-columns: minmax(0, 1fr); }
  .setup-pick select { flex: 1; min-width: 0; max-width: none; }
}
.setup-checklist > .btn-ghost { justify-self: start; }
