*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
:root {
  color-scheme: dark;
  --bg:          #0d0e12;
  --bg-card:     #13151c;
  --bg-elevated: #1a1d27;
  --bg-input:    #0f1118;
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);
  --gold:        #d6a344;
  --gold-dim:    #9e742a;
  --gold-light:  #f0c870;
  --text:        #e8e3d8;
  --text-muted:  #c4bdb2;
  --text-dim:    #aea9a0;
  --tank:        #4a9eff;
  --heal:        #3ddc84;
  --ranged:      #bf8cff;
  --melee:       #ff7c5c;
}
body { background:var(--bg); color:var(--text); font-family:'Rajdhani',sans-serif; font-size:18px; min-height:100vh; display:flex; flex-direction:column; }

/* Accessibility utilities (#777). Guild-only when they landed; every page uses
   them since #437 gave the other three a skip link. .sr-only is what hides a
   form control that a styled label draws in its place: display:none would hide
   it from the focus order and the accessibility tree as well, which is what the
   signup chips used to do. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:absolute; left:0.5rem; top:-4rem; z-index:100; padding:0.6rem 1rem; background:var(--bg-elevated); color:var(--gold-light); border:1px solid var(--gold-dim); border-radius:4px; text-decoration:none; letter-spacing:0.08em; transition:top 0.15s; }
.skip-link:focus { top:0.5rem; }

/* Keyboard baseline (#435). Was scoped to .guild-page (css/guild.css) while
   that was the only page anyone had tabbed through; tests/browser/keyboard.test.js
   focuses every focusable element on ten page states now, so it applies
   everywhere. Same declarations guild.html has shipped since #777.

   :focus-visible rather than :focus, so the ring answers the keyboard and not
   the mouse. Chromium decides from the last interaction: after Tab everything
   gets it, after a click a button or a link gets nothing, and a text input or a
   select gets it either way because a control that takes keyboard input always
   matches. All three measured, and asserted in that file.

   The ten rules that used to pair a border-colour :focus with outline:none are
   why this needs the removals rather than careful ordering. Two of them win on
   specificity from anywhere in the file: select#playerSelect is (1,1,0) and
   .officer-prompt-box input is (0,1,1), both above this rule's (0,1,0). */
:focus-visible { outline:2px solid var(--gold); outline-offset:2px; border-radius:2px; }

/* Motion baseline (#435). Was scoped to .guild-page (css/guild.css) while only
   that page had been checked in a browser; tests/browser/reduced-motion.test.js
   checks it on index.html now, so it applies everywhere.

   0.01ms rather than 0: a zero-length animation never fires animationend or
   transitionend, and anything waiting on one would hang instead of finishing
   instantly.

   scroll-behavior here reaches CSS-driven scrolling only. The two places this
   site scrolls pass behavior as an argument to scrollIntoView(), which
   overrides this property, so they ask prefersReducedMotion() in js/common.js
   instead. This line is for anything that scrolls without asking. */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* Header */
.header { position:relative; padding:2.5rem 2rem 2rem; text-align:center; border-bottom:1px solid var(--border); overflow:hidden; }
.header::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 60% 140% at 50% 0%, rgba(214,163,68,0.07) 0%, transparent 70%); pointer-events:none; }
.header-emblem { font-size:2rem; display:block; margin-bottom:0.4rem; filter:drop-shadow(0 0 10px rgba(214,163,68,0.35)); }
.header h1 { font-family:'Cinzel',serif; font-size:1.7rem; font-weight:700; letter-spacing:0.12em; color:var(--gold-light); text-shadow:0 0 24px rgba(214,163,68,0.25); }
.header-sub { font-size:1rem; color:var(--text); letter-spacing:0.18em; text-transform:uppercase; margin-top:0.3rem; }
.header-divider { width:100px; height:1px; background:linear-gradient(90deg,transparent,var(--gold-dim),transparent); margin:1rem auto 0; }
.header-link { display:inline-block; text-decoration:none; color:inherit; transition:opacity 0.15s; }
.header-link:hover { opacity:0.8; }

/* Outbound guild/team link box (#288) -- deliberately outside .site-nav so it
   reads as "leaves the site" rather than another internal tab. */
.header-links { position:absolute; top:1rem; right:1.5rem; display:flex; align-items:center; gap:0.5rem; padding:0.4rem 0.6rem; background:var(--bg-card); border:1px solid var(--border); border-radius:4px; }
.header-links-label { font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); font-weight:600; }
.header-link-icon { display:inline-flex; align-items:center; justify-content:center; width:2.6rem; height:2.6rem; border-radius:4px; background:rgba(255,255,255,0.04); text-decoration:none; opacity:0.8; transition:opacity 0.15s, background 0.15s; }
.header-link-icon:hover { opacity:1; background:rgba(214,163,68,0.14); }
.header-link-icon img { width:30px; height:30px; border-radius:4px; display:block; }
@media (max-width:640px) {
  .header-links { position:static; margin:0.9rem auto 0; width:fit-content; }
}

/* Site nav */
.site-nav { display:flex; align-items:stretch; background:var(--bg-card); border-bottom:1px solid var(--border); padding:0 1rem; }
.site-nav-right { margin-left:auto; display:flex; align-items:stretch; }
.site-nav-item { font-family:'Rajdhani',sans-serif; font-size:0.95rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; padding:0.65rem 1rem; background:transparent; border:none; border-bottom:2px solid transparent; color:var(--text-muted); cursor:pointer; transition:color 0.15s,border-color 0.15s; text-decoration:none; display:inline-flex; align-items:center; }
.site-nav-item:hover { color:var(--text); }
.site-nav-item.active { color:var(--gold-light); border-bottom-color:var(--gold); }
.site-nav-discord { color:var(--text-muted); }
.site-nav-discord:hover { color:var(--text); }
.site-nav-discord.discord-logged-in { color:var(--gold-light); }
.site-nav-discord.discord-logged-in:hover { color:var(--gold); }
.discord-nav-dropdown { position:absolute; top:100%; right:0; background:var(--bg-elevated); border:1px solid var(--border-mid); border-radius:4px; min-width:120px; z-index:300; box-shadow:0 4px 12px rgba(0,0,0,0.5); }
.discord-nav-dropdown button { display:block; width:100%; text-align:left; background:transparent; border:none; color:var(--text-muted); font-family:'Rajdhani',sans-serif; font-size:0.95rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:0.55rem 1rem; cursor:pointer; }
.discord-nav-dropdown button:hover { color:var(--text); background:rgba(255,255,255,0.04); }
/* In-app notification bell (#151) */
.nav-bell-wrap { position:relative; display:flex; align-items:stretch; }
.nav-bell { position:relative; font-size:1.1rem !important; padding:0.65rem 0.75rem !important; }
.notif-dropdown { position:absolute; top:100%; right:0; background:var(--bg-elevated); border:1px solid var(--border-mid); border-radius:4px; min-width:280px; max-width:340px; max-height:360px; overflow-y:auto; z-index:300; box-shadow:0 4px 12px rgba(0,0,0,0.5); }
.notif-empty { padding:0.75rem 1rem; font-size:0.94rem; color:var(--text-muted); }
.notif-header { display:flex; justify-content:flex-end; padding:0.4rem 0.75rem; border-bottom:1px solid var(--border); }
.notif-clear-btn { background:none; border:none; color:var(--text-muted); font-size:0.85rem; cursor:pointer; padding:0; }
.notif-clear-btn:hover { color:var(--gold); text-decoration:underline; }
.notif-row { padding:0.6rem 1rem; border-bottom:1px solid var(--border); }
.notif-row:last-child { border-bottom:none; }
.notif-row.notif-unread { background:rgba(214,163,68,0.07); }
.notif-message { font-size:0.94rem; color:var(--text); line-height:1.4; }
.notif-time { font-size:0.79rem; color:var(--text-dim); margin-top:0.2rem; }
/* Officer quick-actions bar */
.officer-quick-bar { background:var(--bg-elevated); border-bottom:1px solid var(--border); padding:0.45rem 1rem 0.6rem; display:flex; flex-direction:column; gap:0; }
.oqa-row { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.oqa-label { font-family:'Cinzel',serif; font-size:0.87rem; color:var(--gold-dim); letter-spacing:0.15em; text-transform:uppercase; white-space:nowrap; flex-shrink:0; }
.oqa-actions { display:flex; gap:0.4rem; flex-wrap:wrap; }
.oqa-btn { font-size:0.91rem !important; padding:0.25rem 0.7rem !important; }
.oqa-status { font-size:0.95rem; color:var(--text-muted); flex:1; min-width:0; }
.oqa-loot-panel { padding-top:0.25rem; }
.team-switcher { font-family:'Rajdhani',sans-serif; font-size:0.95rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:0.4rem 0.6rem; background:var(--bg-elevated); border:1px solid var(--border-mid); border-radius:3px; color:var(--gold-light); cursor:pointer; align-self:center; margin-right:0.5rem; }
/* Discord claiming modal */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.72); z-index:200; display:flex; align-items:center; justify-content:center; }
.modal-box { background:var(--bg-card); border:1px solid var(--border-mid); border-radius:6px; padding:2rem; width:100%; max-width:400px; display:flex; flex-direction:column; gap:1rem; }
.modal-title { font-family:'Cinzel',serif; font-size:1rem; color:var(--gold-light); letter-spacing:0.1em; margin:0; }
.modal-body { font-size:1.07rem; color:var(--text-muted); margin:0; }
.modal-actions { display:flex; gap:0.5rem; }
/* #512: Confirm/Cancel default to content-width, left-packed with dead space
   on the right -- looks unbalanced now that the full-width "I don't have a
   character yet" button sits directly above it. flex:1 splits the row
   evenly; min-width:0 overrides flex's own min-width:auto default so a
   button can actually shrink to its share instead of refusing to go below
   its content's natural width (harmless here with only 2 short-text buttons,
   but cheap insurance against the same overflow this modal hit with 3). */
.discord-claim-box .modal-actions .btn { flex:1; min-width:0; }
.form-error { font-size:1rem; color:var(--melee); margin:0; }
.form-error-link { color:inherit; text-decoration:underline; }
.claim-modal-team-switch { display:flex; align-items:center; gap:0.6rem; font-size:1rem; color:var(--text-muted); }
.site-nav-item[data-tooltip] { position:relative; }
.site-nav-item[data-tooltip]::after { content:attr(data-tooltip); position:absolute; top:calc(100% + 6px); left:50%; transform:translateX(-50%); background:var(--bg-elevated); border:1px solid var(--border-mid); color:var(--text-muted); font-size:1.07rem; font-weight:400; letter-spacing:0.04em; text-transform:none; white-space:nowrap; padding:0.3rem 0.6rem; border-radius:3px; pointer-events:none; opacity:0; transition:opacity 0s; z-index:200; }
.site-nav-item[data-tooltip]:hover::after { opacity:1; }
/* Hover alone left the tooltips unreachable without a mouse (#435). :focus-visible,
   so clicking a nav item does not pop its own tooltip over the view it just opened. */
.site-nav-item[data-tooltip]:focus-visible::after { opacity:1; }
#navHome::after, #navSignup::after { left:0; transform:none; }
#navDiscord::after, #navOfficer::after { left:auto; right:0; transform:none; }
@media (max-width:480px) { .site-nav { padding:0 0.25rem; } .site-nav-item { padding:0.6rem 0.6rem; font-size:0.89rem; } }

/* States */
.state-msg { text-align:center; padding:3rem 2rem; color:var(--text); font-size:1rem; letter-spacing:0.05em; }
.state-msg.error { color:#ff7c5c; }
.spinner { display:inline-block; width:20px; height:20px; border:2px solid var(--border-mid); border-top-color:var(--gold-dim); border-radius:50%; animation:spin 0.8s linear infinite; margin-bottom:0.75rem; }
@keyframes spin { to { transform:rotate(360deg); } }

/* Indeterminate progress bar for long-running WCL fetches (Attendance/Scoring
   "Refresh from WCL") -- these are single request/response Edge Function
   calls with no real progress to report, so this is just "still working"
   feedback, not a completion percentage. */
.wcl-progress-bar { display:none; width:100%; max-width:320px; height:4px; margin-top:0.5rem; background:var(--bg-input); border-radius:2px; overflow:hidden; }
.wcl-progress-bar.active { display:block; }
.wcl-progress-bar-fill { width:40%; height:100%; background:var(--gold-dim); border-radius:2px; animation:wcl-progress-slide 1.2s ease-in-out infinite; }
@keyframes wcl-progress-slide { 0% { transform:translateX(-100%); } 100% { transform:translateX(350%); } }

/* Views */
/* .view is flex:1 and grew to fill the page as a direct flex child of body.
   With a main landmark between them (#437) it is a child of main instead, so
   main has to be the flex column that grows or every view collapses to its
   content height: measured at 480x800, the History view goes 601px to 188px
   without this. The footer's own bottom-pinning is separate and comes from
   .footer's margin-top:auto, which works whether or not main grows. Classed
   rather than a bare `main` selector so guild.html's own main.guild-body
   layout is untouched. */
main.app-main { flex:1; display:flex; flex-direction:column; }
.view { display:none; flex:1; flex-direction:column; }
.view.active { display:flex; }

/* Landing */
.landing-body { flex:1; display:flex; flex-direction:column; align-items:center; padding:3rem 2rem 2rem; gap:2rem; }
.landing-card { background:var(--bg-card); border:1px solid var(--border-mid); border-top:2px solid rgba(214,163,68,0.4); border-radius:6px; padding:2.5rem 2rem; width:100%; max-width:500px; display:flex; flex-direction:column; align-items:center; gap:0.75rem; }
.claim-prompt h2 { font-family:'Cinzel',serif; font-size:1rem; color:var(--gold-light); letter-spacing:0.1em; }
.claim-prompt p { color:var(--text-muted); font-size:1.07rem; text-align:center; line-height:1.5; }

/* Public stats */
.pub-stats { display:flex; gap:0.75rem; width:100%; max-width:500px; }
.pub-stat { flex:1; background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:0.75rem 1rem; text-align:center; }
.pub-stat-num { display:block; font-size:1.6rem; font-weight:700; color:var(--gold); font-family:'Cinzel',serif; }
.pub-stat-label { display:block; font-size:0.87rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); margin-top:0.2rem; }

/* Raid progression */
.prog-wrap { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; width:100%; max-width:760px; }
@media (max-width:560px) { .prog-wrap { grid-template-columns:1fr; } }
.prog-card { background:var(--bg-card); border:1px solid var(--border-mid); border-top:2px solid rgba(130,60,220,0.45); border-radius:6px; padding:1rem 1.1rem; }
.prog-header { display:flex; flex-direction:column; align-items:center; gap:0.15rem; margin-bottom:0.6rem; text-align:center; }
.prog-raid-name { font-family:'Cinzel',serif; font-size:1.07rem; font-weight:600; color:var(--text); letter-spacing:0.02em; }
.prog-score { font-size:0.97rem; font-weight:700; color:#b085f0; letter-spacing:0.06em; white-space:nowrap; }
.prog-score-combo { display:flex; align-items:center; gap:0.5rem; }
.prog-score-heroic { color:#4dd9e0; }
.prog-bar-wrap { height:4px; background:rgba(255,255,255,0.08); border-radius:2px; margin-bottom:0.75rem; overflow:hidden; }
.prog-bar { height:100%; background:linear-gradient(90deg,#6a30c8,#b085f0); border-radius:2px; transition:width 0.4s; }
.prog-bar-heroic { background:linear-gradient(90deg,#1f8a90,#4dd9e0); }
.prog-bosses { display:flex; flex-direction:column; gap:0.3rem; }
.prog-boss-item { border-bottom:1px solid rgba(255,255,255,0.05); }
.prog-boss-item:last-child { border-bottom:none; }
.prog-boss { display:flex; align-items:center; gap:0.55rem; padding:0.3rem 0 0.1rem; }
.prog-boss-num { font-size:0.87rem; color:var(--text-dim); min-width:1rem; text-align:right; }
.prog-boss-name { flex:1; font-size:1rem; color:var(--text-muted); }
.prog-boss-killed .prog-boss-name { color:var(--heal); }
.prog-boss-date { font-size:0.91rem; color:var(--text-dim); white-space:nowrap; }
.prog-boss-killed .prog-boss-date { color:var(--heal); }
.prog-boss-pulls { font-size:0.87rem; color:var(--text-dim); white-space:nowrap; margin-left:0.4rem; }
.prog-boss-killed .prog-boss-pulls { color:var(--heal); }
a.prog-boss-pulls { text-decoration:none; }
a.prog-boss-pulls:hover { color:var(--gold); text-decoration:underline; }
.prog-boss-heroic { display:flex; align-items:center; gap:0.4rem; padding:0 0 0.3rem 1.55rem; font-size:0.82rem; color:var(--text-dim); }
.prog-boss-heroic-label { font-weight:700; letter-spacing:0.04em; color:#4dd9e0; }
.prog-boss-heroic-date { white-space:nowrap; color:#4dd9e0; }
.prog-boss-heroic-pulls { white-space:nowrap; }
a.prog-boss-heroic-pulls { text-decoration:none; color:var(--text-dim); }
a.prog-boss-heroic-pulls:hover { color:var(--gold); text-decoration:underline; }
.prog-aotc { display:inline-flex; align-items:center; gap:0.4rem; margin-top:0.65rem; font-size:0.89rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold); background:rgba(214,163,68,0.1); border:1px solid rgba(214,163,68,0.3); border-radius:4px; padding:0.2rem 0.6rem; }
.prog-aotc-date { font-weight:400; color:var(--text-muted); letter-spacing:0; text-transform:none; }

/* Progression history (#477) -- plain-text season-by-season recap, newest first. */
.recap-title { font-size:0.91rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-muted); font-weight:600; margin-bottom:0.75rem; padding-bottom:0.4rem; border-bottom:1px solid var(--border-mid); width:100%; max-width:600px; }
.recap-list { display:flex; flex-direction:column; gap:1rem; width:100%; max-width:600px; }
.recap-season-block { padding-bottom:1rem; border-bottom:1px solid rgba(255,255,255,0.05); }
.recap-season-block:last-child { border-bottom:none; padding-bottom:0; }
.recap-season-name { font-family:'Cinzel',serif; font-size:1.07rem; font-weight:600; color:var(--gold-light); letter-spacing:0.02em; margin-bottom:0.25rem; }
.recap-season-score { font-size:1rem; color:var(--text-muted); }
.recap-season-progress { font-size:0.93rem; color:var(--text-dim); margin-top:0.15rem; }

/* Team officer bios (#477, second slice) -- officer-authored bio cards. */
.bio-wrap { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; width:100%; max-width:760px; }
@media (max-width:560px) { .bio-wrap { grid-template-columns:1fr; } }
.bio-card { background:var(--bg-card); border:1px solid var(--border-mid); border-top:2px solid rgba(214,163,68,0.4); border-radius:6px; padding:1.25rem 1.1rem; display:flex; flex-direction:column; align-items:center; text-align:center; gap:0.2rem; }
.bio-photo { width:96px; height:96px; border-radius:8px; object-fit:cover; margin-bottom:0.6rem; }
.bio-photo-fallback { display:flex; align-items:center; justify-content:center; background:rgba(214,163,68,0.12); color:var(--gold-light); border:1px solid rgba(214,163,68,0.3); font-family:'Cinzel',serif; font-size:1.8rem; font-weight:600; }
.bio-name { font-family:'Cinzel',serif; font-size:1.15rem; font-weight:600; color:var(--text); letter-spacing:0.02em; }
.bio-pronouns { font-family:'Rajdhani',sans-serif; font-size:0.93rem; font-weight:500; color:var(--text-dim); letter-spacing:0; }
.bio-charname { font-size:0.95rem; color:var(--text-dim); }
.bio-title { font-size:0.93rem; color:var(--text-muted); margin-top:0.15rem; }
.bio-text { font-size:1rem; color:var(--text-muted); white-space:pre-wrap; margin-top:0.6rem; text-align:left; }

/* Public recent loot */
.pub-loot { width:100%; max-width:760px; }
.roster-sub-nav { display:flex; gap:1.25rem; margin-bottom:1rem; border-bottom:1px solid var(--border); }
.roster-sub-tab { font-family:'Rajdhani',sans-serif; font-size:0.95rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:0.5rem 0; background:transparent; border:none; border-bottom:2px solid transparent; color:var(--text-muted); cursor:pointer; }
.roster-sub-tab:hover { color:var(--text); }
.roster-sub-tab.active { color:var(--gold-light); border-bottom-color:var(--gold); }

.about-sub-nav { display:flex; gap:1.25rem; margin-bottom:1rem; border-bottom:1px solid var(--border); }
.about-sub-tab { font-family:'Rajdhani',sans-serif; font-size:0.95rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:0.5rem 0; background:transparent; border:none; border-bottom:2px solid transparent; color:var(--text-muted); cursor:pointer; }
.about-sub-tab:hover { color:var(--text); }
.about-sub-tab.active { color:var(--gold-light); border-bottom-color:var(--gold); }
.pub-loot-title { font-size:0.91rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-muted); font-weight:600; margin-bottom:0.5rem; padding-bottom:0.4rem; border-bottom:1px solid var(--border-mid); }
.pub-loot-search { margin-bottom:0.6rem; }
.pub-loot-empty { color:var(--text-muted); font-size:1rem; padding:0.5rem 0; }
.pub-loot-row { display:grid; grid-template-columns:90px 1fr auto auto; align-items:center; gap:0.6rem; padding:0.4rem 0; border-bottom:1px solid var(--border); font-size:1.02rem; }
.pub-loot-player { color:var(--gold); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pub-loot-item { color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pub-loot-diff { font-size:0.85rem; letter-spacing:0.06em; text-transform:uppercase; padding:0.15rem 0.45rem; border-radius:3px; font-weight:600; white-space:nowrap; }
.diff-heroic { background:rgba(0,180,200,0.12); color:#4dd9e0; }
.diff-mythic { background:rgba(130,60,220,0.15); color:#b085f0; }
.diff-other  { background:rgba(255,255,255,0.06); color:var(--text-muted); }
.pub-loot-date { color:var(--text-dim); font-size:0.93rem; white-space:nowrap; }

/* Raid calendar (#892) -- real month grid, one status dot per raid night.
   Ported from the redesign/visual-style-layout mock (#864, buildCalendarPreview()
   in js/roster.js there); this file's js/calendar.js is the real implementation. */
.mini-cal-header { font-family:'Cinzel',serif; font-size:1rem; font-weight:700; color:var(--gold-light); letter-spacing:0.06em; text-align:center; margin-bottom:0.6rem; display:flex; align-items:center; justify-content:center; gap:0.75rem; }
.mini-cal-nav { display:flex; gap:0.4rem; }
.mini-cal-nav-btn { padding:0.15rem 0.6rem; font-size:1rem; line-height:1; }
.mini-cal-weekdays { display:grid; grid-template-columns:repeat(7,1fr); margin-bottom:0.3rem; }
.mini-cal-weekday { text-align:center; font-size:0.79rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-dim); }
.mini-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }
.mini-cal-day { min-height:58px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; background:var(--bg-card); border:1px solid var(--border); border-radius:4px; text-decoration:none; color:inherit; }
.mini-cal-day-pad { background:transparent; border-color:transparent; }
.mini-cal-daynum { font-size:0.87rem; color:var(--text-muted); }
.mini-cal-day-raid { border-color:var(--border-mid); }
.mini-cal-day-raid .mini-cal-daynum { color:var(--text); font-weight:600; }
.mini-cal-daycount { font-size:0.85rem; font-weight:600; color:var(--text-muted); white-space:nowrap; }
.mini-cal-day-today { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold) inset; }
.mini-cal-day-clickable { cursor:pointer; transition:border-color 0.15s; }
.mini-cal-day-clickable:hover { border-color:var(--gold-dim); }
.calendar-status { width:8px; height:8px; border-radius:50%; display:inline-block; cursor:default; }
.calendar-status-present { background:var(--heal); }
.calendar-status-absent { background:var(--melee); }
.calendar-status-tentative { background:#e0c23d; }
.calendar-legend { display:flex; flex-wrap:wrap; gap:1rem; margin-top:0.75rem; align-items:center; }
.calendar-legend-item { display:flex; align-items:center; gap:0.4rem; font-size:0.87rem; color:var(--text-muted); }
.rsvp-status-options { display:flex; flex-wrap:wrap; gap:0.5rem; }
.rsvp-note { width:100%; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); font-family:'Rajdhani',sans-serif; font-size:0.95rem; padding:0.5rem 0.7rem; border-radius:3px; resize:vertical; }
.rsvp-note:focus { border-color:var(--gold); }
/* Three buttons (Cancel/Clear/Save) overflowed .officer-prompt-box's 320px
   login-prompt width -- Save clipped past the box's rounded edge. Widen just
   this modal's box and let the row wrap with equal-width buttons instead of
   forcing one line. */
#rsvpModal .officer-prompt-box { max-width:420px; }
#rsvpModal .rsvp-prompt-buttons { flex-wrap:wrap; }
#rsvpModal .rsvp-prompt-buttons .btn { flex:1 1 100px; white-space:normal; text-align:center; }
@media (max-width:480px) { .mini-cal-day { min-height:48px; } .mini-cal-daynum { font-size:0.76rem; } .mini-cal-daycount { font-size:0.72rem; } }

/* Streamers */
.stream-live-topbar { width:100%; text-align:center; background:rgba(214,163,68,0.1); border-bottom:1px solid rgba(214,163,68,0.35); padding:0.45rem 1rem; font-size:1.04rem; font-weight:600; color:var(--gold-light); }
.stream-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:0.85rem; }
.stream-grid-big { grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); }
.stream-card { background:var(--bg-card); border:1px solid var(--border-mid); border-radius:6px; overflow:hidden; display:flex; flex-direction:column; }
.stream-embed-wrap { position:relative; width:100%; padding-top:56.25%; background:#000; }
.stream-embed-wrap iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.stream-card-body { padding:0.65rem 0.8rem; display:flex; flex-direction:column; gap:0.3rem; }
.stream-card-header { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; }
.stream-name { font-weight:600; color:var(--text); }
.stream-live-dot { width:8px; height:8px; border-radius:50%; background:#ff4d4d; box-shadow:0 0 6px rgba(255,77,77,0.6); flex-shrink:0; }
.stream-twitch-link { margin-left:auto; font-size:0.95rem; color:var(--gold); text-decoration:none; border-bottom:1px solid rgba(214,163,68,0.3); }
.stream-twitch-link:hover { color:var(--gold-light); border-color:var(--gold); }
.stream-note { font-size:1rem; color:var(--text-muted); margin:0; }
/* #905: the line every surface showing a time carries, naming the viewer zone. */
.tz-note { font-size:0.95rem; color:var(--text-muted); margin:0 0 0.5rem; }
.stream-card-footer { margin-top:0.15rem; }
.stream-profile-link { font-size:0.97rem; color:var(--gold); text-decoration:none; border-bottom:1px solid rgba(214,163,68,0.3); }
.stream-profile-link:hover { color:var(--gold-light); border-color:var(--gold); }

/* Floating live-streams widget */
.stream-widget { position:fixed; right:1.25rem; bottom:1.25rem; z-index:300; display:flex; flex-direction:column; align-items:flex-end; gap:0.6rem; }
.stream-widget.stream-widget-hidden { display:none !important; }
.stream-widget-pill { display:flex; align-items:center; gap:0.4rem; background:var(--bg-elevated); border:1px solid rgba(214,163,68,0.4); color:var(--gold-light); font-family:'Rajdhani',sans-serif; font-size:0.97rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; padding:0.5rem 0.9rem; border-radius:999px; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,0.35); }
.stream-widget-pill:hover { background:rgba(214,163,68,0.15); }
.stream-widget-dot { width:8px; height:8px; border-radius:50%; background:#ff4d4d; box-shadow:0 0 6px rgba(255,77,77,0.6); }
.stream-widget-panel { width:min(340px,calc(100vw - 2.5rem)); max-height:min(70vh,600px); overflow-y:auto; background:var(--bg-card); border:1px solid var(--border-mid); border-radius:8px; box-shadow:0 8px 28px rgba(0,0,0,0.45); padding:0.75rem; }
.stream-widget-banner { font-size:1rem; font-weight:600; color:var(--gold-light); margin-bottom:0.6rem; }
.stream-widget-empty { color:var(--text-muted); font-weight:400; margin-bottom:0; }
.stream-widget-list { display:flex; flex-direction:column; gap:0.7rem; }
.selector-label { font-size:1.07rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--text-muted); font-weight:600; }
.selector-outer { position:relative; width:100%; max-width:460px; }
.selector-outer::after { content:'▾'; position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--gold-dim); pointer-events:none; font-size:1.02rem; }
select#playerSelect { width:100%; appearance:none; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); font-family:'Rajdhani',sans-serif; font-size:1rem; font-weight:500; padding:0.65rem 2.2rem 0.65rem 1rem; border-radius:3px; cursor:pointer; transition:border-color 0.15s; }
select#playerSelect:hover { border-color:var(--gold-dim); }
select#playerSelect:focus { border-color:var(--gold); box-shadow:0 0 0 2px rgba(214,163,68,0.12); }
select#playerSelect option { background:#1a1d27; }

/* Officer password prompt */
.officer-prompt { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:100; align-items:center; justify-content:center; }
.officer-prompt.active { display:flex; }
.officer-prompt-box { background:var(--bg-card); border:1px solid var(--border-mid); border-radius:6px; padding:2rem; width:100%; max-width:320px; display:flex; flex-direction:column; gap:1rem; }
.officer-prompt-box h2 { font-family:'Cinzel',serif; font-size:1rem; color:var(--gold-light); letter-spacing:0.1em; }
.officer-prompt-box input { width:100%; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); font-family:'Rajdhani',sans-serif; font-size:1rem; padding:0.6rem 1rem; border-radius:3px; }
.officer-prompt-box input:focus { border-color:var(--gold); }
.prompt-buttons { display:flex; gap:0.5rem; }
.btn { font-family:'Rajdhani',sans-serif; font-size:1rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; padding:0.55rem 1.25rem; border-radius:3px; cursor:pointer; border:none; text-decoration:none; display:inline-block; }
.btn-gold { background:rgba(214,163,68,0.12); border:1px solid var(--gold-dim); color:var(--gold-light); }
.btn-gold:hover { background:rgba(214,163,68,0.2); }
.btn-muted { background:transparent; border:1px solid rgba(255,255,255,0.35); color:var(--text); }
.btn-muted:hover { background:var(--bg-elevated); border-color:rgba(255,255,255,0.6); }
.btn.site-nav-discord { background:rgba(88,101,242,0.15); border:1px solid rgba(88,101,242,0.4); color:#c9cdff; }
.btn.site-nav-discord:hover { background:rgba(88,101,242,0.25); color:#c9cdff; }

/* Profile view */
#profileView { padding:0 2rem 3rem; max-width:820px; width:100%; margin:0 auto; }
.profile-card { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; overflow:hidden; animation:fadeUp 0.25s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.role-bar { height:3px; width:100%; }
.role-bar-Tank   { background:var(--tank); }
.role-bar-Heal   { background:var(--heal); }
.role-bar-Ranged { background:var(--ranged); }
.role-bar-Melee  { background:var(--melee); }
.profile-header { position:relative; display:flex; align-items:center; gap:1rem; padding:1.25rem 1.25rem 1rem; border-bottom:1px solid var(--border); }
.profile-avatar { width:52px; height:52px; border-radius:4px; display:flex; align-items:center; justify-content:center; font-family:'Cinzel',serif; font-size:1.15rem; font-weight:600; flex-shrink:0; }
.avatar-Tank   { background:rgba(74,158,255,0.12);  color:var(--tank);   border:1px solid rgba(74,158,255,0.25); }
.avatar-Heal   { background:rgba(61,220,132,0.12);  color:var(--heal);   border:1px solid rgba(61,220,132,0.25); }
.avatar-Ranged { background:rgba(191,140,255,0.12); color:var(--ranged); border:1px solid rgba(191,140,255,0.25); }
.avatar-Melee  { background:rgba(255,124,92,0.12);  color:var(--melee);  border:1px solid rgba(255,124,92,0.25); }
.profile-identity { flex:1; min-width:0; }
.profile-name { font-family:'Cinzel',serif; font-size:1.2rem; font-weight:700; color:var(--text); line-height:1.2; }
.profile-realm { font-size:1rem; color:var(--text-dim); letter-spacing:0.04em; margin-top:2px; }
.profile-badges { display:flex; gap:0.4rem; margin-top:0.5rem; flex-wrap:wrap; align-items:center; }
/* Per-character Armory/Raider.IO/WCL profile links (#289) -- top-right of the
   card, same corner as the guild-wide header links box (#288). */
.profile-links { position:absolute; top:1.25rem; right:1.25rem; display:flex; gap:0.4rem; }
.profile-link-icon { display:inline-flex; align-items:center; justify-content:center; width:2.2rem; height:2.2rem; border-radius:4px; background:rgba(255,255,255,0.04); text-decoration:none; opacity:0.8; transition:opacity 0.15s, background 0.15s; }
.profile-link-icon:hover { opacity:1; background:rgba(214,163,68,0.14); }
.profile-link-icon img { width:24px; height:24px; border-radius:4px; display:block; }
.badge { font-size:1rem; font-weight:600; letter-spacing:0.09em; text-transform:uppercase; padding:2px 8px; border-radius:2px; }
.badge-Tank   { background:rgba(74,158,255,0.12);  color:var(--tank);   border:1px solid rgba(74,158,255,0.2); }
.badge-Heal   { background:rgba(61,220,132,0.12);  color:var(--heal);   border:1px solid rgba(61,220,132,0.2); }
.badge-Ranged { background:rgba(191,140,255,0.12); color:var(--ranged); border:1px solid rgba(191,140,255,0.2); }
.badge-Melee  { background:rgba(255,124,92,0.12);  color:var(--melee);  border:1px solid rgba(255,124,92,0.2); }
.badge-trial  { background:rgba(240,200,112,0.1);  color:#f0c870;       border:1px solid rgba(240,200,112,0.2); }
.badge-backup-tank   { background:rgba(74,158,255,0.1);  color:var(--tank); border:1px solid rgba(74,158,255,0.2); }
.badge-backup-healer { background:rgba(61,220,132,0.1);  color:var(--heal); border:1px solid rgba(61,220,132,0.2); }
.badge-class  { border:1px solid transparent; }
.profile-section { padding:1rem 1.25rem; border-bottom:1px solid var(--border); }
.profile-section:last-child { border-bottom:none; }
.section-label { font-size:1rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-dim); font-weight:600; margin-bottom:0.75rem; }
.bis-row { display:flex; align-items:center; gap:0.65rem; }
.bis-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.bis-dot.yes { background:#3ddc84; box-shadow:0 0 6px rgba(61,220,132,0.35); }
.bis-dot.no  { background:var(--text-dim); }
.bis-link { font-size:1rem; font-weight:500; color:var(--gold); text-decoration:none; border-bottom:1px solid rgba(214,163,68,0.3); transition:color 0.15s,border-color 0.15s; word-break:break-all; }
.bis-link:hover { color:var(--gold-light); border-color:var(--gold); }
.bis-none { font-size:1rem; color:var(--text); }
.priority-list { display:flex; flex-direction:column; gap:0.5rem; }
.priority-row { display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:0.75rem; background:var(--bg-elevated); border:1px solid var(--border); border-radius:3px; padding:0.6rem 0.8rem; }
.priority-row.bis-received { background:rgba(61,220,132,0.05); border-color:rgba(61,220,132,0.2); }
.priority-row.bis-received.bis-received-heroic { background:rgba(214,163,68,0.06); border-color:rgba(214,163,68,0.25); }
.bis-received-badge { font-size:1.02rem; font-weight:600; letter-spacing:0.05em; padding:2px 7px; border-radius:2px; background:rgba(61,220,132,0.1); color:var(--heal); border:1px solid rgba(61,220,132,0.25); white-space:nowrap; }
.priority-item-name { font-size:1.2rem; font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.priority-item-slot { font-size:1rem; color:var(--text); text-transform:uppercase; letter-spacing:0.07em; white-space:nowrap; }
.rank-pill { font-family:'Cinzel',serif; font-size:1rem; font-weight:600; padding:3px 10px; border-radius:2px; min-width:40px; text-align:center; white-space:nowrap; }
.no-items-msg { font-size:1rem; color:var(--text); font-style:italic; }
.attend-row { display:flex; align-items:center; gap:0.75rem; }
.attend-bar-wrap { flex:1; height:6px; background:var(--bg-elevated); border-radius:3px; overflow:hidden; border:1px solid var(--border); }
.attend-bar { height:100%; border-radius:3px; background:var(--heal); transition:width 0.4s ease; }
.attend-label { font-size:1rem; font-weight:600; color:var(--text); min-width:42px; text-align:right; }

/* Officer dashboard */
#officerView { padding:1.5rem 2rem 3rem; max-width:1600px; width:100%; margin:0 auto; }
.officer-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.25rem; flex-wrap:wrap; gap:0.75rem; }
.officer-toolbar h2 { font-family:'Cinzel',serif; font-size:1rem; color:var(--gold-light); letter-spacing:0.1em; }
.data-timestamp { font-size:1rem; color:var(--text-dim); letter-spacing:0.06em; display:block; margin-top:0.2rem; }
.season-selector-wrap { display:flex; align-items:center; gap:0.5rem; }
.season-selector-label { font-size:1.04rem; color:var(--text-muted); white-space:nowrap; }
.season-selector-select { background:var(--bg-card); color:var(--text); border:1px solid var(--border); border-radius:4px; padding:0.3rem 0.6rem; font-size:1.04rem; cursor:pointer; }

/* Stats bar */
.officer-stats { display:grid; grid-template-columns:repeat(5,1fr); gap:0.75rem; margin-bottom:1.5rem; }
.stat-card { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:0.85rem 1rem; text-align:center; }
.stat-value { font-family:'Rajdhani',sans-serif; font-size:1.8rem; font-weight:700; color:var(--gold-light); line-height:1; }
.stat-label { font-size:0.93rem; text-transform:uppercase; letter-spacing:0.12em; color:var(--text); margin-top:0.3rem; }

/* Sidebar + main layout */
.officer-body { display:flex; gap:1.5rem; align-items:flex-start; }
.officer-sidebar { width:152px; flex-shrink:0; display:flex; flex-direction:column; gap:2px; position:sticky; top:1.5rem; }
.officer-main { flex:1; min-width:0; }
.nav-item { display:block; position:relative; width:100%; text-align:left; font-family:'Rajdhani',sans-serif; font-size:0.95rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:0.6rem 0.85rem; background:transparent; border:none; border-left:2px solid transparent; border-radius:0 3px 3px 0; color:var(--text-muted); cursor:pointer; transition:all 0.15s; }
.nav-item:hover { background:var(--bg-elevated); color:var(--text); border-left-color:var(--border-mid); }
.nav-item.active { background:rgba(214,163,68,0.08); color:var(--gold-light); border-left-color:var(--gold); }
.nav-notif { display:inline-flex; align-items:center; justify-content:center; background:#c0392b; color:#fff; font-size:0.82rem; font-weight:700; min-width:16px; height:16px; border-radius:8px; padding:0 4px; line-height:1; vertical-align:middle; margin-left:4px; }
.nav-notif-gold { background:var(--gold); color:#1a1410; }
.nav-notif-abs { position:absolute; top:5px; right:6px; margin:0; }
.nav-notif-dot { min-width:8px; width:8px; height:8px; padding:0; border-radius:50%; vertical-align:top; margin-left:3px; }

/* News tab (#509) */
.news-list { display:flex; flex-direction:column; gap:2px; margin-top:1rem; width:100%; max-width:760px; }
.news-entry { border:1px solid var(--border-mid); border-radius:4px; overflow:hidden; }
.news-entry-pinned { border-color:var(--gold); }
.news-entry-pinned .news-entry-header { background:rgba(214,163,68,0.1); }
.news-pin-icon { flex-shrink:0; font-size:0.9rem; }
.news-entry-header { display:flex; align-items:center; gap:0.75rem; width:100%; text-align:left; background:var(--bg-elevated); border:none; padding:0.65rem 0.9rem; cursor:pointer; color:var(--text); font-family:'Rajdhani',sans-serif; }
.news-entry-header:hover { background:rgba(255,255,255,0.06); }
.news-entry-header:hover .news-entry-title { color:var(--gold-light); }
.news-entry-date { font-size:0.92rem; color:var(--text-muted); flex-shrink:0; min-width:82px; }
.news-entry-version { font-size:0.92rem; color:var(--text-dim); flex-shrink:0; }
.news-entry-title { font-size:1.02rem; font-weight:600; flex:1; min-width:0; }
.news-category-badge { flex-shrink:0; }
.news-entry-chevron { flex-shrink:0; font-size:0.7rem; color:var(--text-dim); transition:transform 0.15s; }
.news-entry-open .news-entry-chevron { transform:rotate(-180deg); }
.news-entry-body { padding:0.75rem 0.9rem 0.9rem; font-size:0.98rem; color:var(--text-muted); line-height:1.5; border-top:1px solid var(--border-mid); }
@media (max-width:600px) { .news-entry-header { flex-wrap:wrap; } .news-entry-title { flex-basis:100%; } }

/* Tab panels */
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* Roster table */
.roster-table { width:100%; border-collapse:collapse; }
.roster-table th { font-size:1.07rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--text); font-weight:600; padding:0.6rem 0.75rem; border-bottom:1px solid var(--border); text-align:left; cursor:pointer; user-select:none; }
.roster-table th:not(:first-child) { text-align:center; }
.roster-table th:hover { color:var(--gold-light); }
.roster-table td { padding:0.55rem 0.75rem; border-bottom:1px solid var(--border); font-size:1rem; vertical-align:middle; color:var(--text); }
.roster-table td:not(:first-child) { text-align:center; }
.roster-table tr.group-header td { font-size:1rem; letter-spacing:0.15em; text-transform:uppercase; color:var(--text-muted); font-weight:600; padding:0.75rem 0.75rem 0.3rem; background:transparent; border-bottom:none; }
.audit-table td:last-child { text-align:center; word-break:break-word; }

/* Raid day detail view (#903) */
.day-view-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:0.75rem; }
.day-view-nav { display:flex; gap:0.5rem; align-items:center; }
.day-view-date { font-family:'Cinzel',serif; font-size:1.05rem; color:var(--gold-light); text-align:center; flex:1; }
.day-view-back { font-size:0.85rem; margin-bottom:0.75rem; display:inline-block; }
.day-view-counts { display:flex; flex-wrap:wrap; gap:1.25rem; margin:0 0 1.25rem; font-size:0.92rem; color:var(--text-muted); }
.day-view-counts strong { color:var(--text); }
.day-view-my-status { border:1px solid var(--border-mid); border-radius:6px; padding:1rem; margin-bottom:1.5rem; display:flex; flex-direction:column; gap:0.75rem; }
.day-view-my-status-header { display:flex; align-items:center; gap:0.6rem; }
.day-roster-status { display:flex; align-items:center; gap:0.75rem; font-size:0.9rem; color:var(--text-muted); text-align:left; }
.day-roster-status-label { display:flex; align-items:center; gap:0.5rem; flex-shrink:0; }
.day-roster-note { flex:1; font-style:italic; color:var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.day-roster-edit-btn { font-family:'Rajdhani',sans-serif; font-size:0.78rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; padding:0.25rem 0.6rem; border-radius:3px; cursor:pointer; border:1px solid rgba(255,255,255,0.35); background:transparent; color:var(--text-muted); }
.day-roster-edit-btn:hover { border-color:var(--gold-dim); color:var(--gold-light); }
.roster-table tr.player-row { cursor:pointer; transition:background 0.1s; }
.roster-table tr.player-row:hover { background:var(--bg-elevated); }
.roster-table tr.player-row.selected { background:rgba(214,163,68,0.06); }
.player-name-cell { display:flex; align-items:center; gap:0.5rem; }
.mini-avatar { width:30px; height:30px; border-radius:3px; display:flex; align-items:center; justify-content:center; font-family:'Cinzel',serif; font-size:1rem; font-weight:600; flex-shrink:0; }
.attend-mini-cell { display:flex; flex-direction:column; align-items:center; gap:3px; }
.attend-mini { font-size:1rem; font-weight:700; }
.attend-mini-bar-wrap { width:36px; height:3px; background:var(--bg-elevated); border-radius:2px; overflow:hidden; }
.attend-mini-bar { height:100%; border-radius:2px; }
.tag { font-size:1rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:1px 6px; border-radius:2px; }
.tag-trial { background:rgba(240,200,112,0.1); color:#f0c870; border:1px solid rgba(240,200,112,0.2); }
.tag-bench { background:rgba(255,255,255,0.04); color:var(--text); border:1px solid var(--border); }
.tag-rotator { background:rgba(255,255,255,0.04); color:var(--text); border:1px solid var(--border); }
.tag-bonus-roll { background:rgba(214,163,68,0.1); color:var(--gold); border:1px solid rgba(214,163,68,0.3); }
.tag-backup-tank { background:rgba(74,158,255,0.1); color:var(--tank); border:1px solid rgba(74,158,255,0.2); }
.tag-backup-healer { background:rgba(61,220,132,0.1); color:var(--heal); border:1px solid rgba(61,220,132,0.2); }
#officerProfile { margin-top:1.5rem; }

/* Roster filters */
.filter-bar { display:flex; gap:0.5rem; margin-bottom:1rem; flex-wrap:wrap; align-items:center; }
.filter-chip { font-family:'Rajdhani',sans-serif; font-size:0.95rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:0.3rem 0.8rem; border-radius:3px; cursor:pointer; border:1px solid rgba(255,255,255,0.35); background:transparent; color:var(--text); transition:all 0.15s; }
.filter-chip.active { background:rgba(214,163,68,0.12); border-color:var(--gold-dim); color:var(--gold-light); }
.filter-chip:hover { border-color:rgba(255,255,255,0.6); }

/* Roster search */
.roster-search-row { display:flex; gap:0.5rem; margin-bottom:0.75rem; flex-wrap:wrap; align-items:flex-start; }
.roster-search-input { font-family:'Rajdhani',sans-serif; font-size:1.02rem; font-weight:500; padding:0.3rem 0.75rem; border-radius:3px; border:1px solid var(--border); background:var(--bg-input); color:var(--text); transition:border-color 0.15s; flex:1; min-width:140px; width:100%; }
.roster-search-input::placeholder { color:var(--text-muted); }
.roster-search-input:focus { border-color:var(--gold-dim); }
.bis-search-wrap { position:relative; flex:1; min-width:140px; display:flex; flex-direction:column; gap:0.25rem; }
.bis-item-count { font-size:1rem; font-weight:600; letter-spacing:0.08em; color:var(--gold); padding-left:0.25rem; min-height:1em; }

/* Trial promotion alert */
.trial-promo-card { background:rgba(240,200,112,0.04); border:1px solid rgba(240,200,112,0.2); border-left:3px solid var(--gold-dim); border-radius:4px; padding:0.85rem 1.1rem; margin-bottom:1rem; }
.trial-promo-header { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.6rem; flex-wrap:wrap; }
.trial-promo-title { font-size:1rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold-light); }
.trial-promo-count { font-size:1.02rem; font-weight:600; padding:2px 8px; border-radius:2px; background:rgba(240,200,112,0.1); color:var(--gold); border:1px solid rgba(240,200,112,0.25); }
.trial-promo-thresholds { display:flex; align-items:center; gap:0.4rem; flex-wrap:wrap; margin-bottom:0.7rem; }
.trial-promo-thresh-label { font-size:0.97rem; color:var(--text-muted); }
.trial-promo-input { width:42px; font-family:'Rajdhani',sans-serif; font-size:1.02rem; font-weight:600; text-align:center; padding:0.2rem 0.3rem; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); border-radius:3px; }
.trial-promo-input:focus { border-color:var(--gold-dim); }
.trial-promo-table { width:100%; border-collapse:collapse; }
.trial-promo-table th { font-size:0.95rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); font-weight:600; padding:0.3rem 0.6rem; border-bottom:1px solid rgba(240,200,112,0.15); text-align:left; }
.trial-promo-table th:not(:first-child) { text-align:center; }
.trial-promo-table td { padding:0.4rem 0.6rem; border-bottom:1px solid var(--border); font-size:1rem; vertical-align:middle; }
.trial-promo-table td:not(:first-child) { text-align:center; }
.trial-promo-row { cursor:pointer; transition:background 0.1s; }
.trial-promo-row:hover { background:rgba(214,163,68,0.05); }
.trial-promo-row:last-child td { border-bottom:none; }

/* Onboarding checklist (#478) */
.onboarding-badge { font-size:0.87rem; font-weight:700; padding:1px 6px; border-radius:2px; background:rgba(74,158,255,0.12); color:var(--tank); border:1px solid rgba(74,158,255,0.3); white-space:nowrap; }
.onboarding-alert-card { background:rgba(74,158,255,0.04); border:1px solid rgba(74,158,255,0.2); border-left:3px solid var(--tank); border-radius:4px; padding:0.85rem 1.1rem; margin-bottom:1rem; }
.onboarding-alert-header { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.6rem; flex-wrap:wrap; }
.onboarding-alert-title { font-size:1rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--tank); }
.onboarding-alert-count { font-size:1.02rem; font-weight:600; padding:2px 8px; border-radius:2px; background:rgba(74,158,255,0.1); color:var(--tank); border:1px solid rgba(74,158,255,0.25); }
.onboarding-alert-table { width:100%; border-collapse:collapse; }
.onboarding-alert-table th { font-size:0.95rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); font-weight:600; padding:0.3rem 0.6rem; border-bottom:1px solid rgba(74,158,255,0.15); text-align:left; }
.onboarding-alert-table td { padding:0.4rem 0.6rem; border-bottom:1px solid var(--border); font-size:1rem; vertical-align:middle; }
.onboarding-alert-row { cursor:pointer; transition:background 0.1s; }
.onboarding-alert-row:hover { background:rgba(74,158,255,0.05); }
.onboarding-alert-row:last-child td { border-bottom:none; }
.onboarding-welcome-banner { margin:0.75rem 1.25rem 0; padding:0.6rem 0.85rem; background:rgba(74,158,255,0.06); border:1px solid rgba(74,158,255,0.25); border-radius:4px; font-size:1rem; color:var(--text); }
.onboarding-welcome-link { margin-left:0.4rem; background:none; border:none; color:var(--tank); font-weight:600; text-decoration:underline; cursor:pointer; padding:0; font-size:1rem; font-family:inherit; }

/* Contested Items -- collapsed-by-default item rows, click to expand */
.conflict-item { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; margin-bottom:0.75rem; overflow:hidden; }
.conflict-item-toggle { display:flex; align-items:center; gap:0.75rem; width:100%; background:none; border:none; padding:1rem 1.25rem; cursor:pointer; text-align:left; font-family:inherit; }
.conflict-item-toggle:hover { background:var(--bg-elevated); }
.conflict-item-name { font-size:1.1rem; font-weight:600; color:var(--text); display:flex; align-items:center; gap:0.75rem; flex:1; min-width:0; }
.conflict-count { font-size:1rem; font-weight:600; padding:2px 8px; border-radius:2px; background:rgba(214,163,68,0.12); color:var(--gold); border:1px solid rgba(214,163,68,0.25); flex-shrink:0; }
.conflict-item-chevron { color:var(--text-dim); font-size:0.9rem; flex-shrink:0; }
.conflict-players { display:flex; flex-wrap:wrap; gap:0.4rem; padding:0 1.25rem 1rem; }
.conflict-player-tag { font-size:1.02rem; padding:2px 8px; border-radius:2px; background:var(--bg-elevated); border:1px solid var(--border); color:var(--text); display:inline-flex; align-items:center; gap:0.35rem; }
.conflict-player-tag.ranked { border-color:rgba(214,163,68,0.3); color:var(--gold-light); }
.conflict-player-tag.received { opacity:0.5; text-decoration:line-through; }
.received-badge { font-size:1rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; padding:1px 5px; border-radius:2px; background:rgba(61,220,132,0.12); color:var(--heal); border:1px solid rgba(61,220,132,0.25); text-decoration:none; display:inline-block; }
/* Collapsible section header shared by the Priority List sub-tab's
   Conflicts/Drift/#1s-held banners -- collapsed by default, click to expand */
.prio-section-toggle { display:flex; align-items:center; gap:0.5rem; width:100%; background:none; border:none; padding:0; margin:0; cursor:pointer; text-align:left; font-family:inherit; }
.prio-section-chevron { color:var(--text-dim); font-size:0.85rem; flex-shrink:0; }
.prio-section-summary { font-size:0.9rem; font-weight:400; text-transform:none; letter-spacing:normal; color:var(--text-muted); }
/* Priority List Conflicts banner (stale/same-boss) */
.prio-overalloc-banner { background:rgba(214,90,60,0.07); border:1px solid rgba(214,90,60,0.28); border-radius:4px; padding:0.85rem 1.1rem; margin-bottom:1rem; }
.prio-overalloc-title { font-size:1rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:#e05a3a; margin-bottom:0.55rem; }
.prio-overalloc-list { display:flex; flex-direction:column; gap:0.3rem; margin-top:0.55rem; }
.prio-overalloc-player { display:flex; flex-wrap:wrap; align-items:center; gap:0.4rem; }
.prio-overalloc-name { font-size:1rem; font-weight:600; color:var(--text); min-width:80px; }
.prio-overalloc-item { font-size:0.93rem; padding:1px 6px; border-radius:2px; background:rgba(214,90,60,0.1); color:#e05a3a; border:1px solid rgba(214,90,60,0.22); }
/* Drift banner (saved priority order vs. current scoring, its own section) */
.prio-drift-banner { background:rgba(214,163,68,0.07); border:1px solid rgba(214,163,68,0.28); border-radius:4px; padding:0.85rem 1.1rem; margin-bottom:1rem; }
.prio-drift-title { font-size:1rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold); margin-bottom:0.55rem; }
.prio-drift-explainer { font-size:0.87rem; color:var(--text-muted); margin:0.55rem 0 0.6rem; max-width:60em; }
/* Priority List sub-tab's #1-priorities-held summary table */
.prio-firstprio-summary { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:0.85rem 1.1rem; margin-bottom:1rem; }
.prio-firstprio-title { font-size:1rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-muted); margin-bottom:0.55rem; }
.prio-firstprio-list { display:flex; flex-direction:column; gap:0.3rem; margin-top:0.55rem; }
.prio-firstprio-row { display:flex; flex-wrap:wrap; align-items:center; gap:0.5rem; padding:0.2rem 0; border-bottom:1px solid var(--border); }
.prio-firstprio-row:last-child { border-bottom:none; }
.prio-firstprio-name { font-size:1rem; font-weight:600; color:var(--text); min-width:140px; }
.prio-firstprio-count { font-size:0.93rem; font-weight:700; padding:1px 7px; border-radius:2px; background:rgba(214,163,68,0.12); color:var(--gold); border:1px solid rgba(214,163,68,0.25); }
.prio-firstprio-count-flagged { background:rgba(214,90,60,0.1); color:#e05a3a; border-color:rgba(214,90,60,0.22); }
.prio-firstprio-sameboss { font-size:0.87rem; padding:1px 6px; border-radius:2px; background:rgba(214,90,60,0.1); color:#e05a3a; border:1px solid rgba(214,90,60,0.22); }
.prio-overalloc-diff { text-transform:uppercase; font-size:0.87rem; opacity:0.75; margin-left:2px; }
/* Dismiss/Restore for same-boss conflict groups, and the collapsed "N dismissed" line below the main banner */
.prio-conflict-dismiss-btn { font-size:0.82rem; padding:1px 8px; border-radius:2px; background:none; border:1px solid var(--border-mid); color:var(--text-muted); cursor:pointer; margin-left:auto; }
.prio-conflict-dismiss-btn:hover { border-color:var(--text-muted); color:var(--text); }
.prio-conflict-dismiss-all-row { padding-bottom:0.3rem; margin-bottom:0.15rem; border-bottom:1px solid rgba(214,90,60,0.2); }
.prio-overalloc-dismissed { margin-top:0.65rem; padding-top:0.6rem; border-top:1px solid rgba(214,90,60,0.2); }

/* Loot fairness */
.fairness-section-header { font-size:1.02rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-muted); padding:0.5rem 0 0.35rem; margin-top:1rem; border-bottom:1px solid var(--border-mid); margin-bottom:0.5rem; }
.fairness-section-header:first-child { margin-top:0; }
.fairness-row { display:grid; grid-template-columns:130px 1fr 36px; align-items:center; gap:0.85rem; padding:0.4rem 0; border-bottom:1px solid var(--border); }
.fairness-bar-wrap { height:10px; background:var(--bg-elevated); border-radius:3px; overflow:visible; position:relative; }
.fairness-bar { height:100%; border-radius:3px; background:var(--ranged); }
.fairness-avg-line { position:absolute; top:-3px; bottom:-3px; width:2px; background:var(--gold-dim); opacity:0.8; transform:translateX(-50%); border-radius:1px; pointer-events:none; }
.fairness-avg-legend { display:flex; align-items:center; gap:0.4rem; font-size:1rem; color:var(--text-muted); margin-top:1rem; padding-top:0.75rem; border-top:1px solid var(--border); }
.fairness-avg-line-swatch { display:inline-block; width:10px; height:10px; border-radius:1px; background:var(--gold-dim); flex-shrink:0; }
.fairness-count { font-size:1rem; font-weight:600; color:var(--text); text-align:right; }

/* Attendance tab */
.attend-threshold-row { display:flex; align-items:center; gap:1rem; margin-bottom:1.25rem; flex-wrap:wrap; }
.attend-threshold-label { font-size:1rem; color:var(--text-muted); white-space:nowrap; min-width:130px; }
.attend-threshold-label strong { color:var(--gold-light); font-weight:700; }
.attend-slider { flex:1; min-width:160px; -webkit-appearance:none; appearance:none; height:4px; border-radius:2px; background:var(--bg-elevated); cursor:pointer; }
.attend-slider::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:16px; height:16px; border-radius:50%; background:var(--gold); border:2px solid var(--bg-card); cursor:pointer; }
.attend-slider::-moz-range-thumb { width:16px; height:16px; border-radius:50%; background:var(--gold); border:2px solid var(--bg-card); cursor:pointer; }
.attend-player-row { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:1rem 1.25rem; margin-bottom:0.75rem; }
.attend-player-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:0.5rem; }
.attend-player-name { font-size:1rem; font-weight:600; color:var(--text); }
.attend-penalty-list { display:flex; flex-direction:column; gap:0.25rem; margin-top:0.5rem; }
.attend-penalty-entry { display:flex; justify-content:space-between; font-size:1rem; padding:0.2rem 0; border-bottom:1px solid var(--border); }

/* Attendance manage panel */
.attend-manage-panel { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:1.25rem; margin-bottom:1.25rem; }
.attend-manage-header { display:flex; align-items:center; justify-content:space-between; gap:0.75rem; flex-wrap:wrap; margin-bottom:1rem; }
.attend-confirm-banner { background:rgba(214,163,68,0.07); border:1px solid var(--gold-dim); border-radius:3px; padding:0.65rem 1rem; font-size:1rem; color:var(--text); margin-bottom:0.75rem; display:flex; align-items:center; flex-wrap:wrap; gap:0.5rem; }
.attend-night-select { appearance:none; -webkit-appearance:none; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); font-family:'Rajdhani',sans-serif; font-size:1rem; font-weight:500; padding:0.5rem 1rem 0.5rem 0.75rem; border-radius:3px; cursor:pointer; min-width:240px; max-width:100%; }
.attend-night-select:focus { border-color:var(--gold); }
.attend-grid-info { font-size:1.04rem; color:var(--text-muted); margin-bottom:0.6rem; }
.attend-grid-rows { display:flex; flex-direction:column; gap:0.3rem; }
.attend-grid-row { display:grid; grid-template-columns:150px 120px 1fr 56px; align-items:center; gap:0.6rem; background:var(--bg-elevated); border:1px solid var(--border); border-radius:3px; padding:0.4rem 0.75rem; }
.attend-grid-name { font-size:1rem; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.attend-grid-source { font-size:1rem; color:var(--text-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.attend-status-wrap { position:relative; }
.attend-status-wrap::after { content:'▾'; position:absolute; right:0.5rem; top:50%; transform:translateY(-50%); color:var(--gold-dim); pointer-events:none; font-size:0.97rem; }
.attend-status-select { appearance:none; -webkit-appearance:none; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); font-family:'Rajdhani',sans-serif; font-size:1.07rem; padding:0.28rem 1.4rem 0.28rem 0.55rem; border-radius:3px; cursor:pointer; width:100%; }
.attend-status-select:focus { border-color:var(--gold); }
.attend-status-select:disabled { opacity:0.6; cursor:default; }
.attend-save-ind { font-size:0.97rem; font-weight:600; text-align:right; white-space:nowrap; }
.attend-card-status-select { width:auto; }

/* Priority tab */
.prio-section-header { font-size:1rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-muted); padding:0.5rem 0 0.35rem; margin-top:1rem; border-bottom:1px solid var(--border-mid); margin-bottom:0.6rem; }
.prio-section-header:first-child { margin-top:0; }
.prio-collapsible { cursor:pointer; display:flex; justify-content:space-between; align-items:center; user-select:none; }
.prio-collapsible:hover { color:var(--text); }
.prio-chevron { font-size:1.02rem; font-weight:400; color:var(--text-dim); }
.prio-sub-header { font-size:1.02rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; padding:0.4rem 0 0.25rem; margin-top:0.5rem; margin-bottom:0.3rem; }
.prio-item { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:1rem 1.25rem; margin-bottom:0.5rem; }
.prio-item-header { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.75rem; flex-wrap:wrap; }
.prio-item-slot { font-size:1rem; text-transform:uppercase; letter-spacing:0.08em; }

/* Shared item name/stat-pill styling (#561) -- itemNameBlockHtml()/statPillListHtml()
   in js/common.js use these for both the Priority tab (officer.html) and the
   raider Wishlist (index.html), so they live outside the Priority-tab-only block above. */
.item-icon-lg { width:38px; height:38px; border-radius:4px; border:1px solid var(--border); flex-shrink:0; }
.item-icon-sm { width:22px; height:22px; border-radius:3px; border:1px solid var(--border); flex-shrink:0; }
.item-detail-line { font-size:0.9rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted); margin-top:0.15rem; }
.item-detail-sep { margin:0 0.4rem; opacity:0.5; }
.stat-pill { font-size:0.9rem; font-weight:600; letter-spacing:0.03em; text-transform:none; padding:2px 7px; line-height:1.2; display:inline-block; border-radius:2px; background:rgba(255,255,255,0.05); border:1px solid var(--border); margin-right:0.3rem; }
.tier-pill { font-size:0.9rem; font-weight:700; letter-spacing:0.03em; text-transform:none; padding:2px 7px; line-height:1.2; display:inline-block; border-radius:2px; background:rgba(214,163,68,0.15); border:1px solid rgba(214,163,68,0.4); color:var(--gold); }
.prio-item-count { font-size:1rem; font-weight:600; padding:2px 8px; border-radius:2px; background:rgba(255,255,255,0.05); color:var(--text-muted); border:1px solid var(--border); }
.prio-ranked-list { display:flex; flex-direction:column; gap:0.2rem; }
.prio-rank-row { display:flex; align-items:center; gap:0.6rem; padding:0.25rem 0; border-bottom:1px solid var(--border); }
.prio-rank-row:last-child { border-bottom:none; }
.prio-rank-num { font-size:1rem; font-weight:700; color:var(--text-dim); min-width:22px; text-align:right; flex-shrink:0; }
.prio-rank-name { font-size:1.07rem; font-weight:600; flex:1; }
.prio-role-badge { font-size:1rem; font-weight:700; letter-spacing:0.1em; padding:1px 6px; border-radius:2px; flex-shrink:0; }
.prio-rank-wishlist { font-size:0.87rem; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; padding:1px 6px; border-radius:2px; border:1px solid; background:rgba(255,255,255,0.03); flex-shrink:0; white-space:nowrap; }
.prio-rank-wishlist-none { color:var(--text-dim); border-color:var(--border); font-style:italic; text-transform:none; letter-spacing:0; }
.prio-rank-received { font-size:0.87rem; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; padding:1px 6px; border-radius:2px; border:1px solid rgba(255,124,92,0.3); background:rgba(255,124,92,0.1); color:var(--melee); flex-shrink:0; white-space:nowrap; cursor:help; }
.prio-role-Tank   { color:var(--tank);   background:rgba(74,158,255,0.1);  border:1px solid rgba(74,158,255,0.3); }
.prio-role-Heal   { color:var(--heal);   background:rgba(61,220,132,0.1);  border:1px solid rgba(61,220,132,0.3); }
.prio-role-Melee  { color:var(--melee);  background:rgba(255,124,92,0.1);  border:1px solid rgba(255,124,92,0.3); }
.prio-role-Ranged { color:var(--ranged); background:rgba(191,140,255,0.1); border:1px solid rgba(191,140,255,0.3); }
.prio-chip-disabled { opacity:0.35; cursor:not-allowed; }
.prio-export-card { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:1rem 1.25rem; margin-bottom:1.25rem; }
.prio-export-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.prio-export-label { font-size:1.04rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); }
.prio-export-textarea { width:100%; font-family:monospace; font-size:0.93rem; padding:0.6rem 0.75rem; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); border-radius:3px; resize:vertical; min-height:72px; margin-top:0.85rem; margin-bottom:0.6rem; box-sizing:border-box; }
.prio-export-actions { display:flex; align-items:center; gap:0.75rem; }
.prio-export-copy-msg { font-size:0.97rem; color:var(--heal); }

/* Priority Edit Modal */
.prio-edit-box { max-width:900px; width:95vw; max-height:90vh; min-height:0; overflow:hidden; }
.prio-edit-header { display:flex; align-items:center; gap:0.75rem; flex-shrink:0; }
.prio-edit-title { font-family:'Cinzel',serif; font-size:1rem; color:var(--gold-light); letter-spacing:0.1em; flex:1; min-width:0; word-break:break-word; }
.prio-edit-body { display:flex; gap:1.5rem; min-height:260px; margin-top:0.25rem; flex:1; overflow-y:auto; }
.prio-edit-ranked { flex:1; min-width:0; display:flex; flex-direction:column; }
.prio-edit-pool-col { width:280px; flex-shrink:0; display:flex; flex-direction:column; }
.prio-edit-section-label { font-size:0.91rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-muted); margin-bottom:0.4rem; }
.prio-drag-list { display:flex; flex-direction:column; gap:0.2rem; flex:1; }
.prio-drag-list-empty { font-size:0.97rem; color:var(--text-muted); font-style:italic; padding:0.4rem 0; }
.prio-drag-item { display:flex; flex-direction:column; gap:0.15rem; padding:0.35rem 0.5rem; background:var(--bg-elevated); border:1px solid var(--border); border-radius:3px; cursor:grab; user-select:none; transition:opacity 0.1s; }
.prio-drag-item.dragging { opacity:0.35; }
.prio-drag-item.drag-over { border-color:var(--gold); background:rgba(197,153,83,0.12); }
.prio-drag-item.locked { border-color:rgba(197,153,83,0.5); }
.prio-drag-item-row { display:flex; align-items:center; gap:0.45rem; }
.prio-drag-handle { color:var(--text-dim); font-size:0.97rem; line-height:1; flex-shrink:0; }
.prio-drag-rank { font-size:0.97rem; font-weight:700; color:var(--text-dim); min-width:18px; text-align:right; flex-shrink:0; }
.prio-drag-name { flex:1; font-size:1.05rem; font-weight:600; color:var(--text); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.prio-drag-lock { background:none; border:none; color:var(--text-dim); cursor:pointer; font-size:0.95rem; padding:0 2px; line-height:1; flex-shrink:0; opacity:0.55; }
.prio-drag-lock:hover { opacity:1; }
.prio-drag-lock.active { color:var(--gold); opacity:1; }
.prio-drag-remove { background:none; border:none; color:var(--text-dim); cursor:pointer; font-size:1.07rem; padding:0 2px; line-height:1; flex-shrink:0; }
.prio-drag-remove:hover { color:var(--melee); }
.prio-drag-item .prio-role-badge { font-size:0.84rem; padding:1px 4px; flex-shrink:0; }
.prio-drag-meta { font-size:0.89rem; color:var(--text-muted); padding-left:calc(18px + 0.45rem); display:flex; flex-wrap:wrap; align-items:baseline; gap:0.3rem; }
.prio-drag-meta-status { font-style:italic; }
.prio-pool-list { display:flex; flex-direction:column; gap:0.2rem; flex:1; overflow-y:auto; overflow-x:hidden; max-height:240px; margin-bottom:0.4rem; }
.prio-pool-item { display:flex; align-items:center; flex-wrap:wrap; gap:0.3rem 0.4rem; padding:0.3rem 0.45rem; background:var(--bg-elevated); border:1px solid var(--border); border-radius:3px; cursor:pointer; font-size:1rem; transition:background 0.1s; }
.prio-pool-item:hover { border-color:var(--gold); background:rgba(197,153,83,0.1); }
.prio-pool-name { flex:1; font-weight:600; color:var(--text); }
.prio-pool-add { font-size:0.93rem; color:var(--gold); flex-shrink:0; }
.prio-pool-item .prio-role-badge { font-size:0.82rem; padding:1px 3px; }
.prio-edit-show-all { font-size:0.91rem; padding:0.2rem 0.4rem; width:100%; text-align:center; margin-top:0.1rem; }
.prio-edit-actions { display:flex; align-items:center; gap:0.6rem; margin-top:0.5rem; flex-wrap:wrap; }
.prio-edit-status { font-size:0.95rem; color:var(--text-muted); flex:1; }
.prio-edit-hint { font-size:0.91rem; color:var(--text-muted); font-style:italic; margin-top:0.35rem; }
.prio-diff-toggle { display:flex; gap:0.3rem; }
.prio-diff-badge { font-size:0.87rem; font-weight:700; padding:1px 6px; border-radius:3px; text-transform:uppercase; letter-spacing:0.06em; flex-shrink:0; }
.prio-diff-heroic { background:rgba(72,187,120,0.18); color:var(--heal); }
.prio-diff-mythic { background:rgba(231,76,60,0.18); color:var(--melee); }
.prio-diff-champion { background:rgba(74,158,255,0.18); color:var(--tank); }

/* Footer */
.footer { text-align:center; padding:1.5rem; font-size:1.04rem; color:var(--text); letter-spacing:0.12em; text-transform:uppercase; border-top:1px solid var(--border); margin-top:auto; }
.footer-link { color:var(--text-muted); text-decoration:none; transition:color 0.15s; }
.footer-link:hover { color:var(--gold); }
.footer-icon-link { display:inline-flex; align-items:center; vertical-align:middle; }

/* Season Signup */
#signupView { padding:2rem 2rem 3rem; max-width:560px; width:100%; margin:0 auto; }
.signup-wrap { flex:1; }
.signup-step-label { font-size:1.02rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-muted); font-weight:600; margin-bottom:0.75rem; }
.signup-step-title { font-family:'Cinzel',serif; font-size:1.3rem; font-weight:700; color:var(--gold-light); margin-bottom:0.75rem; letter-spacing:0.06em; }
.signup-step-desc { font-size:1.04rem; color:var(--text-muted); line-height:1.55; margin-bottom:1.5rem; }
.signup-input { width:100%; font-family:'Rajdhani',sans-serif; font-size:1rem; font-weight:500; padding:0.6rem 0.9rem; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); border-radius:3px; transition:border-color 0.15s; margin-bottom:1rem; }
.signup-input:focus { border-color:var(--gold); }
.signup-textarea { width:100%; font-family:'Rajdhani',sans-serif; font-size:1rem; font-weight:500; padding:0.6rem 0.9rem; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); border-radius:3px; resize:vertical; min-height:90px; transition:border-color 0.15s; }
.signup-textarea:focus { border-color:var(--gold); }
.signup-field { margin-bottom:1.25rem; }
.signup-label { display:block; font-size:1.04rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); margin-bottom:0.5rem; }
.signup-optional { font-size:1rem; font-weight:400; text-transform:none; letter-spacing:0; color:var(--text-muted); opacity:0.6; }
.signup-radio-group { display:flex; flex-wrap:wrap; gap:0.4rem; }
.signup-radio-label { display:flex; align-items:center; gap:0.4rem; font-size:1rem; font-weight:500; padding:0.35rem 0.85rem; background:var(--bg-elevated); border:1px solid var(--border); border-radius:3px; cursor:pointer; transition:all 0.12s; user-select:none; }
.signup-radio-label:hover { border-color:var(--border-mid); }
/* .sr-only on the input itself (js/signup.js), not display:none: the control has
   to stay focusable for the chip to be usable by keyboard at all. The ring goes on
   the label, matching how :has(input:checked) below already draws the checked state. */
.signup-radio-label:has(input:focus-visible) { outline:2px solid var(--gold); outline-offset:2px; }
.signup-radio-label:has(input:checked) { background:rgba(214,163,68,0.1); border-color:var(--gold-dim); color:var(--gold-light); }
.signup-checkbox-group { display:flex; flex-wrap:wrap; gap:0.4rem; }
.signup-checkbox-label { display:flex; align-items:center; gap:0.4rem; font-size:1rem; font-weight:500; padding:0.35rem 0.85rem; background:var(--bg-elevated); border:1px solid var(--border); border-radius:3px; cursor:pointer; transition:all 0.12s; user-select:none; }
.signup-checkbox-label:hover { border-color:var(--border-mid); }
.signup-checkbox-label:has(input:focus-visible) { outline:2px solid var(--gold); outline-offset:2px; }
.signup-checkbox-label:has(input:checked) { background:rgba(214,163,68,0.1); border-color:var(--gold-dim); color:var(--gold-light); }
.realm-combobox { position:relative; }
.realm-input { margin-bottom:0; }
.realm-dropdown { display:none; position:absolute; top:100%; left:0; right:0; background:var(--bg-card); border:1px solid var(--border-mid); border-top:none; border-radius:0 0 3px 3px; max-height:220px; overflow-y:auto; z-index:50; }
.realm-option { padding:0.5rem 0.9rem; font-size:1.07rem; font-family:'Rajdhani',sans-serif; font-weight:500; cursor:pointer; color:var(--text); transition:background 0.1s; }
.realm-option:hover { background:var(--bg-elevated); color:var(--gold-light); }
.signup-class-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0.5rem; margin-bottom:1.5rem; }
.signup-class-btn { font-family:'Rajdhani',sans-serif; font-size:1rem; font-weight:600; letter-spacing:0.06em; padding:0.65rem 0.5rem; background:var(--bg-elevated); border:1px solid var(--border); border-radius:3px; color:var(--cls-color,var(--text)); cursor:pointer; transition:all 0.12s; text-align:center; }
.signup-class-btn:hover { border-color:var(--cls-color,var(--border-mid)); background:var(--bg-card); }
.signup-class-btn-selected { border-color:var(--cls-color,var(--gold-dim)) !important; background:var(--bg-card); box-shadow:0 0 0 1px var(--cls-color,var(--gold-dim)); }
.signup-actions { display:flex; gap:0.75rem; justify-content:flex-end; margin-top:1.5rem; }
.signup-error { font-size:1rem; color:var(--melee); margin-bottom:0.75rem; min-height:1.2em; }
.signup-role-info { font-size:0.95rem; color:var(--text-muted); background:var(--bg-elevated); border:1px solid var(--border); border-radius:3px; padding:0.5rem 0.75rem; margin:0.75rem 0 1rem; }
.signup-role-info-warn { color:var(--gold-light); border-color:var(--gold-dim); background:rgba(214,163,68,0.08); }
.signup-confirm { text-align:center; padding:2rem 0; }
.signup-confirm-check { width:56px; height:56px; border-radius:50%; background:rgba(61,220,132,0.12); border:2px solid rgba(61,220,132,0.3); color:var(--heal); font-size:1.6rem; display:flex; align-items:center; justify-content:center; margin:0 auto 1.25rem; }
.signup-confirm .signup-step-desc { color:var(--text); }
.signup-cta { margin-top:1.25rem; font-size:1rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold); cursor:pointer; border-bottom:1px solid rgba(214,163,68,0.3); transition:color 0.15s,border-color 0.15s; }
.signup-cta:hover { color:var(--gold-light); border-color:var(--gold); }
.signup-officer-panel { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:1.25rem; max-width:400px; }
.signup-status-row { display:flex; align-items:center; justify-content:space-between; }
.signup-status-label { font-size:1.02rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--text); }
.signup-status-badge { font-size:1rem; font-weight:700; letter-spacing:0.12em; padding:3px 10px; border-radius:2px; }
.signup-status-open { background:rgba(61,220,132,0.12); color:var(--heal); border:1px solid rgba(61,220,132,0.3); }
.signup-status-closed { background:rgba(255,124,92,0.1); color:var(--melee); border:1px solid rgba(255,124,92,0.25); }
.signup-officer-note { font-size:1.07rem; color:var(--text-muted); margin-top:1rem; line-height:1.5; }
.signup-response-card { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:1rem 1.25rem; margin-bottom:0.75rem; }
.signup-response-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.signup-response-name { font-family:'Cinzel',serif; font-size:1.07rem; font-weight:700; color:var(--text); }
.signup-response-time { font-size:1rem; color:var(--text-muted); letter-spacing:0.04em; white-space:nowrap; }
.signup-delete-btn { background:none; border:1px solid var(--border); border-radius:3px; color:var(--text-muted); font-size:1rem; line-height:1; padding:0.2rem 0.45rem; cursor:pointer; transition:border-color 0.15s,color 0.15s; }
.signup-delete-btn:hover { border-color:var(--melee); color:var(--melee); }
.signup-delete-btn:disabled { opacity:0.4; cursor:default; }

/* Self-received */
.mark-received-btn { background:none; border:1px solid var(--border); border-radius:3px; color:var(--text-muted); font-size:1rem; padding:0.15rem 0.4rem; cursor:pointer; white-space:nowrap; transition:border-color 0.15s,color 0.15s; }
.mark-received-btn:hover { border-color:var(--gold); color:var(--gold); }
.bis-self-received-badge { font-size:1.07rem; background:rgba(199,155,60,0.12); color:var(--gold); border:1px solid rgba(199,155,60,0.25); border-radius:3px; padding:0.1rem 0.4rem; white-space:nowrap; }
.self-received-form { padding:0.5rem 0.75rem 0.5rem 2.5rem; background:rgba(255,255,255,0.02); border-left:2px solid var(--border); margin-bottom:0.25rem; }
.self-received-form-inner { display:flex; flex-direction:column; gap:0.4rem; }
.self-received-source { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; color:var(--text); font-family:'Rajdhani',sans-serif; font-size:1rem; padding:0.35rem 0.5rem; width:100%; max-width:260px; }
.self-received-notes { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; color:var(--text); font-family:'Rajdhani',sans-serif; font-size:1rem; padding:0.35rem 0.5rem; width:100%; max-width:400px; resize:vertical; }
.self-received-note { font-size:1.02rem; color:var(--text-muted); margin:0.25rem 0 0; line-height:1.4; }

/* Pending requests (officer) */
.request-card { background:var(--bg-card); border:1px solid var(--border); border-radius:4px; padding:1rem 1.25rem; margin-bottom:0.75rem; }
.request-card-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:0.35rem; }
.request-player { font-family:'Cinzel',serif; font-size:1.07rem; font-weight:700; color:var(--text); }
.request-item { font-size:1.04rem; font-weight:600; color:var(--text); }
.request-approve-btn { background:rgba(100,210,120,0.12); border:1px solid rgba(100,210,120,0.3); color:#64d278; font-size:1.04rem; padding:0.25rem 0.75rem; cursor:pointer; border-radius:3px; }
.request-approve-btn:hover { background:rgba(100,210,120,0.2); }
.request-approve-btn:disabled { opacity:0.4; cursor:default; }
.request-reject-btn { background:rgba(255,124,92,0.08); border:1px solid rgba(255,124,92,0.25); color:var(--melee); font-size:1.04rem; padding:0.25rem 0.75rem; cursor:pointer; border-radius:3px; }
.request-reject-btn:hover { background:rgba(255,124,92,0.15); }
.request-reject-btn:disabled { opacity:0.4; cursor:default; }

/* Add/Remove player */
.add-player-label { display:block; font-size:0.97rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); margin-bottom:0.2rem; }
.add-player-input { width:100%; background:var(--bg-input); border:1px solid var(--border-mid); color:var(--text); font-family:'Rajdhani',sans-serif; font-size:1rem; padding:0.45rem 0.75rem; border-radius:3px; }
.add-player-input:focus { border-color:var(--gold); }
.add-player-input option { background:#1a1d27; }
.btn-danger { background:rgba(255,124,92,0.1); border:1px solid rgba(255,124,92,0.35); color:var(--melee); }
.btn-danger:hover { background:rgba(255,124,92,0.2); }
.realm-option { padding:0.4rem 0.75rem; font-size:1rem; color:var(--text); cursor:pointer; }
.realm-option:hover { background:var(--bg-input); color:var(--gold-light); }

/* Admin nav */
.nav-admin-divider { height:1px; background:var(--border-mid); margin:0.5rem 0.5rem; }
.nav-item-admin { color:var(--melee) !important; }
.nav-item-admin.active { border-left-color:var(--melee) !important; }
.nav-item-admin:hover { border-left-color:rgba(255,124,92,0.5) !important; }

/* Admin properties table */
.admin-props-table { width:100%; border-collapse:collapse; font-size:1.02rem; }
.admin-props-table tr { border-bottom:1px solid var(--border); }
.admin-prop-key { padding:0.5rem 0.75rem 0.5rem 0; color:var(--text-muted); white-space:nowrap; width:180px; vertical-align:top; }
.admin-prop-val { padding:0.5rem 0; color:var(--text); word-break:break-all; }

/* Admin danger zone */
.admin-danger-card { background:var(--bg-card); border:1px solid rgba(255,124,92,0.25); border-radius:4px; padding:1rem 1.25rem; margin-bottom:0.75rem; }
.admin-danger-label { font-family:'Cinzel',serif; font-size:1.04rem; font-weight:700; color:var(--melee); margin-bottom:0.3rem; }
.admin-danger-desc { font-size:1rem; color:var(--text-muted); margin:0 0 0.75rem; line-height:1.4; }

/* ── Inline help tips (shared by index.html and officer.html) ──────────────── */
.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 0.4rem;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.help-btn:hover { border-color: var(--gold-dim); color: var(--gold-light); }
.help-tip {
  display: none;
  margin-top: 0.65rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-mid);
  border-left: 2px solid var(--gold-dim);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.help-tip.open { display: block; }
.help-tip ul { padding-left: 1.25rem; margin: 0.35rem 0 0; }
.help-tip li { margin-bottom: 0.25rem; }
.help-tip strong { color: var(--text); }

/* ── Help reference tab (shared by index.html and officer.html) ────────────── */
.help-reference { display: flex; flex-direction: column; gap: 1rem; max-width: 680px; }
.help-ref-heading { font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.25rem; }
.help-ref-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1rem 1.25rem; }
.help-ref-title { font-size: 0.95rem; font-weight: 600; color: var(--gold-light); margin: 0 0 0.6rem; }
.help-ref-steps { margin: 0; padding-left: 1.4rem; color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }
.help-ref-steps li { margin-bottom: 0.3rem; }
.help-ref-steps li:last-child { margin-bottom: 0; }
.help-ref-steps strong { color: var(--text); }
.help-ref-steps a { color: var(--gold-dim); }
.help-ref-steps em { color: var(--text); font-style: normal; }

/* Responsive */
@media (max-width:640px) {
  #officerView { padding:1rem 1rem 2rem; }

  /* Toolbar: stack title above buttons, buttons in a wrapping row */
  .officer-toolbar { flex-direction:column; align-items:flex-start; gap:0.5rem; }
  .officer-toolbar > div:last-child { display:flex; gap:0.4rem; flex-wrap:wrap; }
  .officer-toolbar .btn { font-size:0.91rem; padding:0.3rem 0.6rem; white-space:nowrap; }

  /* Stats: 2-column grid */
  .officer-stats { grid-template-columns:repeat(2,1fr); }

  /* Body: sidebar stacks above main content */
  .officer-body { flex-direction:column; }

  /* Nav: horizontal scrolling strip instead of wrapping rows */
  .officer-sidebar { width:100%; flex-direction:row; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; position:static; border-bottom:1px solid var(--border); padding-bottom:0; margin-bottom:1rem; gap:0; }
  .nav-item { flex-shrink:0; width:auto; border-left:none; border-bottom:2px solid transparent; border-radius:0; padding:0.6rem 0.85rem; font-size:0.95rem; }
  .nav-item.active { border-left-color:transparent; border-bottom-color:var(--gold); }
  .nav-item:hover { border-left-color:transparent; }

  .fairness-row { grid-template-columns:100px 1fr 30px; gap:0.5rem; }
}
