:root {
    --bg-dark: #12161e;
    --bg-page: var(--bg-dark);
    --bg-card: #191e27;
    --bg-table: #202630;
    --surface-2: #1b2029;
    --bg-inset: #0e1218;
    --bg-hover: #272e39;
    --surface-rgb: 25,30,39;
    --inset-rgb: 14,18,24;
    --raised-rgb: 32,38,48;
    --text-primary: #edf0f5;
    --text-secondary: #a6aeba;
    --text-muted: #8e96a5;
    --accent: #e94560;
    --accent-gold: #ffad33;
    --border: #2c333f;
    color-scheme: dark;

    --wow-poor: #9d9d9d;
    --wow-common: #ffffff;
    --wow-uncommon: #1eff00;
    --wow-rare: #0070dd;
    --wow-epic: #a335ee;
    --wow-legendary: #ff8000;
    --wow-artifact: #e6cc80;
    --wcl-rank-one: #e268a8;

    --status-success: #2ecc71;
    --status-warning: #f5c542;
    --status-caution: #e67e22;
    --status-danger: #e74c3c;
    --status-info: #74b9ff;
    --status-neutral: #a0a0b0;

    --difficulty-normal: var(--status-success);
    --difficulty-heroic: var(--wow-epic);
    --difficulty-mythic: var(--accent);

    --track-champion: var(--status-success);
    --track-hero: #74b9ff;
    --track-myth: #c47dff;

    --role-tank: #4a9eff;
    --role-healer: var(--status-success);
    --role-dps: #e87070;

    --priority-bis: var(--accent-gold);
    --priority-upgrade: var(--status-info);
    --priority-catalyst: #a29bfe;
    --priority-offspec: var(--text-secondary);

    --class-death-knight: #c41e3a;
    --class-demon-hunter: #a330c9;
    --class-druid: #ff7c0a;
    --class-evoker: #33937f;
    --class-hunter: #aad372;
    --class-mage: #3fc7eb;
    --class-monk: #00ff98;
    --class-paladin: #f48cba;
    --class-priest: #ffffff;
    --class-rogue: #fff468;
    --class-shaman: #0070dd;
    --class-warlock: #8788ee;
    --class-warrior: #c69b3a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ── Site Header ── */
.site-header {
    background: var(--bg-inset);
    background-image: linear-gradient(110deg, rgba(255,255,255,.025), transparent 65%);
    border-bottom: 1px solid var(--border);
    padding: 18px 32px;
    position: relative; z-index: 11;
    overflow: visible;
}
.site-header::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.site-header-inner {
    max-width: 1800px; margin: 0 auto;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    position: relative; z-index: 1; gap: 24px;
}
.site-header-inner > .header-stats {
    grid-column: 2;
    justify-self: center;
}
.site-header-inner > .site-brand {
    grid-column: 1;
    justify-self: start;
}
.site-header-inner > .header-account-area {
    grid-column: 3;
    justify-self: end;
}
.header-account-area { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.header-account-controls { display: flex; align-items: center; gap: 9px; }
.site-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; cursor: pointer; text-decoration: none; color: inherit; }
.site-brand > div { height: 56px; display: flex; flex-direction: column; }
.brand-badge {
    width: 56px; height: 56px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center 40%;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(120,60,200,0.35), 0 2px 8px rgba(0,0,0,0.6);
    border: 1px solid rgba(160,100,255,0.25);
}
.brand-name {
    font-size: 20px; font-weight: 800; color: #fff;
    letter-spacing: 0; line-height: 1.1;
}
.brand-season, .header-reset {
    font-size: 9px; font-weight: 700; color: var(--accent-gold);
    text-transform: uppercase; letter-spacing: 0; white-space: nowrap;
}
.brand-season { margin-bottom: 3px; }
.header-reset { color: var(--text-secondary); }
.brand-sub {
    font-size: 10px; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 2px; margin-top: 3px;
}

/* ── Header Stats Strip ── */
.header-stats { display: grid; gap: 10px; min-width: 0; }
.header-stats-scope, .header-stats-context {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
    gap: 4px 14px; font-size: 11px; color: var(--text-secondary); letter-spacing: 0;
}
.header-stats-scope strong, .header-stats-context strong { color: var(--text-primary); }
.header-stats-values { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.header-report-coverage { color: var(--accent-gold); }
.hstat-kills .hstat-val { color: var(--status-success); }
.hstat-wipes .hstat-val { color: var(--accent); }

/* ── Brand Online count ── */
.brand-online {
    display: flex; align-items: center; gap: 4px;
    margin-top: auto;
    font-size: 8px; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 1.5px;
    white-space: nowrap;
}
.online-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 5px #4ade80;
    animation: online-pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes online-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ── Header Affixes ── */
.header-affixes {
    position: absolute; left: max(32px, calc((100% - 1800px) / 2)); top: 0; bottom: 0;
    display: flex; align-items: center; gap: 7px;
}
.header-affixes-label {
    font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); white-space: nowrap; margin-right: 1px;
}
.header-affix-icon {
    width: 25px; height: 25px; border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: default; display: block;
    transition: transform 0.12s, border-color 0.12s;
}
.header-affix-icon:hover { transform: scale(1.12); border-color: rgba(255,255,255,0.4); }

/* JS-driven affix tooltip */
.affix-tooltip {
    display: none; position: fixed; z-index: 9999;
    background: var(--surface-2); border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px; padding: 9px 12px; max-width: 280px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7); pointer-events: none;
}
.affix-tooltip-name { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.affix-tooltip-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.hstat {
    display: flex; flex-direction: column; align-items: center;
    padding: 4px 14px;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.hstat:last-child { border-right: none; padding-right: 0; }
.hstat:first-child { padding-left: 0; }
.hstat-val {
    font-size: 21px; font-weight: 800; color: var(--accent-gold);
    line-height: 1; font-variant-numeric: tabular-nums;
}
.hstat-label {
    font-size: 9px; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0; margin-top: 4px; white-space: nowrap;
}

/* ── Site Nav ── */
.site-nav {
    background: rgba(var(--inset-rgb),.97);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex; gap: 0;
    overflow: visible;
    justify-content: center;
    position: sticky; top: 0; z-index: 10;
}
.loot-sub-nav {
    background: rgba(var(--inset-rgb),.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    position: sticky;
    top: 44px;
    z-index: 9;
}
.loot-sub-nav[hidden] { display: none; }
.loot-sub-nav-left { grid-column: 1; }
.loot-sub-nav-tabs {
    grid-column: 2;
    position: relative;
    display: flex;
    align-items: stretch;
}
.loot-sub-nav-context {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-right: 4px;
    min-width: 0;
    overflow: hidden;
}
.loot-sub-nav-ctx-sep {
    color: var(--text-muted, #4a5568);
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.loot-sub-nav-ctx-name {
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loot-sub-nav-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 22px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}
.loot-sub-nav-btn:hover { color: var(--text-primary); }
.loot-sub-nav-btn.active { color: var(--accent-gold); }
.loot-sub-nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px 2px 0 0;
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.site-nav a {
    padding: 13px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--text-primary); border-bottom-color: rgba(233,69,96,0.45); }
.site-nav a.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.discord-account { min-width: 0; }
.discord-login, .discord-profile > summary {
    min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 6px 13px 6px 7px;
    border: 1px solid var(--border); border-radius: 7px;
    background: var(--bg-card);
    box-shadow: inset 0 1px rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.18);
    color: var(--text-primary); text-decoration: none; list-style: none; cursor: pointer;
    transition: border-color .18s, background .18s, transform .18s;
}
.discord-login:hover, .discord-profile > summary:hover, .discord-profile[open] > summary {
    border-color: rgba(211,220,235,.3); background: var(--bg-hover);
    transform: translateY(-1px);
}
.discord-login-mark, .discord-profile-avatar {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 6px;
    display: grid; place-items: center; object-fit: cover;
    background: #5865f2; color: #fff; font-size: 14px; font-weight: 900;
    box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 4px 12px rgba(0,0,0,.25);
}
.discord-login > span:last-child, .discord-profile summary > span { display: flex; min-width: 0; flex-direction: column; }
.discord-login small, .discord-profile small {
    color: #aeb8dc; font-size: 8px; font-weight: 800; line-height: 1.2; letter-spacing: 1px; text-transform: uppercase;
}
.discord-login strong, .discord-profile strong {
    max-width: 170px; overflow: hidden; color: #fff; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap;
}
.discord-profile { position: relative; }
.discord-profile > summary::-webkit-details-marker { display: none; }
.discord-profile-menu {
    position: absolute; top: calc(100% + 7px); right: 0; width: 180px; padding: 6px;
    border: 1px solid var(--border); border-radius: 7px; background: rgba(var(--inset-rgb),.98);
    box-shadow: 0 12px 30px rgba(0,0,0,.45); z-index: 30;
}
.discord-profile-ranks {
    display: flex; flex-direction: column; gap: 3px; padding: 7px 9px 9px; margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.discord-profile-ranks strong { max-width: none; white-space: normal; }
.discord-profile-menu a {
    display: block; padding: 8px 9px; border-radius: 5px; color: var(--text-secondary); font-size: 11px; text-decoration: none;
}
.discord-profile-menu a:hover { color: var(--text-primary); background: rgba(255,255,255,.07); }
.app-settings {
    position: relative;
    z-index: 20;
}
.app-settings > summary {
    display: grid; place-items: center; width: 44px; height: 44px; list-style: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
}
.app-settings > summary::-webkit-details-marker { display: none; }
.app-settings > summary:hover, .app-settings[open] > summary { color: var(--text-primary); border-color: rgba(255,255,255,.3); }
.app-settings > summary svg { width: 17px; height: 17px; }
.app-settings-menu {
    position: absolute; top: 41px; right: 0; display: grid; gap: 12px; width: 240px;
    padding: 14px; border: 1px solid var(--border); border-radius: 7px;
    background: rgba(var(--inset-rgb),.98); box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.app-settings-title { color: var(--text-primary); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.app-settings-field { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 11px; }
.app-settings-field select {
    width: 100%; padding: 6px 24px 6px 8px; border: 1px solid var(--border); border-radius: 5px;
    background: var(--bg-card); color: var(--text-primary); font: inherit; cursor: pointer;
}
.app-settings-action {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 9px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 5px;
    background: rgba(255,255,255,.05); color: var(--text-primary); font: 600 11px inherit; cursor: pointer;
}
.app-settings-action:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.app-settings-action:disabled { opacity: .55; cursor: wait; }
.app-settings-action svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Dropdown nav item */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}
.nav-dropdown-trigger {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 13px 18px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--text-primary); border-bottom-color: rgba(233,69,96,0.45); }
.nav-dropdown-trigger.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.nav-dropdown-caret { width: 10px; height: 6px; flex-shrink: 0; opacity: 0.7; transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(var(--inset-rgb),0.98);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
    padding: 11px 18px;
    border-bottom: none;
    border-left: 2px solid transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); border-left-color: rgba(233,69,96,0.45); }
.nav-dropdown-menu a.active { color: var(--accent-gold); border-left-color: var(--accent-gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.container { max-width: 1800px; margin: 0 auto; padding: 8px 24px 24px; }

.section-title {
    font-size: 18px; font-weight: 600; color: var(--text-primary);
    margin: 28px 0 12px; display: flex; align-items: center; gap: 8px;
}
.tab-content h1.section-title { margin-top: 0; }
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }
.tab-bar {
    display: flex; gap: 4px; margin-bottom: 20px;
    border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.tab {
    padding: 10px 20px; font-size: 14px; font-weight: 500; text-decoration: none;
    color: var(--text-secondary); border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all 0.2s; display: inline-block;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.is-loading { opacity: 0.35; pointer-events: none; transition: opacity 0.1s; }

/* ── Consumable compliance (boss filter) ── */
.compliance-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 16px;
}
.compliance-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.compliance-label { font-weight: 700; font-size: 15px; }
.compliance-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.compliance-badge {
    font-size: 13px; font-weight: 600; padding: 3px 10px;
    border-radius: 12px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.compliance-miss {
    font-size: 11px; font-weight: 700; color: #e74c3c;
    background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3);
    padding: 1px 6px; border-radius: 4px; margin-left: 4px;
}
.compliance-player {
    padding: 5px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    border-bottom: 1px solid var(--border);
}
.compliance-player:last-child { border-bottom: none; }
.compliance-ok { color: #2ecc71; font-size: 13px; padding: 4px 0; }
.tab-content { display: none; }
.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;
}
.tab-content.active {
    display: block;
    animation: tab-page-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tab-page-enter {
    from { opacity: 0; transform: translateY(10px) scale(0.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .tab-content.active { animation: none; }
}
.table-wrapper {
    overflow-x: auto; border-radius: 8px;
    border: 1px solid var(--border); margin-bottom: 24px;
    background: rgba(255,255,255,0.015);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
    background: var(--bg-table); color: var(--text-secondary); font-weight: 600;
    text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px;
    padding: 10px 12px; text-align: center; cursor: default; user-select: none;
    white-space: nowrap; border-bottom: 2px solid var(--accent);
    position: sticky; top: 0; z-index: 2;
}
thead th[data-sort-key] { cursor: pointer; }
thead th[data-sort-key]:hover { color: var(--text-primary); background: var(--bg-hover); }
thead th[data-sort-key]:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: -2px; color: var(--text-primary); }
thead th:first-child { text-align: left; }
thead th::after {
    content: '';
    color: var(--accent-gold);
    display: inline-block;
    width: 1em;
    margin-left: 2px;
    opacity: 0;
}
thead th.sorted-asc::after {
    content: ' ▲';
    opacity: 1;
}
thead th.sorted-desc::after {
    content: ' ▼';
    opacity: 1;
}
.tab-content:not(.active) thead th::after { content: ''; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:hover { background: rgba(233, 69, 96, 0.08); }
td { padding: 8px 12px; text-align: center; white-space: nowrap; }
td:first-child { text-align: left; font-weight: 600; }
.bar-row { display: flex; align-items: center; margin-bottom: 4px; gap: 8px; }
.bar-label { width: 150px; font-size: 13px; font-weight: 500; text-align: right; flex-shrink: 0; }
.bar-track {
    flex: 1; height: 24px; background: rgba(255,255,255,0.05);
    border-radius: 4px; overflow: hidden; position: relative;
}
.bar-fill {
    height: 100%; border-radius: 4px; transition: width 0.6s ease;
    display: flex; align-items: center; padding-left: 8px;
    font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.encounter-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px; margin-bottom: 24px;
}
.encounter-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; padding: 16px; position: relative;
}
.encounter-card.has-kill { border-color: rgba(46,204,113,0.5); }
.enc-kill-badge {
    position: absolute; top: 10px; right: 12px;
    font-size: 11px; font-weight: 700; color: #2ecc71;
    background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.3);
    border-radius: 4px; padding: 2px 7px;
}
.diff-filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.diff-btn {
    padding: 5px 16px; border-radius: 20px; border: 1px solid var(--border);
    background: transparent; cursor: pointer; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); transition: all 0.2s;
}
.diff-btn.active, .diff-btn:hover { background: var(--bg-table); border-color: var(--accent-gold); color: var(--text-primary); }
.diff-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.diff-mythic  { background: rgba(233,69,96,0.15); color: var(--difficulty-mythic); border: 1px solid rgba(233,69,96,0.35); }
.diff-heroic  { background: rgba(163,53,238,0.15); color: var(--difficulty-heroic); border: 1px solid rgba(163,53,238,0.35); }
.diff-normal  { background: rgba(46,204,113,0.12); color: var(--difficulty-normal); border: 1px solid rgba(46,204,113,0.28); }
.encounter-card .enc-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.encounter-card .enc-diff { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.encounter-card .enc-stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary); }
.encounter-card .enc-stats strong { color: var(--text-primary); }
.zero-val { color: #e74c3c; font-weight: 700; }
.cell-red     { color: #e74c3c; font-weight: 700; }
.cell-yellow  { color: #f5c542; font-weight: 600; }
.cell-green   { color: #2ecc71; font-weight: 600; }
.cell-neutral { color: #a0a0b0; }
.guild-member td:first-child { color: #2ecc71; font-weight: 700; }
.guild-member { border-left: 3px solid #2ecc71; }
.player-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.player-cell .player-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 100px; }
.guild-tag {
    display: inline-flex; align-items: center; flex-shrink: 0;
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 1px 5px; border-radius: 3px;
    background: rgba(46,204,113,0.2); color: #2ecc71;
}
.controls {
    display: flex; justify-content: flex-start; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.controls-left  { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.controls-right { display: flex; gap: 12px; align-items: center; flex-shrink: 0; margin-left: auto; }
.controls input, .controls select {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-primary); padding: 6px 12px; border-radius: 6px; font-size: 13px;
    min-height: 31px;
}
.controls input:focus, .controls select:focus { outline: none; border-color: var(--accent); }
.controls input:focus-visible, .controls select:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}
.empty-state {
    padding: 22px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}
.empty-state strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* Mythic tab */
.mythic-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--surface-2) 50%, var(--bg-dark) 100%);
    border: 1px solid #6a1428; border-radius: 12px;
    padding: 24px 28px; margin-bottom: 28px; position: relative; overflow: hidden;
}
.mythic-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(233,69,96,0.08) 0%, transparent 70%);
}
.mythic-banner-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.mythic-title-text { font-size: 22px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.mythic-score { font-size: 42px; font-weight: 900; color: var(--accent-gold); line-height: 1; }
.mythic-score span { font-size: 22px; color: var(--text-secondary); font-weight: 400; margin-left: 4px; }
.mythic-prog-track {
    height: 12px; background: rgba(255,255,255,0.07); border-radius: 6px; overflow: hidden; margin-bottom: 12px;
}
.mythic-meta-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.mythic-meta-item { font-size: 13px; color: var(--text-secondary); }
.mythic-meta-item strong { color: var(--text-primary); }

/* Affixes card */
.affixes-card {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 20px; margin-bottom: 16px;
}
.affixes-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-secondary); white-space: nowrap;
}
.affixes-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.affix-item {
    display: flex; align-items: center; gap: 8px;
}
.affix-icon { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--border); }
.affix-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.affix-name:hover { color: var(--accent); }

/* Guild rankings in mythic banner */
.mythic-rankings-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 6px 14px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
    font-size: 13px;
}
.rank-label { color: var(--text-secondary); font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; margin-right: 2px; }
.rank-sep   { color: var(--text-secondary); opacity: 0.4; }
.rank-item strong { color: var(--accent-gold); }
.boss-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px; margin-bottom: 28px;
}
.boss-card {
    background: var(--bg-card); border-radius: 10px;
    border: 1px solid var(--border); overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.boss-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.boss-card.killed { border-color: rgba(46,204,113,0.35); }
.boss-card.prog   { border-color: rgba(245,197,66,0.35); }
.boss-card-header {
    padding: 14px 16px 12px; display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 1px solid var(--border);
}
.boss-card.killed .boss-card-header { background: linear-gradient(135deg, rgba(46,204,113,0.08), transparent); }
.boss-card.prog   .boss-card-header { background: linear-gradient(135deg, rgba(245,197,66,0.08), transparent); }
.boss-name   { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.boss-status {
    font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}
.boss-status.killed { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.boss-status.prog   { background: rgba(245,197,66,0.12); color: #f5c542; border: 1px solid rgba(245,197,66,0.3); }
.boss-stats-row { display: flex; padding: 12px 16px; gap: 8px; border-bottom: 1px solid var(--border); }
.boss-stat { flex: 1; text-align: center; }
.boss-stat .val { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; }
.boss-stat .lbl { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-top: 2px; }
.boss-stat.kills .val  { color: #2ecc71; }
.boss-stat.best-pct .val { color: #f5c542; }
.boss-stat.time .val   { color: #74b9ff; }
.boss-chart    { padding: 10px 12px 4px; }
.boss-kill-info { padding: 4px 16px 8px; font-size: 12px; color: var(--text-secondary); }
.boss-sessions { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); }
.boss-session-row  { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.boss-session-date { color: var(--text-secondary); }
.boss-session-pulls { color: var(--text-primary); }
.boss-session-kill { font-size: 11px; padding: 1px 6px; border-radius: 3px; background: rgba(46,204,113,0.15); color: #2ecc71; margin-left: 6px; }

/* Deaths tab */
.death-stat-strip { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.death-stat-chip {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 16px; text-align: center; min-width: 90px;
}
.death-stat-chip .val { font-size: 22px; font-weight: 800; color: var(--accent); display: block; line-height: 1; }
.death-stat-chip .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-top: 3px; }
.death-heatmap { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; overflow-x: auto; }
.death-heatmap-row { display: flex; align-items: center; gap: 0; min-width: max-content; }
.death-heatmap-name { width: 160px; font-size: 12px; font-weight: 600; text-align: right; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.death-heatmap-cells { display: flex; gap: 0; }
.death-heat-cell {
    width: 34px; height: 28px; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; cursor: default; border-right: 1px solid rgba(255,255,255,0.03);
}
.death-heat-0   { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.2); }
.death-heat-1   { background: rgba(233,69,96,0.18); color: #e94560; }
.death-heat-2   { background: rgba(233,69,96,0.38); color: #fff; }
.death-heat-3   { background: rgba(233,69,96,0.62); color: #fff; }
.death-heat-hi  { background: #e94560; color: #fff; }
.death-heat-sep { width: 8px; flex-shrink: 0; background: transparent; border-right: 2px solid var(--border); }
.death-heat-total { width: 44px; font-size: 12px; font-weight: 700; color: #e74c3c; text-align: center; flex-shrink: 0; padding-left: 6px; }
.death-heat-footer .death-heat-cell { color: var(--accent-gold); font-size: 10px; height: 24px; background: rgba(255,255,255,0.03); }
.death-boss-label { font-size: 10px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }

/* Loot class filter pills */
.loot-class-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.loot-class-pill {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
}
.loot-class-pill:hover { border-color: currentColor; background: rgba(255,255,255,0.08); }
.loot-class-pill.active {
    border-color: currentColor; background: rgba(255,255,255,0.10);
    color: var(--text-primary);
}
/* WoW class colours */
.cls-DeathKnight { color: var(--class-death-knight); }
.cls-DemonHunter { color: var(--class-demon-hunter); }
.cls-Druid       { color: var(--class-druid); }
.cls-Evoker      { color: var(--class-evoker); }
.cls-Hunter      { color: var(--class-hunter); }
.cls-Mage        { color: var(--class-mage); }
.cls-Monk        { color: var(--class-monk); }
.cls-Paladin     { color: var(--class-paladin); }
.cls-Priest      { color: var(--class-priest); }
.cls-Rogue       { color: var(--class-rogue); }
.cls-Shaman      { color: var(--class-shaman); }
.cls-Warlock     { color: var(--class-warlock); }
.cls-Warrior     { color: var(--class-warrior); }

/* Killing blow section */
.kb-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.kb-raid-label { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.kb-raid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.kb-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.kb-card-title { font-size: 13px; font-weight: 700; color: var(--accent-gold); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kb-name { font-size: 11px; color: var(--text-secondary); width: 140px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-bar-track { flex: 1; height: 14px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.kb-bar-fill  { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s; }
.kb-count { font-size: 11px; color: var(--text-secondary); width: 28px; text-align: right; flex-shrink: 0; }

/* Members tab */
.members-status { padding: 24px; text-align: center; color: var(--text-secondary); font-size: 14px; }
.members-progress { margin: 12px auto 0; max-width: 360px; }
.members-progress-bar  { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.members-progress-fill { height: 100%; background: var(--accent-gold); border-radius: 2px; transition: width 0.3s; }

/* ── Loading hero (phase 1 — no data yet) ── */
.loading-hero {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 380px; padding: 48px 24px; text-align: center; gap: 0;
}
@keyframes loadingSpin { to { transform: rotate(360deg); } }
.loading-spinner-ring {
    width: 76px; height: 76px;
    border: 5px solid rgba(245,197,66,0.15);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: loadingSpin 0.75s linear infinite;
    margin-bottom: 24px;
}
.loading-title {
    font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px;
}
.loading-sub {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 22px; min-height: 20px;
}
.loading-bar-wrap {
    width: 100%; max-width: 420px; height: 7px;
    background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden;
    margin-bottom: 16px;
}
.loading-bar-fill {
    height: 100%; background: var(--accent-gold); border-radius: 4px;
    transition: width 0.4s ease;
}
.loading-note {
    font-size: 12px; color: rgba(255,255,255,0.28); letter-spacing: 0.01em;
}
.season-switch-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(var(--inset-rgb),0.94); text-align: center;
}
.season-switch-overlay[hidden] { display: none; }
.season-switch-overlay .loading-hero { width: min(520px, 100%); min-height: 0; }
.season-switch-overlay .loading-spinner-ring { width: 58px; height: 58px; margin-bottom: 18px; }
.members-attribution { text-align: center; padding: 16px 0 8px; font-size: 12px; color: var(--text-secondary); }
.members-attribution a { color: var(--accent); text-decoration: none; }
.members-attribution a:hover { text-decoration: underline; }
.members-refresh-btn {
    background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
    padding: 6px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.members-refresh-btn:hover  { border-color: var(--accent); color: var(--text-primary); }
.members-refresh-btn:disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.mplus-score { font-weight: 700; }
.slot-pip { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: 3px; white-space: nowrap; line-height: 1.4; }
.slot-pip-ok    { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.slot-pip-bad   { background: rgba(231,76,60,0.15);  color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.slot-pip-empty { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.08); }
.slot-pip-myth  { background: rgba(163,53,238,0.18); color: var(--track-myth); border: 1px solid rgba(163,53,238,0.4); font-weight: 800; }
.slot-pip-hero  { background: rgba(0,112,221,0.15); color: var(--track-hero); border: 1px solid rgba(0,112,221,0.4); }
.slot-pip-champ { background: rgba(46,204,113,0.12); color: var(--track-champion); border: 1px solid rgba(46,204,113,0.3); }
.enchant-ok   { color: #2ecc71; font-weight: 600; }
.enchant-warn { color: #f5c542; font-weight: 600; }
.enchant-bad  { color: #e74c3c; font-weight: 700; }
.enchant-na {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: rgba(220, 225, 235, 0.85);
    background: rgba(220, 225, 235, 0.08);
    border: 1px solid rgba(220, 225, 235, 0.2);
}
.prog-mythic  { color: var(--difficulty-mythic); font-weight: 700; }
.prog-heroic  { color: var(--difficulty-heroic); font-weight: 600; }
.prog-normal  { color: var(--difficulty-normal); }

/* Members column groups */
.grp-stats-head { background: rgba(255,255,255,0.03) !important; }
.grp-tier-head  { background: rgba(245,197,66,0.07) !important; }
.grp-enc-head   { background: rgba(116,185,255,0.06) !important; }
.slot-th        { vertical-align: bottom !important; padding: 6px 8px !important; height: auto !important; cursor: default !important; user-select: none; white-space: nowrap; }
.slot-th span   { font-size: 11px; font-weight: 600; display: block; text-transform: none; letter-spacing: 0; }
.grp-tier-head.slot-th span { color: rgba(245,197,66,0.9); }
.grp-enc-head.slot-th span  { color: rgba(116,185,255,0.85); }
.grp-tier-cell  { background: rgba(245,197,66,0.03); }
.grp-enc-cell   { background: rgba(116,185,255,0.03); }
tbody tr:hover .grp-tier-cell { background: rgba(245,197,66,0.09) !important; }
tbody tr:hover .grp-enc-cell  { background: rgba(116,185,255,0.09) !important; }
.grp-first-tier { border-left: 2px solid rgba(245,197,66,0.35) !important; }
.grp-first-enc  { border-left: 2px solid rgba(116,185,255,0.3) !important; }

/* ── Performance (Parse) tab ── */
.parse-cell-grey   { background: rgba(157,157,157,0.1); color: var(--wow-poor); font-weight: 600; }
.parse-cell-green  { background: rgba(30,255,0,0.1); color: var(--wow-uncommon); font-weight: 600; }
.parse-cell-blue   { background: rgba(0,112,221,0.15); color: var(--wow-rare); font-weight: 600; }
.parse-cell-purple { background: rgba(163,53,238,0.15); color: var(--wow-epic); font-weight: 700; }
.parse-cell-orange { background: rgba(255,128,0,0.15); color: var(--wow-legendary); font-weight: 700; }
.parse-cell-gold   { background: rgba(230,204,128,0.18); color: var(--wow-artifact); font-weight: 800; }
.parse-cell-pink   { background: rgba(226,104,168,0.18); color: var(--wcl-rank-one); font-weight: 800; }
.parse-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.parse-pip {
    display: inline-block; padding: 2px 9px; border-radius: 4px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}

/* Weekly M+ tab */
.weekly-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.weekly-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 108px;
    text-align: center;
}
.weekly-chip .val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}
.weekly-chip .val.long {
    font-size: 12px;
    line-height: 1.2;
}
.weekly-chip .lbl {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Officer review */
.officer-heading {
    display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px;
}
.officer-heading .section-title { margin-bottom: 5px; }
.officer-heading p { margin: 0; color: var(--text-secondary); font-size: 13px; }
.officer-reset {
    color: var(--text-secondary); font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.7px; white-space: nowrap;
}
.officer-summary { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.officer-lockouts { margin-bottom: 16px; border: 1px solid var(--border); background: var(--bg-card); }
.officer-lockout-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.officer-lockout-heading h2 { margin: 0 0 3px; font-size: 14px; }
.officer-lockout-heading span { color: var(--text-secondary); font-size: 10px; }
.officer-lockout-actions { display: flex; gap: 6px; }
.officer-lockout-actions select { min-width: 105px; }
.officer-lockout-actions button {
    appearance: none; width: 36px; min-width: 36px; height: 34px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 4px; color: var(--text-secondary);
    background: var(--bg-card); font: 700 18px/1 sans-serif; cursor: pointer;
}
.officer-lockout-actions button:hover { border-color: var(--accent-gold); color: var(--text-primary); }
.officer-lockout-actions button:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.officer-lockout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.officer-lockout-boss { min-height: 92px; padding: 11px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.officer-lockout-boss > strong { display: block; font-size: 12px; }
.officer-lockout-boss > span { display: block; margin: 3px 0 8px; color: var(--status-warning); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.officer-lockout-boss > div { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.officer-lockout-boss a { font-size: 11px; font-weight: 700; text-decoration: none; }
.officer-lockout-boss em, .officer-lockout-loading, .officer-lockout-error { color: var(--text-secondary); font-size: 11px; font-style: normal; }
.officer-lockout-loading, .officer-lockout-error { padding: 18px 14px; }
.officer-metric {
    min-height: 72px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg-card); display: flex; flex-direction: column; justify-content: center; text-align: left;
}
.officer-metric strong { color: var(--text-primary); font-size: 23px; line-height: 1; }
.officer-metric span { color: var(--text-secondary); font-size: 10px; font-weight: 700; text-transform: uppercase; margin-top: 7px; }
.officer-metric-action { cursor: pointer; transition: border-color 120ms ease, background 120ms ease, transform 120ms ease; }
.officer-metric-action:hover { border-color: rgba(245,197,66,0.45); background: rgba(245,197,66,0.05); transform: translateY(-1px); }
.officer-metric-action.active { border-color: var(--accent-gold); background: rgba(245,197,66,0.09); box-shadow: inset 0 -2px 0 var(--accent-gold); }
.officer-metric-danger strong { color: var(--status-danger); }
.officer-metric-warn strong { color: var(--status-warning); }
.officer-controls { margin-bottom: 10px; }
.officer-result-count { margin: 0 2px 8px; color: var(--text-secondary); font-size: 11px; font-weight: 700; text-align: right; }
.officer-table th:nth-child(3), .officer-table td:nth-child(3) { text-align: left; min-width: 190px; }
.officer-table th:nth-child(4), .officer-table td:nth-child(4) { text-align: left; min-width: 170px; }
.officer-row-review { background: rgba(231,76,60,0.025); }
.officer-spec { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 10px; font-weight: 400; }
.officer-flags, .officer-crafted-list { display: flex; flex-wrap: wrap; gap: 4px; max-width: 300px; white-space: normal; }
.officer-flag {
    display: inline-flex; padding: 2px 6px; border-radius: 3px; border: 1px solid rgba(231,76,60,0.3);
    background: rgba(231,76,60,0.1); color: #ef8b82; font-size: 10px; font-weight: 600;
}
.officer-clear { color: var(--status-success); font-size: 11px; font-weight: 700; }
.officer-crafted { color: var(--wow-epic); font-size: 11px; text-decoration: none; }
.officer-crafted:hover { text-decoration: underline; }
.officer-empty { color: var(--status-warning); font-size: 11px; }
.officer-table td.cell-red .officer-empty { color: inherit; }
@media (max-width: 900px) {
    .officer-summary { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
.vault-slots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.vault-slot {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    gap: 1px;
}
.vault-slot small {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.85;
}
.vault-slot.ok {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.32);
}
.vault-slot.incomplete {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.14);
    border: 1px solid rgba(241, 196, 15, 0.32);
}
.vault-slot.raid-normal {
    color: #6cd46c;
    background: rgba(108, 212, 108, 0.14);
    border: 1px solid rgba(108, 212, 108, 0.32);
}
.vault-slot.raid-heroic {
    color: #c67cff;
    background: rgba(166, 84, 255, 0.16);
    border: 1px solid rgba(166, 84, 255, 0.3);
}
.vault-slot.raid-mythic {
    color: #ff7a91;
    background: rgba(233, 69, 96, 0.14);
    border: 1px solid rgba(233, 69, 96, 0.3);
}
.vault-slot.empty {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}
.vault-matrix {
    display: grid;
    grid-template-columns: 56px repeat(3, minmax(34px, 1fr));
    gap: 5px;
    align-items: center;
    min-width: 176px;
}
.vault-row-label {
    font-size: 9px;
    text-transform: none;
    letter-spacing: 0.2px;
    color: var(--text-secondary);
    text-align: right;
    padding-right: 2px;
}

/* ── Attendance tab ── */
.att-present { background: rgba(46,204,113,0.2);  color: #2ecc71; font-weight: 700; font-size: 13px; }
.att-absent  { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.18); font-size: 12px; }

/* Sticky fixed columns — Player, Nights, Rate, Pulls */
#attTable th:nth-child(1), #attTable td:nth-child(1) { position: sticky; left: 0;     min-width: 200px; z-index: 3; }
#attTable th:nth-child(2), #attTable td:nth-child(2) { position: sticky; left: 200px; min-width: 80px;  z-index: 3; }
#attTable th:nth-child(3), #attTable td:nth-child(3) { position: sticky; left: 280px; min-width: 62px;  z-index: 3; }
#attTable th:nth-child(4), #attTable td:nth-child(4) { position: sticky; left: 342px; min-width: 58px;  z-index: 3; }
/* Sticky header row — always visible while scrolling down */
#attTable thead th { position: sticky; top: 0; background: var(--bg-table); z-index: 3; }
/* Header corners need highest z-index (sticky top + sticky left) */
#attTable thead th:nth-child(-n+4) { z-index: 5; background: var(--bg-table); }
/* Body sticky cells need opaque background so scrolling content hides behind them */
#attTable tbody td:nth-child(-n+4) { background: var(--bg-dark); }
#attTable tbody tr:hover td:nth-child(-n+4) { background: var(--bg-hover); }

/* Sticky strip — sticks below the navbar as a compact horizontal scroll handle */
.att-strip-wrap {
    position: sticky;
    top: 44px;
    z-index: 6;
}
/* Top scroll strip — synced scrollbar aligned to date columns only */
#attDateStripOuter {
    margin-left: 400px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
#attDateStripOuter::-webkit-scrollbar         { height: 6px; }
#attDateStripOuter::-webkit-scrollbar-track   { background: transparent; }
#attDateStripOuter::-webkit-scrollbar-thumb   { background: rgba(255,255,255,0.2); border-radius: 3px; }
#attDateStripOuter::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); border-radius: 3px; }
#attDateStripOuter::-webkit-scrollbar-button  { display: none; }
#attDateStrip {
    display: flex;
    white-space: nowrap;
    height: 1px;  /* width spacer only — scrollbar track is the visible part */
}
/* Hide the native bottom scrollbar — mirror scrollbar replaces it */
#attTableWrapper { overflow-x: scroll; overflow-y: auto; max-height: calc(100vh - 250px); scrollbar-width: none; -ms-overflow-style: none; }
#attTableWrapper::-webkit-scrollbar { display: none; }

/* ── Loot Planning tab ── */

/* Tab switcher — segmented control */
.loot-view-tabs {
    display: flex;
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.loot-tab-btn {
    flex: 1;
    padding: 7px 20px;
    border-radius: 7px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.loot-tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.07);
    color: var(--text-primary);
}
.loot-tab-btn.active {
    background: linear-gradient(135deg, #f0a830 0%, #c87820 100%);
    color: #110d0a;
    box-shadow: 0 2px 12px rgba(240, 168, 48, 0.3);
    font-weight: 800;
}

/* By Boss boss selector */
#lootBossSelect {
    appearance: none;
    background: var(--surface-2)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c59a2d' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        no-repeat right 12px center;
    background-size: 10px 7px;
    border: 1px solid var(--border, #3a3650);
    border-radius: 8px;
    color: var(--text-primary, #e0e0e0);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    min-width: 220px;
    padding: 7px 36px 7px 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
#lootBossSelect:focus {
    outline: none;
    border-color: var(--accent-gold, #c59a2d);
    box-shadow: 0 0 0 2px rgba(197, 154, 45, 0.2);
}
#lootBossSelect option {
    background: var(--surface-2);
    color: var(--text-primary, #e0e0e0);
}

/* "or" divider between Load and Open Raidbots */
.loot-controls-or {
    color: var(--text-secondary, #888);
    font-size: 11px;
    padding: 0 2px;
    white-space: nowrap;
    user-select: none;
}

/* Generate Droptimizer button */
.loot-generate-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(240, 168, 48, 0.45);
    background: rgba(240, 168, 48, 0.1);
    color: #f0a830;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
    transition: background 0.18s, border-color 0.18s, opacity 0.18s;
}
.loot-generate-btn:hover:not(:disabled) {
    background: rgba(240, 168, 48, 0.22);
    border-color: rgba(240, 168, 48, 0.75);
}
.loot-generate-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Help tooltip badge */
.loot-help-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: default;
    position: relative;
    flex-shrink: 0;
    user-select: none;
}
.loot-help-tip:hover,
.loot-help-tip:focus { color: var(--text-primary); outline: none; border-color: rgba(255,255,255,0.35); }
.loot-help-tip-body {
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    pointer-events: none;
    white-space: normal;
    z-index: 200;
}
.loot-help-tip-body::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(255,255,255,0.12);
}
.loot-help-tip-body::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--surface-2);
    z-index: 1;
}
.loot-help-tip:hover .loot-help-tip-body,
.loot-help-tip:focus .loot-help-tip-body { display: block; }

.loot-boss-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.loot-boss-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.loot-boss-name  { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.loot-raid-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.8px; }
.loot-boss-meta  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.loot-tier-badge {
    font-size: 10px; font-weight: 700;
    background: rgba(245,197,66,0.12); color: var(--accent-gold);
    border: 1px solid rgba(245,197,66,0.30); border-radius: 4px; padding: 2px 7px;
    white-space: nowrap;
}
.loot-gear-strip {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    min-height: 34px;
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.loot-gear-items { display: flex; flex-wrap: wrap; gap: 4px; }
.loot-gear-pip {
    font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    border-radius: 4px; padding: 2px 6px; white-space: nowrap; cursor: default;
}
.loot-gear-pip.slot-pip-myth  { color: var(--track-myth); }
.loot-gear-pip.slot-pip-hero  { color: var(--track-hero); }
.loot-gear-pip.slot-pip-champ { color: var(--track-champion); }
.loot-gear-empty { color: var(--text-secondary); font-size: 12px; }
.loot-picks-section { padding: 12px 16px; }
.loot-picks-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 22px; }
.loot-no-picks { color: var(--text-secondary); font-size: 12px; }
.loot-add-btn { font-size: 11px; }
.loot-pick-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.07); border: 1px solid var(--border);
    border-radius: 6px; padding: 3px 8px;
    font-size: 12px; font-weight: 500; white-space: nowrap; cursor: default;
}
.loot-pri-label { font-size: 10px; font-weight: 700; }
.loot-chip-del {
    background: none; border: none; cursor: pointer;
    color: var(--text-secondary); font-size: 15px; line-height: 1;
    padding: 0 0 0 2px; margin-left: 1px; transition: color 0.15s;
}
.loot-chip-del:hover { color: var(--accent); }
.loot-add-form {
    padding: 0 16px 12px;
    border-top: 1px solid var(--border);
}
/* Available loot items section */
.loot-available-section {
    border-bottom: 1px solid var(--border);
    padding: 10px 0 0;
}
.loot-section-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-secondary);
    padding: 0 16px 6px;
    display: flex; align-items: center; gap: 6px;
}
.loot-class-badge {
    font-size: 9px; font-weight: 700;
    background: rgba(245,197,66,0.1); color: var(--accent-gold);
    border: 1px solid rgba(245,197,66,0.2);
    border-radius: 3px; padding: 1px 5px;
    text-transform: none; letter-spacing: 0;
}
.loot-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 6px;
    padding: 0 16px 12px;
}
.loot-item-card {
    display: flex; align-items: flex-start; gap: 7px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 6px; text-decoration: none; cursor: pointer; color: inherit;
    transition: background 0.15s, border-color 0.15s;
    min-width: 0; position: relative;
}
.loot-item-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }
/* Suppress Wowhead's injected icon if it ever attaches to a child element */
.loot-item-card > .iconsmall { display: none !important; }
.loot-item-icon { width: 28px; height: 28px; border-radius: 4px; flex-shrink: 0; }
.loot-item-icon-link { display: inline-flex; flex-shrink: 0; line-height: 0; }
.loot-item-wh-link {
    position: absolute; top: 5px; right: 8px;
    font-size: 11px; line-height: 1;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.15s;
}
.loot-item-wh-link:hover { color: var(--accent-gold); }
.loot-item-card--picked {
    border-color: var(--border) !important;
    background: rgba(255,255,255,0.03) !important;
    box-shadow: inset 3px 0 var(--pick-color);
}
.loot-item-card--picked::after {
    content: '✓';
    position: absolute;
    top: 4px; right: 24px;
    font-size: 11px;
    color: var(--pick-color);
    font-weight: 700;
    line-height: 1;
}
.loot-item-card--suggested {
    border-color: rgba(245,197,66,0.56);
    background: linear-gradient(90deg, rgba(245,197,66,0.11), rgba(255,255,255,0.035) 55%);
}
.loot-item-card--suggested:hover { border-color: var(--accent-gold); }
.loot-suggested-bis-badge {
    align-self: flex-start;
    margin-top: 2px;
    padding: 2px 5px;
    border: 1px solid rgba(245,197,66,0.45);
    border-radius: 4px;
    color: var(--accent-gold);
    background: rgba(245,197,66,0.1);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}
/* Droptimizer upgrade badge */
.loot-drop-badge {
    display: inline-block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(0, 255, 100, 0.3);
    background: rgba(0, 255, 100, 0.1);
    color: #00e676;
    line-height: 1.4;
    align-self: flex-start;
}
/* Priority badge on picked item card */
.loot-item-prio-badge {
    display: inline-block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid;
    line-height: 1.4;
    align-self: flex-start;
}
/* Floating priority picker */
.loot-priority-picker {
    display: none;
    position: absolute;
    z-index: 1000;
    background: var(--surface-2);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 10px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.loot-priority-btns { display: flex; flex-direction: column; }
.loot-picker-note {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
    padding: 5px 8px;
    resize: none;
}
.loot-picker-note:focus { outline: none; border-color: var(--accent); }
.loot-chip-note {
    font-size: 10px;
    color: var(--text-secondary);
    font-style: italic;
    width: 100%;
    margin-left: 0;
    opacity: 0.85;
}
.loot-priority-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.loot-priority-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pcolor, var(--text));
    cursor: pointer;
    margin-bottom: 3px;
    transition: background 0.12s, border-color 0.12s;
}
.loot-priority-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--pcolor, var(--border));
}
.loot-priority-sep { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.loot-priority-btn--remove { color: #ff6b6b !important; font-weight: 500; font-size: 12px; }
.loot-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loot-item-name {
    font-size: 12px; font-weight: 600; color: #a335ee;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.loot-item-slot-badge { font-size: 10px; color: #74b9ff; }
.loot-item-pick-note {
    font-size: 10px; color: var(--text-primary); font-style: italic;
}
/* Wowhead links inside pick chips */
.loot-chip-item-link {
    color: inherit; text-decoration: none;
    display: inline-flex; align-items: center; gap: 3px;
}
.loot-chip-item-link:hover { text-decoration: underline; }
.loot-pick-chip img { width: 13px; height: 13px; border-radius: 2px; }
.loot-add-form input, .loot-add-form select {
    background: var(--bg-dark); border: 1px solid var(--border);
    color: var(--text-primary); padding: 5px 10px; border-radius: 6px;
    font-size: 12px; min-height: 29px;
}
.loot-add-form input:focus, .loot-add-form select:focus {
    outline: none; border-color: var(--accent-gold);
}
/* Searchable raider dropdown */
.loot-raider-dropdown {
    position: relative;
    flex-shrink: 0;
    width: 288px;
}
.loot-raider-dropdown input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    min-height: 31px;
}
.loot-raider-dropdown input:focus {
    outline: none;
    border-color: var(--accent);
}
.loot-raider-list {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--surface-2);
    border: 1px solid var(--accent);
    border-radius: 6px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 200;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
.loot-raider-list li {
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text);
    white-space: nowrap;
}
.loot-raider-list li:hover,
.loot-raider-list li.hl {
    background: rgba(255, 255, 255, 0.08);
}

/* Mine view — two-column layout */
.loot-mine-outer {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 1600px;
}
.loot-mine-left-col {
    flex: 3;
    min-width: 0;
    max-width: 940px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.loot-mine-right-col {
    flex: 2;
    min-width: 0;
    max-width: 620px;
    view-transition-name: loot-plan-content;
}
.loot-mine-outer--gear-hidden {
    display: block;
    width: 100%;
}
.loot-mine-outer--gear-hidden .loot-mine-left-col,
.loot-mine-outer--gear-hidden .loot-mine-right-col {
    width: 100%;
    max-width: none;
}
.loot-mine-outer--gear-hidden .loot-mine-left-col { margin-bottom: 12px; }
.loot-mine-outer--gear-hidden .loot-player-context { justify-content: flex-start; }
.loot-mine-outer--gear-hidden .loot-player-context::before { display: none; }
.loot-player-context {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    view-transition-name: loot-player-controls;
}
.loot-player-context::before {
    content: '';
    flex: 0 0 34px;
}
.loot-gear-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    width: 34px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255,255,255,0.025);
    color: var(--text-secondary);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.loot-gear-toggle:hover {
    border-color: rgba(245,197,66,0.45);
    color: var(--text-primary);
}
.loot-gear-toggle-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: var(--accent-gold);
}
.loot-gear-toggle-icon svg {
    width: 18px;
    height: 18px;
}
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-group(loot-player-controls),
::view-transition-group(loot-plan-content) {
    animation-duration: 360ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-group(loot-armory) {
    animation-duration: 300ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
html.loot-gear-collapsing::view-transition-old(loot-armory) {
    animation: loot-armory-collapse 220ms cubic-bezier(0.4, 0, 1, 1) both;
    transform-origin: right center;
}
html.loot-gear-expanding::view-transition-new(loot-armory) {
    animation: loot-armory-expand 300ms 60ms cubic-bezier(0.22, 1, 0.36, 1) both;
    transform-origin: left center;
}
@keyframes loot-armory-collapse {
    to { opacity: 0; transform: translateX(-20px) scale(0.985); }
}
@keyframes loot-armory-expand {
    from { opacity: 0; transform: translateX(-20px) scale(0.985); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
.loot-plan-header {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(var(--surface-rgb),0.72);
    overflow: hidden;
}
.loot-plan-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
}
.loot-plan-control-group {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}
.loot-plan-control-label {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.loot-bis-source {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}
.loot-bis-guide {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.loot-bis-guide:hover { text-decoration: underline; }
.loot-bis-guide[aria-disabled="true"] {
    color: var(--text-muted);
    pointer-events: none;
}
.loot-bis-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 10px;
    white-space: nowrap;
}
.loot-bis-spinner {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255,255,255,0.16);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: loot-bis-spin 700ms linear infinite;
}
@keyframes loot-bis-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .loot-bis-spinner { animation: none; }
}
.loot-mine-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 400px;
    color: var(--text-muted, #6b7a99);
    text-align: center;
    padding: 40px;
}
.loot-mine-empty-icon {
    font-size: 48px;
    opacity: 0.4;
}
.loot-mine-empty-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary, #8899bb);
}
.loot-mine-empty-sub {
    font-size: 0.9rem;
    max-width: 360px;
    line-height: 1.6;
    opacity: 0.7;
}
.loot-mine-filters-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.loot-mine-armory {
    /* width and sticky handled by parent .loot-mine-left-col */
    view-transition-name: loot-armory;
}

/* Profile component embedded in loot planner left panel */
.loot-mine-profile-page {
    padding: 0;
    margin: 0;
    max-width: none;
}
.loot-mine-armory .profile-page {
    zoom: 0.94; /* scale down — loot context only, overrides .profile-page zoom:1.2 */
}
/* ── CSS Subgrid: align weapons with bottom 2 gear rows of side columns ── */
/* Add 8 explicit rows (one per gear slot) to the profile layout grid */
.loot-mine-armory .profile-layout {
    grid-template-rows: repeat(8, auto);
    row-gap: 4px; /* matches .profile-armory-left gap:4px */
}
/* Side columns: subgrid containers spanning all 8 rows */
.loot-mine-armory .profile-armory-left,
.loot-mine-armory .profile-armory-right {
    display: grid;
    grid-row: 1 / 9;
    grid-template-rows: subgrid;
    gap: 0; /* replaced by parent row-gap */
}
/* Push left-column slots to the right edge so they sit flush against the model */
.loot-mine-armory .profile-armory-left {
    grid-template-columns: max-content;
    justify-content: end;
}
/* Side slots: same width as weapons */
.loot-mine-armory .profile-armory-left .profile-slot,
.loot-mine-armory .profile-armory-right .profile-slot {
    width: 280px;
}
/* Center column: subgrid spanning all 8 rows */
.loot-mine-armory .profile-center-col {
    display: grid;
    grid-row: 1 / 9;
    grid-template-rows: subgrid;
    min-width: 0;
    padding: 0;
    align-items: unset;
}
/* Content wrapper div inside center col: also subgrid */
.loot-mine-armory .profile-center-col > div {
    display: grid;
    grid-row: 1 / 9;
    grid-template-rows: subgrid;
    min-width: 0;           /* allow shrinking below model width so centering works */
    justify-items: center;  /* centre model and weapons — equal overflow on both sides */
}
/* Character model spans rows 1–6, sized to fill them */
.loot-mine-armory .profile-char-model {
    grid-row: 1 / 7;
    width: 100%;
    height: auto;
    flex: none;
    align-self: stretch;
    overflow: visible;
    margin-bottom: 0;
}
/* Weapons container spans rows 7–8 */
.loot-mine-armory .profile-armory-weapons {
    grid-row: 7 / 9;
    display: grid;
    grid-template-rows: subgrid;
    justify-content: unset;
    align-items: unset;
    width: auto;
    padding-top: 0;
    margin-top: 0;
}
/* Weapon slots: centered horizontally within the center column */
.loot-mine-armory .profile-armory-weapons .profile-slot {
    width: 280px;
    justify-self: center;
}
/* Slot name truncation in compact loot context */
.loot-mine-armory .profile-slot-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}
.loot-mine-char-info {
    padding: 8px 0 4px;
    text-align: center;
}
.loot-mine-char-info .profile-char-name { font-size: 1.3rem; font-weight: 700; }
.loot-mine-char-info .profile-char-sub  { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.loot-mine-char-info .profile-char-ilvl { font-size: 1rem; font-weight: 600; margin-top: 4px; display: inline-block; }

/* ── Shared utilities ── */
.log-analyze-btn { background: none; border: none; padding: 0; cursor: pointer; color: var(--accent); font-size: inherit; font-family: inherit; }
.log-analyze-btn:hover { text-decoration: underline; }
.link-inherit  { color: inherit; text-decoration: none; }
.link-plain    { text-decoration: none; }
.link-accent   { color: var(--accent); }
.section-desc  { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.section-title.section-subtitle { font-size: 14px; }
.section-title.section-subtitle-flush { font-size: 14px; margin-top: 0; }
.diff-btn.diff-btn-mythic { color: var(--difficulty-mythic); }
.diff-btn.diff-btn-heroic { color: var(--difficulty-heroic); }
.diff-btn.diff-btn-normal { color: var(--difficulty-normal); }
.encounter-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.encounter-filters .diff-filter-bar { margin-bottom: 0; }
.death-kb-aggregate { margin-bottom: 20px; }
.death-heatmap-scroll { overflow-x: auto; margin-bottom: 28px; }
.view-toggle { display: flex; gap: 6px; margin-left: auto; }
.controls-push-right { margin-left: auto; }
.cell-faint    { color: rgba(255, 255, 255, 0.2); }
.cell-left     { text-align: left !important; }
.text-error    { color: #e74c3c; }
.text-muted-sm { color: var(--text-secondary); font-size: 12px; }

/* ── Data load error banner ── */
.data-load-error {
    padding: 60px 24px;
    text-align: center;
}
.data-load-error-title {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 8px;
}
.data-load-error-body {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}
.data-load-error-hint {
    color: var(--text-secondary);
    font-size: 12px;
}
.data-load-error-hint code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Roster group header row ── */
.grp-filler-th              { border-bottom: none !important; background: transparent; }
.grp-label-th               { text-align: center; font-size: 10px; letter-spacing: 2.5px; border-bottom: none !important; padding: 7px 4px 3px; }
.grp-stats-head.grp-label-th { color: rgba(255, 255, 255, 0.35); text-align: center; }
.grp-tier-head.grp-label-th  { color: rgba(245, 197, 66, 0.95); }
.grp-enc-head.grp-label-th   { color: rgba(116, 185, 255, 0.9); }
.non-sortable-th             { cursor: default !important; }
.non-sortable-th::after      { display: none !important; }
.non-sortable-th:hover       { color: inherit; }

/* ── Roster rows & cells ── */
.player-realm-label     { font-size: 10px; color: var(--text-secondary); font-weight: 400; }
.grp-vault-head         { background: rgba(24, 79, 128, 0.34) !important; color: #8fc8f7; }
.members-vault-cell     { min-width: 132px; padding: 5px 7px !important; background: rgba(24, 79, 128, 0.08); }
.members-vault-link     { display: grid; grid-template-columns: repeat(3, minmax(34px, 1fr)); gap: 5px; color: inherit; text-decoration: none; }
.members-vault-link:hover .vault-slot { filter: brightness(1.25); }
.members-row-prev-exp    { opacity: 0.45; }
.members-prev-ilvl-cell  { color: rgba(255,255,255,0.3); font-size: 11px; font-style: italic; }
.members-err-cell        { color: var(--text-secondary); }
.members-ilvl-cell       { font-weight: 700; }
.members-perf-cell       { font-weight: 700; }
.members-tier-count-cell { font-weight: 700; }

/* ── Deaths ── */
.kb-tag           { font-size: 11px; background: rgba(255,255,255,0.07); border-radius: 3px; padding: 1px 5px; margin-right: 3px; }
.death-bar-cell   { min-width: 120px; }
.death-bar-track  { height: 14px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.death-bar-fill   { height: 100%; border-radius: 3px; }
.deaths-no-killers { color: var(--text-secondary); font-size: 11px; }
.death-heatmap-row--header  { align-items: flex-end; margin-bottom: 2px; }
.death-heatmap-row--footer  { margin-top: 3px; }
.death-heat-header-cell     { height: 160px; align-items: flex-end; padding-bottom: 4px; background: transparent; border: none; }
.death-heat-footer-cell     { height: 26px; color: var(--accent-gold); font-size: 11px; background: rgba(255,255,255,0.04); border-top: 1px solid var(--border); }
.heat-header-name           { color: var(--text-secondary); font-size: 10px; padding-bottom: 4px; }
.heat-total-header          { color: var(--text-secondary); font-size: 10px; font-weight: 600; }
.death-boss-name-vert       { color: var(--text-secondary); font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; overflow: hidden; max-height: 155px; line-height: 1.2; }
.heat-footer-label          { color: var(--text-secondary); font-size: 10px; font-style: italic; }
.heat-footer-total          { color: var(--accent-gold); font-size: 11px; }
.death-stat-chip .val-accent { color: var(--accent-gold); font-size: 14px; }
.heat-legend       { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 11px; color: var(--text-secondary); }
.heat-legend-item  { display: inline-flex; align-items: center; gap: 4px; }
.heat-legend-swatch { width: 22px; height: 16px; border-radius: 2px; display: inline-block; }

/* ── Encounters ── */
.enc-diff-row   { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--border); }
.enc-diff-badge { min-width: 52px; }
.enc-diff-stats { font-size: 12px; color: var(--text-secondary); }
.enc-stat-kills { color: #2ecc71; }
.enc-stat-wipes { color: #e74c3c; }
.encounter-card .enc-stats { margin-bottom: 4px; }
.report-kills-cell { font-weight: 600; }

/* ── Mythic ── */
.mythic-subtitle        { color: var(--text-secondary); font-size: 12px; letter-spacing: 1px; margin-top: 4px; }
.mythic-legend          { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 10px; margin-bottom: 4px; }
.mythic-legend-item     { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.mythic-legend-dot      { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; display: inline-block; border: 1px solid rgba(255,255,255,0.1); }
.mythic-legend-dim      { font-size: 9px; opacity: 0.5; }
.boss-card-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.boss-prog-info         { color: #f5c542; }
.boss-session-wipes     { color: #a0a0b0; font-size: 11px; }
.trend-positive         { color: #2ecc71; font-size: 11px; font-weight: 700; }
.trend-negative         { color: #e74c3c; font-size: 11px; font-weight: 700; }

/* ── Performance ── */
.perf-absent-cell   { color: rgba(255, 255, 255, 0.15); }
.parse-legend-label { font-size: 11px; color: var(--text-secondary); margin-right: 8px; }

/* ── Attendance ── */
.att-rate-cell { font-weight: 700; }

/* ── Consumables ── */
.cons-zero-label  { font-size: 11px; color: #e74c3c; padding-left: 6px; }
.cons-loading-msg { color: var(--text-secondary); padding: 12px; }
.cons-error-msg   { color: #e74c3c; padding: 12px; }
.compliance-cell  { font-weight: 700; }

/* ── Loot ── */
.loot-pri-inline  { font-size: 10px; }
.loot-no-picks    { padding: 16px; }
.loot-mine-cards {
    min-width: 0;
}
.loot-wishlist {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid rgba(245,197,66,0.28);
    border-radius: 8px;
    background: rgba(var(--surface-rgb),0.72);
}
.loot-wishlist-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.loot-wishlist-header::-webkit-details-marker { display: none; }
.loot-wishlist-header::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s;
}
.loot-wishlist:not([open]) .loot-wishlist-header::before { transform: rotate(-45deg); }
.loot-wishlist-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.loot-wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}
.loot-wishlist-item {
    display: flex;
    align-items: stretch;
    min-width: 0;
    background: var(--bg-card);
    box-shadow: inset 3px 0 var(--pick-color);
}
.loot-wishlist-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    padding: 9px 8px 9px 11px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.loot-wishlist-main:hover { background: rgba(255,255,255,0.035); }
.loot-wishlist-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 4px;
}
.loot-wishlist-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}
.loot-wishlist-item-name {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.loot-wishlist-meta,
.loot-wishlist-note {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.loot-wishlist-priority { color: var(--pick-color); font-weight: 800; }
.loot-wishlist-note { color: var(--text-secondary); }
.loot-wishlist-remove {
    width: 32px;
    flex: 0 0 32px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
}
.loot-wishlist-remove:hover { color: var(--accent); background: rgba(233,69,96,0.08); }
.loot-wishlist-remove:disabled { opacity: 0.4; cursor: wait; }
.loot-wishlist-empty {
    grid-column: 1 / -1;
    padding: 12px 14px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 11px;
}
.loot-mine-pri-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.loot-mine-pri-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 4px; flex-shrink: 0; }
.loot-mine-pri-btn { display: inline-flex; align-items: center; }
@media (max-width: 1180px) {
    .loot-mine-outer { flex-direction: column; }
    .loot-mine-left-col,
    .loot-mine-right-col { width: 100%; max-width: none; }
}
@media (max-width: 600px) {
    .loot-player-context { align-items: stretch; }
    .loot-raider-dropdown { width: auto; flex: 1; }
    .loot-plan-controls { align-items: stretch; flex-direction: column; gap: 10px; }
    .loot-plan-control-group { grid-template-columns: 1fr; gap: 6px; }
    .loot-bis-source { align-items: flex-start; }
    .loot-wishlist-items { grid-template-columns: 1fr; }
    .loot-mine-armory .profile-layout {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .loot-mine-armory .profile-armory-left,
    .loot-mine-armory .profile-armory-right {
        display: flex;
        width: 100%;
    }
    .loot-mine-armory .profile-center-col {
        display: block;
        order: -1;
        width: 100%;
        padding: 0;
    }
    .loot-mine-armory .profile-center-col > div {
        display: flex;
        flex-direction: column;
    }
    .loot-mine-armory .profile-char-model { width: min(100%, 360px); }
    .loot-mine-armory .profile-armory-left .profile-slot,
    .loot-mine-armory .profile-armory-right .profile-slot,
    .loot-mine-armory .profile-armory-weapons .profile-slot { width: 100%; }
    .loot-mine-armory .profile-armory-weapons { display: flex; width: 100%; }
}

/* ── Attendance: character groups panel ── */
.att-groups-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.att-groups-panel[hidden] { display: none; }
.att-groups-title { font-size: 12px; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.att-groups-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.att-group-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.att-group-members { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.att-group-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.08); border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.att-group-chip--primary { background: rgba(245,197,66,0.15); color: var(--accent-gold); }
.att-group-chip-realm { font-size: 10px; color: var(--text-secondary); font-weight: 400; }
.att-group-remove { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 14px; padding: 0 4px; line-height: 1; margin-left: auto; }
.att-group-remove:hover { color: #e74c3c; }
.att-group-add-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.att-group-add-row input { padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-page); color: var(--text-primary); font-size: 13px; font-family: inherit; width: 180px; }
.att-group-sep { color: var(--text-secondary); font-size: 16px; }
.att-group-status { color: var(--status-danger); font-size: 12px; margin-top: 8px; }
.att-group-status:empty { display: none; }
.att-groups-empty { color: var(--text-secondary); font-size: 12px; font-style: italic; }
.att-alias-tag { width: 100%; font-size: 10px; color: var(--text-secondary); line-height: 1.2; }

/* Armory panel */
.loot-armory-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.loot-armory-loading .loot-armory-header { opacity: 0.5; }
.loot-armory-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.loot-armory-avatar {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    object-fit: cover;
}
.loot-armory-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}
.loot-armory-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.loot-armory-sub  { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.loot-armory-ilvl {
    font-size: 13px; font-weight: 700;
    display: inline-block;
    padding: 1px 7px; border-radius: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
}
.loot-armory-ilvl.slot-pip-myth  { color: var(--track-myth); }
.loot-armory-ilvl.slot-pip-hero  { color: var(--track-hero); }
.loot-armory-ilvl.slot-pip-champ { color: var(--track-champion); }
.loot-armory-section-title {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 8px 16px 4px;
}
.loot-armory-gear {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    padding: 0 8px 8px;
}
.loot-armory-gear td { padding: 3px 8px; vertical-align: middle; }
.loot-armory-slot-label {
    color: var(--text-secondary);
    white-space: nowrap;
    width: 66px;
    font-size: 11px;
}
.loot-armory-slot-link {
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: inline-block;
}
.loot-armory-slot-link:hover { text-decoration: underline; }
/* WoW item quality colours — also force-inherit into Wowhead's injected inner spans */
.loot-armory-slot-link.q0 { color: var(--wow-poor); }
.loot-armory-slot-link.q1 { color: var(--wow-common); }
.loot-armory-slot-link.q2 { color: var(--wow-uncommon); }
.loot-armory-slot-link.q3 { color: var(--wow-rare); }
.loot-armory-slot-link.q4 { color: var(--wow-epic); }
.loot-armory-slot-link.q5 { color: var(--wow-legendary); }
.loot-armory-slot-link > span { color: inherit !important; }
.loot-armory-tier-dot {
    display: inline-block;
    margin-left: 4px;
    font-size: 9px; font-weight: 700;
    background: rgba(245,197,66,0.15); color: var(--accent-gold);
    border: 1px solid rgba(245,197,66,0.3);
    border-radius: 3px; padding: 0 4px;
    vertical-align: middle;
}
.loot-armory-slot-ilvl {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    font-size: 11px;
    white-space: nowrap;
}
.loot-armory-slot-ilvl.slot-pip-myth  { color: var(--track-myth); }
.loot-armory-slot-ilvl.slot-pip-hero  { color: var(--track-hero); }
.loot-armory-slot-ilvl.slot-pip-champ { color: var(--track-champion); }
.loot-armory-profile-link {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 8px;
    border-top: 1px solid var(--border);
    text-decoration: none;
    transition: color 0.15s;
}
.loot-armory-profile-link:hover { color: var(--accent-gold); }

/* Enchants & Gems section — always visible, separated from gear table */
.loot-armory-section-title--enchants {
    margin-top: 2px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.loot-audit-list { padding: 0 8px 10px; }

/* Enchant / gem audit rows */
.loot-audit-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.loot-audit-row:last-child { border-bottom: none; }
.loot-audit-slot {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.loot-audit-tags { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.loot-audit-tag {
    font-size: 10px;
    border-radius: 3px;
    padding: 1px 5px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
a.loot-audit-tag:hover { filter: brightness(1.25); text-decoration: underline; }

/* Wowhead tooltip — force spell/use text to wrap instead of clipping */
.wowhead-tooltip a { white-space: normal !important; }
.loot-audit-ok   { background: rgba(46,204,113,0.1);  color: #2ecc71; border: 1px solid rgba(46,204,113,0.25); }
.loot-audit-miss { background: rgba(231,76,60,0.1);   color: #e74c3c; border: 1px solid rgba(231,76,60,0.25); }
.loot-audit-gem  { background: rgba(116,185,255,0.1); color: #74b9ff; border: 1px solid rgba(116,185,255,0.25); }

/* By Boss view — item cards */
.loot-by-boss-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    padding: 14px 16px;
}
.loot-by-boss-item-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s;
}
.loot-by-boss-item-card--picked {
    border-color: rgba(197,154,45,0.5);
    background: rgba(197,154,45,0.04);
}
.loot-by-boss-item-anchor {
    display: flex; align-items: flex-start; gap: 8px;
    text-decoration: none; color: inherit; min-width: 0;
}
.loot-by-boss-item-anchor:hover .loot-item-name { color: var(--accent-gold); }
.loot-by-boss-item-anchor > .iconsmall { display: none !important; }
.loot-item-icon--lg { width: 36px; height: 36px; border-radius: 5px; flex-shrink: 0; }
.loot-item-icon--placeholder { background: rgba(255,255,255,0.06); border-radius: 4px; flex-shrink: 0; }
.loot-by-boss-raiders { display: flex; flex-wrap: wrap; gap: 6px; }
.loot-by-boss-raider {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 600;
    cursor: default;
}
.loot-by-boss-unclaimed {
    font-size: 11px; color: var(--text-secondary); font-style: italic; padding-left: 2px;
}
/* Grid view — table with icon chips */
.loot-grid-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.loot-grid-pri-btn {
    display: inline-flex; align-items: center; gap: 5px;
}
.loot-grid-pri-btn .loot-grid-chip-prio { width: 8px; height: 8px; flex-shrink: 0; }
.loot-grid-table { border-collapse: collapse; font-size: 12px; width: 100%; }
.loot-grid-table thead th {
    background: var(--bg-table); color: var(--text-secondary);
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 8px 10px; border: 1px solid var(--border);
    position: sticky; top: 0; z-index: 2; text-align: center; white-space: nowrap;
    cursor: default;
}
.loot-grid-table thead th::after { display: none; }
.loot-grid-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.loot-grid-table td { border: 1px solid var(--border); padding: 5px 7px; vertical-align: top; }
.loot-grid-raider-cell { font-weight: 600; white-space: nowrap; text-align: left; min-width: 100px; color: var(--text-primary, #e8eaf6); }

/* Clickable raider name + hover card */
.loot-grid-raider-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.loot-grid-raider-link {
    background: none; border: none; padding: 0;
    font: inherit; font-weight: 600;
    cursor: pointer;
    text-decoration: underline dotted transparent;
    transition: text-decoration-color 0.15s, color 0.15s;
}
.loot-grid-raider-link:hover { text-decoration: underline dotted currentColor; }
.loot-grid-exclude-btn {
    display: none;
    background: none; border: none; padding: 0 2px;
    font-size: 11px; line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: opacity 0.15s, color 0.15s;
}
.loot-grid-exclude-btn:hover { opacity: 1; color: #f66; }
.loot-grid-raider-wrap:hover .loot-grid-exclude-btn { display: inline; }
.loot-raider-hover-card {
    display: none;
    position: fixed;
    z-index: 2000;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    pointer-events: none;
    min-width: 140px;
}
.loot-raider-hover-specline { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.loot-raider-hover-role {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    font-weight: 600; padding: 2px 7px; border-radius: 4px;
    display: inline-block; margin-bottom: 5px;
}
.loot-hover-role--tank    { background: rgba(100,149,237,0.2); color: #6495ed; }
.loot-hover-role--healer  { background: rgba(46,204,113,0.2);  color: #2ecc71; }
.loot-hover-role--dps     { background: rgba(231,76,60,0.2);   color: #e74c3c; }
.loot-raider-hover-hint { font-size: 11px; color: var(--text-secondary); }
.loot-grid-cell { min-width: 80px; }
.loot-grid-cell-empty { color: var(--text-secondary); font-size: 11px; text-align: center; opacity: 0.35; }
/* Compact pick chip inside the table cell */
.loot-grid-cell-chip {
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
    padding: 4px 6px; margin-bottom: 3px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 5px; text-decoration: none; color: inherit; cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    min-width: 0;
}
.loot-grid-cell-chip:last-child { margin-bottom: 0; }
.loot-grid-cell-chip:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }
.loot-grid-cell-chip > .iconsmall { display: none !important; }
.loot-grid-chip-icon { width: 20px; height: 20px; border-radius: 3px; flex-shrink: 0; }
.loot-grid-chip-icon--empty { background: rgba(255,255,255,0.06); }
.loot-grid-chip-name {
    font-size: 11px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px;
}
.loot-grid-chip-prio {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

/* ── Toast notification ─────────────────────────────────────────────── */
.loot-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    pointer-events: none;
}
.loot-toast {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-table);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-primary);
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
    pointer-events: all;
    min-width: 260px;
    animation: lootToastIn 0.18s ease;
}
@keyframes lootToastIn {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.loot-toast-msg { flex: 1; }
.loot-toast-undo {
    background: none;
    border: 1px solid var(--accent-gold);
    border-radius: 5px;
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s;
    letter-spacing: 0.04em;
}
.loot-toast-undo:hover { background: rgba(245,197,66,0.12); }

/* ── Chip editor popover ─────────────────────────────────────────────── */
.loot-chip-editor {
    display: none;
    position: absolute;
    z-index: 1001;
    background: var(--surface-2);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 12px;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.loot-chip-editor-pris {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}
.loot-chip-editor-pris .loot-priority-btn.active {
    background: rgba(255,255,255,0.1);
    border-color: var(--pcolor, var(--border));
}
.loot-chip-editor-note {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
    padding: 6px 8px;
    resize: vertical;
    min-height: 52px;
    margin-bottom: 8px;
}
.loot-chip-editor-note:focus { outline: none; border-color: var(--accent-gold); }
.loot-chip-editor-actions {
    display: flex;
    gap: 6px;
}
.loot-chip-editor-save  { flex: 1; }
.loot-chip-editor-cancel { flex: 1; opacity: 0.7; }


/* ── "Also wanted by" footer on item cards ───────────────────────────── */
.loot-item-also-wanted {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Class-aware filter notice ───────────────────────────────────────── */
.loot-class-filter-notice {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 4px 16px 2px;
    font-style: italic;
}

/* ── Select-your-character empty state ───────────────────────────────── */
.loot-select-prompt {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-secondary);
    border: 2px dashed var(--border);
    border-radius: 10px;
    margin: 0;
}
.loot-select-prompt strong { color: var(--text-primary); font-size: 15px; display: block; margin-bottom: 8px; }
.loot-select-prompt p { margin: 0; font-size: 13px; }

/* ── Raider view — member quick-select chips ─────────────────────────── */
.loot-raider-selector { display: flex; justify-content: center; }
.loot-raider-selector .loot-raider-dropdown { width: 100%; max-width: 300px; margin: 0; }
.loot-member-chips {
    display: flex; flex-wrap: wrap; gap: 7px;
    margin-top: 12px; padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.loot-member-chip {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 4px 14px;
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; transition: all 0.15s;
}
.loot-member-chip:hover, .loot-member-chip.active {
    background: rgba(197,154,45,0.12);
    border-color: rgba(197,154,45,0.4);
    color: var(--accent-gold);
}

/* ── Player picker (no player selected) ──────────────────────────── */
.loot-player-picker {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.loot-player-picker-intro {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.loot-player-picker-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}
.loot-player-picker-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.loot-player-search-wrap {
    position: relative;
}
.loot-player-search-wrap--compact {
    flex-shrink: 0;
    width: 288px;
}
.loot-player-search-wrap--empty {
    align-self: center;
}
.loot-player-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted, #4a5568);
    pointer-events: none;
}
.loot-player-search-wrap input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    background: var(--bg-card, rgba(255,255,255,0.04));
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.loot-player-search-wrap input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(197,154,45,0.12);
}
.loot-player-picker .loot-member-chips {
    margin-top: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}
.loot-player-picker .loot-member-chip {
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.loot-player-picker .loot-member-chip.is-mythic {
    border-color: rgba(255, 128, 0, 0.28);
}
.loot-player-picker .loot-member-chip.is-mythic:hover {
    background: rgba(255, 128, 0, 0.1);
    border-color: rgba(255, 128, 0, 0.55);
    color: #ff9a30;
}
.loot-chip-mythic-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff8000;
    flex-shrink: 0;
}
/* Mythic-only filter toggle */
.loot-picker-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.loot-picker-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.loot-picker-filter-btn:hover {
    border-color: rgba(255, 128, 0, 0.4);
    color: #ff9a30;
}
.loot-picker-filter-btn.active {
    border-color: rgba(255, 128, 0, 0.5);
    background: rgba(255, 128, 0, 0.1);
    color: #ff9a30;
}
.loot-picker-filter-count {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}
.loot-picker-filter-btn.active .loot-picker-filter-count {
    background: rgba(255, 128, 0, 0.2);
}

/* ── Armory panel — droptimizer action button ────────────────────────── */
#lootArmoryDtWrap:not(:empty) {
    border-top: 1px solid var(--border);
    padding: 8px 0;
    text-align: center;
}
.loot-armory-dt-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid rgba(197,154,45,0.35);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 12px; font-weight: 600;
    color: var(--accent-gold);
    cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.loot-armory-dt-btn:hover { background: rgba(197,154,45,0.08); border-color: rgba(197,154,45,0.6); }
.loot-armory-dt-btn--loaded { color: var(--text-secondary); font-weight: 400; }
.loot-armory-dt-btn--loaded:hover { color: var(--accent-gold); }

/* ── Droptimizer modal ───────────────────────────────────────────────── */
.loot-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.65);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; transition: opacity 0.2s;
}
.loot-modal-overlay--open { opacity: 1; }
.loot-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%; max-width: 480px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    transform: translateY(-10px); transition: transform 0.2s;
}
.loot-modal-overlay--open .loot-modal { transform: translateY(0); }
.loot-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--border);
}
.loot-modal-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.loot-modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-secondary); font-size: 15px;
    padding: 4px 8px; border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.loot-modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.loot-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.loot-modal-desc { margin: 0; font-size: 13px; color: var(--text-secondary); }
.loot-modal-step { display: flex; gap: 14px; align-items: flex-start; }
.loot-modal-step-num {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    background: rgba(197,154,45,0.15); border: 1px solid rgba(197,154,45,0.35);
    color: var(--accent-gold); font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.loot-modal-step-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.loot-modal-step-title { font-size: 13px; color: var(--text-primary); line-height: 1.4; }
.loot-modal-step-title strong { color: var(--accent-gold); }
.loot-modal-url-input {
    width: 100%; box-sizing: border-box;
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 12px;
    color: var(--text-primary); font-size: 13px;
    transition: border-color 0.15s;
}
.loot-modal-url-input:focus { outline: none; border-color: var(--accent-gold); }
.loot-modal-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 14px 20px; border-top: 1px solid var(--border);
}
.loot-modal-cancel-btn {
    background: none; border: 1px solid var(--border); border-radius: 20px;
    padding: 5px 16px; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
}
.loot-modal-cancel-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.25); }

/* ── Grid: missing-raider rows ───────────────────────────────────────── */
.loot-grid-row--missing td { opacity: 0.55; }
.loot-grid-row--missing .loot-grid-raider-cell { opacity: 1; }
.loot-grid-missing-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(233,69,96,0.15);
    color: var(--accent);
    border: 1px solid rgba(233,69,96,0.3);
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 5px;
}
.loot-grid-footer {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

/* ── Grid: sticky first column (mobile) ─────────────────────────────── */
.loot-grid-table th:first-child,
.loot-grid-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-table);
}
.loot-grid-table tbody tr td:first-child {
    background: var(--bg-card);
}
.loot-grid-table tbody tr:hover td:first-child { background: rgba(255,255,255,0.05); }

/* ── By Boss: conflict badge ─────────────────────────────────────────── */
.loot-by-boss-item-card--conflict {
    border-color: rgba(233,69,96,0.6) !important;
    background: rgba(233,69,96,0.05) !important;
}
.loot-conflict-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(233,69,96,0.5);
    background: rgba(233,69,96,0.15);
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}
.loot-by-boss-item-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.loot-by-boss-item-title .loot-by-boss-item-anchor { flex: 1; min-width: 0; }

/* ── By Boss: slot demand summary bar ───────────────────────────────── */
.loot-slot-demand {
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.loot-slot-demand span strong { color: var(--text-primary); }


@media (max-width: 768px) {
    .container { padding: 8px 12px 12px; }
    .site-header { padding: 14px 16px; }
    .site-header-inner { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
    .site-header-inner > .header-stats { grid-column: 1 / -1; grid-row: 3; width: 100%; }
    .site-header-inner > .header-account-area { grid-column: 1 / -1; grid-row: 2; justify-self: start; align-items: flex-start; min-width: 0; }
    .header-stats { gap: 8px; }
    .header-affixes { display: none; }
    .hstat { border-right: none; padding: 0 12px 0 0; }
    .brand-name { font-size: 17px; }
    .site-nav { justify-content: flex-start; padding: 0 12px; overflow-x: auto; overflow-y: visible; }
    .header-account-area { grid-column: 3; }
    .discord-login small, .discord-profile small { display: none; }
    .discord-login strong, .discord-profile strong { max-width: 110px; }
    /* overflow-x: auto creates a scroll container that clips absolute children;
       use fixed positioning so the dropdown renders outside the clipped area */
    .nav-dropdown-menu {
        position: fixed;
        left: 0;
        right: 0;
        min-width: 100%;
        border-radius: 0 0 8px 8px;
    }
    .site-nav a:first-child { margin-left: 0; }
}

/* ── Profile Page ─────────────────────────────────────────────────────── */
.profile-page { max-width: 1400px; margin: 0 auto; padding: 12px 16px; zoom: 1.2; }
.profile-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
}
.profile-center-col { display: flex; flex-direction: column; align-items: center; padding: 0 8px; min-width: 336px; }
.profile-picker-inner {
    width: 280px; flex-shrink: 0;
}
.profile-search-control { position: relative; width: 280px; }
.profile-search-input {
    width: 100%; padding: 10px 16px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
    font-size: 14px; outline: none; transition: border-color 0.2s;
}
.profile-search-input:focus { border-color: var(--accent-gold); }
.profile-search-help {
    display: flex; align-items: baseline; justify-content: center; gap: 5px;
    margin-top: 7px; color: var(--text-muted); font-size: 11px;
}
.profile-search-help button {
    padding: 0; border: 0; color: var(--accent-gold); background: transparent;
    font: inherit; font-weight: 700; cursor: pointer;
}
.profile-search-help button:hover { color: var(--text-primary); }
.profile-search-help button:disabled { color: var(--text-muted); cursor: wait; }
.profile-search-help button:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.profile-refresh-status { min-height: 14px; margin-top: 3px; color: var(--text-secondary); font-size: 10px; text-align: center; }
.member-search-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    background: var(--bg-card); border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 8px 8px; max-height: 240px; overflow-y: auto;
    box-shadow: 0 14px 30px rgba(0,0,0,0.42);
}
.member-search-suggestion {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 16px; cursor: pointer; font-size: 13px; color: var(--text-primary);
    transition: background 0.15s;
}
.member-search-suggestion:hover, .member-search-suggestion.active { background: rgba(245,197,66,0.1); }
.member-search-character { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-search-realm { font-size: 11px; color: var(--text-secondary); margin-left: 2px; }
.member-search-ilvl { flex-shrink: 0; font-size: 11px; font-weight: 700; }
.loot-raider-realm        { font-size: 11px; color: var(--text-secondary); margin-left: 4px; }
.loot-chip-realm          { font-size: 11px; font-weight: 400; color: var(--text-secondary); margin-left: 1px; }
.profile-loading, .profile-empty {
    text-align: center; padding: 60px 20px; color: var(--text-secondary); font-size: 14px;
}

/* Armory grid: left slots – center col – right slots */
.profile-armory-left, .profile-armory-right {
    display: flex; flex-direction: column; gap: 8px;
}
.profile-armory-left { align-items: flex-end; }
.profile-armory-right { align-items: flex-start; }

/* ── Character model container ── */
#profileContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 0;
}
.profile-char-model {
    position: relative;
    width: 400px;
    flex: 1;
    min-height: 150px;
    overflow: visible;
    margin-bottom: 8px;
}
.profile-char-model--empty {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}
.profile-avatar {
    position: absolute;
    /* Default offset for height:162% avatar — JS (profileFixAvatarFeet) recalculates precisely per character. */
    bottom: -28.51%;
    left: 50%;
    transform: translateX(-50%);
    height: 162%;
    width: auto;
    display: block;
    pointer-events: none;
}
.profile-model-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 2;
}
.profile-avatar-placeholder {
    width: 200px; height: 260px; border-radius: 12px;
    background: var(--bg-table); border: 2px solid var(--border); margin-bottom: 14px;
}
/* WoW: Forever characters without a Blizzard render show Blizzard's race/gender silhouette instead */
.profile-avatar--silhouette { opacity: 0.85; filter: drop-shadow(0 0 18px rgba(248,183,0,0.12)); }
.profile-render-missing-note {
    position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 3;
    padding: 3px 12px; border-radius: 12px; white-space: nowrap;
    background: rgba(0,0,0,0.55); color: var(--text-secondary); font-size: 11px;
}
/* WoW: Forever stats and talents (from the Blizzard armory), below the armory layout */
.forever-details {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px;
    margin-top: 18px; align-items: start; position: relative; z-index: 5;
}
@media (max-width: 1100px) { .forever-details { grid-template-columns: 1fr; } }
.forever-panel {
    background: rgba(var(--surface-rgb), 0.92); border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; backdrop-filter: blur(4px);
}
.forever-panel-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--accent-gold); margin-bottom: 12px;
}
.forever-panel-empty, .forever-details-loading { color: var(--text-secondary); font-size: 12px; }
.forever-details-loading { margin-top: 18px; text-align: center; }
.forever-details-source { margin-top: 8px; text-align: right; font-size: 11px; color: var(--text-muted); }
.forever-stat-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; }
.forever-stat-group-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-bottom: 4px;
}
.forever-stat { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 2px 0; }
.forever-stat dt { color: var(--text-secondary); }
.forever-stat dd { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.forever-talent-tree + .forever-talent-tree { margin-top: 14px; }
.forever-talent-tree-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.forever-talent-tree-icon { width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--border); }
.forever-talent-tree-name { font-weight: 700; color: var(--text-primary); }
.forever-talent-tree-points { margin-left: auto; font-size: 12px; color: var(--accent-gold); font-weight: 700; }
.forever-talents { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.forever-talent {
    position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 6px;
    border-radius: 6px; font-size: 12px; color: var(--text-primary); cursor: default; outline: none;
}
.forever-talent:hover, .forever-talent:focus-visible { background: var(--bg-hover); }
.forever-talent-icon-wrap { position: relative; flex-shrink: 0; }
.forever-talent-icon { width: 32px; height: 32px; border-radius: 5px; border: 1px solid #1eff00; display: block; }
.forever-icon-empty { display: inline-block; background: var(--bg-inset); }
.forever-class-icon {
    width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.7); box-shadow: 0 0 0 1px rgba(248,183,0,0.25);
}
.forever-talent-rank {
    position: absolute; right: -5px; bottom: -5px; min-width: 16px; padding: 0 3px; border-radius: 4px;
    background: #000; border: 1px solid #1eff00; color: #1eff00; font-size: 10px; font-weight: 700; text-align: center;
}
.forever-talent-tip {
    display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: 280px;
    padding: 9px 11px; border-radius: 6px; background: #070b14; border: 1px solid #4a4a5a;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7); font-size: 12px; line-height: 1.45; color: #fff; white-space: normal;
}
.forever-talent:hover .forever-talent-tip, .forever-talent:focus-visible .forever-talent-tip { display: flex; flex-direction: column; gap: 3px; }
.forever-talent-tip-meta { color: var(--text-muted); font-size: 11px; }
.forever-talent-tip-desc { color: #ffd100; }
/* ── Character info bar — sits above the left armory column ── */
.profile-char-info-center {
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}
.profile-char-info-center:empty { display: none; }
.profile-char-info-center .profile-char-name { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.profile-char-info-center .profile-char-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 2px; }
.profile-char-info-center .profile-char-ilvl { font-size: 14px; font-weight: 700; background: none; border: none; padding: 0; display: block; }
.profile-info-bar:empty { display: none; }
.profile-char-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.profile-info-bar .profile-char-name {
    font-size: 18px; font-weight: 800; margin-bottom: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    letter-spacing: 0.3px;
    color: #fff;
}
.profile-char-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.profile-info-bar .profile-char-sub {
    font-size: 13px; margin-bottom: 0;
    color: rgba(255,255,255,0.65);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.profile-char-ilvl {
    font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border); margin-bottom: 4px;
}
.profile-info-bar .profile-char-ilvl {
    margin-bottom: 0; font-size: 15px; padding: 0;
    font-weight: 700; background: none; border: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.profile-char-ilvl.slot-pip-myth  { color: var(--track-myth); }
.profile-char-ilvl.slot-pip-hero  { color: var(--track-hero); }
.profile-char-ilvl.slot-pip-champ { color: var(--track-champion); }
.profile-info-bar .profile-char-ilvl.slot-pip-myth,
.profile-info-bar .profile-char-ilvl.slot-pip-hero,
.profile-info-bar .profile-char-ilvl.slot-pip-champ { background: none; border: none; }
.profile-char-info-center .profile-char-ilvl.slot-pip-myth,
.profile-char-info-center .profile-char-ilvl.slot-pip-hero,
.profile-char-info-center .profile-char-ilvl.slot-pip-champ { background: none; border: none; color: var(--text-primary); }
.profile-char-realm { font-size: 11px; color: var(--text-secondary); text-transform: capitalize; }
.profile-armory-link {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 8px; padding: 5px 14px;
    font-size: 11px; font-weight: 600; text-decoration: none;
    color: #c4a8ff;
    background: rgba(130,70,220,0.15);
    border: 1px solid rgba(130,70,220,0.4);
    border-radius: 6px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.profile-armory-link:hover {
    background: rgba(130,70,220,0.28);
    border-color: rgba(180,120,255,0.7);
    color: #e0ccff;
}

/* Full-page armory background — body-level so it fills edge-to-edge beneath the navbar */
body.profile-bg-active {
    background-image: var(--profile-bg-url);
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Weapons row – pushed to bottom of center column */
.profile-armory-weapons {
    display: flex; gap: 8px; justify-content: center;
    margin-top: auto; padding-top: 10px; width: 100%;
}
.profile-armory-weapons .profile-slot {
    flex: 0 1 270px; min-width: 0;
    justify-content: flex-start;
}

/* ── Gear slot cards ── */
.profile-slot {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    width: 310px; position: relative;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.profile-slot:hover {
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(163,53,238,0.25);
    border-color: rgba(163,53,238,0.4);
}
.profile-slot--empty { opacity: 0.4; }
.profile-slot--empty:hover { transform: none; box-shadow: none; }

/* Icon wrap with quality border */
.profile-slot-icon-wrap {
    position: relative; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 6px; overflow: visible;
    display: flex; align-items: center; justify-content: center;
}
.profile-slot-icon {
    width: 44px; height: 44px; border-radius: 6px; display: block;
    border: 2px solid rgba(255,255,255,0.15);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-slot-icon-empty {
    width: 44px; height: 44px; border-radius: 6px;
    background: var(--bg-table); border: 2px solid var(--border);
}
/* Quality-colored icon borders */
.profile-slot-icon-q0 .profile-slot-icon { border-color: var(--wow-poor); }
.profile-slot-icon-q1 .profile-slot-icon { border-color: var(--wow-common); }
.profile-slot-icon-q2 .profile-slot-icon { border-color: var(--wow-uncommon); box-shadow: 0 0 6px rgba(30,255,0,0.3); }
.profile-slot-icon-q3 .profile-slot-icon { border-color: var(--wow-rare); box-shadow: 0 0 6px rgba(0,112,221,0.3); }
.profile-slot-icon-q4 .profile-slot-icon { border-color: var(--wow-epic); box-shadow: 0 0 8px rgba(163,53,238,0.4); }
.profile-slot-icon-q5 .profile-slot-icon { border-color: var(--wow-legendary); box-shadow: 0 0 8px rgba(255,128,0,0.4); }
.profile-slot:hover .profile-slot-icon-q4 .profile-slot-icon { box-shadow: 0 0 14px rgba(163,53,238,0.6); }
.profile-slot:hover .profile-slot-icon-q5 .profile-slot-icon { box-shadow: 0 0 14px rgba(255,128,0,0.6); }

/* Gem icons (positioned below icon) */
.profile-slot-gems {
    position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%);
    display: flex; gap: 2px;
}
.profile-gem-icon { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.6); display: block; }
.profile-gem-link { display: inline-block; border-radius: 50%; line-height: 0; }
.profile-gem-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: #0070dd; border: 1px solid rgba(0,0,0,0.5);
}

/* Slot info */
.profile-slot-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.profile-slot-ilvl-row { display: flex; align-items: center; justify-content: space-between; }
.profile-slot-badges { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.profile-slot-name {
    font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; text-decoration: none; transition: color 0.15s;
    cursor: pointer; display: block;
}
.profile-slot-name:hover { text-decoration: underline; }
span.profile-slot-name { cursor: default; }
span.profile-slot-name:hover { text-decoration: none; }
.profile-slot-name.q0 { color: var(--wow-poor); }
.profile-slot-name.q1 { color: var(--wow-common); }
.profile-slot-name.q2 { color: var(--wow-uncommon); }
.profile-slot-name.q3 { color: var(--wow-rare); }
.profile-slot-name.q4 { color: var(--wow-epic); }
.profile-slot-name.q5 { color: var(--wow-legendary); }
.profile-slot-label { font-size: 12px; color: var(--text-secondary); }
.profile-slot-ilvl { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.profile-tier-badge {
    font-size: 8px; font-weight: 800; padding: 1px 3px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.2;
    white-space: nowrap; flex-shrink: 0;
}
.profile-tier-badge--slot-pip-myth  { background: rgba(163,53,238,0.2); color: var(--track-myth); }
.profile-tier-badge--slot-pip-hero  { background: rgba(0,112,221,0.18); color: var(--track-hero); }
.profile-tier-badge--slot-pip-champ { background: rgba(46,204,113,0.15); color: var(--track-champion); }
.profile-tier-badge--set { background: rgba(245,197,66,0.16); color: #f5c542; }
.profile-tier-badge--crafted { background: rgba(46,204,113,0.15); color: var(--track-champion); }
.profile-tier-badge--voidforged { background: rgba(196,125,255,0.18); color: #c47dff; }
.profile-set-badge {
    display: inline-block; font-size: 9px; font-weight: 800; color: var(--accent-gold);
    background: rgba(245,197,66,0.15); border-radius: 3px; padding: 0 4px; margin-left: 4px;
    vertical-align: middle;
}
.profile-slot-enchant {
    font-size: 11px; color: #2ecc71; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 200px;
    text-decoration: none; display: block; cursor: pointer;
}
.profile-slot-enchant:hover { text-decoration: underline; }

/* ── Profile responsive ── */
@media (max-width: 900px) {
    .profile-armory {
        grid-template-rows: auto auto auto;
        gap: 16px;
    }
    .loot-player-search-wrap--compact { width: auto; max-width: 360px; flex: 1; }
    .profile-armory-center { order: -1; }
    .profile-armory-left, .profile-armory-right { align-items: stretch; }
    .profile-slot { max-width: 100%; min-width: 0; }
}
@media (max-width: 768px) {
    .controls { align-items: stretch; flex-direction: column; }
    .controls-left, .controls-right { width: 100%; }
    .controls input, .controls select { width: 100%; }
    table { font-size: 11px; }
    .bar-label { width: 100px; font-size: 11px; }
    .boss-grid { grid-template-columns: 1fr; }
    .encounter-grid { grid-template-columns: 1fr; }
    .death-heatmap-name { width: 90px; font-size: 10px; }
    .diff-filter-bar { gap: 4px; }
    .diff-btn { padding: 4px 10px; font-size: 11px; }
    .mythic-prog-track { height: 16px; }

    /* Prevent iOS from auto-zooming on input focus (requires font-size >= 16px) */
    input, select, textarea { font-size: 16px !important; }

    /* Ensure minimum 44px touch targets on interactive controls */
    .diff-btn, .loot-priority-btn, select, .controls input { min-height: 44px; }
    .loot-modal-close { min-width: 44px; min-height: 44px; font-size: 18px; }
    .site-nav a, .nav-dropdown-trigger { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 480px) {
    .site-nav a { font-size: 11px; padding: 11px 12px; }
    .nav-dropdown-trigger { font-size: 11px; padding: 11px 12px; }
    .tab { padding: 8px 12px; font-size: 12px; }
    .boss-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile bottom-sheet for priority picker & chip editor ── */
@media (max-width: 600px) {
    .loot-priority-picker,
    .loot-chip-editor {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 20px 16px !important;
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.6) !important;
    }
    .loot-priority-btns,
    .loot-chip-editor-pris { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .loot-priority-btn { width: auto; flex: 1; min-width: 80px; text-align: center; min-height: 44px; }
    .loot-chip-editor-actions { gap: 10px; }
    .loot-chip-editor-save,
    .loot-chip-editor-cancel { min-height: 44px; }
    .loot-modal { border-radius: 16px; }
}

/* ── Live Log Analysis ──────────────────────────────────────────────────── */
.live-header { padding: 16px 0 12px; display: flex; flex-direction: column; align-items: center; }
.live-input-row { display: flex; flex-direction: row; align-items: center; gap: 8px; width: 100%; max-width: 660px; }
.live-input-top { display: contents; }
.live-input-bottom { display: contents; }
.live-report-input {
    flex: 1; min-width: 0; width: 100%; padding: 9px 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-primary); font-size: 13px; font-family: monospace;
    transition: border-color .15s; overflow: hidden; text-overflow: clip; white-space: nowrap;
}
.live-report-input:focus { outline: none; border-color: var(--accent); }
.live-report-input:disabled {
    opacity: 0.5; cursor: not-allowed;
}
.live-report-input.loading {
    opacity: 0.7; cursor: not-allowed; border-color: rgba(255,255,255,0.2);
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 8px,
        rgba(255,255,255,0.02) 8px, rgba(255,255,255,0.02) 16px
    );
    background-size: 200% 100%;
    animation: live-input-scan 1s linear infinite;
}
@keyframes live-input-scan {
    from { background-position: 100% 0; }
    to   { background-position: -100% 0; }
}
.live-guild-btn {
    padding: 9px 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px; color: var(--text-primary); font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; font-family: inherit; flex-shrink: 0;
    transition: background .15s, border-color .15s;
}
.live-guild-btn:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.32); }
.live-guild-btn:disabled { opacity: 0.5; cursor: default; }
.live-guild-wrap { position: relative; flex-shrink: 0; }
.live-guild-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 200;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; min-width: 320px; max-width: 420px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45); overflow: hidden;
    max-height: 70vh; overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.live-guild-dropdown::-webkit-scrollbar { width: 4px; }
.live-guild-dropdown::-webkit-scrollbar-track { background: transparent; }
.live-guild-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
.live-guild-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
.live-guild-dd-item {
    display: block; width: 100%; text-align: left; font: inherit; color: inherit;
    background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 10px 14px; cursor: pointer;
    transition: background .12s;
}
.live-guild-dd-item:last-child { border-bottom: none; }
.live-guild-dd-item:hover, .live-guild-dd-item:focus-visible { background: rgba(255,255,255,0.05); }
.live-guild-dd-item:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: -2px; }
.live-guild-dd-item.is-live { background: rgba(231,76,60,0.07); }
.live-guild-dd-item.is-live:hover { background: rgba(231,76,60,0.13); }
.live-guild-dd-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; flex-wrap: wrap; }
.live-guild-dd-badge {
    font-size: 11px; font-weight: 700; color: #e74c3c;
    background: rgba(231,76,60,0.18); border-radius: 4px; padding: 1px 6px;
    white-space: nowrap; flex-shrink: 0;
    animation: live-pulse 1.8s ease-in-out infinite;
}
.live-guild-dd-meta { font-size: 11px; color: var(--text-secondary); margin-left: auto; }
/* Difficulty badge in dropdown */
.live-dd-diff-badge {
    font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 4px;
    border: 1px solid currentColor; white-space: nowrap; flex-shrink: 0;
}
.live-dd-diff-badge.diff-mythic  { color: var(--difficulty-mythic); }
.live-dd-diff-badge.diff-heroic  { color: var(--difficulty-heroic); }
.live-dd-diff-badge.diff-normal  { color: var(--difficulty-normal); }
/* Source (Guild log / Personal log) badge — bottom-right of each item */
.live-dd-bottom-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: 2px; }
.live-dd-source-badge {
    font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
    white-space: nowrap; flex-shrink: 0; letter-spacing: 0.02em;
}
.live-dd-source-badge.guild   { color: rgba(74,158,255,0.8);  background: rgba(74,158,255,0.08);  }
.live-dd-source-badge.personal { color: rgba(160,160,180,0.7); background: rgba(255,255,255,0.05); }
/* Encounter chips row */
.live-dd-enc-row { display: flex; flex-direction: column; gap: 2px; }
.live-dd-enc-unknown { font-size: 11px; color: rgba(255,255,255,0.25); font-style: italic; }
.live-dd-enc-chip {
    font-size: 12px; white-space: nowrap;
}
.live-dd-enc-chip.kill { color: #2ecc71; font-weight: 600; }
.live-dd-enc-chip.wipe { color: var(--text-secondary); font-weight: 400; }
.live-guild-dd-empty { padding: 12px 14px; font-size: 13px; color: var(--text-secondary); }
.live-guild-dd-error { color: #e74c3c; }

/* ── Character external links dropdown ──────────────────────────────────── */
.char-links-wrap {
    position: relative; display: inline-flex; align-items: center;
    vertical-align: middle; margin-left: 6px;
}
.char-links-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.45); padding: 2px 5px; border-radius: 4px;
    transition: color .15s, background .15s; line-height: 1;
}
.char-links-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.char-links-name-btn {
    background: none; border: none; cursor: pointer; padding: 0;
    color: inherit; font: inherit; font-weight: inherit;
    border-radius: 4px; transition: opacity .15s;
}
.char-links-name-btn:hover { opacity: 0.75; }
.char-links-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 350;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; min-width: 190px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5); overflow: hidden;
}
.char-links-item {
    display: block; padding: 9px 14px; font-size: 13px;
    color: var(--text-primary); text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background .12s; white-space: nowrap;
}
.char-links-item:last-child { border-bottom: none; }
.char-links-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }

.live-guild-hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; min-height: 16px; text-align: center; }
.live-guild-hint-live { color: #e74c3c; font-weight: 600; }
.live-guild-hint-warn { color: #f5c542; }
.live-notif-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #e74c3c; margin-right: 2px; vertical-align: middle;
    animation: live-pulse 1.8s ease-in-out infinite;
}
.live-analyze-btn {
    flex: none; padding: 10px 26px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
    color: var(--text-primary); border-radius: 10px;
    font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
    cursor: pointer; white-space: nowrap; font-family: inherit;
    transition: background .15s, border-color .15s;
}
.live-analyze-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.32);
}
.live-analyze-btn:active { transform: translateY(0); filter: brightness(0.96); }
.live-refresh-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 10px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    white-space: nowrap; font-family: inherit; flex-shrink: 0;
}
.live-refresh-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }
.live-refresh-btn.on {
    background: rgba(233,69,96,0.12); border-color: rgba(233,69,96,0.45);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px rgba(233,69,96,0.18), 0 2px 10px rgba(233,69,96,0.18);
}
.live-refresh-dot.hidden { display: none; }
.live-refresh-btn:disabled {
    background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.08);
    color: var(--text-secondary); opacity: 0.5; cursor: not-allowed;
    box-shadow: none;
}
.live-refresh-btn.stale,
.live-refresh-btn.stale:hover,
.live-refresh-btn:disabled:hover { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.08); }
.live-refresh-btn.stale { cursor: default; }
.live-refresh-btn-label { font-size: 12px; }
.live-refresh-cd {
    font-family: monospace; font-size: 12px; font-weight: 600;
    color: #e74c3c; min-width: 26px; text-align: right;
}
/* Toast */
.live-toast {
    position: fixed; top: 72px; left: 50%; transform: translateX(-50%) translateY(-12px);
    background: var(--surface-2); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
    padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--text-primary);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5); z-index: 9999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.live-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.live-refresh-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.2); flex-shrink: 0; transition: background .2s;
}
.live-refresh-dot.active {
    background: #e74c3c;
    box-shadow: 0 0 0 0 rgba(231,76,60,0.6);
    animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(231,76,60,0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(231,76,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}
.live-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 20px 80px; text-align: center;
}
.live-empty-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.35; }
.live-empty-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.live-empty-sub { font-size: 13px; color: var(--text-secondary); max-width: 420px; line-height: 1.6; }
.live-loading {
    text-align: center; padding: 60px 20px; color: var(--text-secondary); font-size: 14px;
}
.live-error { text-align: center; padding: 40px 20px; color: #e74c3c; font-size: 14px; }

/* ── Guild Activity ── */
.activity-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin-bottom: 24px;
}
.activity-heading > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px; }
.activity-heading .section-title { margin: 0; padding: 0; font-size: 24px; font-weight: 650; letter-spacing: 0; }
.activity-heading .section-title::before { display: none; }
.activity-month-summary { display: flex; flex-wrap: wrap; gap: 24px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.activity-month-summary > div { display: flex; align-items: baseline; gap: 8px; }
.activity-month-summary dt { color: #a6abb6; font-size: 12px; }
.activity-month-summary dd { order: -1; color: #edf0f5; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.activity-month-summary .signups dd { color: #e8c775; }
.activity-month-summary .raids dd { color: #94b9e8; }
.activity-month-summary .kills dd { color: #7ac6a3; }
.activity-heading-actions { display: flex; align-items: center; gap: 12px; }
.activity-new-event, .activity-officer-login {
    height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px;
    border: 1px solid rgba(240,190,80,.4); border-radius: 6px; color: var(--accent-gold);
    background: rgba(240,190,80,.08); font: 800 11px/1 inherit; text-decoration: none; cursor: pointer;
}
.activity-new-event span { font-size: 18px; font-weight: 400; }
.activity-new-event:hover, .activity-officer-login:hover { color: var(--text-primary); background: rgba(240,190,80,.14); border-color: rgba(240,190,80,.65); }
.activity-discord-user { color: var(--text-secondary); font-size: 11px; }
.activity-officer-logout { color: var(--text-muted); font-size: 10px; text-decoration: none; }
.activity-officer-logout:hover { color: var(--text-primary); }
.activity-legends { display: flex; align-items: center; gap: 16px; }
.activity-legend { color: var(--text-secondary); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.activity-load-state { color: var(--text-muted); font-size: 11px; }
.activity-load-state-pending {
    display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
    color: var(--text-primary); font-size: 13px; font-weight: 600;
}
.activity-loading-spinner {
    width: 18px; height: 18px; flex: 0 0 18px; box-sizing: border-box;
    border: 2px solid rgba(240,190,80,.22); border-top-color: var(--accent-gold);
    border-radius: 50%; animation: loadingSpin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .activity-loading-spinner { animation: none; }
}
.activity-layout { display: block; min-width: 0; }
.activity-detail {
    background: rgba(var(--surface-rgb),.82); border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
}
.activity-calendar {
    --calendar-line: rgba(211,220,235,.09);
    --calendar-muted: var(--text-muted);
    overflow-x: auto; background: var(--bg-dark); border-block: 1px solid rgba(211,220,235,.16);
    color: var(--text-primary); font-variant-numeric: tabular-nums; color-scheme: dark;
}
.activity-calendar-head { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid var(--calendar-line); background: linear-gradient(110deg, rgba(255,255,255,.035), transparent 65%); }
.activity-calendar-title, .activity-calendar-tools, .activity-month-controls { display: flex; align-items: center; }
.activity-calendar-title { gap: 12px; }
.activity-calendar-title h2 { font-size: 26px; font-weight: 650; letter-spacing: 0; }
.activity-calendar-title h2 span { color: var(--calendar-muted); font-weight: 400; }
.activity-calendar-tools { gap: 12px; }
.activity-today-btn {
    height: 34px; padding: 0 14px; border: 1px solid rgba(211,220,235,.18); border-radius: 5px;
    color: #d5d9e1; background: rgba(255,255,255,.03); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.activity-today-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.activity-today-btn:disabled { color: var(--text-muted); cursor: wait; opacity: .65; }
.activity-month-controls { gap: 4px; }
.activity-month-btn {
    width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(211,220,235,.13); border-radius: 5px;
    background: transparent; color: #d5d9e1; font-family: inherit; font-size: 24px; line-height: 1; cursor: pointer;
}
.activity-month-btn:hover { color: var(--text-primary); background: rgba(255,255,255,.06); border-color: var(--border); }
.activity-month-btn:focus-visible, .activity-today-btn:focus-visible, .activity-day:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: -2px; }
.activity-weekdays, .activity-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.activity-weekdays { border-bottom: 1px solid var(--calendar-line); background: rgba(255,255,255,.015); }
.activity-weekdays span { padding: 12px 16px; color: #a6aeba; font-size: 11px; font-weight: 600; }
.activity-month-grid { grid-auto-rows: minmax(88px, auto); }
.activity-day {
    position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 8px; text-align: left;
    background: transparent; color: #c6cdd8; border: 0; border-right: 1px solid var(--calendar-line);
    border-bottom: 1px solid var(--calendar-line); font-family: inherit;
    transition: background .15s ease, box-shadow .15s ease;
}
.activity-day:is(button) { cursor: pointer; }
.activity-day:nth-child(7n) { border-right: 0; }
.activity-day:nth-child(7n), .activity-day:nth-child(7n - 1) { background-color: rgba(255,255,255,.009); }
.activity-day:is(button):hover { background: rgba(255,255,255,.045); }
.activity-day.outside { background: rgba(0,0,0,.12); }
.activity-day.outside .activity-day-number { color: #69717f; }
.activity-day.selected { background: rgba(232,199,117,.04); box-shadow: inset 0 0 0 1px rgba(232,199,117,.55); }
.activity-day-number { display: grid; place-items: center; flex: none; width: 24px; height: 24px; font-size: 12px; font-weight: 600; }
.activity-day.today .activity-day-number { background: #e8c775; border-radius: 50%; color: #16181d; font-weight: 750; }
.activity-day-event {
    position: relative; display: flex; flex-direction: column; gap: 2px; flex: none;
    margin-top: 5px; padding: 7px 10px; border-radius: 4px; font-size: 11px; line-height: 1.4;
}
.activity-day-event.signup { color: #ecd698; background: rgba(232,199,117,.09); box-shadow: inset 2px 0 #c5a65d; }
.activity-day-event.raid { color: #b3cff1; background: rgba(125,171,224,.09); box-shadow: inset 2px 0 #7da6d5; }
.activity-day-event strong { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.activity-event-time { color: #d0d5de; }
.activity-event-meta { color: #9da7b6; overflow-wrap: anywhere; }
.activity-calendar-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; color: var(--calendar-muted); font-size: 11px; }
.activity-calendar-footer .activity-legend { font-size: 11px; color: #a6aeba; }
.activity-calendar-footer .activity-event-dot, .activity-calendar-footer .activity-signup-dot { margin-top: 0; }
.activity-event-dot { display: inline-block; width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #6f9fd8; flex: none; }
.activity-signup-dot { display: inline-block; width: 7px; height: 7px; margin-top: 3px; border-radius: 2px; background: var(--accent-gold); flex: none; }
.activity-day-event.signup + .activity-day-event { margin-top: 4px; }
@media (max-width: 900px) {
    .activity-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
    .activity-heading > div:first-child { gap: 12px; }
    .activity-month-summary { padding-left: 0; border-left: 0; }
    .activity-calendar-head, .activity-weekdays, .activity-month-grid, .activity-calendar-footer { min-width: 700px; }
}
@media (prefers-reduced-motion: reduce) {
    .activity-day { transition: none; }
}
.activity-detail { min-height: 300px; padding: 18px; }
.activity-detail-empty { display: grid; place-items: center; color: var(--text-muted); min-height: 220px; font-size: 13px; }
.activity-detail-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 24px; margin-bottom: 18px; }
.activity-detail-head h2 { font-size: 18px; }
.activity-detail-date { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.activity-detail-date > span { color: var(--accent-gold); font-size: 11px; font-weight: 800; white-space: nowrap; }
.activity-detail-event-title { font-size: 16px; text-align: center; }
.activity-detail-total { color: var(--text-secondary); font-size: 12px; text-align: right; white-space: nowrap; }
.activity-session { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.activity-session-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.activity-session-head > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 9px; }
.activity-session-time { color: var(--accent-gold); font: 700 11px monospace; }
.activity-session h3 { font-size: 14px; }
.activity-session-head a { color: var(--text-secondary); font-size: 11px; text-decoration: none; }
.activity-session-head a:hover { color: var(--accent-gold); }
.activity-session-stats { display: flex; gap: 14px; margin: 10px 0 12px; color: var(--text-muted); font-size: 10px; }
.activity-session-stats strong { color: var(--text-secondary); }
.activity-signup-session { border-top-color: rgba(240,190,80,.3); }
.activity-signup-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; }
.activity-signup-row { display: flex; justify-content: space-between; gap: 8px; min-width: 0; padding: 8px 9px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 10px; }
.activity-signup-row:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.05); }
.activity-signup-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-signup-row span, .activity-no-responses { color: var(--text-muted); white-space: nowrap; }
.activity-no-responses { padding: 10px; }
.activity-pull-list { border: 1px solid rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; }
.activity-pull-row { display: grid; grid-template-columns: 26px minmax(120px, 1fr) 48px 52px 48px 42px; align-items: center; min-height: 34px; padding: 0 9px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 11px; }
.activity-pull-row:last-child { border-bottom: 0; }
.activity-pull-index, .activity-pull-diff, .activity-pull-clock, .activity-pull-time { color: var(--text-muted); }
.activity-pull-boss { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-pull-clock, .activity-pull-time { text-align: right; font-family: monospace; }
.activity-result { justify-self: start; font-size: 10px; font-weight: 800; }
.activity-result.kill { color: var(--status-success); }
.activity-result.wipe { color: var(--text-secondary); }
.activity-dialog {
    width: min(1280px, calc(100vw - 96px)); height: fit-content; max-width: none; max-height: calc(100dvh - 48px);
    margin: auto; padding: 0; overflow: hidden; color: var(--text-primary); background: var(--bg-card);
    border: 1px solid rgba(255,255,255,.14); border-radius: 8px; box-shadow: 0 32px 100px rgba(0,0,0,.78);
    animation: activity-dialog-enter .16s ease-out;
}
.activity-dialog::backdrop { background: rgba(var(--inset-rgb),.78); animation: activity-backdrop-enter .16s ease-out; }
.activity-event-editor {
    width: min(720px, calc(100vw - 96px)); max-width: none; margin: auto; padding: 0; overflow: hidden;
    color: var(--text-primary); background: var(--bg-card); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
    box-shadow: 0 32px 100px rgba(0,0,0,.78); animation: activity-dialog-enter .16s ease-out;
}
.activity-event-editor::backdrop { background: rgba(var(--inset-rgb),.8); animation: activity-backdrop-enter .16s ease-out; }
.activity-signup-editor { width: min(820px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); }
.activity-signup-editor .activity-event-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 50px); }
.activity-signup-editor .activity-event-fields { min-height: 0; overflow-y: auto; overscroll-behavior: contain; gap: 12px; padding: 18px 24px; }
.activity-signup-editor .activity-event-message:empty { display: none; }
.activity-event-form > header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 14px 24px; background: rgba(var(--surface-rgb),.98); border-bottom: 1px solid rgba(255,255,255,.11); }
.activity-event-form > header span { display: block; margin-bottom: 3px; color: var(--accent-gold); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.activity-event-form > header h2 { font-size: 20px; }
.activity-event-close { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); background: var(--bg-card); cursor: pointer; }
.activity-event-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px; }
.activity-event-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.activity-event-field > span { color: var(--text-secondary); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.activity-event-field small { color: var(--text-muted); font-size: 10px; }
.activity-event-field input, .activity-event-field select, .activity-event-field textarea {
    width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 5px;
    color: var(--text-primary); background: rgba(var(--inset-rgb),.72); font: 12px/1.35 inherit; resize: vertical;
}
.activity-event-field input:focus, .activity-event-field select:focus, .activity-event-field textarea:focus { outline: 2px solid rgba(240,190,80,.55); outline-offset: 1px; border-color: var(--accent-gold); }
.activity-event-wide { grid-column: 1 / -1; }
.activity-event-schedule {
    display: grid; grid-template-columns: 292px minmax(0, 1fr); overflow: hidden;
    border: 1px solid var(--border); border-radius: 7px; background: rgba(var(--inset-rgb),.55);
}
.activity-date-picker { padding: 14px; border-right: 1px solid var(--border); }
.activity-date-picker > header { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; margin-bottom: 11px; }
.activity-date-picker > header strong { font-size: 12px; text-align: center; }
.activity-date-picker button { border: 0; color: var(--text-secondary); background: transparent; cursor: pointer; }
.activity-date-picker > header button { width: 30px; height: 30px; border: 1px solid transparent; border-radius: 5px; font-size: 19px; }
.activity-date-picker > header button:hover { color: var(--text-primary); border-color: var(--border); background: rgba(255,255,255,.05); }
.activity-date-weekdays, .activity-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.activity-date-weekdays { margin-bottom: 4px; }
.activity-date-weekdays span { color: var(--text-muted); font-size: 8px; font-weight: 800; text-align: center; text-transform: uppercase; }
.activity-date-grid button { aspect-ratio: 1; border: 1px solid transparent; border-radius: 4px; font: 700 10px/1 inherit; }
.activity-date-grid button:hover { color: var(--text-primary); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.06); }
.activity-date-grid button.outside { opacity: .35; }
.activity-date-grid button.today { border-color: rgba(240,190,80,.5); box-shadow: inset 0 0 0 1px rgba(240,190,80,.14); }
.activity-date-grid button.selected { color: #15100a; border-color: var(--accent-gold); background: var(--accent-gold); }
.activity-date-picker > footer { display: flex; gap: 6px; margin-top: 10px; }
.activity-date-picker > footer button { height: 27px; padding: 0 9px; border: 1px solid var(--border); border-radius: 4px; font: 800 9px/1 inherit; }
.activity-date-picker > footer button:hover { color: var(--text-primary); border-color: rgba(255,255,255,.3); }
.activity-time-picker { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 20px; }
.activity-time-heading span, .activity-time-range label > span { display: block; color: var(--text-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.activity-time-heading strong { display: block; margin-top: 5px; font-size: 16px; }
.activity-time-range { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: end; gap: 8px; }
.activity-time-range label { min-width: 0; }
.activity-time-range select {
    width: 100%; height: 42px; margin-top: 7px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px;
    color: var(--text-primary); background: rgba(var(--inset-rgb),.92); font: 700 14px monospace;
}
.activity-time-range select:focus { outline: 2px solid rgba(240,190,80,.55); outline-offset: 1px; border-color: var(--accent-gold); }
.activity-time-arrow { padding-bottom: 13px; color: var(--text-muted); text-align: center; }
.activity-time-summary { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 10px; }
.activity-time-summary strong { color: var(--accent-gold); font: 800 11px monospace; }
.activity-event-advanced { border-top: 1px solid var(--border); padding-top: 13px; }
.activity-event-advanced summary { color: var(--text-secondary); font-size: 11px; cursor: pointer; }
.activity-event-advanced > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.activity-event-message { min-height: 16px; grid-column: 1 / -1; margin: 0; color: var(--text-secondary); font-size: 11px; }
.activity-event-message.error { color: var(--status-danger); }
.activity-signup-identity { display: flex; align-items: baseline; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.activity-signup-identity span, .activity-signup-choice legend { color: var(--text-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.activity-signup-identity strong { font-size: 14px; }
.activity-signup-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.activity-signup-choice legend { margin-bottom: 9px; }
.activity-class-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.activity-class-option, .activity-spec-option, .activity-response-option { border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); background: rgba(var(--inset-rgb),.72); cursor: pointer; }
.activity-class-option { min-width: 0; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; }
.activity-class-option img { width: 38px; height: 38px; border-radius: 4px; object-fit: cover; }
.activity-class-option span { width: 100%; overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.activity-class-option:hover, .activity-spec-option:hover, .activity-response-option:hover { color: var(--text-primary); border-color: rgba(255,255,255,.3); }
.activity-class-option.active, .activity-spec-option.active, .activity-response-option.active { color: var(--text-primary); border-color: var(--accent-gold); background: rgba(240,190,80,.1); box-shadow: inset 0 0 0 1px rgba(240,190,80,.22); }
.activity-response-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.activity-response-option { flex: 1; min-width: 100px; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; font: 800 11px/1 inherit; }
.activity-response-option span { font-size: 14px; }
.activity-spec-picker { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.activity-spec-option { min-width: 148px; height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; font: 800 11px/1 inherit; }
.activity-spec-option img { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; }
.activity-class-option:focus-visible, .activity-spec-option:focus-visible, .activity-response-option:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.activity-event-form > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 24px; border-top: 1px solid var(--border); background: rgba(var(--surface-rgb),.55); }
.activity-event-form > footer button { min-width: 112px; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-secondary); background: var(--bg-card); font: 800 11px/1 inherit; cursor: pointer; }
.activity-event-form > footer .activity-event-save { color: #15100a; background: var(--accent-gold); border-color: var(--accent-gold); }
.activity-event-form > footer .activity-event-delete { margin-right: auto; color: var(--status-danger); border-color: color-mix(in srgb, var(--status-danger) 55%, transparent); }
.activity-event-form > footer button:hover:not(:disabled), .activity-event-close:hover { color: var(--text-primary); border-color: rgba(255,255,255,.28); }
.activity-event-form > footer .activity-event-delete:hover:not(:disabled) { color: white; border-color: var(--status-danger); background: color-mix(in srgb, var(--status-danger) 22%, var(--bg-card)); }
.activity-event-form > footer .activity-event-save:hover:not(:disabled) { color: #15100a; filter: brightness(1.08); }
.activity-event-form > footer button:disabled { opacity: .55; cursor: wait; }
.activity-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100dvh - 50px); overflow: hidden; }
.activity-dialog-toolbar {
    position: relative; z-index: 3; min-height: 80px; display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 12px 20px 12px 24px; background: rgba(var(--surface-rgb),.98); border-bottom: 1px solid rgba(255,255,255,.11);
    box-shadow: 0 10px 28px rgba(var(--inset-rgb),.2);
}
.activity-dialog-heading { min-width: 0; }
.activity-dialog-heading > span { display: block; margin-bottom: 3px; color: var(--accent-gold); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.activity-dialog-heading h2 { font-size: 21px; overflow-wrap: anywhere; }
.activity-dialog-heading p { margin-top: 4px; color: var(--text-secondary); font-size: 10px; }
.activity-dialog-actions {
    display: flex; align-items: center; gap: 8px; flex: none;
}
[data-activity-dialog-signup]:empty { display: none; }
.activity-dialog-nav { display: flex; gap: 4px; padding-right: 8px; border-right: 1px solid var(--border); }
.activity-dialog-actions button, .activity-dialog-external {
    width: 36px; height: 36px;
    border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); background: var(--bg-card); cursor: pointer;
}
.activity-dialog-external {
    width: auto; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--text-secondary);
    font-size: 10px; font-weight: 800; text-decoration: none;
}
.activity-dialog-actions .activity-dialog-edit:not([hidden]) {
    width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; white-space: nowrap;
}
.activity-dialog-external[hidden] { display: none; }
.activity-dialog-external:hover { color: var(--text-primary); border-color: rgba(240,190,80,.42); background: rgba(240,190,80,.08); }
.activity-dialog-actions button:hover:not(:disabled) { color: var(--text-primary); border-color: rgba(255,255,255,.25); }
.activity-dialog-actions button:disabled { opacity: .3; cursor: default; }
.activity-dialog-actions [data-activity-dialog-nav] { font-size: 24px; line-height: 1; }
.activity-dialog-actions button:focus-visible, .activity-dialog-external:focus-visible, .activity-buff-name:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.activity-dialog-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.activity-dialog-content { width: 100%; margin: 0 auto; padding: 16px 24px 20px; }
.activity-dialog-event { padding: 0; }
.activity-dialog-event + .activity-dialog-event, .activity-dialog-event + .activity-session { margin-top: 20px; }
.activity-dialog-event + .activity-dialog-event, .activity-dialog-event + .activity-session { padding-top: 28px; border-top: 1px solid rgba(240,190,80,.28); }
.activity-dialog-event-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.activity-dialog-event-head > div { display: flex; align-items: baseline; gap: 12px; }
.activity-dialog-event-head h3 { font-size: 20px; }
.activity-dialog-event-head a { color: var(--accent-gold); font-size: 12px; text-decoration: none; }
.activity-signup-prompt { position: relative; flex: none; }
.activity-dialog .activity-signup-button { width: auto; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--accent-gold); border-radius: 5px; color: #15100a; background: var(--accent-gold); font: 800 11px/1 inherit; white-space: nowrap; text-decoration: none; cursor: pointer; }
.activity-dialog .activity-signup-button:hover { color: #15100a; border-color: var(--accent-gold); }
.activity-signup-button:hover { filter: brightness(1.08); }
.activity-signup-button:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.activity-signup-tooltip {
    position: absolute; z-index: 4; top: calc(100% + 8px); right: 0; width: max-content; max-width: 220px; padding: 7px 9px;
    border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary); background: var(--bg-elevated);
    box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: 10px; font-weight: 600; line-height: 1.4;
    opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.activity-signup-prompt:hover .activity-signup-tooltip, .activity-signup-prompt:focus-within .activity-signup-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.activity-dialog-event-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-muted); font-size: 11px; }
.activity-dialog-event-head + .activity-dialog-event-meta { margin-top: 8px; }
.activity-dialog-event-meta strong { color: var(--text-secondary); }
.activity-dialog-section { margin-top: 16px; }
.activity-dialog-section > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.activity-dialog-section h4 { font-size: 13px; text-transform: uppercase; }
.activity-dialog-section > header > span { color: var(--status-danger); font-size: 11px; }
.activity-buff-details { margin-top: 16px; border-top: 1px solid var(--border); }
.activity-buff-details > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 12px 0 0; cursor: pointer; list-style: none; }
.activity-buff-details > summary::-webkit-details-marker { display: none; }
.activity-buff-details > summary::before { content: ''; width: 7px; height: 7px; flex: none; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(-45deg); }
.activity-buff-details[open] > summary::before { transform: rotate(45deg); }
.activity-buff-details > summary:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 4px; }
.activity-buff-details[open] .activity-buff-grid { margin-top: 14px; }
.activity-buff-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 11px; }
.activity-buff-summary > strong { color: var(--text-secondary); font-size: 11px; text-transform: uppercase; }
.activity-buff-missing-count { color: var(--status-danger); }
.activity-missing-buffs { display: flex; flex-wrap: wrap; gap: 8px 12px; min-width: 0; color: var(--text-secondary); font-size: 11px; }
.activity-missing-buffs > span { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.activity-missing-buffs img { width: 20px; height: 20px; border-radius: 3px; }
.activity-buff-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 6px; overflow: visible; }
.activity-buff { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.012); }
.activity-buff.missing { background: rgba(233,69,96,.055); }
.activity-buff-icon-wrap { position: relative; width: 30px; height: 30px; flex: none; }
.activity-buff-icon { display: block; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; }
.activity-buff.missing .activity-buff-icon { opacity: .48; filter: grayscale(.45); }
.activity-buff-state { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 15px; height: 15px; border: 2px solid var(--bg-card); border-radius: 50%; font-size: 8px; font-weight: 800; }
.activity-buff.present .activity-buff-state { color: var(--status-success); background: rgba(50,205,120,.12); }
.activity-buff.missing .activity-buff-state { color: white; background: var(--status-danger); }
.activity-buff > span { min-width: 0; }
.activity-buff-name, .activity-buff small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-buff-name {
    max-width: 100%; padding: 0; border: 0; color: var(--buff-class-color) !important; background: none;
    font: inherit; font-size: 10px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer;
}
.activity-buff-name:hover { text-decoration: underline; }
.activity-buff small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.activity-spell-tooltip {
    position: absolute; z-index: 20; left: 8px; bottom: calc(100% + 8px); width: min(310px, calc(100vw - 48px)); display: grid;
    grid-template-columns: 44px 1fr; gap: 11px; padding: 12px; pointer-events: none; opacity: 0; visibility: hidden;
    color: var(--text-primary); background: rgba(var(--inset-rgb),.98); border: 1px solid rgba(255,255,255,.22); border-radius: 5px;
    box-shadow: 0 12px 32px rgba(0,0,0,.65); transform: translateY(4px); transition: opacity .12s, transform .12s, visibility .12s;
}
.activity-buff:nth-child(7n) .activity-spell-tooltip { right: 8px; left: auto; }
.activity-buff:hover .activity-spell-tooltip, .activity-buff:focus-within .activity-spell-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.activity-spell-tooltip img { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; }
.activity-spell-tooltip strong { display: block; color: var(--buff-class-color); font-size: 13px; }
.activity-spell-tooltip small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10px; }
.activity-spell-tooltip p { margin: 9px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.45; }
.activity-roster-grid { display: grid; grid-template-columns: minmax(170px, 2fr) minmax(170px, 2fr) minmax(440px, 6fr); gap: 18px; }
.activity-roster-role > header { display: flex; justify-content: space-between; padding-bottom: 8px; color: var(--text-secondary); font-size: 11px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.activity-roster-role > header strong { font-size: 14px; line-height: 1; }
.activity-roster-role.tank > header strong { color: var(--role-tank); }
.activity-roster-role.healer > header strong { color: var(--role-healer); }
.activity-roster-role.damage > header strong { color: var(--role-dps); }
.activity-roster-members { display: grid; gap: 7px; padding-top: 9px; }
.activity-roster-role:nth-child(1) .activity-roster-members { grid-template-columns: 1fr; }
.activity-roster-role:nth-child(2) .activity-roster-members { grid-template-columns: 1fr; }
.activity-roster-role:nth-child(3) .activity-roster-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.activity-roster-member { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; min-height: 48px; padding: 6px 8px 6px 7px; border: 1px solid color-mix(in srgb, var(--class-color) 25%, var(--border)); border-left: 3px solid var(--class-color); border-radius: 5px; background: color-mix(in srgb, var(--class-color) 7%, rgba(255,255,255,.018)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.activity-roster-avatar { display: block; width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--class-color) 45%, rgba(255,255,255,.18)); border-radius: 50%; background: #1e1f22; object-fit: cover; }
.activity-roster-identity { display: block; min-width: 0; overflow: hidden; }
.activity-roster-identity > strong { display: block; overflow: hidden; color: var(--class-color); font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.activity-roster-specialization { display: flex; align-items: center; gap: 4px; min-width: 0; margin-top: 4px; color: var(--text-muted); font-size: 9px; }
.activity-roster-specialization img { width: 13px; height: 13px; flex: none; border-radius: 2px; }
.activity-roster-specialization span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-roster-empty { padding: 8px 0; color: var(--text-muted); font-size: 10px; }
.activity-response-statuses { display: flex; gap: 7px; }
.activity-response-status { padding: 4px 8px; color: var(--text-secondary); background: rgba(255,255,255,.05); border-radius: 4px; font-size: 10px; }
.activity-response-grid { display: grid; gap: 6px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.activity-response-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; gap: 14px; min-width: 0; }
.activity-response-group header { display: flex; justify-content: space-between; gap: 8px; color: var(--text-secondary); font-size: 10px; text-transform: uppercase; }
.activity-response-group.absence header { color: var(--status-danger); }
.activity-response-group.tentative header { color: var(--accent-gold); }
.activity-response-group.late header { color: var(--role-dps); }
.activity-response-group ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.activity-response-group li { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; color: var(--text-secondary); font-size: 11px; }
.activity-response-group li img { width: 20px; height: 20px; flex: none; border-radius: 50%; background: #1e1f22; object-fit: cover; }
.activity-response-group li span { overflow-wrap: anywhere; }
@keyframes activity-dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.992); } }
@keyframes activity-backdrop-enter { from { background: rgba(var(--inset-rgb),0); } }
@media (prefers-reduced-motion: reduce) {
    .activity-dialog, .activity-dialog::backdrop { animation: none; }
}
@media (max-width: 1100px) {
    .activity-dialog { width: calc(100vw - 48px); }
    .activity-dialog-content { padding-inline: 24px; }
    .activity-buff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .activity-buff:nth-child(4n) .activity-spell-tooltip { right: 8px; left: auto; }
    .activity-roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activity-roster-role.damage { grid-column: 1 / -1; }
    .activity-roster-role.tank .activity-roster-members, .activity-roster-role.healer .activity-roster-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .activity-dialog-toolbar { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .activity-dialog-actions { flex-wrap: wrap; gap: 6px; }
    .activity-dialog-content { padding: 14px 16px; }
    .activity-roster-grid { grid-template-columns: 1fr; }
    .activity-roster-role.damage .activity-roster-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activity-response-group { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
    .activity-class-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .activity-buff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activity-buff:nth-child(2n) .activity-spell-tooltip { right: 8px; left: auto; }
}
/* Refresh progress bar (sibling of #liveRoot, shown during any fetch) */
.live-refresh-bar {
    height: 2px; background: transparent; overflow: hidden;
    margin-bottom: 2px; border-radius: 2px;
}
.live-refresh-bar.active { background: rgba(255,255,255,0.07); }
.live-refresh-bar.active::after {
    content: ''; display: block; height: 100%; width: 35%;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-gold), transparent);
    animation: live-bar-scan 1.2s ease-in-out infinite;
}
@keyframes live-bar-scan {
    0%   { margin-left: -35%; }
    100% { margin-left: 110%; }
}

/* Header */
.live-report-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.live-boss-name { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.live-diff-badge {
    font-size: 11px; font-weight: 700; padding: 2px 9px;
    border-radius: 10px; border: 1px solid currentColor; opacity: 0.85;
}
.live-report-header-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.live-report-date { font-size: 12px; color: var(--text-secondary); }
.live-wcl-link { font-size: 12px; color: var(--text-secondary); text-decoration: none; }
.live-wcl-link:hover { color: var(--accent-gold); }

/* Boss dropdown — triggered from the boss name, styled like nav dropdowns */
.live-boss-name-wrap { position: relative; display: inline-flex; align-items: center; }
.live-boss-name-wrap.has-picker { cursor: pointer; }
.live-boss-name-wrap.has-picker .live-boss-name { display: flex; align-items: center; gap: 7px; }
.live-boss-name-wrap.has-picker .live-boss-name:hover { color: var(--accent-gold); }
.live-boss-name-wrap.open .live-boss-name { color: var(--accent-gold); }
.live-boss-pick-caret {
    color: var(--text-secondary); opacity: 0.7; flex-shrink: 0;
    transition: transform 0.2s; margin-top: 1px;
}
.live-boss-name-wrap.open .live-boss-pick-caret { transform: rotate(180deg); }

.live-boss-dropdown {
    display: none;
    position: absolute; top: calc(100% + 2px); left: 0; z-index: 200;
    min-width: 220px;
    background: rgba(var(--inset-rgb),0.98);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
    flex-direction: column;
}
.live-boss-name-wrap.open .live-boss-dropdown { display: flex; }
.live-boss-pick-btn {
    position: relative;
    display: flex; flex-direction: column; gap: 3px;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    padding: 11px 16px 11px 14px;
    cursor: pointer; font-family: inherit;
    text-align: left; transition: color .15s, border-color .15s, background .15s; width: 100%;
}
.live-boss-pick-btn:hover { background: rgba(255,255,255,0.04); border-left-color: rgba(233,69,96,0.45); }
.live-boss-pick-btn.active { border-left-color: var(--accent-gold); background: rgba(255,255,255,0.03); }
.live-boss-pick-btn.active .live-boss-pick-name { color: var(--accent-gold); }
.live-boss-pick-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.live-boss-pick-meta { font-size: 11px; color: var(--text-secondary); }
.live-boss-pick-kill-badge {
    position: absolute; top: 9px; right: 12px;
}

/* Summary stats */
.live-summary-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* Consumable check */
.live-consump-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(var(--surface-rgb),0.98), rgba(var(--inset-rgb),0.98));
    border: 1px solid rgba(211,220,235,0.16); border-radius: 8px;
    padding: 18px; margin-bottom: 18px;
    box-shadow: 0 18px 48px rgba(var(--inset-rgb),0.3), inset 0 1px rgba(255,255,255,0.035);
}
.live-consump-section::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 2px;
    background: linear-gradient(90deg, #e94560, #f5c542 42%, #2ecf8f 78%, transparent);
    opacity: .8;
}
.live-consump-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.live-consump-top > div { display: flex; flex-direction: column; gap: 3px; }
.live-consump-eyebrow { font-size: 9px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; }
.live-consump-label { font-size: 16px; font-weight: 800; color: var(--text-primary); text-transform: none; letter-spacing: 0; }
.live-consump-summary {
    font-size: 11px; font-weight: 700; color: #f2b84b;
    background: rgba(242,184,75,.09); border: 1px solid rgba(242,184,75,.22);
    border-radius: 4px; padding: 6px 9px;
    box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.live-consump-summary.complete { color: #39d79d; background: rgba(57,215,157,.09); border-color: rgba(57,215,157,.22); }
.live-consump-overview { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 16px; }
.live-consump-score {
    --score: 0;
    position: relative; justify-self: center;
    width: 104px; height: 104px; border-radius: 50%; padding: 7px;
    background: conic-gradient(from 210deg, #39d79d calc(var(--score) * 1%), rgba(211,220,235,.11) 0);
    box-shadow: 0 0 30px rgba(57,215,157,.1), 0 10px 24px rgba(var(--inset-rgb),.28);
}
.live-consump-score::after {
    content: ''; position: absolute; inset: 2px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08); pointer-events: none;
}
.live-consump-score > div {
    width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, var(--bg-table), var(--bg-inset) 72%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.055), inset 0 -10px 24px rgba(var(--inset-rgb),.2);
}
.live-consump-score strong { font-size: 24px; line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.live-consump-score span { margin-top: 5px; font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.live-consump-metrics { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); gap: 1px; align-items: stretch; background: rgba(211,220,235,.1); border: 1px solid rgba(211,220,235,.1); border-radius: 5px; overflow: hidden; }
.live-consump-metric {
    --metric-accent: #f2b84b;
    border: 0; border-radius: 0; font-family: inherit; text-align: left; cursor: pointer;
    position: relative; min-width: 0; background: linear-gradient(180deg, rgba(var(--surface-rgb),.96), rgba(var(--inset-rgb),.86));
    padding: 13px 12px 11px; display: flex; flex-direction: column; justify-content: center;
    box-shadow: inset 0 2px var(--metric-accent);
    transition: background .15s ease;
}
.live-consump-metric:hover { background: linear-gradient(180deg, rgba(var(--raised-rgb),.98), rgba(var(--inset-rgb),.9)); }
.live-consump-metric[aria-pressed="true"] { box-shadow: inset 0 2px var(--metric-accent), inset 0 -2px var(--metric-accent); background: rgba(255,255,255,.04); }
.live-consump-section button:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: -2px; }
.live-consump-metric.complete { --metric-accent: #39d79d; }
.live-consump-metric.dps { --metric-accent: #57bde8; }
.live-consump-metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--text-secondary); font-size: 11px; font-weight: 700; }
.live-consump-metric-top strong { color: var(--metric-accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.live-consump-metric.complete .live-consump-metric-top strong { color: #39d79d; }
.live-consump-metric.dps .live-consump-metric-top strong { color: #57bde8; }
.live-consump-meter { height: 3px; margin: 11px 0 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.live-consump-meter span { display: block; height: 100%; background: var(--metric-accent); box-shadow: 0 0 8px color-mix(in srgb, var(--metric-accent) 55%, transparent); }
.live-consump-metric.complete .live-consump-meter span { background: #39d79d; }
.live-consump-metric.dps .live-consump-meter span { background: #57bde8; }
.live-consump-metric-meta { color: var(--text-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }

/* Sub-nav pills */
.live-consump-nav { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 12px; border-bottom: 1px solid rgba(211,220,235,.12); }
.live-consump-nav-btn {
    display: flex; align-items: center; gap: 7px;
    background: transparent; border: 0; border-bottom: 2px solid transparent;
    color: var(--text-muted); border-radius: 0;
    padding: 7px 10px 9px; font-size: 11px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.live-consump-nav-btn:hover { background: rgba(255,255,255,0.035); color: var(--text-primary); }
.live-consump-nav-btn.active { background: rgba(245,197,66,.035); border-color: var(--accent-gold); color: var(--text-primary); }
.live-consump-nav-count { min-width: 17px; padding: 1px 5px; color: #f2b84b; background: rgba(242,184,75,.1); border-radius: 8px; font-size: 9px; text-align: center; }
.live-consump-nav-btn.active .live-consump-nav-count { background: rgba(242,184,75,.16); }

/* Consumable row filter */
.live-consump-toolbar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.live-consump-results { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 11px; font-variant-numeric: tabular-nums; }
.live-consump-results [data-reset-consump] { color: var(--accent-gold); }
@media (max-width: 800px) {
    .live-consump-overview { grid-template-columns: minmax(0, 1fr); }
    .live-consump-metrics { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
.live-consump-filter-group { display: flex; align-items: center; gap: 8px; }
.live-consump-filter-label { font-size: 9px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.live-consump-filter-row { display: flex; gap: 2px; margin: 0; padding: 2px; background: rgba(var(--inset-rgb),.35); border: 1px solid rgba(211,220,235,.1); border-radius: 5px; }
.live-consump-filter-btn {
    background: transparent; border: 0;
    color: var(--text-muted); border-radius: 3px;
    padding: 4px 10px; font-size: 10px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.live-consump-filter-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.live-consump-filter-btn.active { background: var(--bg-hover); color: var(--text-primary); box-shadow: 0 2px 7px rgba(0,0,0,.18); }
.live-consump-filter-btn.active[data-filter="missing"] { background: rgba(233,69,96,.18); color: #ff738b; }
.live-consump-filter-btn.active[data-filter="ok"]      { background: rgba(57,215,157,.14); color: #39d79d; }
.live-consump-filter-empty { font-size: 13px; color: var(--text-secondary); padding: 6px 0; }

.live-consump-filter-row-dps { margin: 0; }
.live-consump-dps-filter-btn {
    background: transparent; border: 0; color: var(--text-muted); border-radius: 3px;
    padding: 4px 10px; font-size: 10px; font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.live-consump-dps-filter-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.live-consump-dps-filter-btn.active { background: var(--bg-hover); color: var(--text-primary); box-shadow: 0 2px 7px rgba(0,0,0,.18); }
.live-consump-dps-filter-btn.active[data-dps-filter="true"]  { background: rgba(57,215,157,.14); color: #39d79d; }
.live-consump-dps-filter-btn.active[data-dps-filter="false"] { background: rgba(233,69,96,.18); color: #ff738b; }

/* General table */
.live-consump-table-wrap { border: 1px solid rgba(211,220,235,.13); border-radius: 5px; overflow: hidden; box-shadow: 0 8px 24px rgba(var(--inset-rgb),.16); }
.live-consump-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.live-consump-col-player { width: 28%; }
.live-consump-col-status { width: auto; }
.live-consump-table thead th { background: linear-gradient(180deg, var(--bg-table), var(--bg-card)); color: var(--text-secondary); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 8px 10px; text-align: center; border-bottom: 1px solid rgba(211,220,235,.16); }
.live-consump-table thead th:first-child { text-align: left; }
.live-consump-table tbody tr { border-bottom: 1px solid rgba(211,220,235,.075); transition: background .12s ease, box-shadow .12s ease; }
.live-consump-table tbody tr:nth-child(even) { background: rgba(var(--inset-rgb),.11); }
.live-consump-table tbody tr:last-child { border-bottom: 0; }
.live-consump-table tbody tr:hover { background: rgba(211,220,235,.075); box-shadow: inset 2px 0 #57bde8; }
.live-consump-name { padding: 7px 10px; text-align: left; font-weight: 700; white-space: nowrap; }
.live-consump-cell { padding: 5px 10px; text-align: center; font-weight: 800; font-size: 11px; }
.live-consump-pot-time { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.5; }
.live-consump-marker { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
.live-consump-ok { color: #39d79d; }
.live-consump-ok .live-consump-marker { background: rgba(57,215,157,.1); }
.live-consump-miss-cell { color: #ff657f; }
.live-consump-miss-cell .live-consump-marker { background: rgba(233,69,96,.13); }
.live-consump-clickable { cursor: pointer; }
.live-consump-clickable:hover { background: rgba(211,220,235,.1); }
.live-consump-hint { font-size: 11px; color: var(--text-secondary); margin: -2px 0 8px; }

.live-consump-inspect {
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    padding: 8px 10px;
}
.live-consump-inspect-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.live-consump-inspect-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 0 6px;
    height: 22px;
    cursor: pointer;
}
.live-consump-inspect-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.live-consump-inspect-list { display: flex; flex-direction: column; gap: 4px; }
.live-consump-inspect-row {
    display: grid;
    grid-template-columns: 56px minmax(160px, 1fr) minmax(120px, 1fr);
    gap: 10px;
    font-size: 12px;
    align-items: center;
}
.live-consump-inspect-time { color: #9bc8ff; font-weight: 700; }
.live-consump-inspect-qual { color: var(--text-secondary); }
.live-consump-inspect-empty { font-size: 12px; color: var(--text-secondary); }

/* Category detail view */
.live-consump-body { min-height: 20px; }
.live-consump-sub-section { margin-bottom: 10px; }
.live-consump-sub-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 6px; }
.live-consump-sub-label.miss { color: #e74c3c; }
.live-consump-sub-label.ok   { color: #2ecc71; }
.live-consump-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.live-consump-chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.live-consump-chip.miss { background: rgba(231,76,60,0.15); border: 1px solid rgba(231,76,60,0.3); }
.live-consump-chip.ok   { background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.25); }
.live-consump-all-ok { color: #2ecc71; font-size: 13px; font-weight: 600; padding: 4px 0; }

.live-stat {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 18px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 90px;
}
.live-stat-val { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.live-stat-lbl { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }

/* Section nav */
.live-analysis-toolbar {
    position: sticky; top: 45px; z-index: 8;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px;
    background: var(--bg-dark); border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.live-section-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.live-section-tabs { display: flex; gap: 4px; }
.live-death-view-controls { display: flex; gap: 4px; width: max-content; max-width: 100%; margin-bottom: 12px; }
.live-section-nav-btn {
    background: transparent; border: 0; border-bottom: 2px solid transparent;
    color: var(--text-secondary); border-radius: 0;
    height: 42px; padding: 0 18px; font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.live-section-nav-btn:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.live-section-nav-btn.active { border-bottom-color: var(--accent-gold); color: var(--accent-gold); }
.live-analysis-toolbar :focus-visible, .live-pull-panel-header:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: -2px; }

/* ── Pull Panel (merged pull selector + boss HP chart) ───────────────────── */
.live-pull-panel {
    position: relative; overflow: hidden;
    background: linear-gradient(145deg, rgba(var(--raised-rgb),.96), rgba(var(--surface-rgb),.98));
    border: 1px solid rgba(211,220,235,.2); border-radius: 8px;
    padding: 0 16px 16px; margin-bottom: 18px;
    box-shadow: 0 18px 42px rgba(var(--inset-rgb),.22), inset 0 1px rgba(255,255,255,.025);
    transition: padding-bottom .3s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.live-pull-panel.collapsed {
    padding-bottom: 0;
    border-color: rgba(211,220,235,.14);
    background: linear-gradient(145deg, rgba(var(--raised-rgb),.82), rgba(var(--surface-rgb),.9));
    box-shadow: 0 10px 28px rgba(var(--inset-rgb),.16), inset 0 1px rgba(255,255,255,.02);
}
.live-pull-panel::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 2px;
    background: linear-gradient(90deg, #53bce8, #e3bd4f 48%, #42d6a1);
}
.live-pull-panel-header {
    display: flex; align-items: center; gap: 10px; width: calc(100% + 32px); min-height: 56px;
    margin: 0 -16px; padding: 0 14px 0 16px; border: 0; border-bottom: 1px solid rgba(211,220,235,.12);
    border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
    transition: background .16s ease, border-color .3s ease;
}
.live-pull-panel-header:hover { background: rgba(255,255,255,.025); }
.live-pull-panel.collapsed .live-pull-panel-header { border-bottom-color: transparent; }
.live-pull-panel-title { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.live-pull-panel-title strong { color: #f2f6fc; font-size: 15px; font-weight: 800; }
.live-pull-panel-kicker {
    color: var(--text-muted); font-size: 9px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; padding-right: 10px; border-right: 1px solid rgba(211,220,235,.18);
}
.live-pull-panel-count {
    display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px;
    border: 1px solid rgba(211,220,235,.18); border-radius: 4px;
    background: rgba(211,220,235,.07); color: #9fb3d0; font-size: 10px; font-weight: 800;
}
/* Collapsible body: chips + chart side by side */
.live-pull-panel-body {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: 0;
    align-items: stretch;
    margin-top: 12px;
    border: 1px solid rgba(211,220,235,.12); border-radius: 6px;
    background: rgba(var(--inset-rgb),.16);
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, margin-top 0.3s, border-color 0.3s;
    opacity: 1;
    max-height: 9999px;
}
.live-pull-panel-body.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    border-color: transparent;
    pointer-events: none;
}
.live-pull-history { min-width: 0; padding: 12px; border-right: 1px solid rgba(211,220,235,.12); }
.live-pull-column-heading, .live-chart-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 35px; margin-bottom: 9px;
}
.live-pull-column-heading > div, .live-chart-heading > div { display: flex; flex-direction: column; gap: 2px; }
.live-pull-column-heading span:first-child, .live-chart-kicker {
    color: #7085a5; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.live-pull-column-heading strong, .live-chart-heading strong { color: #dce6f5; font-size: 11px; font-weight: 800; }
.live-pull-column-key, .live-chart-direction { color: #7085a5; font-size: 9px; white-space: nowrap; }
.live-pull-column-key i { display: inline-block; width: 14px; height: 2px; margin: 0 5px 2px 0; background: #e3bd4f; }
/* Chips inside the panel */
.live-pull-panel .live-chips {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; align-content: start;
    overflow-y: auto; overflow-x: hidden;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.live-pull-panel .live-chip {
    padding: 7px 8px 10px; min-height: 51px;
    background: rgba(var(--surface-rgb),.72); border-color: rgba(211,220,235,.11); border-radius: 4px;
    box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.live-pull-panel .live-chip:hover { border-color: rgba(211,220,235,.36); background: rgba(32,54,88,.82); transform: translateY(-1px); }
.live-pull-panel .live-chip.selected { border-color: #e3bd4f; background: linear-gradient(145deg, rgba(227,189,79,.13), rgba(var(--raised-rgb),.78)); box-shadow: inset 0 0 0 1px rgba(227,189,79,.08), 0 6px 14px rgba(var(--inset-rgb),.16); }
.live-pull-panel .live-chip-num { font-size: 11px; }
.live-pull-panel .live-chip-dur { font-size: 11px; font-weight: 800; }
.live-pull-panel .live-chip-time { font-size: 9px; }
/* Fade-out gradient wrapper — hints there are more chips below (::after) or above (::before) */
.live-chips-scroll-hint {
    position: relative;
    display: flex; flex-direction: column;
}
.live-chips-scroll-hint::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 36px;
    background: linear-gradient(to bottom, var(--bg-card), transparent);
    pointer-events: none;
    border-radius: 4px 4px 0 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s;
}
.live-chips-scroll-hint.scrolled-top::before {
    opacity: 1;
}
.live-chips-scroll-hint::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
    pointer-events: none;
    border-radius: 0 0 4px 4px;
    transition: opacity 0.2s;
}
.live-chips-scroll-hint.no-fade::after {
    opacity: 0;
}
/* Chart inside the panel — height auto so SVG scales via viewBox aspect ratio */
.live-pull-panel .live-chart-wrap {
    background: linear-gradient(180deg, rgba(var(--inset-rgb),.28), rgba(var(--inset-rgb),.08));
    border: none; border-radius: 0; padding: 12px 12px 8px; margin-bottom: 0;
}
.live-pull-panel .live-prog-chart {
    width: 100%; height: auto; display: block;
}
/* Pull chips (Wipefest-style) */
.live-chip-primaries { display: flex; gap: 1px; margin: 12px 0 0; width: max-content; max-width: 100%; padding: 3px; border: 1px solid rgba(211,220,235,.13); border-radius: 6px; background: rgba(var(--inset-rgb),.24); }
.live-pull-panel-disclosure {
    display: inline-flex; align-items: center; gap: 7px; min-width: 92px; padding-left: 14px;
    border-left: 1px solid rgba(211,220,235,.13); color: #93a5bf;
}
.live-pull-panel-disclosure-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.live-pull-panel-chevron {
    width: 20px; height: 20px; flex: 0 0 auto; color: #c8d4e6;
    transition: transform .35s cubic-bezier(.4,0,.2,1), color .16s ease;
}
.live-pull-panel-chevron path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live-pull-panel-header:hover .live-pull-panel-disclosure { color: #dce6f5; }
.live-pull-panel-header:hover .live-pull-panel-chevron { color: #fff; }
.live-pull-panel.collapsed .live-pull-panel-chevron { transform: rotate(-90deg); }
.live-chips {
    display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px;
    overflow: hidden;
    max-height: 600px;
    transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
    opacity: 1;
}
.live-chips.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
.live-chip {
    position: relative; padding: 6px 10px 10px; min-width: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 6px; cursor: pointer; user-select: none;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
    display: flex; flex-direction: column; gap: 1px;
}
.live-chip:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }
.live-chip.selected { border-color: var(--accent-gold); background: rgba(245,197,66,0.07); }
.live-chip-num { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.live-chip-dur { font-size: 12px; color: var(--text-primary); }
.live-chip-time { font-size: 10px; color: var(--text-secondary); }
.live-chip-bar {
    position: absolute; bottom: 0; right: 0; height: 3px;
    border-radius: 0 0 5px 0; min-width: 3px; max-width: 100%;
    transition: width .3s;
}

/* Selected pull detail */
.live-pull-detail {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 18px 20px; margin-top: 4px;
}
.live-detail-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
}
.live-detail-title { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.live-detail-meta { font-size: 13px; color: var(--text-secondary); }
.live-detail-pct { font-size: 14px; font-weight: 700; }
.live-detail-wcl { font-size: 12px; color: var(--text-secondary); text-decoration: none; margin-left: auto; }
.live-detail-wcl:hover { color: var(--accent-gold); }
.live-detail-section-label {
    font-size: 11px; color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: .05em; margin-bottom: 10px; border-top: 1px solid var(--border); padding-top: 12px;
    display: flex; align-items: center; gap: 10px;
}
.live-deaths-header {
    font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: .05em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
    border-top: 1px solid var(--border); padding-top: 14px;
}
.live-deaths-count {
    background: rgba(231,76,60,0.18); color: #e74c3c;
    border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 700;
}
.live-death-view-toggle { margin-left: auto; display: flex; gap: 6px; }
.live-death-view-btn, .live-ap-view-btn {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary); border-radius: 8px;
    padding: 7px 18px; font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.live-death-view-btn:hover, .live-ap-view-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.live-death-view-btn.active, .live-ap-view-btn.active { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); color: var(--text-primary); }
.live-deaths-grid {
    display: flex; flex-direction: column; gap: 2px;
}
/* By Cause view */
.live-cause-row {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; border-radius: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.live-cause-row:last-child { border-bottom: none; }
.live-cause-count {
    font-size: 12px; font-weight: 700; color: #e74c3c;
    background: rgba(231,76,60,0.15); border-radius: 10px;
    padding: 1px 8px; flex-shrink: 0; min-width: 26px; text-align: center;
}
.live-cause-name { font-size: 13px; color: var(--text-primary); min-width: 160px; flex-shrink: 0; }
.live-cause-players { display: flex; flex-wrap: wrap; gap: 4px; }
.live-cause-chip {
    font-size: 11px; padding: 1px 7px; border-radius: 10px;
    background: rgba(255,255,255,0.08);
    white-space: nowrap; cursor: default;
}
.live-death-row {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 8px; border-radius: 4px;
    border-left: 2px solid transparent;
}
.live-death-row:hover { background: rgba(255,255,255,0.04); }
.live-death-row--cluster { border-left-color: rgba(231,76,60,0.45); background: rgba(231,76,60,0.06); }
.live-death-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor; color: var(--text-secondary);
    flex-shrink: 0;
}
.live-death-time { font-size: 12px; color: var(--text-secondary); font-family: monospace; min-width: 40px; text-align: right; flex-shrink: 0; }
.live-death-name { font-size: 12px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 90px; max-width: 140px; flex-shrink: 0; }
.live-death-kb   { flex: 1; font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.live-death-dmg  { font-size: 11px; color: var(--text-secondary); white-space: nowrap; flex-shrink: 0; min-width: 80px; text-align: right; }
.live-death-oneshot { font-size: 10px; font-weight: 700; color: #e74c3c; background: rgba(231,76,60,0.18); border-radius: 3px; padding: 1px 4px; letter-spacing: .03em; }
.live-death-rel { font-size: 11px; color: var(--accent-gold); font-family: monospace; flex-shrink: 0; }
.live-no-deaths { font-size: 13px; color: var(--text-secondary); padding: 4px 0; }

/* Primary view buttons (All Pulls / Latest Pull) */
.live-chip-primaries .live-chip {
    flex: 1; width: 255px; max-width: 280px; min-height: 48px; flex-direction: row; align-items: center;
    padding: 8px 12px; gap: 10px; min-width: 0 !important; border-color: transparent; background: transparent;
}
.live-chip-primaries .live-chip:hover { transform: none; background: rgba(211,220,235,.06); border-color: transparent; }
.live-chip-primaries .live-chip.selected { border-color: rgba(211,220,235,.14); background: linear-gradient(180deg, rgba(var(--raised-rgb),.85), rgba(var(--raised-rgb),.85)); box-shadow: 0 3px 9px rgba(var(--inset-rgb),.2); }
.live-primary-icon {
    font-size: 17px; line-height: 1; flex-shrink: 0;
    color: var(--text-secondary); transition: color .15s;
}
.live-chip-primaries .live-chip.selected .live-primary-icon { color: var(--accent-gold); }
.live-primary-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-primary-label { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.live-primary-meta { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-primary-result { margin-left: auto; padding-left: 12px; font-size: 16px; font-weight: 900; }

/* Progression workspace */
.live-pull-panel-header { min-height: 64px; }
.live-pull-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.live-pull-toolbar label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.live-pull-toolbar select { width: 290px; max-width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid rgba(211,220,235,.3); border-radius: 4px; background: var(--bg-inset); color: var(--text-primary); font-family: inherit; font-size: 12px; }
.live-pull-toolbar .live-focus-action { flex: 0 0 auto; height: 34px; padding: 0 12px; font-family: inherit; font-size: 12px; }
.live-pull-toolbar .live-focus-step { flex-basis: 34px; height: 34px; font-family: inherit; font-size: 20px; }
.live-pull-toolbar :focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.live-pull-panel-title { flex-direction: column; align-items: flex-start; gap: 2px; }
.live-pull-panel-title strong { font-size: 16px; }
.live-pull-panel-kicker { padding: 0; border: 0; }
.live-pull-session-stats { display: flex; align-self: stretch; margin-right: 8px; }
.live-pull-session-stats > span {
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    min-width: 76px; padding: 0 16px; border-left: 1px solid rgba(211,220,235,.12);
}
.live-pull-session-stats small {
    color: #7085a5; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.live-pull-session-stats strong { color: #e8eef8; font-size: 14px; font-weight: 900; }
.live-pull-panel-body {
    display: block; margin-top: 0; border: 0; border-radius: 0; background: transparent;
}
.live-pull-stage {
    display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 240px;
    margin: 0 -16px; border-bottom: 1px solid rgba(211,220,235,.13);
}
.live-pull-focus {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    padding: 16px 24px; overflow: hidden;
    border-right: 1px solid rgba(211,220,235,.13);
    background: linear-gradient(155deg, rgba(var(--raised-rgb),.58), rgba(var(--inset-rgb),.16));
}
.live-pull-focus::after {
    content: ''; position: absolute; left: 24px; right: 24px; bottom: 58px; height: 1px;
    background: linear-gradient(90deg, rgba(211,220,235,.28), transparent);
}
.live-pull-focus-kicker {
    color: var(--text-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.live-pull-focus-title { margin-top: 8px; color: #f1f5fb; font-size: 22px; font-weight: 900; }
.live-pull-focus-result { margin-top: 12px; font-size: 36px; font-weight: 900; line-height: .95; }
.live-pull-focus-caption { margin-top: 7px; color: var(--text-secondary); font-size: 10px; }
.live-pull-focus-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 14px; }
.live-pull-focus-meta span { color: #a8b8ce; font-size: 10px; }
.live-pull-focus-comparison {
    display: flex; flex-direction: column; gap: 3px; width: 100%; margin-top: 15px; padding: 10px 11px;
    border-left: 2px solid rgba(211,220,235,.22); background: rgba(var(--inset-rgb),.18);
}
.live-pull-focus-comparison span { font-size: 11px; font-weight: 800; }
.live-pull-focus-comparison span.better { color: #49d6a0; }
.live-pull-focus-comparison span.worse { color: #ff7b70; }
.live-pull-focus-comparison span.same { color: #a8b8ce; }
.live-pull-focus-comparison small { color: #7185a3; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.live-pull-focus-actions { display: flex; gap: 4px; width: 100%; margin-top: auto; padding-top: 22px; }
.live-focus-action {
    flex: 1; height: 29px; border: 1px solid rgba(211,220,235,.13); border-radius: 4px;
    background: rgba(var(--inset-rgb),.22); color: var(--text-muted); font: 700 10px inherit; cursor: pointer;
}
.live-focus-action:hover { border-color: rgba(211,220,235,.32); color: #e5edf8; }
.live-focus-action.active { border-color: rgba(227,189,79,.4); background: rgba(227,189,79,.09); color: #e8c95f; }
.live-focus-step {
    flex: 0 0 29px; height: 29px; padding: 0; border: 1px solid rgba(211,220,235,.13); border-radius: 4px;
    background: rgba(var(--inset-rgb),.22); color: var(--text-secondary); font: 20px/1 inherit; cursor: pointer;
}
.live-focus-step:hover:not(:disabled) { border-color: rgba(211,220,235,.38); background: rgba(211,220,235,.1); color: #fff; }
.live-focus-step:disabled { opacity: .25; cursor: default; }
.live-pull-chart-area { min-width: 0; padding: 17px 20px 10px; background: rgba(var(--inset-rgb),.12); }
.live-pull-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 5px 5px; }
.live-pull-chart-heading > div { display: flex; flex-direction: column; gap: 2px; }
.live-pull-chart-heading span:first-child {
    color: #7085a5; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.live-pull-chart-heading strong { color: #dce6f5; font-size: 12px; font-weight: 800; }
.live-chart-legend { display: flex; align-items: center; gap: 15px; color: #7085a5; font-size: 8px; }
.live-chart-legend span { position: relative; white-space: nowrap; }
.live-chart-legend .attempts, .live-chart-legend .trend { padding-left: 14px; }
.live-chart-legend .attempts::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px;
    border-radius: 50%; background: #d5df32;
}
.live-chart-legend .trend::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 9px; height: 1px; background: #2ecc71;
}
.live-pull-chart-area .live-chart-wrap { padding: 0; background: transparent; }
.live-pull-chart-area .live-chart-dot { cursor: pointer; transition: filter .12s; }
.live-pull-chart-area .live-chart-dot:hover, .live-pull-chart-area .live-chart-dot:focus { filter: brightness(1.35) drop-shadow(0 0 3px currentColor); outline: none; }
.live-chart-best-line { stroke: rgba(227,189,79,.24); stroke-width: 1; stroke-dasharray: 5 4; }
.live-chart-best-label { fill: #c7aa55; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.live-chart-selected-label text {
    fill: #eef4fb; font-size: 9px; font-weight: 800;
    paint-order: stroke; stroke: var(--bg-card); stroke-width: 4px; stroke-linejoin: round;
}
.live-pull-history { padding: 13px 0 0; border: 0; }
.live-pull-history .live-pull-column-heading { min-height: 31px; margin: 0 0 9px; }
.live-pull-panel .live-chips-scroll-hint { display: block; }
.live-pull-panel .live-chips {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(54px, 1fr); grid-template-columns: none;
    gap: 4px; height: auto; padding-bottom: 1px; overflow-x: auto; overflow-y: hidden;
}
.live-pull-panel .live-chip {
    display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto auto;
    min-width: 54px; min-height: 55px; padding: 7px 8px 10px; text-align: left; font-family: inherit;
}
.live-pull-panel .live-chip-num { color: #8498b6; font-size: 9px; }
.live-pull-panel .live-chip-dur { font-size: 12px; line-height: 1.1; }
.live-pull-panel .live-chip-time { font-size: 8px; }
.live-pull-panel .live-chip.selected { transform: translateY(-2px); }
.live-pull-panel .live-chip-bar { left: 0; right: auto; border-radius: 0 0 0 4px; }
.live-pull-panel .live-chips-scroll-hint::before,
.live-pull-panel .live-chips-scroll-hint::after { display: none; }

@media (max-width: 1050px) {
    .live-pull-session-stats > span { min-width: 58px; padding: 0 10px; }
    .live-pull-stage { grid-template-columns: 190px minmax(0, 1fr); }
    .live-pull-focus { padding-inline: 18px; }
}

/* Sszorak movement replay */
.live-movement {
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg-card); overflow: hidden;
}
.live-movement-header {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.live-movement-header > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.live-movement-header strong { color: var(--text-primary); font-size: 14px; }
.live-movement-header span { color: var(--text-secondary); font-size: 11px; }
.live-movement-active-phase {
    margin-left: 9px; padding-left: 9px; border-left: 3px solid var(--phase-color);
    color: var(--phase-color); font-size: 11px;
}
.live-movement-windows { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.live-movement-window {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    min-width: 82px; padding: 5px 9px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
    color: var(--text-primary); font: 600 11px inherit; cursor: pointer;
}
.live-movement-window:hover { border-color: rgba(255,255,255,.28); }
.live-movement-window.active { border-color: var(--accent-gold); background: rgba(245,197,66,.08); }
.live-movement-window span { font-size: 10px; color: var(--text-secondary); }
.live-movement-replay { background: var(--bg-dark); }
.live-movement-stage { position: relative; background: var(--bg-dark); }
.live-movement-map-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px; background: var(--bg-dark); }
[data-movement-stage] { min-width: 0; }
[data-movement-stage] { cursor: grab; user-select: none; }
[data-movement-stage].is-panning { cursor: grabbing; }
[data-movement-stage]:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: -2px; }
.live-movement-stage svg { width: 100%; max-height: 72vh; display: block; }
.live-movement-arena { fill: var(--bg-card); }
.live-movement-map { opacity: .62; }
.live-movement-marker text {
    fill: #fff; font: 700 21px "Trebuchet MS", sans-serif; text-anchor: middle;
    dominant-baseline: central; paint-order: stroke; stroke: var(--bg-dark); stroke-width: 3px;
}
.live-movement-marker-1 text { fill: #ffd84a; }
.live-movement-marker-2 text { fill: #ff8c36; }
.live-movement-marker-3 text { fill: #d77bff; }
.live-movement-marker-4 text { fill: #55d978; }
.live-movement-marker-5 text { fill: #b7c7ff; }
.live-movement-marker-6 text { fill: #55aaff; }
.live-movement-marker-7 text { fill: #ff5e65; }
.live-movement-marker-8 text { fill: #f2f2f2; }
.live-movement-player text {
    fill: #f2f5f7; font: 600 12px "Trebuchet MS", sans-serif;
    paint-order: stroke; stroke: var(--bg-dark); stroke-width: 4px; stroke-linejoin: round;
}
.live-movement-player { cursor: pointer; transition: opacity .12s ease; }
.live-movement-hover-name { display: none; }
.live-movement-player.is-hovered .live-movement-hover-name { display: block; }
.has-player-hover .live-movement-player { opacity: .18; }
.has-player-hover .live-movement-player.is-hovered { opacity: 1; }
.live-movement-player.is-hovered circle:last-of-type {
    stroke: #fff; stroke-width: 4px; paint-order: stroke fill; filter: drop-shadow(0 0 5px #fff);
}
.live-movement-player.is-hovered text { fill: #fff; font-weight: 800; }
.live-movement-player-death {
    fill: #f2f5f7; font-size: 22px; font-weight: 800; text-anchor: middle; dominant-baseline: central;
    paint-order: stroke; stroke: var(--bg-dark); stroke-width: 4px; filter: drop-shadow(0 0 4px rgba(0,0,0,.8));
}
.live-movement-boss-marker {
    fill: #9f2033; stroke: #ff7181; stroke-width: 3px; paint-order: stroke fill;
    filter: drop-shadow(0 0 5px rgba(255,82,102,.65));
}
.live-movement-boss-icon {
    fill: none; stroke: #fff; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round;
}
.live-movement-boss text {
    fill: #ffd7dc; font: 800 12px "Trebuchet MS", sans-serif;
    paint-order: stroke; stroke: var(--bg-dark); stroke-width: 4px; stroke-linejoin: round;
}
.live-movement-boss-health-bg { fill: rgba(var(--inset-rgb),.82); stroke: rgba(255,255,255,.32); stroke-width: 1px; }
.live-movement-boss-health { fill: #e3344f; }
.live-movement-orb-carrier { fill: #59e2ad; stroke: #d6fff0; stroke-width: 2px; }
.live-movement-wind-radius {
    fill: rgba(92,218,246,.13); stroke: #73e3fb; stroke-width: 2px;
    vector-effect: non-scaling-stroke;
}
.live-movement-wind-line-outline {
    stroke: rgba(225,252,255,.72); stroke-width: 8px; opacity: .7;
    vector-effect: non-scaling-stroke;
}
.live-movement-wind-line {
    stroke: #73e3fb; stroke-width: 4px;
    vector-effect: non-scaling-stroke;
}
.live-movement-spell-timers {
    position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; gap: 4px;
    min-width: 220px; pointer-events: none;
}
.live-movement-spell-timer {
    display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px;
    height: 34px; padding: 4px 9px 4px 4px; border: 1px solid color-mix(in srgb, var(--spell-color) 55%, transparent);
    border-left: 3px solid var(--spell-color); border-radius: 4px; background: rgba(var(--inset-rgb),.92); color: #f5f7f8;
}
.live-movement-spell-timer img, .live-movement-spell-timer > span:first-child {
    display: grid; place-items: center; width: 24px; height: 24px; border-radius: 3px;
    background: var(--spell-color); color: var(--bg-dark); font-size: 10px; font-weight: 800;
}
.live-movement-spell-timer > span { overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.live-movement-spell-timer strong { color: var(--spell-color); font: 800 14px "Trebuchet MS", sans-serif; text-align: right; }
.live-movement-orb circle { fill: rgba(89,226,173,.38); stroke: #59e2ad; stroke-width: 3px; }
.live-movement-coalesced-venom > circle:first-of-type {
    fill: rgba(80, 210, 94, .32); stroke: #76ed7d; stroke-width: 2px;
    vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px rgba(91, 235, 104, .8));
}
.live-movement-coalesced-venom-core { fill: #b8ff91; stroke: #efffdc; stroke-width: 1px; }
.live-movement-coalesced-venom.is-cleared > circle:first-of-type {
    fill: rgba(227, 164, 95, .2); stroke: #f2bd7d; stroke-dasharray: 4 3;
}
.live-movement-coalesced-venom.is-cleared path {
    fill: none; stroke: #ffe0b7; stroke-width: 3px; stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.live-movement-orb text {
    fill: #bdf8df; font: 700 10px "Trebuchet MS", sans-serif; text-anchor: middle;
    paint-order: stroke; stroke: var(--bg-dark); stroke-width: 3px;
}
.live-movement-surge-hit circle { fill: rgba(89,226,173,.16); stroke: #59e2ad; stroke-width: 2px; }
.live-movement-surge-hit path { fill: none; stroke: #bdf8df; stroke-width: 2px; stroke-linecap: round; }
.live-movement-surge-hit text {
    fill: #bdf8df; font: 700 10px "Trebuchet MS", sans-serif;
    paint-order: stroke; stroke: var(--bg-dark); stroke-width: 3px; stroke-linejoin: round;
}
.live-movement-mechanic-ring circle {
    fill: color-mix(in srgb, var(--mechanic-color) 13%, transparent); stroke: var(--mechanic-color); stroke-width: 3px;
}
.live-movement-mechanic-spread circle { stroke-dasharray: 7 5; }
.live-movement-mechanic-soak circle { stroke-width: 4px; }
.live-movement-stack { --stack-color: var(--mechanic-color); }
.live-movement-stack.is-over { --stack-color: #ff6b6b; }
.live-movement-stack-halo {
    fill: color-mix(in srgb, var(--stack-color) 16%, transparent);
    stroke: color-mix(in srgb, var(--stack-color) 55%, transparent); stroke-width: 1.5px;
}
.live-movement-stack-orb {
    fill: color-mix(in srgb, var(--stack-color) 70%, white); stroke: var(--bg-dark); stroke-width: 1px;
    filter: drop-shadow(0 0 3px var(--stack-color));
}
.live-movement-stack rect { fill: var(--stack-color); stroke: var(--bg-dark); stroke-width: 1.5px; }
.live-movement-stack text { fill: var(--bg-dark); font: 800 11px "Trebuchet MS", sans-serif; text-anchor: middle; }
.live-movement-mechanic-cone-area {
    fill: color-mix(in srgb, var(--mechanic-color) 24%, transparent);
    stroke: var(--mechanic-color); stroke-width: 2px; stroke-dasharray: 7 4;
    vector-effect: non-scaling-stroke;
}
.live-movement-mechanic-cone-direction {
    fill: none; stroke: color-mix(in srgb, var(--mechanic-color) 78%, white); stroke-width: 2px;
    vector-effect: non-scaling-stroke;
}
.live-movement-mechanic-ring text, .live-movement-mechanic-drop text {
    fill: var(--mechanic-color); font: 800 11px "Trebuchet MS", sans-serif; text-anchor: middle;
    paint-order: stroke; stroke: var(--bg-dark); stroke-width: 3px;
}
.live-movement-mechanic-drop circle {
    fill: color-mix(in srgb, var(--mechanic-color) 18%, transparent); stroke: var(--mechanic-color); stroke-width: 2px;
}
.live-movement-mechanic-pool circle {
    fill: color-mix(in srgb, var(--mechanic-color) 42%, transparent);
    stroke: color-mix(in srgb, var(--mechanic-color) 80%, #ffb347); stroke-width: 1.5px;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--mechanic-color) 75%, transparent));
}
.live-movement-pairs {
    position: absolute; left: 12px; bottom: 12px; right: 12px;
    display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none;
}
.live-movement-events {
    display: flex; flex-direction: column; min-width: 0; max-height: 72vh; overflow: hidden;
    border-left: 1px solid rgba(255,255,255,.12); background: var(--bg-inset); color: #e9eef1;
}
.live-movement-events-header {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    padding: 12px 12px 9px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.live-movement-events-header strong { font-size: 12px; }
.live-movement-events-header span { color: #aeb9bf; font-size: 10px; }
.live-movement-revive-summary {
    display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08); color: #9eabb2; font-size: 10px;
}
.live-movement-revive-summary strong { color: #71d9ad; font-weight: 700; }
.live-movement-event-list { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.live-movement-event-list > p { margin: 0; padding: 16px 12px; color: #8e9ba2; font-size: 11px; }
.live-movement-event {
    display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 7px;
    width: 100%; min-height: 43px; padding: 6px 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055);
    background: transparent; color: #cad2d6; text-align: left; cursor: pointer;
}
.live-movement-event:hover { background: rgba(255,255,255,.07); }
.live-movement-event.is-past { background: rgba(255,255,255,.025); }
.live-movement-event-icon {
    display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: #732c37; color: #fff; font-size: 11px; font-weight: 800;
}
.live-movement-event.revive .live-movement-event-icon { background: #247454; color: #e2fff3; }
.live-movement-event.mechanic .live-movement-event-icon, .live-movement-event.phase .live-movement-event-icon {
    background: color-mix(in srgb, var(--event-color) 62%, var(--bg-card)); color: #fff;
}
.live-movement-event.phase { border-top: 2px solid var(--event-color, rgba(255,255,255,.2)); }
.live-movement-event-detail { min-width: 0; }
.live-movement-event-detail strong, .live-movement-event-detail small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-movement-event-detail strong { color: #eef2f4; font-size: 10px; font-weight: 700; }
.live-movement-event-detail small { margin-top: 2px; color: #7f8d94; font-size: 9px; }
.live-movement-event time { color: #d8b85c; font: 700 10px monospace; }
.live-movement-event:not(.is-past) { opacity: .58; }
.live-movement-pair {
    padding: 4px 7px; border-radius: 4px; border-left: 3px solid var(--pair-color);
    background: rgba(var(--inset-rgb),.86); color: #dce3e7; font-size: 10px;
}
.live-movement-pair strong {
    margin-left: 3px; padding: 1px 3px; border-radius: 2px;
    background: var(--pair-color); color: var(--pair-contrast);
}
.live-movement-pair.is-danger { border-left-color: #ff5266; }
.live-movement-pair.is-danger strong, .live-movement-pair.outcome-missed strong, .live-movement-pair.outcome-clipped strong {
    background: #b8293c; color: #fff;
}
.live-movement-pair.outcome-collided { border-left-color: #59e2ad; }
.live-movement-pair.outcome-collided strong { background: #238563; color: #fff; }
.live-movement-pair.outcome-missed, .live-movement-pair.outcome-clipped { border-left-color: #ff5266; }
.live-movement-pair.outcome-unknown { border-left-color: #d1a84b; }
.live-movement-pair.outcome-unknown strong { background: #725b25; color: #fff; }
.live-movement-raid {
    position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; align-items: flex-start; gap: 5px;
    max-width: calc(100% - 20px); overflow: hidden; pointer-events: none; cursor: default;
}
.live-movement-party { display: grid; flex: 0 0 124px; gap: 3px; min-width: 0; }
.live-movement-party-label {
    padding: 2px 4px; background: rgba(var(--inset-rgb),.82); color: #dce3e7;
    font-size: 9px; font-weight: 700; text-transform: uppercase; text-shadow: 0 1px 2px #000;
}
.live-movement-raid-frame {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 4px;
    min-width: 0; height: 30px; padding: 0 6px 0 8px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.1); border-left: 3px solid var(--class-color);
    border-radius: 3px; background: color-mix(in srgb, var(--class-color) 24%, var(--bg-card));
    box-shadow: inset 0 -9px 0 rgba(0,0,0,.13); pointer-events: auto;
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.live-movement-raid-frame:hover {
    border-color: rgba(255,255,255,.78); border-left-color: var(--class-color);
    background: color-mix(in srgb, var(--class-color) 42%, var(--bg-card));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 9px color-mix(in srgb, var(--class-color) 55%, transparent);
}
.live-movement-raid-frame.active {
    border-color: var(--mechanic-color); border-left-color: var(--mechanic-color);
    box-shadow: inset 0 0 0 1px var(--mechanic-color), 0 0 8px color-mix(in srgb, var(--mechanic-color) 35%, transparent);
}
.live-movement-raid-frame.is-hovered {
    outline: 2px solid rgba(255,255,255,.9); outline-offset: 1px;
    background: color-mix(in srgb, var(--class-color) 48%, var(--bg-card));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 11px color-mix(in srgb, var(--class-color) 65%, transparent);
}
.live-movement-raid-frame.dead { filter: grayscale(1); opacity: .42; }
.live-movement-raid-name {
    min-width: 0; overflow: hidden; color: #f3f6f8; font-size: 9px; font-weight: 700;
    text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px #000;
}
.live-movement-raid-effects { display: flex; flex: 0 0 auto; gap: 2px; }
.live-movement-stage .live-movement-role-icon {
    display: inline-block; width: 9px; height: 9px; margin-right: 3px; vertical-align: -1px; fill: #f3f6f8;
    filter: drop-shadow(0 1px 1px #000);
}
.live-movement-raid-effects b {
    display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 2px;
    border-radius: 2px; background: var(--effect-color); color: var(--effect-contrast, var(--bg-dark)); font-size: 8px; line-height: 1;
}
.live-movement-raid-effects .live-movement-dead-icon { background: #6f7880; color: #fff; font-size: 13px; }
.live-movement-controls {
    display: grid; grid-template-columns: 34px 1fr 104px; gap: 10px; align-items: center;
    padding: 66px 14px 31px; border-top: 1px solid var(--border);
}
.live-movement-play {
    width: 34px; height: 30px; border-radius: 6px; border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06); color: var(--text-primary); cursor: pointer;
}
.live-movement-controls input { width: 100%; accent-color: var(--accent-gold); }
.live-movement-controls output { color: var(--text-secondary); font: 12px monospace; text-align: right; }
.live-movement-timeline { position: relative; display: flex; align-items: center; min-width: 0; }
.live-movement-timeline > input {
    position: relative; z-index: 1; height: 4px; margin: 0; appearance: none;
    border-radius: 2px; background: rgba(255,255,255,.24);
}
.live-movement-timeline > input::-webkit-slider-thumb {
    width: 12px; height: 12px; appearance: none; border: 0; border-radius: 50%;
    background: var(--accent-gold); cursor: pointer;
}
.live-movement-timeline > input::-moz-range-thumb {
    width: 12px; height: 12px; border: 0; border-radius: 50%;
    background: var(--accent-gold); cursor: pointer;
}
.live-movement-timeline-marker {
    position: absolute; z-index: 2; top: calc(-29px - var(--marker-lane, 0) * 28px); display: block; width: 24px; height: 24px; padding: 0;
    border: 2px solid var(--accent-gold); border-radius: 4px; background: var(--bg-dark); color: var(--bg-dark); cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,.45); text-decoration: none; transform: translateX(-12px);
}
.live-movement-timeline-marker::after {
    content: ''; position: absolute; top: 22px; left: 9px; width: 2px; height: calc(10px + var(--marker-lane, 0) * 28px); background: var(--accent-gold);
}
.live-movement-timeline-marker img, .live-movement-timeline-marker > span { display: block; width: 20px; height: 20px; border-radius: 2px; }
.live-movement-timeline-marker > span { display: grid; place-items: center; background: var(--accent-gold); font-size: 9px; font-weight: 800; }
.live-movement-timeline-marker > b {
    position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 13px; height: 13px;
    border: 1px solid var(--bg-dark); border-radius: 50%; background: var(--accent-gold); color: var(--bg-dark); font-size: 8px;
}
.live-movement-timeline-marker:hover { z-index: 4; filter: brightness(1.25); transform: translateX(-12px) scale(1.08); }
.live-movement-timeline-surge { top: 4px; border-color: #59e2ad; }
.live-movement-timeline-surge::after { top: -8px; height: 8px; background: #59e2ad; }
.live-movement-timeline-surge > b { background: #59e2ad; }
.live-movement-timeline-mechanic { border-color: var(--mechanic-color); }
.live-movement-timeline-mechanic::after { background: var(--mechanic-color); }
.live-movement-phase-segment {
    position: absolute; top: 15px; height: 18px; min-width: 2px; padding: 0 4px; overflow: hidden;
    border: 0; border-right: 1px solid var(--bg-dark); background: color-mix(in srgb, var(--phase-color) 52%, var(--bg-table));
    color: #edf2f4; cursor: pointer; text-align: left;
}
.live-movement-phase-segment:first-of-type { border-radius: 3px 0 0 3px; }
.live-movement-phase-segment:last-of-type { border-radius: 0 3px 3px 0; }
.live-movement-phase-segment.active { box-shadow: inset 0 0 0 2px var(--phase-color); }
.live-movement-phase-segment span {
    display: block; overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap;
}
.live-movement-settings {
    position: relative; z-index: 5; flex: 0 0 auto; width: 34px; height: 34px;
}
.live-movement-settings > button {
    display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px; background: rgba(var(--inset-rgb),.82); color: #f2f5f7; cursor: pointer; list-style: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.live-movement-settings > button:hover, .live-movement-settings.open > button { background: rgba(var(--surface-rgb),.96); border-color: rgba(255,255,255,.36); }
.live-movement-settings > button svg { width: 17px; height: 17px; }
.live-movement-display-controls {
    position: absolute; top: 40px; right: 0; display: none; width: 270px; gap: 11px;
    padding: 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px;
    background: rgba(var(--inset-rgb),.97); box-shadow: 0 12px 30px rgba(0,0,0,.42);
}
.live-movement-settings.open .live-movement-display-controls { display: grid; }
.live-movement-display-controls label {
    display: grid; grid-template-columns: 42px 1fr 42px; gap: 8px; align-items: center;
    color: var(--text-secondary); font-size: 10px;
}
.live-movement-display-controls input { width: 100%; accent-color: var(--accent-gold); }
.live-movement-display-controls select {
    grid-column: 2 / 4; width: 100%; padding: 4px 7px; border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px; background: var(--bg-table); color: var(--text-primary); font: 11px inherit;
}
.live-movement-display-controls output { color: var(--text-primary); font: 10px monospace; text-align: right; }
.live-movement-display-controls .live-movement-settings-toggle {
    grid-template-columns: 16px 1fr; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1);
    color: var(--text-primary); font-size: 11px;
}
.live-movement-settings-toggle input { width: 14px; height: 14px; margin: 0; }
.live-movement-loading { padding: 70px 20px; text-align: center; color: var(--text-secondary); }
.live-movement-load-error {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.live-movement-load-error button {
    padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
    background: rgba(255,255,255,.08); color: var(--text-primary); font: 600 12px inherit; cursor: pointer;
}
.live-movement-load-error button:hover { background: rgba(255,255,255,.14); }

@media (max-width: 950px) {
    .live-movement-party { flex-basis: 112px; }
    .live-movement-map-wrap { grid-template-columns: minmax(0, 1fr) 220px; }
}

@media (max-width: 700px) {
    .live-analysis-toolbar { position: static; }
    .live-section-tabs { width: 100%; }
    .live-section-nav { flex-wrap: wrap; gap: 5px; width: 100%; margin-left: 0; }
    .live-section-nav-btn { flex: 1 1 calc(25% - 5px); min-width: 0; padding-inline: 6px; font-size: 12px; }
    .live-death-view-btn, .live-ap-view-btn { flex: 1; }
    .live-movement-header { align-items: flex-start; flex-direction: column; }
    .live-movement-map-wrap { display: block; }
    .live-movement-events { max-height: 260px; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
    .live-movement-settings { align-self: flex-end; margin-top: -37px; }
    .live-movement-windows { justify-content: flex-start; }
    .live-movement-stage svg { min-height: 420px; }
    .live-movement-wind-review { top: 200px; }
    .live-movement-pairs { position: static; padding: 8px; background: var(--bg-dark); }
    .live-movement-controls { grid-template-columns: 30px minmax(0, 1fr) 86px; gap: 7px; padding: 70px 8px 12px; }
    .live-movement-timeline-mechanic { top: -61px; }
    .live-movement-timeline-mechanic::after { top: 22px; height: 42px; }
    .live-movement-controls output { font-size: 10px; }
    .live-movement-display-controls { width: min(270px, calc(100vw - 48px)); }
}

.live-ap-controls {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 10px; flex-wrap: wrap;
}
.live-ap-hint { flex: 1; text-align: center; font-size: 12px; color: var(--text-secondary); }
.live-ap-filter-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-secondary);
}
.live-ap-filter-input {
    width: 56px; padding: 3px 6px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--bg-input, rgba(255,255,255,0.06));
    color: var(--text-primary); font-size: 12px; text-align: center;
}
.live-ap-player-search {
    width: 120px; padding: 3px 6px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--bg-input, rgba(255,255,255,0.06));
    color: var(--text-primary); font-size: 12px;
}
.live-ap-filter-note {
    font-size: 11px; color: var(--text-secondary); font-style: italic;
}
/* All-pulls aggregate — WCL-style survival % table */
.live-ap-wrap { overflow-x: auto; overflow-y: auto; max-height: 540px; margin-top: 8px; }
.live-ap-table { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.live-ap-table th, .live-ap-table td { padding: 4px 8px; white-space: nowrap; }
.live-ap-table tbody td { border-bottom: 1px solid rgba(255,255,255,0.04); }
.live-ap-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg-card); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--text-secondary); text-align: center; }
.live-ap-nhdr { text-align: left !important; min-width: 120px; }
.live-ap-ahdr { min-width: 44px; }
.live-ap-phdr { min-width: 40px; font-family: monospace; }
.live-ap-name { position: sticky; left: 0; z-index: 1; background: var(--bg-card); font-size: 12px; min-width: 120px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.live-ap-avg  { font-weight: 600; text-align: center; font-size: 12px; font-family: monospace; min-width: 44px; }
.live-ap-cell { text-align: center; font-size: 11px; font-family: monospace; min-width: 40px; cursor: pointer; }
.live-ap-none { color: rgba(255,255,255,0.2); text-align: center; cursor: default; }
.live-ap-table tbody tr:hover td { filter: brightness(1.2); }
.live-ap-cause-hdr { max-width: 100px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.live-ap-cause-hdr .live-ability-link { color: inherit; text-decoration: none; pointer-events: auto; }
.live-ap-cause-hdr .live-ability-link:hover { text-decoration: underline; }
.live-ap-cause-cell { text-align: center; font-size: 12px; font-weight: 600; font-family: monospace; min-width: 36px; }
.live-ap-cause-total { font-weight: 700; text-align: center; font-size: 12px; font-family: monospace; color: var(--text-primary); }

/* Death breakdown popover */
.live-ap-popover {
    position: fixed; z-index: 9999;
    background: var(--bg-card, #1e2027); border: 1px solid var(--border, rgba(255,255,255,0.12));
    border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    padding: 12px 14px; min-width: 220px; max-width: 340px;
    font-size: 12px; color: var(--text-primary);
    animation: liveFadeIn .12s ease;
}
.live-ap-popover-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-secondary); margin-bottom: 8px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
    display: flex; align-items: center; gap: 6px;
}
.live-ap-popover-row {
    display: flex; align-items: center; gap: 8px;
    padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.live-ap-popover-row:last-child { border-bottom: none; }
.live-ap-popover-count {
    font-size: 11px; font-weight: 700; color: #e74c3c;
    background: rgba(231,76,60,0.15); border-radius: 10px;
    padding: 0 6px; min-width: 20px; text-align: center; flex-shrink: 0;
}
.live-ap-popover-kb { flex: 1; color: var(--text-primary); }
.live-ap-popover-time { font-family: monospace; font-size: 11px; color: var(--text-secondary); flex-shrink: 0; }
.live-ap-popover-pct  { font-family: monospace; font-size: 11px; color: var(--text-secondary); flex-shrink: 0; min-width: 36px; text-align: right; }

/* ── Progress Chart ──────────────────────────────────────────────────────── */
.live-chart-wrap {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 16px; margin-bottom: 18px;
}
.live-chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.live-chart-title { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }
.live-chart-trend-badge {
    font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 12px;
    border: 1px solid transparent;
}
.live-chart-trend-badge.improving { color: #2ecc71; background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.3); }
.live-chart-trend-badge.declining { color: #e74c3c; background: rgba(231,76,60,0.12); border-color: rgba(231,76,60,0.3); }
.live-chart-trend-badge.stable    { color: var(--text-secondary); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.live-chart-svg-wrap { overflow: hidden; border-radius: 4px; }
.live-prog-chart { width: 100%; height: auto; display: block; }
.live-chart-grid { stroke: rgba(255,255,255,0.06); stroke-width: 1; }
.live-chart-kill-grid { stroke: rgba(46,204,113,0.22); stroke-width: 1; stroke-dasharray: 3 3; }
.live-chart-axis-label { font-size: 9px; fill: rgba(255,255,255,0.35); font-family: var(--font, sans-serif); }
.live-chart-line { stroke: rgba(255,255,255,0.18); stroke-width: 1.5; }
.live-chart-dot { cursor: default; }
.live-chart-dot.kill { stroke: rgba(46,204,113,0.5); stroke-width: 1.5; }
.live-chart-trend-line { stroke-width: 1.5; opacity: 0.65; }
.live-chart-sel-line { stroke: rgba(255,255,255,0.35); stroke-width: 1; stroke-dasharray: 3 3; }
.live-chart-trend-line.improving { stroke: #2ecc71; }
.live-chart-trend-line.declining { stroke: #e74c3c; }
.live-chart-trend-line.stable    { stroke: rgba(255,255,255,0.3); }

/* ── Wipe Window ─────────────────────────────────────────────────────────── */
.live-wipe-window {
    display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
    margin-top: 10px; padding: 8px 10px;
    background: rgba(231,76,60,0.07); border: 1px solid rgba(231,76,60,0.22);
    border-radius: 8px;
}
.live-wipe-window-label {
    font-size: 11px; font-weight: 700; color: #e74c3c;
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
    padding-top: 2px; flex-shrink: 0;
}
.live-wipe-window-chips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.live-wipe-chip {
    font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12); white-space: nowrap;
}

/* ── Insights Panel ──────────────────────────────────────────────────────── */
.live-insights-panel { display: flex; flex-direction: column; gap: 16px; }
.live-raid-coach { border-left: 3px solid #4fa3d1; }
.live-raid-coach-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.live-raid-coach-mode { margin-left: 8px; padding: 3px 7px; border: 1px solid rgba(79,163,209,.45); border-radius: 4px; color: #7fc7ec; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.live-raid-coach-loading { min-height: 90px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--text-secondary); }
.live-raid-coach-loading .loading-spinner-ring { width: 24px; height: 24px; }
.live-raid-coach-error { color: #e98282; }
.live-raid-coach-summary { margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.live-raid-coach-summary p { margin: 6px 0 0; color: var(--text-secondary); }
.live-raid-coach h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; color: var(--text-secondary); }
.live-raid-coach-priorities, .live-raid-coach-list { margin: 0; padding: 0; list-style: none; }
.live-raid-coach-priority { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.live-raid-coach-priority:first-child { border-top: 0; padding-top: 0; }
.live-raid-coach-priority p { margin: 3px 0; color: var(--text-secondary); }
.live-raid-coach-priority span:last-child { font-size: 12px; }
.live-raid-coach-number { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(79,163,209,.14); color: #7fc7ec; font-weight: 800; }
.live-raid-coach-list li { padding: 7px 0; border-top: 1px solid var(--border); }
.live-raid-coach-table { margin-top: 16px; }
.live-raid-coach-table table { width: 100%; }
.live-raid-coach-caveat { margin: 14px 0 0; color: var(--text-secondary); font-size: 11px; }
.live-insights-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-wipe-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05); color: var(--text-secondary);
    font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.live-wipe-toggle:hover { border-color: rgba(255,255,255,0.3); color: var(--text-primary); background: rgba(255,255,255,0.09); }
.live-wipe-toggle.active { background: rgba(231,76,60,0.18); border-color: #e74c3c; color: #e74c3c; }
.live-wipe-filter-badge {
    font-size: 11px; color: #e74c3c; background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.3); border-radius: 20px; padding: 4px 10px;
}
.live-insights-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .live-insights-two-col { grid-template-columns: 1fr; } }
.live-insight-block {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px;
}
.live-insight-block-title {
    font-size: 11px; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.live-insight-block-sub {
    font-size: 11px; color: var(--text-secondary); opacity: .65; margin-bottom: 12px;
}
/* Key Takeaways block */
.live-insight-takeaways { border-left: 3px solid #f39c12; }
.live-takeaway-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.live-takeaway-item { font-size: 13px; color: var(--text-primary); line-height: 1.5; padding: 10px 12px; background: rgba(255,255,255,0.03); border-radius: 7px; }
.live-takeaway-item b { color: #f8f8f8; }
.live-takeaway-warn { color: #e74c3c; font-weight: 600; }
/* Player risk header */
.live-player-risk-header {
    display: flex; align-items: center; gap: 8px;
    padding: 3px 0 6px; border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 4px;
    font-size: 10px; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: .05em;
}
.live-player-risk-header span:nth-child(1) { min-width: 16px; flex-shrink: 0; }
.live-player-risk-header span:nth-child(2) { flex: 1.5; }
.live-player-risk-header span:nth-child(3) { min-width: 28px; text-align: right; flex-shrink: 0; }
.live-player-risk-header span:nth-child(4) { min-width: 52px; flex-shrink: 0; }
.live-player-risk-header span:nth-child(5) { flex: 2; }
.live-player-risk-header span:nth-child(6) { min-width: 60px; flex-shrink: 0; }
/* Session overview stats */
.live-insight-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.live-insight-stat {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 80px; padding: 8px 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
}
.live-insight-stat-val { font-size: 17px; font-weight: 800; color: var(--text-primary); }
.live-insight-stat-lbl { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; text-align: center; }
/* Top mechanics */
.live-mech-list { display: flex; flex-direction: column; gap: 7px; }
.live-mech-row { display: flex; align-items: center; gap: 7px; }
.live-mech-rank { font-size: 11px; font-weight: 700; color: var(--text-secondary); min-width: 14px; text-align: right; flex-shrink: 0; }
.live-mech-name { font-size: 12px; font-weight: 600; color: var(--text-primary); flex: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-ability-link { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.3); cursor: pointer; }
.live-ability-link:hover { border-bottom-color: var(--text-primary); color: #fff; }
.live-takeaway-item .live-ability-link { font-weight: 700; color: #f8f8f8; }
/* Wowhead's universal.css sets white-space:nowrap on .q which clips description text — override it */
.wowhead-tooltip .q,
.wowhead-tooltip .q1,
.wowhead-tooltip .q2,
.wowhead-tooltip .q3,
.wowhead-tooltip .q4 { white-space: normal !important; }
.live-mech-bar-wrap { flex: 1; background: rgba(255,255,255,0.06); border-radius: 3px; height: 6px; min-width: 40px; }
.live-mech-bar { height: 6px; border-radius: 3px; background: rgba(231,76,60,0.7); }
.live-mech-count { font-size: 13px; font-weight: 700; color: var(--text-primary); min-width: 24px; text-align: right; flex-shrink: 0; }
.live-mech-meta { font-size: 11px; color: var(--text-secondary); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-mech-os { color: #f39c12; font-weight: 700; }
/* Phase distribution */
.live-amp-analysis { display: flex; flex-direction: column; gap: 20px; --amp-accent: #f17a72; --amp-pi: #ecc479; --amp-pot: #67cfb0; --amp-hm: #aad66f; }
.live-amp-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.live-amp-heading > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.live-amp-heading > div:first-child > span { color: var(--amp-accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.live-amp-heading > div:first-child > strong { font-size: 20px; }
.live-amp-window-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; background: var(--bg-table); max-width: 100%; }
.live-amp-window-btn { width: 150px; min-height: 62px; padding: 9px 16px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--text-secondary); cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.live-amp-window-btn:last-child { border-right: 0; }
.live-amp-window-btn > span { display: flex; align-items: center; justify-content: space-between; width: 100%; color: inherit; font-size: 12px; font-weight: 700; }
.live-amp-window-btn strong { font-size: 14px; }
.live-amp-window-btn small { color: var(--text-secondary); font-size: 10px; font-weight: 400; }
.live-amp-window-btn:hover { background: rgba(255,255,255,.04); color: var(--text-primary); }
.live-amp-window-btn.active { background: rgba(241,122,114,.12); box-shadow: inset 0 -2px #f17a72; color: #f58b83; }
.live-amp-window-btn:focus-visible { outline: 2px solid var(--amp-accent); outline-offset: -3px; }
.live-amp-selected-summary { padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); gap: 20px; background: linear-gradient(90deg, rgba(241,122,114,.035), transparent 45%); }
.live-amp-selected-summary > div { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 1px solid var(--border); }
.live-amp-selected-summary > div:first-child { border-left: 2px solid var(--amp-accent); }
.live-amp-selected-summary span, .live-amp-selected-summary small { color: var(--text-secondary); font-size: 11px; font-weight: 400; }
.live-amp-selected-summary strong { font-size: 23px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.live-amp-selected-summary strong small { font-size: 13px; }
.live-amp-selected-summary .live-amp-primary-stat > strong { color: var(--amp-accent); }
.live-amp-pi-stat > strong { color: var(--amp-pi); }
.live-amp-pot-stat > strong { color: var(--amp-pot); }
.live-amp-hm-stat > strong { color: var(--amp-hm); }
.live-amp-hm-stat .live-amp-hm-missed { color: var(--status-danger); font-size: 28px; font-weight: 800; line-height: 1; }
.live-amp-selected-summary .live-amp-hm-source { overflow-wrap: anywhere; color: var(--text-primary); }
.live-amp-selected-summary .live-amp-delta { font-weight: 800; }
.live-amp-selected-summary .live-amp-delta.better { color: var(--status-good); }
.live-amp-selected-summary .live-amp-delta.worse { color: var(--status-bad); }
.live-amp-table-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: -10px; font-size: 12px; }
.live-amp-table-heading span { font-size: 11px; color: var(--text-secondary); font-weight: 400; }
.live-amp-table-heading strong span { margin-left: 10px; }
.live-amp-player-list { overflow-x: auto; }
.live-amp-player-list table { width: 100%; min-width: 730px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.live-amp-rank-col { width: 40px; }
.live-amp-name-col { width: 36%; }
.live-amp-damage-col { width: 120px; }
.live-amp-dps-col { width: 100px; }
.live-amp-casts-col { width: 96px; }
.live-amp-buff-col { width: 140px; }
.live-amp-player-list thead th { padding: 11px 14px; font-size: 10px; font-weight: 600; color: var(--text-secondary); background: rgba(255,255,255,.025); text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.live-amp-player-list thead th:nth-child(2) { text-align: left; }
.live-amp-player-list thead th:nth-child(n+3):nth-child(-n+5) { text-align: center; }
.live-amp-player-list thead th:nth-last-child(-n+2) { text-align: center; }
.live-amp-player-list thead img { width: 17px; height: 17px; margin-right: 6px; vertical-align: middle; border-radius: 3px; }
.live-amp-player-row { height: 53px; border-bottom: 1px solid var(--border); cursor: pointer; }
.live-amp-player-row:nth-child(even) { background: rgba(255,255,255,.012); }
.live-amp-player-row:hover { background: rgba(255,255,255,.04); }
.live-amp-player-row:has([aria-expanded="true"]) { background: rgba(255,255,255,.055); }
.live-amp-player-row td, .live-amp-player-row th { padding: 9px 14px; }
.live-amp-rank { color: var(--text-secondary); font-size: 11px; text-align: right; }
.live-amp-player { text-align: left; font-size: 12px; overflow-wrap: anywhere; }
.live-amp-realm { color: var(--text-secondary); font-size: 10px; font-weight: 400; }
.live-amp-player-track { height: 4px; margin: 7px 0 0 26px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.04); }
.live-amp-player-track span { display: block; width: var(--amp-width); height: 100%; border-radius: 2px; background: var(--amp-color); opacity: .7; }
.live-amp-player-damage, .live-amp-player-dps { text-align: center; font-size: 12px; }
.live-amp-player-dps { color: var(--text-secondary); }
.live-amp-player-casts { text-align: center; white-space: nowrap; }
.live-amp-player-casts strong { display: block; font-size: 12px; }
.live-amp-player-casts strong small { margin-left: 1px; color: var(--text-muted); font-size: 10px; }
.live-amp-buff { text-align: center; font-size: 12px; border-left: 1px solid rgba(255,255,255,.035); }
.live-amp-buff.powerInfusion { color: var(--amp-pi); }
.live-amp-buff.damagePotion { color: var(--amp-pot); }
.live-amp-buff-value { display: flex; align-items: center; justify-content: center; gap: 6px; }
[data-amp-all] .live-amp-buff-value { flex-wrap: wrap; row-gap: 2px; }
.live-amp-pi-source { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 10px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-amp-pi-source:focus-visible { outline: 1px solid var(--amp-pi); outline-offset: 2px; }
.live-amp-potion { display: inline-flex; border-radius: 3px; }
.live-amp-potion img { display: block; width: 19px; height: 19px; border-radius: 3px; }
.live-amp-potion:focus-visible { outline: 2px solid var(--amp-pot); outline-offset: 3px; }
.live-amp-buff small { margin-left: 2px; font-size: 10px; font-weight: 400; }
.live-amp-buff-track { display: block; width: 58px; height: 3px; margin: 6px auto 0; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.live-amp-buff-track > span { display: block; height: 100%; background: currentColor; }
.live-amp-buff.inactive, .live-amp-buff.unavailable { color: var(--text-secondary); font-size: 11px; }
.live-amp-no-damage { padding: 30px; text-align: center; color: var(--text-secondary); }
.live-amp-player-toggle { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.live-amp-player-toggle > strong { min-width: 0; }
.live-amp-player-indicator { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; color: var(--text-secondary); font-size: 18px; font-weight: 400; line-height: 1; }
.live-amp-player-row:hover .live-amp-player-indicator, .live-amp-player-toggle:focus-visible .live-amp-player-indicator, .live-amp-player-toggle[aria-expanded="true"] .live-amp-player-indicator { color: var(--text-primary); }
.live-amp-player-toggle:focus-visible, .live-amp-cast-mark:focus-visible { outline: 2px solid var(--amp-accent); outline-offset: 3px; }
.live-amp-cast-detail:hover { background: transparent; }
.live-amp-cast-detail > td { padding: 18px 24px 24px 80px; white-space: normal; text-align: left; font-weight: 400; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--amp-accent); }
.live-amp-cast-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.live-amp-cast-heading > div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.live-amp-cast-heading span, .live-amp-cast-empty { color: var(--text-secondary); font-size: 11px; }
.live-amp-cast-heading nav { display: flex; gap: 18px; font-size: 11px; }
.live-amp-cast-heading a { color: var(--amp-pot); }
.live-amp-cast-scroll { overflow-x: auto; }
.live-amp-cast-chart { min-width: 900px; padding-right: 24px; }
.live-amp-spell-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); border-bottom: 1px solid var(--border); }
.live-amp-spell-label { display: flex; gap: 8px; align-items: center; padding: 8px 14px 8px 0; font-size: 11px; min-width: 0; }
.live-amp-spell-label span { overflow-wrap: anywhere; }
.live-amp-spell-label small { margin-left: auto; color: var(--text-secondary); }
.live-amp-spell-label img, .live-amp-cast-sequence img { width: 20px; height: 20px; border-radius: 3px; }
.live-amp-cast-lane { position: relative; background: linear-gradient(to right, transparent var(--amp-heart-start), rgba(241,122,114,.09) var(--amp-heart-start)); }
.live-amp-cast-lane::before { content: ''; position: absolute; left: var(--amp-heart-start); top: 0; bottom: 0; border-left: 1px solid var(--amp-accent); opacity: .7; }
.live-amp-cast-mark { position: absolute; width: 24px; height: 24px; transform: translateX(-50%); border: 1px solid var(--border); border-radius: 3px; background: var(--bg-page); display: flex; justify-content: center; align-items: center; color: var(--amp-accent); }
.live-amp-cast-mark img { width: 22px; height: 22px; border-radius: 2px; }
.live-amp-cast-mark:hover { z-index: 1; border-color: var(--amp-accent); }
.live-amp-cast-axis { padding-bottom: 12px; color: var(--text-secondary); font-size: 10px; }
.live-amp-cast-axis > div { position: relative; height: 14px; }
.live-amp-cast-axis > div > span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.live-amp-cast-axis .live-amp-cast-end { left: 100%; }
.live-amp-cast-sequence { margin-top: 18px; font-size: 11px; }
.live-amp-cast-sequence summary { cursor: pointer; color: var(--text-secondary); }
.live-amp-cast-sequence ol { list-style: none; padding: 0; margin: 12px 0 0; max-height: 260px; overflow-y: auto; }
.live-amp-cast-sequence li { display: flex; align-items: center; gap: 10px; min-height: 30px; border-bottom: 1px solid var(--border); }
.live-amp-cast-sequence time { width: 65px; color: var(--amp-accent); }
.live-amp-cast-target { margin-left: auto; color: var(--text-secondary); text-align: right; }
.heart-comparison { margin: 0 0 24px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; }
.heart-compare-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 14px; }
.heart-compare-toolbar label { display: flex; flex-direction: column; gap: 6px; color: var(--text-secondary); font-size: 10px; }
.heart-compare-toolbar .heart-compare-own-only { flex-direction: row; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.heart-comparison .heart-compare-own-only input { min-height: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--amp-pot); }
.heart-compare-picker { flex: 1; min-width: 220px; }
.heart-comparison select, .heart-comparison input, .heart-comparison button { min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary); background: var(--bg-card); font: inherit; max-width: 100%; }
.heart-comparison select { color: var(--text-primary); background: var(--bg-page); }
.heart-comparison button { cursor: pointer; }
.heart-comparison button:disabled { opacity: .45; cursor: default; }
.heart-comparison a { color: var(--amp-pot); }
.heart-compare-status { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); margin: 12px 0; }
.heart-compare-modes { display: flex; gap: 4px; }
.heart-compare-modes [aria-pressed="true"] { border-color: var(--amp-pot); color: var(--amp-pot); }
.heart-compare-chart { padding-top: 10px; }
.heart-compare-row { padding: 12px 0; }
.heart-compare-row .live-amp-spell-label > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.heart-compare-row .live-amp-spell-label strong { overflow-wrap: anywhere; }
.heart-compare-row .live-amp-spell-label span { color: var(--text-secondary); }
.heart-compare-row .heart-compare-player-kind { color: var(--amp-accent); font-size: 10px; }
.heart-compare-row.reference .heart-compare-player-kind { color: var(--amp-pot); }
.heart-compare-lane { position: relative; min-height: 38px; border-left: 2px solid var(--amp-accent); }
.heart-compare-lane.reference { border-color: var(--amp-pot); }
.heart-compare-exposure { position: absolute; top: 0; bottom: 0; background: rgba(241,122,114,.09); border-left: 1px solid var(--amp-accent); border-right: 1px solid var(--amp-accent); }
.reference .heart-compare-exposure { background: rgba(130,211,182,.09); border-color: var(--amp-pot); }
.heart-compare-unavailable { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(255,255,255,.08) 4px, rgba(255,255,255,.08) 5px); }
.heart-compare-no-casts { position: relative; display: block; padding: 12px; font-size: 10px; color: var(--text-secondary); }
@media (max-width: 900px) {
    .live-amp-selected-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
    .live-amp-selected-summary > div { padding-left: 10px; }
    .live-amp-name-col { width: 220px; }
    .live-amp-buff-col { width: 130px; }
}
.live-amp-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-secondary); font-size: 12px; }
.live-amp-loading span { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: #f17a72; border-radius: 50%; animation: live-spin .8s linear infinite; }
.live-amp-empty { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--text-secondary); }
.live-amp-empty strong { color: var(--text-primary); }

.live-phase-list { display: flex; flex-direction: column; gap: 9px; }
.live-phase-row { display: flex; align-items: center; gap: 8px; }
.live-phase-label { font-size: 11px; color: var(--text-secondary); min-width: 108px; white-space: nowrap; flex-shrink: 0; }
.live-phase-bar-wrap { flex: 1; background: rgba(255,255,255,0.06); border-radius: 3px; height: 8px; }
.live-phase-bar { height: 8px; border-radius: 3px; }
.live-phase-count { font-size: 12px; color: var(--text-primary); font-weight: 600; min-width: 60px; text-align: right; white-space: nowrap; flex-shrink: 0; }
/* Player risk */
.live-player-risk-list { display: flex; flex-direction: column; gap: 4px; }
.live-player-risk-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.live-player-risk-row:last-child { border-bottom: none; }
.live-player-risk-rank { font-size: 11px; font-weight: 700; color: var(--text-secondary); min-width: 16px; text-align: right; flex-shrink: 0; }
.live-player-risk-name { font-size: 13px; font-weight: 600; flex: 1.5; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.live-player-risk-total { font-size: 14px; font-weight: 800; color: var(--text-primary); min-width: 28px; text-align: right; flex-shrink: 0; }
.live-player-risk-avg { font-size: 11px; color: var(--text-secondary); min-width: 52px; flex-shrink: 0; }
.live-player-risk-cause { font-size: 11px; color: var(--text-secondary); flex: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Pull chip improvements ──────────────────────────────────────────────── */
.live-chip-row2 { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.live-chip-deaths { font-size: 9px; color: rgba(231,76,60,0.75); font-weight: 700; white-space: nowrap; }
.live-chip-badge {
    position: absolute; top: -4px; right: -4px;
    font-size: 9px; font-weight: 900; line-height: 1;
    height: 16px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid; padding: 0 4px;
}
.live-chip { position: relative; }
.live-chip-badge.kill      { background: rgba(46,204,113,0.9);  border-color: #2ecc71; color: #000; }
.live-chip-badge.closecall { background: rgba(243,156,18,0.9); border-color: #f39c12; color: #000; width: 16px; padding: 0; border-radius: 50%; }
.live-chip.chip-kill      { border-color: rgba(46,204,113,0.5)  !important; }
.live-chip.chip-closecall { border-color: rgba(243,156,18,0.55) !important; }
.live-chip.chip-best      { border-color: rgba(52,152,219,0.45) !important; }
.live-chip.compare        { border-color: rgba(155,89,182,0.65) !important; background: rgba(155,89,182,0.08); }

/* Kill indicator — replaces the skull icon everywhere */
.live-kill-badge {
    display: inline-block;
    font-size: 10px; font-weight: 900; letter-spacing: .03em;
    color: #000; background: #2ecc71;
    border-radius: 3px; padding: 1px 4px; line-height: 1.4;
    vertical-align: middle;
}
.live-chip.chip-kill      { border-color: rgba(46,204,113,0.5)  !important; }
.live-chip.chip-closecall { border-color: rgba(243,156,18,0.55) !important; }
.live-chip.chip-best      { border-color: rgba(52,152,219,0.45) !important; }
.live-chip.compare        { border-color: rgba(155,89,182,0.65) !important; background: rgba(155,89,182,0.08); }

/* ── Death Timeline (single pull) ────────────────────────────────────────── */
.live-dtl-wrap {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 12px; margin-bottom: 14px;
}
.live-dtl-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; justify-content: space-between; }
.live-dtl-header-right { display: flex; align-items: center; gap: 8px; }
.live-dtl-role-filters { display: flex; gap: 4px; }
.live-dtl-role-btn {
    font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 10px;
    border: 1px solid var(--rc, rgba(255,255,255,0.2));
    background: transparent; color: rgba(255,255,255,0.35);
    cursor: pointer; font-family: inherit; transition: background .12s, color .12s;
}
.live-dtl-role-btn.active {
    background: color-mix(in srgb, var(--rc) 18%, transparent);
    color: var(--rc);
}
.live-dtl-role-btn:hover { background: color-mix(in srgb, var(--rc) 10%, transparent); color: var(--rc); }
.live-dtl-role-legend { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--text-secondary); }
.live-dtl-role-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: 4px; flex-shrink: 0; }
.live-dtl-title  { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }
.live-dtl-svg-wrap { position: relative; overflow: hidden; }
.live-dtl-svg { width: 100%; height: 160px; display: block; }
.live-dtl-names { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.live-dtl-name {
    position: absolute;
    bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1;
    color: rgba(255,255,255,0.55);
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: bottom center;
    opacity: 0.95;
}
/* Name color matches role color */
.live-dtl-name[data-role="Tank"]   { color: #4a9eff; }
.live-dtl-name[data-role="Healer"] { color: #2ecc71; }
.live-dtl-name[data-role="DPS"]    { color: #e87070; }
.live-avalanche-badge {
    font-size: 11px; font-weight: 700; color: #e74c3c;
    background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.35);
    border-radius: 10px; padding: 1px 9px;
}

/* ── Compare pull feature ─────────────────────────────────────────────────── */
.live-compare-btn {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
    color: var(--text-secondary); cursor: pointer; font-family: inherit;
    transition: background .12s, color .12s, border-color .12s;
}
.live-compare-btn:hover { background: rgba(155,89,182,0.15); color: #9b59b6; border-color: rgba(155,89,182,0.4); }
.live-compare-btn.active { background: rgba(155,89,182,0.15); color: #9b59b6; border-color: rgba(155,89,182,0.4); }
.live-compare-panel {
    margin-top: 12px; padding: 12px 14px;
    background: rgba(155,89,182,0.07); border: 1px solid rgba(155,89,182,0.3);
    border-radius: 8px;
}
.live-compare-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.live-compare-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.live-compare-pct   { font-size: 12px; font-weight: 700; }
.live-compare-dur   { font-size: 12px; color: var(--text-secondary); }
.live-compare-clear { margin-left: auto; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 14px; padding: 0 4px; }
.live-compare-clear:hover { color: var(--text-primary); }
.live-compare-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.live-compare-row:last-child { margin-bottom: 0; }
.live-compare-lbl { font-size: 11px; font-weight: 700; white-space: nowrap; padding-top: 3px; min-width: 120px; }
.live-compare-lbl.red   { color: #e74c3c; }
.live-compare-lbl.green { color: #2ecc71; }
.live-compare-lbl.dim   { color: var(--text-secondary); }
.live-compare-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.live-cmp-chip {
    font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 9px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--text-primary);
}

/* ── Mechanic sparklines ─────────────────────────────────────────────────── */
.live-mech-row { flex-wrap: wrap; row-gap: 2px; }
.live-spark-row { display: flex; gap: 2px; flex-wrap: nowrap; width: 100%; margin-top: 3px; flex-basis: 100%; overflow: hidden; }
.live-spark-dot { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.live-spark-lbl { font-size: 9px; color: var(--text-secondary); margin-left: 4px; padding-top: 1px; flex-shrink: 0; }

/* ── WoW: Forever theme ──────────────────────────────────────────────────
   Applied via html[data-game="forever"] (set by main.js from data/guilds.json). Warm classic browns and
   Blizzard Forever gold (#f8b700) instead of the retail slate blue and pink-red accent. */
html[data-game="forever"] {
    --bg-dark: #170e09;
    --bg-card: #23170f;
    --bg-table: #2c1d12;
    --surface-2: #26190f;
    --bg-inset: #100906;
    --bg-hover: #3a2716;
    --surface-rgb: 35,23,15;
    --inset-rgb: 16,9,6;
    --raised-rgb: 44,29,18;
    --text-primary: #f4ead4;
    --text-secondary: #c4b08d;
    --text-muted: #9d8a6b;
    --accent: #f8b700;
    --accent-gold: #f8b700;
    --border: #3f2b1a;
    --forever-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
}
html[data-game="forever"] body:not(.profile-bg-active) {
    background: radial-gradient(ellipse 120% 60% at 50% 0%, #2b170b 0%, var(--bg-dark) 70%) fixed var(--bg-dark);
}
/* index.html ships the retail header, nav and tabs; keep them invisible on Forever until src/forever.js has replaced
   them and set html[data-ready] (main.js also sets it on startup errors so the error message shows). */
html[data-game="forever"]:not([data-ready]) .site-brand > div,
html[data-game="forever"]:not([data-ready]) .header-stats,
html[data-game="forever"]:not([data-ready]) .header-account-area,
html[data-game="forever"]:not([data-ready]) #siteNav > *,
html[data-game="forever"]:not([data-ready]) .container { visibility: hidden; }
html[data-game="forever"] .site-header {
    background: linear-gradient(180deg, #26150b 0%, #120a06 100%);
    border-bottom: 1px solid #5c3f1d;
    box-shadow: inset 0 -1px 0 rgba(248,183,0,0.18), 0 6px 24px rgba(0,0,0,0.45);
}
html[data-game="forever"] .site-header::before {
    background-image: radial-gradient(ellipse 40% 120% at 15% 50%, rgba(248,120,0,0.10), transparent 70%);
    background-size: auto;
}
html[data-game="forever"] .brand-badge {
    box-shadow: 0 0 18px rgba(248,183,0,0.28), 0 2px 8px rgba(0,0,0,0.6);
    border: 1px solid rgba(248,183,0,0.5);
}
html[data-game="forever"] .brand-name,
html[data-game="forever"] .section-title,
html[data-game="forever"] .loading-title,
html[data-game="forever"] .profile-char-name { font-family: var(--forever-serif); letter-spacing: 0.3px; }
html[data-game="forever"] .brand-name { color: #ffe9b0; text-shadow: 0 1px 0 #000, 0 0 14px rgba(248,183,0,0.25); }
html[data-game="forever"] .site-nav { border-bottom-color: #5c3f1d; }
html[data-game="forever"] .site-nav a:hover { border-bottom-color: rgba(248,183,0,0.45); }
html[data-game="forever"] .site-nav a.active {
    color: #211510; background: var(--accent-gold); border-bottom-color: var(--accent-gold);
}
html[data-game="forever"] tbody tr:hover { background: rgba(248,183,0,0.07); }
html[data-game="forever"] .table-wrapper,
html[data-game="forever"] .profile-slot { box-shadow: inset 0 1px 0 rgba(255,220,150,0.04); }
