:root {
  color-scheme: dark;
  --blue: #13bdf5;
  --blue-bright: #67ddff;
  --gold: #e9b84a;
  --ink: #030713;
  --muted: #91a0b7;
  --line: rgba(115, 178, 222, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #f5f9ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(3, 7, 19, .95), rgba(3, 7, 19, .97)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(80, 140, 190, .07) 80px),
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.6) .5px, transparent .5px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.ambient { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.ambient-one { width: 34rem; height: 34rem; right: 2%; top: 10%; background: rgba(0, 136, 255, .17); }
.ambient-two { width: 25rem; height: 25rem; left: -10%; bottom: -5%; background: rgba(18, 70, 180, .12); }

.nav, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }
.nav { min-height: 90px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.home-nav-actions { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; gap: 12px; align-items: center; color: white; text-decoration: none; font-weight: 900; letter-spacing: .2em; }
.home-brand-mark { display: block; width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(90, 155, 216, .22)); }
.realm { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; }
.realm > span:first-child { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #47e6a1; box-shadow: 0 0 10px #47e6a1; }
.realm > span:last-child { white-space: nowrap; }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; padding: 58px 0 42px; }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 18px; color: var(--blue-bright); font-size: .75rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(3.5rem, 7.5vw, 6.5rem); line-height: .91; letter-spacing: -.065em; text-transform: uppercase; }
h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(103, 221, 255, .75); text-shadow: 0 0 35px rgba(19, 189, 245, .17); }
.intro { max-width: 610px; margin: 28px 0; color: #a8b5c8; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.75; }
.intro strong { color: #eef8ff; }
.discord-button { display: inline-flex; gap: 12px; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 15px 22px; color: white; background: #5865f2; font: inherit; font-weight: 800; text-decoration: none; box-shadow: 0 12px 32px rgba(88, 101, 242, .2); cursor: pointer; transition: transform .2s, background .2s; }
.discord-button:hover { transform: translateY(-2px); background: #6874f5; }
.discord-button svg { width: 23px; fill: currentColor; }
.discord-invite-button { border-color: rgba(132, 147, 255, .3); background: rgba(88, 101, 242, .16); box-shadow: none; }
.discord-invite-button:hover { background: rgba(88, 101, 242, .28); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.application-button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(103, 221, 255, .28); border-radius: 6px; padding: 15px 22px; color: #dff9ff; background: rgba(19, 189, 245, .08); font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.application-button:hover { transform: translateY(-2px); border-color: rgba(103, 221, 255, .6); background: rgba(19, 189, 245, .15); }
.application-button > span { color: var(--blue-bright); }
.application-dialog { width: min(900px, calc(100% - 30px)); max-height: min(920px, calc(100dvh - 30px)); overflow-y: auto; border: 1px solid rgba(103, 221, 255, .24); border-radius: 18px; padding: 0; color: #fff; background: #111823; box-shadow: 0 35px 110px rgba(0, 0, 0, .72); }
.application-dialog::backdrop { background: rgba(3, 6, 10, .8); backdrop-filter: blur(10px); }
.application-modal { padding: clamp(22px, 4vw, 38px); }
.application-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(115, 178, 222, .14); }
.application-modal-header h2 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.5rem); text-transform: uppercase; }
.application-modal-header p:last-child { max-width: 590px; margin: 9px 0 0; color: #8495a9; font-size: .8rem; line-height: 1.6; }
.application-form { display: grid; gap: 20px; padding-top: 24px; }
.application-section-heading { display: flex; align-items: center; gap: 12px; }
.application-section-heading > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(103, 221, 255, .22); border-radius: 8px; color: var(--blue-bright); background: rgba(19, 189, 245, .07); font-size: .68rem; font-weight: 900; }
.application-section-heading > div { display: grid; gap: 2px; }
.application-section-heading strong { color: #e9f5ff; font-size: .85rem; }
.application-section-heading small { color: #718298; font-size: .68rem; }
.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.application-form label { display: grid; min-width: 0; gap: 7px; color: #8da0b6; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.application-form input, .application-form select, .application-form textarea { width: 100%; border: 1px solid rgba(115, 178, 222, .17); border-radius: 8px; outline: none; padding: 12px 13px; color: #eef9ff; background: #0c121b; font: inherit; font-size: .82rem; line-height: 1.5; text-transform: none; }
.application-form textarea { resize: vertical; min-height: 150px; }
.application-form input:focus, .application-form select:focus, .application-form textarea:focus { border-color: rgba(103, 221, 255, .55); box-shadow: 0 0 0 3px rgba(19, 189, 245, .08); }
.application-form select:disabled { opacity: .5; }
.application-message { position: relative; }
.application-message > small { position: absolute; right: 10px; bottom: 8px; color: #5f7186; font-size: .62rem; font-weight: 600; letter-spacing: 0; }
.application-message textarea { padding-bottom: 28px; }
.application-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.application-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.application-status { min-height: 20px; margin: 0; color: #d9bd7c; font-size: .74rem; line-height: 1.5; }
.application-status.success { color: #78d6a1; }
.application-status.error { color: #ff9898; }
.application-submit { flex: 0 0 auto; border: 0; border-radius: 7px; padding: 13px 19px; color: #061019; background: var(--blue-bright); font: inherit; font-size: .78rem; font-weight: 900; cursor: pointer; }
.application-submit:disabled { cursor: wait; opacity: .55; }
.application-button:focus-visible, .application-submit:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
@media (max-width: 650px) {
  .application-dialog { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .application-grid { grid-template-columns: 1fr; }
  .application-links { grid-template-columns: 1fr; }
  .application-submit-row { align-items: stretch; flex-direction: column; }
  .application-submit { width: 100%; }
}
.auth-message { width: fit-content; max-width: 100%; margin: 16px 0 0; padding: 10px 14px; border: 1px solid rgba(233, 184, 74, .25); border-radius: 5px; color: #efd28d; background: rgba(233, 184, 74, .08); font-size: .82rem; }
.logout-button { border: 0; padding: 8px 10px; color: #93a3ba; background: transparent; font: inherit; font-size: .75rem; cursor: pointer; }
.logout-button:hover { color: white; }

.dashboard-page { display: flex; min-height: 100vh; flex-direction: column; }
.dashboard-nav { z-index: 5; flex: 0 0 auto; }
.dashboard-actions { display: flex; align-items: center; gap: 9px; }
.role-preview-button { border: 1px solid rgba(193, 141, 255, .28); border-radius: 7px; padding: 10px 12px; color: #d8b7ff; background: rgba(139, 73, 221, .08); font: 800 .68rem ui-monospace, monospace; cursor: pointer; }
.role-preview-button:hover, .role-preview-button.active { color: white; background: rgba(139, 73, 221, .2); box-shadow: 0 0 20px rgba(139, 73, 221, .12); }
.role-preview-banner { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 14px; border-block: 1px solid rgba(193, 141, 255, .2); padding: 9px 20px; color: #e3caff; background: rgba(54, 20, 91, .82); font-size: .75rem; font-weight: 800; }
.role-preview-banner[hidden] { display: none; }
.role-preview-banner button { border: 1px solid rgba(255, 255, 255, .16); border-radius: 5px; padding: 6px 9px; color: white; background: rgba(255, 255, 255, .06); font: inherit; font-size: .66rem; cursor: pointer; }
.locale-toggle { border: 1px solid rgba(103, 221, 255, .18); border-radius: 7px; padding: 10px 11px; color: var(--blue-bright); background: rgba(19, 189, 245, .06); font: 800 .68rem ui-monospace, monospace; cursor: pointer; }
.locale-toggle:hover { color: white; background: rgba(19, 189, 245, .13); }
.locale-toggle:disabled { cursor: wait; opacity: .5; }
.profile-menu { position: relative; }
.profile-menu summary { display: flex; min-width: 220px; align-items: center; gap: 11px; padding: 7px 9px; border: 1px solid rgba(103, 221, 255, .15); border-radius: 8px; background: rgba(8, 20, 39, .72); cursor: pointer; list-style: none; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 7px; object-fit: cover; }
.profile-avatar-fallback { display: grid; place-items: center; color: var(--blue-bright); background: rgba(19, 189, 245, .15); font-weight: 900; }
.profile-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.profile-copy strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { color: var(--muted); font-size: .67rem; }
.profile-chevron { width: 8px; height: 8px; margin: 0 5px; transform: rotate(45deg); border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transition: transform .2s; }
.profile-menu[open] .profile-chevron { transform: rotate(225deg); }
.profile-dropdown { position: absolute; z-index: 10; top: calc(100% + 10px); right: 0; width: 310px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5, 13, 28, .98); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.profile-dropdown .eyebrow { margin-bottom: 12px; }
.profile-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 16px; padding: 4px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 7px; background: rgba(0, 0, 0, .18); }
.profile-tab { border: 0; border-radius: 4px; padding: 8px; color: #708198; background: transparent; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.profile-tab.active { color: #eaf9ff; background: rgba(19, 189, 245, .12); box-shadow: inset 0 0 0 1px rgba(103, 221, 255, .13); }
.profile-panel[hidden] { display: none; }
.profile-panel-title { margin: 0 0 10px; color: var(--blue-bright); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.profile-claim-status { margin: 0 0 14px; color: var(--muted); font-size: .76rem; }
.profile-claim-list { display: grid; max-height: 250px; gap: 7px; margin: 0; padding: 0 3px 14px 0; overflow-y: auto; list-style: none; }
.profile-claim-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 5px; background: rgba(255, 255, 255, .025); }
.profile-claim-list li > span { display: grid; min-width: 0; gap: 2px; }
.profile-claim-list strong { overflow: hidden; color: #dce9f7; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-claim-list small { color: #718299; font-size: .64rem; }
.profile-claim-list .profile-char-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.profile-char-button { border: 1px solid rgba(103, 221, 255, .2); border-radius: 4px; padding: 6px 8px; color: #dff7ff; background: rgba(19, 189, 245, .08); font: inherit; font-size: .6rem; font-weight: 800; cursor: pointer; }
.profile-char-button.spec { border-color: rgba(233, 184, 74, .2); color: #e2cb91; background: rgba(233, 184, 74, .06); }
.profile-char-button.claim-type.main { border-color: rgba(233, 184, 74, .28); color: #f0cf79; background: rgba(233, 184, 74, .1); }
.profile-char-button.claim-type.twink { border-color: rgba(134, 149, 171, .24); color: #aebed0; background: rgba(134, 149, 171, .07); }
.profile-char-button.claim-type.unset { border-color: rgba(255, 142, 92, .28); color: #ffb08b; background: rgba(255, 110, 55, .08); }
.profile-char-button:hover { background: rgba(19, 189, 245, .17); }
.profile-role-list { display: grid; max-height: 250px; gap: 7px; margin: 0; padding: 0 3px 14px 0; overflow-y: auto; list-style: none; }
.profile-role-list li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 5px; color: #dce9f7; background: rgba(255, 255, 255, .025); font-size: .82rem; }
.role-gem { width: 8px; height: 8px; flex: 0 0 8px; transform: rotate(45deg); border: 1px solid var(--blue-bright); background: rgba(19, 189, 245, .3); box-shadow: 0 0 9px rgba(19, 189, 245, .5); }
.profile-role-list .empty-role { justify-content: center; color: var(--muted); }
.profile-logout { width: 100%; border: 1px solid rgba(255, 255, 255, .1); border-radius: 5px; padding: 10px; color: #aab8ca; background: rgba(255, 255, 255, .035); font: inherit; font-size: .78rem; cursor: pointer; }
.profile-logout:hover { color: white; border-color: rgba(255, 255, 255, .2); }
.dashboard-error { margin: 0 0 12px; padding: 10px 11px; border: 1px solid rgba(233, 184, 74, .25); border-radius: 5px; color: #efd28d; background: rgba(233, 184, 74, .08); font-size: .78rem; }

.dashboard-shell { width: min(1180px, calc(100% - 48px)); flex: 1; display: grid; grid-template-columns: 250px 1fr; gap: 54px; padding: 48px 0 70px; }
.dashboard-sidebar { display: flex; flex-direction: column; gap: 9px; }
.sidebar-label { margin: 0 0 7px; color: #5f7189; font-size: .67rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.sidebar-button { display: flex; width: 100%; align-items: center; gap: 13px; border: 1px solid transparent; border-radius: 7px; padding: 11px; color: #8493a8; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.sidebar-button > span:last-child { display: grid; gap: 2px; font-size: .86rem; font-weight: 750; }
.sidebar-button small { color: #526277; font-size: .66rem; font-weight: 500; }
.sidebar-button:not(:disabled):hover { transform: translateX(3px); border-color: rgba(103, 221, 255, .16); color: white; background: rgba(19, 189, 245, .06); }
.sidebar-button.active { border-color: rgba(103, 221, 255, .2); color: white; background: linear-gradient(90deg, rgba(19, 189, 245, .12), rgba(19, 189, 245, .025)); }
.sidebar-button:disabled { cursor: not-allowed; opacity: .48; }
.sidebar-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(103, 221, 255, .15); border-radius: 6px; color: var(--blue-bright); background: rgba(19, 189, 245, .06); font: 800 .68rem ui-monospace, monospace; }
.dashboard-overview { align-self: start; max-width: 700px; padding-top: 22px; }
.dashboard-overview h1 { margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.7rem); }
.dashboard-overview h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(103, 221, 255, .7); }
.dashboard-overview h1 .dashboard-title-prefix { display: inline; color: inherit; -webkit-text-stroke: 0; }
.dashboard-overview > p:not(.eyebrow) { max-width: 570px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.dashboard-primary { margin-top: 16px; border: 1px solid rgba(103, 221, 255, .24); border-radius: 6px; padding: 13px 17px; color: #eaf9ff; background: rgba(19, 189, 245, .11); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.dashboard-primary:hover { background: rgba(19, 189, 245, .18); }
.dashboard-primary:disabled { cursor: wait; opacity: .55; }

.sidebar-news-create { margin-top: 8px; border-color: rgba(233, 184, 74, .16); background: rgba(233, 184, 74, .035); }
.sidebar-news-create .sidebar-icon { border-color: rgba(233, 184, 74, .24); color: var(--gold); background: rgba(233, 184, 74, .07); }
.sidebar-admin { margin-top: auto; border-color: rgba(184, 111, 255, .18); background: rgba(126, 58, 190, .055); }
.sidebar-admin .sidebar-icon { border-color: rgba(184, 111, 255, .28); color: #c28aff; background: rgba(126, 58, 190, .12); }
.sidebar-admin-section { display: grid; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(115, 178, 222, .11); }
.sidebar-admin-section .sidebar-admin { margin-top: 0; }
.news-overview { width: 100%; max-width: none; padding-top: 0; }
.news-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.news-overview .news-heading h1 { margin-bottom: 0; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.news-archive { display: grid; min-width: min(300px, 42%); gap: 7px; padding-bottom: 5px; }
.news-archive > span { color: #6f8199; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.news-archive select { width: 100%; border: 1px solid rgba(103, 221, 255, .18); border-radius: 6px; outline: 0; padding: 11px 35px 11px 12px; color: #dcecff; background: #081426; font: inherit; font-size: .72rem; cursor: pointer; }
.news-archive select:focus { border-color: rgba(103, 221, 255, .45); }
.news-status { margin: 0; padding: 26px; border: 1px dashed rgba(103, 221, 255, .18); border-radius: 10px; color: #74869e; background: rgba(7, 17, 34, .62); text-align: center; }
.news-post { position: relative; overflow: hidden; border: 1px solid rgba(103, 221, 255, .2); border-radius: 11px; background: linear-gradient(135deg, rgba(13, 32, 57, .94), rgba(5, 13, 28, .96)); box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.news-post::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--blue-bright), rgba(19, 189, 245, .1)); box-shadow: 0 0 22px rgba(19, 189, 245, .5); }
.news-post > header { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 25px 28px 20px; border-bottom: 1px solid rgba(115, 178, 222, .13); }
.news-kicker { margin: 0 0 8px; color: var(--blue-bright); font: 800 .64rem ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.news-post h2 { margin: 0; color: #f2f8ff; font-size: clamp(1.25rem, 3vw, 1.8rem); line-height: 1.2; }
.news-post-actions { display: flex; align-items: center; gap: 10px; }
.news-post time { flex: 0 0 auto; border: 1px solid rgba(233, 184, 74, .18); border-radius: 999px; padding: 7px 10px; color: #d9bd7c; background: rgba(233, 184, 74, .06); font: 700 .65rem ui-monospace, monospace; }
.news-content { min-height: 130px; margin: 0; padding: 25px 28px 32px; color: #adbed1; font-size: .94rem; line-height: 1.8; overflow-wrap: anywhere; }
.news-content > :first-child { margin-top: 0; }
.news-content > :last-child { margin-bottom: 0; }
.news-content p { margin: 0 0 1em; }
.news-content h2, .news-content h3, .news-content h4 { margin: 1.2em 0 .45em; color: #e7f5ff; line-height: 1.3; }
.news-content h2 { font-size: 1.35rem; }
.news-content h3 { font-size: 1.15rem; }
.news-content h4 { font-size: 1rem; }
.news-content ul, .news-content ol { margin: .5em 0 1em; padding-left: 1.6em; }
.news-content li { margin: .25em 0; padding-left: .2em; }
.news-content blockquote { margin: .8em 0; border-left: 3px solid rgba(19, 189, 245, .55); padding: .25em 0 .25em 1em; color: #c3d5e7; background: linear-gradient(90deg, rgba(19, 189, 245, .06), transparent); }
.news-content a { color: var(--blue-bright); text-decoration-color: rgba(19, 189, 245, .45); text-underline-offset: 3px; }
.news-content code { border: 1px solid rgba(103, 221, 255, .12); border-radius: 4px; padding: .12em .35em; color: #d7f4ff; background: rgba(0, 0, 0, .26); font: .9em ui-monospace, monospace; }
.news-content pre { overflow-x: auto; margin: .8em 0; border: 1px solid rgba(103, 221, 255, .12); border-radius: 7px; padding: 14px; background: rgba(0, 0, 0, .28); }
.news-content pre code { border: 0; padding: 0; background: transparent; }
.news-content img, .news-editor-field .ql-editor img { display: block; width: auto; max-width: 100%; max-height: 720px; margin: 1em auto; border-radius: 9px; object-fit: contain; }
.news-content.is-plain-text { white-space: pre-wrap; }
.news-post > footer { display: block; width: auto; margin: 0; padding: 13px 28px; border-top: 1px solid rgba(115, 178, 222, .1); color: #687b93; background: rgba(0, 0, 0, .13); font-size: .66rem; letter-spacing: .05em; text-transform: none; }
.news-post > footer strong { margin-left: 4px; color: #a7bdd1; }
.news-delete-button { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid rgba(255, 84, 84, .5); border-radius: 50%; padding: 0; color: #ff6868; background: rgba(205, 35, 35, .12); font: 700 1.25rem/1 sans-serif; cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.news-delete-button:hover { transform: scale(1.06); border-color: #ff6868; color: white; background: rgba(205, 35, 35, .65); }
.news-delete-button:disabled { cursor: wait; opacity: .55; }
.news-delete-button[hidden] { display: none; }
.news-edit-button { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid rgba(103, 221, 255, .3); border-radius: 50%; padding: 0; color: var(--blue-bright); background: rgba(19, 189, 245, .08); font: 700 1rem/1 sans-serif; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.news-edit-button:hover { transform: scale(1.06); border-color: rgba(103, 221, 255, .7); background: rgba(19, 189, 245, .18); }
.news-edit-button[hidden] { display: none; }
.news-editor-dialog { width: min(920px, calc(100% - 30px)); }
.news-form { display: grid; gap: 18px; padding-top: 24px; }
.news-form label { display: grid; gap: 8px; color: #8194aa; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-form input, .news-form textarea { width: 100%; resize: vertical; border: 1px solid rgba(103, 221, 255, .16); border-radius: 7px; outline: 0; padding: 13px 14px; color: #edf8ff; background: rgba(0, 0, 0, .2); font: inherit; font-size: .85rem; line-height: 1.6; text-transform: none; }
.news-form input:focus, .news-form textarea:focus { border-color: rgba(103, 221, 255, .42); box-shadow: 0 0 0 3px rgba(19, 189, 245, .06); }
.news-editor-field { display: grid; }
.news-editor-label { margin-bottom: 8px; color: #8194aa; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-editor-field:focus-within .ql-toolbar.ql-snow, .news-editor-field:focus-within .ql-container.ql-snow { border-color: rgba(103, 221, 255, .42); }
.news-editor-field .ql-toolbar.ql-snow { display: flex; flex-wrap: wrap; gap: 3px; border: 1px solid rgba(103, 221, 255, .18); border-radius: 8px 8px 0 0; padding: 9px 10px; background: rgba(10, 25, 46, .92); font-family: inherit; }
.news-editor-field .ql-toolbar.ql-snow .ql-formats { margin-right: 8px; }
.news-editor-field .ql-toolbar.ql-snow button, .news-editor-field .ql-toolbar.ql-snow .ql-picker-label { border-radius: 4px; }
.news-editor-field .ql-toolbar.ql-snow button:hover, .news-editor-field .ql-toolbar.ql-snow button:focus-visible, .news-editor-field .ql-toolbar.ql-snow .ql-picker-label:hover { background: rgba(19, 189, 245, .1); }
.news-editor-field .ql-snow .ql-stroke { stroke: #8298ae; }
.news-editor-field .ql-snow .ql-fill { fill: #8298ae; }
.news-editor-field .ql-snow .ql-picker { color: #8298ae; }
.news-editor-field .ql-snow button:hover .ql-stroke, .news-editor-field .ql-snow button.ql-active .ql-stroke, .news-editor-field .ql-snow .ql-picker-label:hover .ql-stroke, .news-editor-field .ql-snow .ql-picker-label.ql-active .ql-stroke { stroke: var(--blue-bright); }
.news-editor-field .ql-snow button:hover .ql-fill, .news-editor-field .ql-snow button.ql-active .ql-fill { fill: var(--blue-bright); }
.news-editor-field .ql-snow .ql-picker-options { border-color: rgba(103, 221, 255, .2); color: #aebfd1; background: #0a1729; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.news-editor-field .ql-container.ql-snow { min-height: 250px; border: 1px solid rgba(103, 221, 255, .18); border-top: 0; border-radius: 0 0 8px 8px; color: #dceaf7; background: rgba(0, 0, 0, .18); font-family: inherit; font-size: .9rem; }
.news-editor-field .ql-editor { min-height: 250px; padding: 18px; line-height: 1.7; }
.news-editor-field .ql-editor.ql-blank::before { left: 18px; right: 18px; color: #4f657d; font-style: normal; }
.news-editor-field .ql-snow .ql-tooltip { border-color: rgba(103, 221, 255, .25); color: #aebfd1; background: #0a1729; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.news-editor-field .ql-snow .ql-tooltip input[type="text"] { border-color: rgba(103, 221, 255, .2); color: white; background: rgba(0, 0, 0, .2); }
.news-editor-footer { display: flex; justify-content: space-between; gap: 16px; padding: 8px 3px 0; color: #526982; font-size: .62rem; }
.news-character-count { flex: 0 0 auto; font-family: ui-monospace, monospace; }
.news-character-count.is-near-limit { color: #e0ac5d; }
.news-form-status { min-height: 18px; margin: -5px 0 -10px; color: #d9bd7c; font-size: .72rem; }
.news-form .dashboard-primary { justify-self: end; margin-top: 0; }
.news-media-editor.is-dragging { border-color: rgba(103, 221, 255, .65); background: rgba(19, 189, 245, .09); box-shadow: 0 0 0 4px rgba(19, 189, 245, .06); }
.news-media-gallery { margin: 0 28px 28px; }
.news-delete-dialog { width: min(520px, calc(100% - 30px)); }
.news-delete-copy { margin: 24px 0; color: #9caec2; font-size: .86rem; line-height: 1.7; }
.news-delete-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.news-delete-actions button { border-radius: 6px; padding: 11px 15px; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.news-delete-cancel { border: 1px solid rgba(255, 255, 255, .12); color: #aebdd0; background: rgba(255, 255, 255, .04); }
.news-delete-confirm { border: 1px solid rgba(255, 84, 84, .45); color: #ffe8e8; background: rgba(205, 35, 35, .45); }
.news-delete-confirm:hover { border-color: #ff6868; background: rgba(205, 35, 35, .7); }
.news-delete-confirm:disabled { cursor: wait; opacity: .55; }
.permission-admin-dialog { width: min(920px, calc(100% - 30px)); }
.permission-admin-copy { margin: 22px 0 8px; color: #8799af; font-size: .82rem; line-height: 1.65; }
.permission-admin-status { min-height: 20px; margin: 0 0 14px; color: #d9bd7c; font-size: .74rem; }
.permission-form { display: grid; gap: 22px; }
.permission-grid { display: grid; gap: 18px; }
.permission-group { --permission-accent: var(--blue-bright); display: grid; gap: 13px; border: 1px solid color-mix(in srgb, var(--permission-accent) 18%, transparent); border-radius: 13px; padding: 16px; background: color-mix(in srgb, var(--permission-accent) 3%, rgba(8, 14, 23, .82)); }
.permission-grid .permission-group > h3 { display: flex; align-items: center; gap: 9px; margin: 0; padding-bottom: 11px; border-bottom: 1px solid color-mix(in srgb, var(--permission-accent) 20%, transparent); color: var(--permission-accent); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.permission-group > h3::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 2px; background: var(--permission-accent); box-shadow: 0 0 12px color-mix(in srgb, var(--permission-accent) 55%, transparent); }
.permission-group[data-permission-group="permissionGroupGeneral"] { --permission-accent: #9baabd; }
.permission-group[data-permission-group="permissionGroupCharacters"] { --permission-accent: #65d8f5; }
.permission-group[data-permission-group="permissionGroupGear"] { --permission-accent: #62e0b8; }
.permission-group[data-permission-group="permissionGroupRoster"] { --permission-accent: #6ba7ff; }
.permission-group[data-permission-group="permissionGroupGuides"] { --permission-accent: #aa8cff; }
.permission-group[data-permission-group="permissionGroupNews"] { --permission-accent: #e9b84a; }
.permission-group[data-permission-group="permissionGroupCalendar"] { --permission-accent: #62cbe8; }
.permission-group[data-permission-group="permissionGroupPerformance"] { --permission-accent: #ff9b6a; }
.permission-group[data-permission-group="permissionGroupAdministration"] { --permission-accent: #d9bd7c; }
.permission-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.permission-group-grid > section { min-width: 0; border: 1px solid rgba(115, 178, 222, .14); border-radius: 9px; padding: 17px; background: rgba(255, 255, 255, .022); }
.permission-grid h3 { margin: 0 0 6px; color: #e5f3ff; font-size: .88rem; }
.permission-grid section > p { min-height: 34px; margin: 0 0 13px; color: #71849b; font-size: .68rem; line-height: 1.5; }
.permission-role-list { display: grid; max-height: 180px; gap: 6px; overflow-y: auto; padding-right: 3px; }
.permission-role-list label { position: relative; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(115, 178, 222, .11); border-radius: 5px; padding: 8px 9px; color: #9fb0c4; background: rgba(0, 0, 0, .13); font-size: .72rem; cursor: pointer; }
.permission-role-list label:hover { border-color: rgba(103, 221, 255, .25); color: #ddecfa; }
.permission-role-list input { position: absolute; opacity: 0; pointer-events: none; }
.permission-checkbox { display: grid; width: 15px; height: 15px; flex: 0 0 15px; place-items: center; border: 1px solid rgba(103, 221, 255, .28); border-radius: 3px; background: rgba(19, 189, 245, .04); }
.permission-role-list input:checked + .permission-checkbox { border-color: var(--blue-bright); background: rgba(19, 189, 245, .3); box-shadow: 0 0 10px rgba(19, 189, 245, .18); }
.permission-role-list input:checked + .permission-checkbox::after { content: "✓"; color: white; font-size: .65rem; font-weight: 900; }
.permission-role-list input:focus-visible + .permission-checkbox { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.permission-empty { margin: 0; color: #71849b; font-size: .7rem; }
.permission-save { justify-self: end; margin-top: 0; }
.guild-dialog.permission-admin-dialog { width: min(1120px, calc(100% - 30px)); height: min(900px, calc(100dvh - 30px)); max-height: none; overflow: hidden; }
.guild-modal.admin-board-modal { display: flex; height: 100%; min-height: 0; flex-direction: column; padding: 28px 32px 32px; }
.admin-board-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 20px 0; padding: 5px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 12px; background: #0c121b; }
.admin-board-tabs button { display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; padding: 12px 14px; color: #8192a6; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.admin-board-tabs button > span:first-child { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid rgba(115, 178, 222, .13); border-radius: 7px; color: #687b92; font-size: .62rem; font-weight: 900; }
.admin-board-tabs button > span:last-child { display: grid; min-width: 0; gap: 2px; }
.admin-board-tabs strong { color: #aebdcd; font-size: .78rem; }
.admin-board-tabs small { color: #627389; font-size: .62rem; }
.admin-board-tabs button.active { border-color: rgba(103, 221, 255, .2); background: rgba(19, 189, 245, .08); }
.admin-board-tabs button.active > span:first-child { border-color: rgba(103, 221, 255, .35); color: var(--blue-bright); background: rgba(19, 189, 245, .09); }
.admin-board-tabs button.active strong { color: #e8f8ff; }
.admin-board-panel { min-height: 0; overflow-y: auto; padding: 2px 5px 4px 1px; }
.admin-board-panel[hidden] { display: none; }
.admin-panel-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 11px; padding: 19px 20px; background: linear-gradient(135deg, rgba(19, 189, 245, .055), rgba(255, 255, 255, .018)); }
.admin-panel-intro h3 { margin: 2px 0 7px; color: #edf8ff; font-size: 1.05rem; }
.admin-panel-intro p:last-child { max-width: 700px; margin: 0; color: #7f91a6; font-size: .75rem; line-height: 1.6; }
.admin-status-badge { flex: 0 0 auto; border: 1px solid rgba(255, 184, 91, .25); border-radius: 999px; padding: 7px 10px; color: #d7aa6c; background: rgba(255, 184, 91, .07); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.admin-status-badge.configured { border-color: rgba(75, 218, 144, .28); color: #77d9a5; background: rgba(75, 218, 144, .07); }
.application-settings-form { display: grid; gap: 18px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 11px; padding: 22px; background: rgba(255, 255, 255, .018); }
.application-settings-form > label, .permission-role-selector { display: grid; gap: 8px; color: #8fa1b6; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.application-settings-form select, .permission-role-selector select { width: 100%; border: 1px solid rgba(103, 221, 255, .2); border-radius: 8px; outline: 0; padding: 13px 14px; color: #edf8ff; background: #0c121b; font: inherit; font-size: .78rem; text-transform: none; }
.application-settings-form select:focus, .permission-role-selector select:focus { border-color: rgba(103, 221, 255, .5); box-shadow: 0 0 0 3px rgba(19, 189, 245, .07); }
.application-settings-form label small, .permission-role-selector small { color: #63758b; font-size: .64rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.application-settings-form .admin-toggle-option { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 11px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 9px; padding: 14px; background: #0c121b; cursor: pointer; }
.admin-toggle-option > input { position: absolute; opacity: 0; pointer-events: none; }
.admin-toggle-option input:checked + .permission-switch { border-color: rgba(103, 221, 255, .58); background: rgba(19, 189, 245, .25); }
.admin-toggle-option input:checked + .permission-switch::after { transform: translateX(16px); background: #dffaff; }
.admin-toggle-option input:focus-visible + .permission-switch { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.admin-toggle-option > span:last-child { display: grid; gap: 3px; }
.admin-toggle-option strong { color: #dcecf8; font-size: .76rem; letter-spacing: 0; text-transform: none; }
.recruitment-needs-editor { display: grid; gap: 12px; border-top: 1px solid rgba(115, 178, 222, .12); padding-top: 18px; }
.recruitment-needs-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.recruitment-needs-editor > header > div { display: grid; gap: 3px; }
.recruitment-needs-editor > header strong { color: #e8f5ff; font-size: .8rem; }
.recruitment-needs-editor > header small { color: #708198; font-size: .66rem; }
.recruitment-needs-editor > header button { border: 1px solid rgba(103, 221, 255, .22); border-radius: 7px; padding: 9px 11px; color: #cef5ff; background: rgba(19, 189, 245, .07); font: inherit; font-size: .68rem; font-weight: 800; cursor: pointer; }
.recruitment-needs-editor > header button:hover { background: rgba(19, 189, 245, .14); }
.recruitment-needs-editor > header button:disabled { cursor: not-allowed; opacity: .45; }
.recruitment-needs-editor-list { display: grid; gap: 9px; }
.recruitment-needs-editor-list > article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 9px; padding: 12px; background: #0c121b; }
.recruitment-need-index { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(103, 221, 255, .17); border-radius: 7px; color: #6bcce7; font: 800 .62rem ui-monospace, monospace; }
.recruitment-need-fields { display: grid; grid-template-columns: 1fr 1fr .7fr minmax(180px, 1.4fr); gap: 9px; }
.recruitment-need-fields label { display: grid; min-width: 0; gap: 5px; color: #71849a; font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.recruitment-need-fields select, .recruitment-need-fields input { width: 100%; min-width: 0; border: 1px solid rgba(115, 178, 222, .14); border-radius: 6px; outline: 0; padding: 9px 10px; color: #dcecf8; background: #080e16; font: inherit; font-size: .68rem; text-transform: none; }
.recruitment-need-fields select:focus, .recruitment-need-fields input:focus { border-color: rgba(103, 221, 255, .46); }
.recruitment-need-remove { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255, 100, 100, .25); border-radius: 50%; padding: 0; color: #e88989; background: rgba(180, 40, 40, .08); font: 400 1.1rem/1 sans-serif; cursor: pointer; }
.recruitment-need-remove:hover { color: white; background: rgba(180, 40, 40, .28); }
.recruitment-needs-empty { margin: 0; border: 1px dashed rgba(115, 178, 222, .14); border-radius: 8px; padding: 16px; color: #65768b; font-size: .68rem; text-align: center; }
.admin-panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-panel-actions .permission-admin-status { margin: 0; }
.admin-panel-actions .dashboard-primary { flex: 0 0 auto; }
.automatic-voice-settings-form { display: grid; gap: 18px; }
.automatic-voice-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 11px; padding: 16px 18px; background: rgba(255, 255, 255, .018); }
.automatic-voice-toolbar > div { display: grid; gap: 4px; }
.automatic-voice-toolbar strong { color: #e8f5ff; font-size: .8rem; }
.automatic-voice-toolbar small { color: #708198; font-size: .66rem; }
.automatic-voice-toolbar button { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(103, 221, 255, .25); border-radius: 8px; padding: 9px 12px; color: #d8f8ff; background: rgba(19, 189, 245, .08); font: inherit; font-size: .68rem; font-weight: 800; cursor: pointer; }
.automatic-voice-toolbar button > span:first-child { font-size: 1rem; line-height: .7; }
.automatic-voice-toolbar button:hover { background: rgba(19, 189, 245, .15); }
.automatic-voice-toolbar button:disabled { cursor: not-allowed; opacity: .45; }
.automatic-voice-list { display: grid; gap: 12px; }
.automatic-voice-list > article { display: grid; gap: 16px; border: 1px solid rgba(115, 178, 222, .13); border-radius: 11px; padding: 17px 18px; background: #0c121b; }
.automatic-voice-list > article > header { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(115, 178, 222, .1); padding-bottom: 13px; }
.automatic-voice-list > article > header > strong { min-width: 0; overflow: hidden; color: #e7f5ff; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.automatic-voice-index { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid rgba(103, 221, 255, .18); border-radius: 7px; color: #6bcce7; font: 800 .62rem ui-monospace, monospace; }
.automatic-voice-card-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.automatic-voice-enabled { display: flex; align-items: center; gap: 7px; color: #8799ad; font-size: .65rem; font-weight: 800; cursor: pointer; }
.automatic-voice-enabled input { position: absolute; opacity: 0; pointer-events: none; }
.automatic-voice-switch { position: relative; width: 34px; height: 20px; border: 1px solid rgba(115, 178, 222, .24); border-radius: 999px; background: #080e16; }
.automatic-voice-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #64758a; transition: transform .2s, background .2s; }
.automatic-voice-enabled input:checked + .automatic-voice-switch { border-color: rgba(103, 221, 255, .58); background: rgba(19, 189, 245, .25); }
.automatic-voice-enabled input:checked + .automatic-voice-switch::after { transform: translateX(14px); background: #dffaff; }
.automatic-voice-enabled input:focus-visible + .automatic-voice-switch { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.automatic-voice-remove { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255, 100, 100, .25); border-radius: 50%; padding: 0; color: #e88989; background: rgba(180, 40, 40, .08); font: 400 1.1rem/1 sans-serif; cursor: pointer; }
.automatic-voice-remove:hover { color: white; background: rgba(180, 40, 40, .28); }
.automatic-voice-fields { display: grid; grid-template-columns: 1fr 1fr 1.35fr .7fr; gap: 11px; }
.automatic-voice-fields > label { display: grid; min-width: 0; align-content: start; gap: 7px; color: #71849a; font-size: .6rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.automatic-voice-fields select, .automatic-voice-fields input, .automatic-voice-fields textarea { width: 100%; min-width: 0; border: 1px solid rgba(115, 178, 222, .15); border-radius: 7px; outline: 0; padding: 10px 11px; color: #e2f0fa; background: #080e16; font: inherit; font-size: .7rem; line-height: 1.4; text-transform: none; }
.automatic-voice-fields textarea { resize: vertical; }
.automatic-voice-fields select:focus, .automatic-voice-fields input:focus, .automatic-voice-fields textarea:focus { border-color: rgba(103, 221, 255, .48); box-shadow: 0 0 0 3px rgba(19, 189, 245, .06); }
.automatic-voice-fields label small { color: #617287; font-size: .6rem; font-weight: 500; letter-spacing: 0; line-height: 1.45; text-transform: none; }
.automatic-voice-random-field { grid-column: 1 / -1; }
.automatic-voice-random-field[hidden] { display: none; }
.welcome-settings-form { display: grid; gap: 18px; }
.welcome-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.welcome-settings-form label { display: grid; min-width: 0; gap: 8px; color: #8fa1b6; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.welcome-settings-form select, .welcome-settings-form textarea { width: 100%; min-width: 0; border: 1px solid rgba(103, 221, 255, .2); border-radius: 8px; outline: 0; padding: 13px 14px; color: #edf8ff; background: #0c121b; font: inherit; font-size: .78rem; line-height: 1.55; text-transform: none; }
.welcome-settings-form textarea { resize: vertical; }
.welcome-settings-form select:focus, .welcome-settings-form textarea:focus { border-color: rgba(103, 221, 255, .5); box-shadow: 0 0 0 3px rgba(19, 189, 245, .07); }
.welcome-settings-form label small { color: #63758b; font-size: .64rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.welcome-message-field { border: 1px solid rgba(115, 178, 222, .12); border-radius: 11px; padding: 18px; background: rgba(255, 255, 255, .018); }
.welcome-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.welcome-options > label { position: relative; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(115, 178, 222, .13); border-radius: 9px; padding: 15px 16px; background: rgba(255, 255, 255, .02); cursor: pointer; }
.welcome-options input { position: absolute; opacity: 0; pointer-events: none; }
.welcome-options label > span:last-child { display: grid; min-width: 0; gap: 4px; text-transform: none; }
.welcome-options strong { color: #e5f3ff; font-size: .76rem; }
.welcome-options input:checked + .permission-switch { border-color: rgba(103, 221, 255, .58); background: rgba(19, 189, 245, .25); }
.welcome-options input:checked + .permission-switch::after { transform: translateX(16px); background: #dffaff; }
.welcome-options input:focus-visible + .permission-switch { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.welcome-image-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); align-items: center; gap: 18px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 11px; padding: 18px; background: rgba(255, 255, 255, .018); }
.welcome-logo-preview { display: grid; width: 100%; max-width: 560px; justify-self: center; gap: 8px; margin: 0; text-align: center; }
.welcome-card-preview { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid rgba(103, 221, 255, .25); border-radius: 12px; background: radial-gradient(circle at 16% 50%, rgba(19, 189, 245, .2), transparent 28%), linear-gradient(135deg, #071522, #050a12 70%); box-shadow: inset 0 3px #13bdf5; text-align: left; }
.welcome-card-preview::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3, 8, 17, .82), rgba(7, 16, 27, .7), rgba(7, 16, 27, .88)); pointer-events: none; }
.welcome-card-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.welcome-card-preview.custom-background .welcome-card-background { opacity: .62; }
.welcome-card-avatar { position: absolute; z-index: 2; top: 34%; left: 6%; display: grid; width: 20%; aspect-ratio: 1; place-items: center; border: 4px solid #dffaff; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #13bdf5, #17457c); box-shadow: 0 0 0 8px rgba(19, 189, 245, .13); font-size: clamp(1.8rem, 6vw, 3.4rem); font-weight: 900; }
.welcome-card-preview-text { position: absolute; z-index: 2; top: 21%; right: 8%; left: 32%; display: grid; gap: 2px; color: #fff; }
.welcome-card-preview-text small { color: #68ddff; font-size: clamp(.4rem, 1.2vw, .7rem); font-weight: 900; letter-spacing: .25em; }
.welcome-card-preview-text strong { border-bottom: 3px solid #13bdf5; padding-bottom: 5px; font-size: clamp(.9rem, 3vw, 1.6rem); letter-spacing: .15em; }
.welcome-card-preview-text b { margin-top: 7px; overflow: hidden; font-size: clamp(1.1rem, 4vw, 2rem); text-overflow: ellipsis; white-space: nowrap; }
.welcome-card-preview-text p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: #dce9f5; font-size: clamp(.48rem, 1.4vw, .78rem); line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.welcome-card-mark { position: absolute; z-index: 2; top: 7%; right: 4%; width: 8%; height: auto; }
.welcome-logo-preview figcaption { color: #63758b; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.welcome-image-actions { display: grid; gap: 9px; }
.welcome-image-actions button { border: 1px solid rgba(103, 221, 255, .22); border-radius: 8px; padding: 10px 12px; color: #d8f8ff; background: rgba(19, 189, 245, .08); font: inherit; font-size: .68rem; font-weight: 800; cursor: pointer; }
.welcome-image-actions button:hover { background: rgba(19, 189, 245, .15); }
.welcome-image-actions button:disabled { cursor: wait; opacity: .5; }
.welcome-image-actions small { color: #63758b; font-size: .62rem; line-height: 1.5; }
.permission-role-selector { position: sticky; z-index: 2; top: -2px; border: 1px solid rgba(103, 221, 255, .16); border-radius: 10px; padding: 14px; background: rgba(12, 18, 27, .97); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.permission-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.permission-toggle-card { position: relative; display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(115, 178, 222, .13); border-radius: 9px; padding: 15px 16px; background: rgba(255, 255, 255, .02); cursor: pointer; }
.permission-toggle-card:hover { border-color: rgba(103, 221, 255, .27); background: rgba(19, 189, 245, .035); }
.permission-toggle-card > span:first-child { min-width: 0; }
.permission-toggle-card h3 { margin: 0 0 5px; color: #e5f3ff; font-size: .8rem; }
.permission-toggle-card p { min-height: 0 !important; margin: 0 !important; color: #71849b; font-size: .65rem; line-height: 1.45; }
.permission-toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.permission-switch { position: relative; width: 38px; height: 22px; flex: 0 0 38px; border: 1px solid rgba(115, 178, 222, .24); border-radius: 999px; background: #080e16; transition: border-color .2s, background .2s; }
.permission-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #64758a; transition: transform .2s, background .2s; }
.permission-toggle-card input:checked + .permission-switch { border-color: rgba(103, 221, 255, .58); background: rgba(19, 189, 245, .25); }
.permission-toggle-card input:checked + .permission-switch::after { transform: translateX(16px); background: #dffaff; }
.permission-toggle-card input:focus-visible + .permission-switch { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
@media (max-width: 720px) {
  .guild-dialog.permission-admin-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .guild-modal.admin-board-modal { padding: 20px 16px; }
  .permission-group-grid { grid-template-columns: 1fr; }
  .admin-board-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-board-tabs button { padding: 10px; }
  .admin-board-tabs button > span:first-child, .admin-board-tabs small { display: none; }
  .admin-panel-intro, .admin-panel-actions { align-items: stretch; flex-direction: column; }
  .admin-panel-actions .dashboard-primary { width: 100%; }
  .recruitment-needs-editor > header { align-items: stretch; flex-direction: column; }
  .recruitment-need-fields { grid-template-columns: 1fr; }
  .recruitment-needs-editor-list > article { align-items: start; }
  .automatic-voice-toolbar { align-items: stretch; flex-direction: column; }
  .automatic-voice-toolbar button { justify-content: center; }
  .automatic-voice-fields { grid-template-columns: 1fr; }
  .automatic-voice-random-field { grid-column: auto; }
  .welcome-settings-grid, .welcome-options, .welcome-image-editor { grid-template-columns: 1fr; }
}
.audit-log-dialog { width: min(1180px, calc(100% - 30px)); height: min(850px, calc(100vh - 30px)); max-height: none; overflow: hidden; }
.audit-log-modal { display: flex; height: 100%; min-height: 0; flex-direction: column; padding: 28px 32px; }
.audit-log-filters { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; align-items: end; gap: 10px; margin: 12px 0 16px; }
.audit-log-filters label { display: grid; min-width: 0; gap: 7px; color: #8495aa; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.audit-log-filters input, .audit-log-filters select { min-width: 0; height: 40px; border: 1px solid rgba(103, 221, 255, .16); border-radius: 7px; outline: 0; padding: 0 11px; color: #dcecff; background: #0a1628; color-scheme: dark; font: inherit; font-size: .72rem; }
.audit-log-filters input:focus, .audit-log-filters select:focus { border-color: rgba(103, 221, 255, .45); }
.audit-log-filters .audit-search { grid-column: span 2; }
.audit-log-filters .dashboard-primary { height: 40px; margin: 0; padding-block: 0; }
.audit-log-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 24px; }
.audit-log-summary .permission-admin-status { margin: 0; }
.audit-log-summary > span { color: #70839a; font: 700 .67rem ui-monospace, monospace; }
.audit-log-table-wrap { min-height: 0; flex: 1; overflow: auto; border: 1px solid rgba(115, 178, 222, .12); border-radius: 9px; background: rgba(0, 0, 0, .13); }
.audit-log-table { width: 100%; min-width: 850px; border-collapse: collapse; text-align: left; }
.audit-log-table th { position: sticky; z-index: 1; top: 0; padding: 12px 14px; border-bottom: 1px solid rgba(103, 221, 255, .16); color: #71859c; background: #0b1523; font-size: .61rem; letter-spacing: .1em; text-transform: uppercase; }
.audit-log-table td { padding: 12px 14px; border-bottom: 1px solid rgba(115, 178, 222, .08); color: #a9bbcd; font-size: .72rem; vertical-align: top; }
.audit-log-table tr:last-child td { border-bottom: 0; }
.audit-log-table tbody tr:hover { background: rgba(103, 221, 255, .025); }
.audit-log-table td strong, .audit-log-table td small { display: block; }
.audit-log-table td strong { color: #dce8f4; font-weight: 700; }
.audit-log-table td small { max-width: 280px; margin-top: 4px; overflow: hidden; color: #667a91; font: .61rem ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.audit-log-table .audit-log-empty { padding: 50px 20px; color: #70839a; text-align: center; }
.audit-outcome { display: inline-block !important; border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px; font-size: .62rem; }
.audit-outcome-success { color: #68dba4 !important; background: rgba(38, 165, 105, .08); }
.audit-outcome-denied { color: #e8bb66 !important; background: rgba(206, 146, 38, .08); }
.audit-outcome-error { color: #ff8585 !important; background: rgba(210, 54, 54, .09); }
.audit-log-table td small.audit-detail { max-width: 420px; overflow: visible; color: #77b9d8; line-height: 1.45; text-overflow: clip; white-space: normal; }
.audit-log-table td small.audit-error-detail { max-width: 360px; overflow: visible; color: #d89999; line-height: 1.45; text-overflow: clip; white-space: normal; }
.audit-log-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 14px; color: #73869c; font: 700 .66rem ui-monospace, monospace; }
.audit-log-pagination button { border: 1px solid rgba(103, 221, 255, .14); border-radius: 6px; padding: 8px 11px; color: #a9bbce; background: rgba(19, 189, 245, .04); font: inherit; cursor: pointer; }
.audit-log-pagination button:hover:not(:disabled) { color: white; background: rgba(19, 189, 245, .1); }
.audit-log-pagination button:disabled { cursor: default; opacity: .38; }
.role-preview-dialog { width: min(560px, calc(100% - 30px)); }
.role-preview-copy { margin: 22px 0; color: #8799af; font-size: .82rem; line-height: 1.65; }
.role-preview-select { display: grid; gap: 8px; color: #aab9ca; font-size: .72rem; font-weight: 800; }
.role-preview-select select { width: 100%; border: 1px solid rgba(103, 221, 255, .2); border-radius: 7px; padding: 12px; color: white; background: #0a1628; font: inherit; }
.role-preview-status { min-height: 20px; margin: 12px 0 0; color: #d9bd7c; font-size: .72rem; }
.role-preview-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.role-preview-actions button { border-radius: 6px; padding: 11px 15px; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.guild-dialog.calendar-dialog { width: calc(100vw - 20px); max-width: 1680px; height: calc(100vh - 20px); max-height: none; overflow: hidden; }
.calendar-dialog .calendar-modal { display: flex; height: 100%; min-height: 0; flex-direction: column; padding: 26px 30px 30px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px 0 12px; }
.calendar-toolbar > div { display: grid; gap: 4px; }
.calendar-toolbar strong { color: #dbe7f1; font-size: .82rem; }
.calendar-toolbar p { margin: 0; color: #77869a; font-size: .72rem; }
.calendar-toolbar .dashboard-primary { margin: 0; }
.calendar-status { min-height: 16px; margin: 0 0 5px; color: #d9bd7c; font-size: .68rem; }
.calendar-stage { min-height: 0; flex: 1; overflow: hidden; }
.apexium-calendar { height: 100%; min-height: 0; border: 1px solid rgba(103, 221, 255, .14); border-radius: 10px; padding: 14px; color: #dce9f6; background: rgba(1, 8, 20, .52); }
.apexium-calendar button { border: 1px solid rgba(103, 221, 255, .2) !important; border-radius: 6px !important; color: #dcecff !important; background: #0b1b2e !important; box-shadow: none !important; }
.apexium-calendar button:hover { border-color: rgba(103, 221, 255, .45) !important; background: #102842 !important; }
.apexium-calendar a { color: inherit; text-decoration: none; }
.apexium-calendar table, .apexium-calendar td, .apexium-calendar th { border-color: rgba(103, 221, 255, .12) !important; }
.apexium-calendar th { color: #7e94ac; background: rgba(19, 189, 245, .035); }
.apexium-calendar td { background: rgba(255, 255, 255, .012); }
.apexium-calendar [role="button"] { cursor: pointer; }
.guild-dialog.calendar-editor-dialog { width: min(780px, calc(100% - 30px)); max-height: min(920px, calc(100vh - 30px)); }
.calendar-form { display: grid; gap: 14px; padding-top: 20px; }
.calendar-form-intro { margin: 0; color: #77879a; font-size: .75rem; line-height: 1.6; }
.calendar-form-section { display: grid; gap: 15px; border: 1px solid rgba(103, 221, 255, .12); border-radius: 10px; padding: 18px; background: rgba(255, 255, 255, .018); }
.calendar-form-section > header { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid rgba(103, 221, 255, .09); }
.calendar-form-section > header > span { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid rgba(103, 221, 255, .18); border-radius: 6px; color: var(--blue-bright); background: rgba(19, 189, 245, .06); font: 800 .59rem ui-monospace, monospace; }
.calendar-form-section > header > div { display: grid; gap: 3px; }
.calendar-form-section > header strong { color: #e6eef6; font-size: .78rem; }
.calendar-form-section > header small { color: #66768a; font-size: .62rem; font-weight: 500; }
.calendar-form label { display: grid; gap: 7px; color: #9fb0c4; font-size: .72rem; font-weight: 800; }
.calendar-form input:not(.numInput), .calendar-form select, .calendar-form textarea { width: 100%; border: 1px solid rgba(103, 221, 255, .17); border-radius: 7px; outline: 0; padding: 12px 13px; color: white; background: rgba(0, 0, 0, .2); font: inherit; font-size: .82rem; }
.calendar-form input:not(.numInput):focus, .calendar-form select:focus, .calendar-form textarea:focus { border-color: rgba(103, 221, 255, .48); box-shadow: 0 0 0 3px rgba(19, 189, 245, .06); }
.calendar-form input:not(.numInput):disabled, .calendar-form select:disabled, .calendar-form textarea:disabled { color: #c0cfde; opacity: .85; }
.calendar-form select { cursor: pointer; color-scheme: dark; background-color: #081525; }
.calendar-form select option { color: #eaf5ff; background: #081525; }
.calendar-form textarea { resize: vertical; line-height: 1.55; }
.calendar-date-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.calendar-field { display: grid; align-content: start; gap: 7px; border: 1px solid rgba(103, 221, 255, .08); border-radius: 9px; padding: 12px; background: rgba(2, 12, 25, .38); }
.calendar-field > label { color: #9fb0c4; font-size: .72rem; font-weight: 800; }
.calendar-field > small { color: #607289; font-size: .58rem; font-weight: 600; line-height: 1.35; }
.calendar-field > .flatpickr-wrapper { display: block; width: 100%; }
.calendar-picker-control { position: relative; width: 100%; }
.calendar-picker-control input { padding-right: 46px; font-variant-numeric: tabular-nums; letter-spacing: .035em; cursor: pointer; }
.calendar-picker-control > button { position: absolute; z-index: 2; top: 50%; right: 5px; display: grid; width: 35px; height: 35px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; padding: 0; color: #82dff5; background: rgba(19, 189, 245, .09); cursor: pointer; }
.calendar-picker-control > button:hover { color: white; background: rgba(19, 189, 245, .18); }
.calendar-picker-control > button:disabled { opacity: .4; cursor: default; }
.calendar-picker-control svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calendar-field .flatpickr-calendar { z-index: 12; border: 1px solid rgba(103, 221, 255, .22); border-radius: 9px; background: #0a1422; box-shadow: 0 20px 48px rgba(0, 0, 0, .48); }
.calendar-field .flatpickr-calendar.arrowTop::before { border-bottom-color: rgba(103, 221, 255, .22); }
.calendar-field .flatpickr-calendar.arrowTop::after { border-bottom-color: #0a1422; }
.calendar-field .flatpickr-day.selected, .calendar-field .flatpickr-day.selected:hover { border-color: #43c9ec; background: #168db4; }
.calendar-field .flatpickr-time input:hover, .calendar-field .flatpickr-time .flatpickr-am-pm:hover { background: rgba(19, 189, 245, .09); }
.calendar-duration-shortcuts { display: flex; align-items: center; gap: 7px; }
.calendar-duration-shortcuts > span { margin-right: 3px; color: #718197; font-size: .65rem; font-weight: 800; }
.calendar-duration-shortcuts button { border: 1px solid rgba(103, 221, 255, .14); border-radius: 999px; padding: 7px 11px; color: #8494a8; background: rgba(19, 189, 245, .035); font: inherit; font-size: .65rem; font-weight: 800; cursor: pointer; }
.calendar-duration-shortcuts button:hover, .calendar-duration-shortcuts button.active { border-color: rgba(103, 221, 255, .4); color: #e5f8ff; background: rgba(19, 189, 245, .12); }
.calendar-event-meta { min-height: 16px; margin: 0; color: #68778a; font-size: .66rem; }
.calendar-form-status { min-height: 18px; margin: 0; color: #d9bd7c; font-size: .72rem; }
.calendar-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.calendar-form-actions .dashboard-primary { margin: 0; }
.calendar-cancel-event { border: 1px solid rgba(151, 169, 193, .16); border-radius: 6px; padding: 11px 15px; color: #aeb9c7; background: rgba(255, 255, 255, .035); font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.calendar-cancel-event:hover { color: white; background: rgba(255, 255, 255, .075); }
.calendar-delete-event { margin-right: auto; border: 1px solid rgba(255, 84, 84, .35); border-radius: 6px; padding: 11px 15px; color: #ffcaca; background: rgba(205, 35, 35, .18); font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.calendar-delete-event:hover { background: rgba(205, 35, 35, .35); }

.guild-dialog { width: min(920px, calc(100% - 30px)); max-height: min(780px, calc(100vh - 40px)); border: 1px solid rgba(103, 221, 255, .2); border-radius: 12px; padding: 0; color: white; background: #07101f; box-shadow: 0 35px 100px rgba(0, 0, 0, .7); }
.guild-dialog::backdrop { background: rgba(0, 3, 10, .78); backdrop-filter: blur(7px); }
.guild-modal { padding: clamp(24px, 4vw, 40px); }
.guild-modal-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.guild-modal-header h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.25rem); text-transform: uppercase; }
.guild-modal-header .eyebrow { margin-bottom: 5px; }
.modal-close { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; color: #8fa0b5; background: rgba(255, 255, 255, .03); font: 300 1.4rem/1 sans-serif; cursor: pointer; }
.modal-close:hover { color: white; }
.member-search { display: flex; align-items: center; gap: 12px; margin: 24px 0 15px; border: 1px solid rgba(103, 221, 255, .16); border-radius: 7px; padding: 0 15px; background: rgba(0, 0, 0, .17); }
.member-search input { width: 100%; border: 0; outline: 0; padding: 14px 0; color: white; background: transparent; font: inherit; }
.member-search input::placeholder { color: #596a80; }
.search-icon { width: 13px; height: 13px; border: 2px solid #698097; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -2px; transform: rotate(45deg); background: #698097; }
.guild-meta { display: flex; justify-content: space-between; gap: 20px; color: #8090a5; font-size: .74rem; }
.guild-meta > span:first-child { color: var(--blue-bright); font-weight: 800; }
.member-status { margin: 18px 0 10px; color: #667991; font-size: .75rem; }
.member-list { display: grid; max-height: 430px; gap: 7px; margin: 0; padding: 0 5px 0 0; overflow-y: auto; list-style: none; }
.member-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px; border: 1px solid rgba(115, 178, 222, .1); border-radius: 6px; background: rgba(255, 255, 255, .022); }
.member-list li > div { display: grid; gap: 3px; min-width: 0; }
.member-list .member-identity { grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; }
.member-copy { display: grid; min-width: 0; gap: 3px; }
.member-portrait { display: grid; width: 46px; height: 46px; place-items: center; overflow: hidden; border: 1px solid rgba(103, 221, 255, .16); border-radius: 7px; color: var(--blue-bright) !important; background: linear-gradient(145deg, rgba(19, 189, 245, .13), rgba(255, 255, 255, .025)); font-size: .8rem !important; font-weight: 900; box-shadow: inset 0 0 18px rgba(19, 189, 245, .045); }
.member-portrait.loaded { border-color: rgba(233, 184, 74, .25); }
.member-portrait img { width: 100%; height: 100%; object-fit: cover; }
.member-list strong { overflow: hidden; color: #e8f5ff; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.member-list li > div span { color: #718299; font-size: .7rem; }
.member-rank { flex: 0 0 auto; border: 1px solid rgba(233, 184, 74, .18); border-radius: 999px; padding: 5px 9px; color: #d8bb78; background: rgba(233, 184, 74, .06); font-size: .68rem; }
.member-list .member-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.claim-button { min-width: 76px; border: 1px solid rgba(103, 221, 255, .24); border-radius: 5px; padding: 7px 10px; color: #dff7ff; background: rgba(19, 189, 245, .1); font: inherit; font-size: .68rem; font-weight: 800; cursor: pointer; }
.claim-button:hover:not(:disabled) { border-color: rgba(103, 221, 255, .45); background: rgba(19, 189, 245, .18); }
.claim-button.owned { border-color: rgba(233, 184, 74, .22); color: #e1c987; background: rgba(233, 184, 74, .07); }
.claim-button.info { border-color: rgba(126, 203, 255, .2); color: #b9e9ff; background: rgba(59, 151, 211, .07); }
.claim-button.moderator { border-color: rgba(255, 125, 125, .3); color: #ffb4b4; background: rgba(210, 55, 55, .09); }
.claim-button.moderator:hover:not(:disabled) { border-color: rgba(255, 125, 125, .55); background: rgba(210, 55, 55, .17); }
.claim-button:disabled { border-color: rgba(255, 255, 255, .08); color: #5f6d80; background: rgba(255, 255, 255, .025); cursor: not-allowed; }

.guide-overview { min-width: 0; }
.guide-workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.guide-workspace-heading h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.guide-workspace-heading p:last-child { max-width: 650px; margin: 14px 0 0; color: #8190a3; font-size: .82rem; line-height: 1.7; }
.guide-workspace-heading .dashboard-primary { flex: 0 0 auto; margin: 0; }
.guide-channel-settings { margin-bottom: 18px; border: 1px solid rgba(103, 221, 255, .13); border-radius: 12px; background: rgba(19, 189, 245, .025); }
.guide-channel-settings > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; color: #dbeaf5; cursor: pointer; }
.guide-channel-settings > summary > span:first-child { display: grid; gap: 4px; }
.guide-channel-settings summary small { color: #6f8196; font-size: .64rem; font-weight: 500; }
.raid-guide-settings { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 10px; border-top: 1px solid rgba(103, 221, 255, .1); padding: 15px 17px; }
.raid-guide-settings label { display: grid; gap: 7px; color: #8496aa; font-size: .65rem; font-weight: 800; }
.raid-guide-settings select { border: 1px solid rgba(103, 221, 255, .18); border-radius: 7px; padding: 11px; color: white; background: #0b131e; font: inherit; }
.raid-guide-settings button { border: 1px solid rgba(103, 221, 255, .24); border-radius: 7px; padding: 11px 14px; color: #dff8ff; background: rgba(19, 189, 245, .1); font: inherit; font-size: .68rem; font-weight: 850; cursor: pointer; }
.raid-guide-settings p { grid-column: 1 / -1; min-height: 16px; margin: 0; color: #7990a7; font-size: .65rem; }
.guide-workspace-status { min-height: 18px; margin: 0 0 10px; color: #73869a; font-size: .7rem; }
.guide-library { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 560px; gap: 16px; }
.guide-library[hidden], .guide-editor-panel[hidden] { display: none; }
.guide-entry-list { display: grid; align-content: start; gap: 8px; }
.guide-entry-card { position: relative; display: grid; gap: 6px; overflow: hidden; border: 1px solid rgba(115, 178, 222, .12); border-radius: 11px; padding: 16px 52px 16px 16px; color: inherit; background: rgba(255, 255, 255, .022); font: inherit; text-align: left; cursor: pointer; }
.guide-entry-card::before { position: absolute; inset: 0 auto 0 0; width: 2px; content: ""; background: transparent; }
.guide-entry-card:hover { border-color: rgba(103, 221, 255, .25); background: rgba(19, 189, 245, .045); }
.guide-entry-card.active { border-color: rgba(103, 221, 255, .35); background: linear-gradient(115deg, rgba(19, 189, 245, .1), rgba(255, 255, 255, .025)); }
.guide-entry-card.active::before { background: var(--blue-bright); box-shadow: 0 0 14px rgba(101, 216, 245, .45); }
.guide-entry-card h4 { margin: 0; overflow: hidden; color: #eaf6ff; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.guide-entry-card p { margin: 0; overflow: hidden; color: #63768c; font-size: .58rem; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.guide-entry-card > span { position: absolute; top: 14px; right: 12px; border-radius: 999px; padding: 4px 7px; color: #7da4b8; background: rgba(103, 221, 255, .07); font-size: .52rem; font-weight: 850; }
.guide-reader { min-width: 0; border: 1px solid rgba(115, 178, 222, .13); border-radius: 15px; padding: clamp(22px, 4vw, 40px); background: radial-gradient(circle at 100% 0, rgba(19, 189, 245, .055), transparent 30%), rgba(9, 16, 25, .82); box-shadow: 0 20px 55px rgba(0, 0, 0, .18); }
.guide-reader > header { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.guide-reader-heading { min-width: 0; flex: 1; }
.guide-reader h2 { margin: 5px 0 7px; color: #f2f8fc; font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.08; }
.guide-reader-heading > p:not(.card-kicker) { margin: 0; color: #687a8f; font-size: .65rem; }
.guide-reader-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.guide-reader-links a { display: inline-block; max-width: min(100%, 280px); overflow: hidden; border: 1px solid rgba(103, 221, 255, .17); border-radius: 999px; padding: 6px 10px; color: #9ee6f8; background: rgba(19, 189, 245, .055); font-size: .6rem; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.guide-reader-links a:hover { border-color: rgba(103, 221, 255, .35); color: #e3faff; background: rgba(19, 189, 245, .11); }
.guide-reader-actions { display: flex; max-width: 38%; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.guide-reader-actions button { border: 1px solid rgba(103, 221, 255, .22); border-radius: 7px; padding: 9px 12px; color: #b6efff; background: rgba(19, 189, 245, .08); font: inherit; font-size: .65rem; font-weight: 850; cursor: pointer; }
.guide-reader-actions button:not(.guide-edit-button) { border-color: rgba(255, 125, 125, .22); color: #ffaaaa; background: rgba(210, 55, 55, .06); }
.guide-reader-content { padding: 24px 2px 4px; color: #b3c0cd; font-size: .85rem; line-height: 1.75; }
.guide-reader-content h2, .guide-reader-content h3 { color: #eaf5fc; }
.guide-reader-content a { color: var(--blue-bright); }
.guide-empty-state { display: grid; min-height: 470px; place-items: center; align-content: center; gap: 8px; text-align: center; }
.guide-empty-state > span { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid rgba(103, 221, 255, .2); border-radius: 15px; color: var(--blue-bright); background: rgba(19, 189, 245, .07); font-size: .78rem; font-weight: 900; }
.guide-empty-state strong { margin-top: 8px; color: #dcebf5; }
.guide-empty-state p { max-width: 360px; margin: 0; color: #687a8e; font-size: .72rem; line-height: 1.6; }
.guide-media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.guide-media-gallery figure { min-width: 0; overflow: hidden; margin: 0; border: 1px solid rgba(115, 178, 222, .14); border-radius: 11px; background: #070d15; }
.guide-media-gallery figure:has(video) { grid-column: 1 / -1; }
.guide-media-gallery img, .guide-media-gallery video { display: block; width: 100%; max-height: 560px; object-fit: contain; background: #03070c; }
.guide-media-gallery figcaption { overflow: hidden; padding: 9px 11px; color: #718398; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.guide-editor-panel { margin-bottom: 20px; border: 1px solid rgba(103, 221, 255, .19); border-radius: 15px; padding: clamp(20px, 3vw, 32px); background: rgba(9, 17, 27, .95); box-shadow: 0 20px 60px rgba(0, 0, 0, .22); }
.guide-editor-panel > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.guide-editor-panel h2 { margin: 4px 0 0; color: #edf7fd; }
.guide-editor-panel > header > button { border: 1px solid rgba(255, 255, 255, .12); border-radius: 7px; padding: 8px 11px; color: #9eabba; background: transparent; font: inherit; font-size: .66rem; cursor: pointer; }
.guide-editor-form { display: grid; gap: 18px; }
.guide-title-field { display: grid; width: min(100%, 620px); align-content: start; gap: 8px; color: #8798ab; font-size: .66rem; font-weight: 800; }
.guide-title-field input, .guide-link-row input { box-sizing: border-box; width: 100%; min-width: 0; height: 44px; border: 1px solid rgba(103, 221, 255, .17); border-radius: 8px; outline: 0; padding: 0 13px; color: #edf8ff; background: #0a121c; font: inherit; font-size: .72rem; }
.guide-title-field input:focus, .guide-link-row input:focus { border-color: rgba(103, 221, 255, .45); box-shadow: 0 0 0 3px rgba(19, 189, 245, .055); }
.guide-link-editor { overflow: hidden; border: 1px solid rgba(115, 178, 222, .12); border-radius: 10px; background: rgba(255, 255, 255, .018); }
.guide-link-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 15px; }
.guide-link-editor > header > div { display: grid; gap: 4px; }
.guide-link-editor header strong { color: #dfeef8; font-size: .75rem; }
.guide-link-editor header small { color: #66798e; font-size: .6rem; }
.guide-link-editor header button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; border: 1px solid rgba(103, 221, 255, .22); border-radius: 7px; padding: 7px 10px 7px 8px; color: #b7efff; background: rgba(19, 189, 245, .07); font: inherit; font-size: .62rem; font-weight: 800; cursor: pointer; }
.guide-link-editor header button > span:first-child { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 5px; color: #051018; background: var(--blue-bright); font-size: .9rem; line-height: 1; }
.guide-link-editor header button:disabled { cursor: not-allowed; opacity: .45; }
.guide-link-list { display: grid; gap: 8px; border-top: 1px solid rgba(115, 178, 222, .1); padding: 12px 15px 15px; }
.guide-link-list:empty { display: none; }
.guide-link-row { display: grid; grid-template-columns: minmax(150px, .42fr) minmax(240px, 1fr) 38px; align-items: center; gap: 8px; }
.guide-link-row > button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 125, 125, .22); border-radius: 7px; color: #ffb6b6; background: rgba(210, 55, 55, .055); font: inherit; font-size: 1rem; cursor: pointer; }
.guide-rich-editor .ql-editor { min-height: 250px; }
.guide-media-editor { border: 1px solid rgba(115, 178, 222, .12); border-radius: 10px; padding: 15px; background: rgba(255, 255, 255, .018); }
.guide-media-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guide-media-editor > header > div:first-child { display: grid; gap: 4px; }
.guide-media-editor header strong { color: #dfeef8; font-size: .75rem; }
.guide-media-editor header small { color: #66798e; font-size: .6rem; }
.guide-media-editor header div:last-child { display: flex; gap: 7px; }
.guide-media-editor header button { border: 1px solid rgba(103, 221, 255, .2); border-radius: 6px; padding: 8px 10px; color: #aeeeff; background: rgba(19, 189, 245, .06); font: inherit; font-size: .62rem; font-weight: 800; cursor: pointer; }
.guide-media-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.guide-media-preview:empty { display: none; }
.guide-media-preview article { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(115, 178, 222, .13); border-radius: 8px; background: #070d15; }
.guide-media-preview img, .guide-media-preview video { display: block; width: 100%; height: 110px; object-fit: cover; }
.guide-media-preview article > span { display: block; overflow: hidden; padding: 7px 9px; color: #718398; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.guide-media-preview article > button { position: absolute; top: 5px; right: 5px; width: 25px; height: 25px; border: 1px solid rgba(255, 125, 125, .35); border-radius: 50%; color: #ffd0d0; background: rgba(25, 8, 10, .86); cursor: pointer; }
.guide-upload-status { min-height: 16px; margin: 9px 0 0; color: #7d91a6; font-size: .63rem; }
.guide-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guide-editor-actions p { margin: 0; }
.guide-editor-actions .dashboard-primary { margin: 0; }

.raid-dialog, .raid-roster-dialog { max-height: calc(100vh - 34px); border: 1px solid rgba(103, 221, 255, .2); border-radius: 12px; padding: 0; color: white; background: #07101f; box-shadow: 0 35px 100px rgba(0, 0, 0, .75); }
.raid-dialog { width: min(820px, calc(100% - 30px)); }
.raid-roster-dialog { width: min(1180px, calc(100% - 30px)); }
.raid-dialog::backdrop, .raid-roster-dialog::backdrop { background: rgba(0, 3, 10, .84); backdrop-filter: blur(8px); }
.raid-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding-top: 24px; }
.raid-menu button { display: grid; grid-template-columns: 44px 1fr; gap: 3px 12px; align-items: center; border: 1px solid rgba(103, 221, 255, .16); border-radius: 8px; padding: 18px; color: #dcecff; background: rgba(19, 189, 245, .045); font: inherit; text-align: left; cursor: pointer; }
.raid-menu button > span { grid-row: 1 / 3; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(103, 221, 255, .2); border-radius: 7px; color: var(--blue-bright); background: rgba(19, 189, 245, .08); font-weight: 900; }
.raid-menu button strong { font-size: .88rem; }
.raid-menu button small { color: #6d8097; font-size: .68rem; }
.raid-menu button:hover:not(:disabled) { border-color: rgba(103, 221, 255, .35); background: rgba(19, 189, 245, .1); }
.raid-menu button:disabled { cursor: not-allowed; opacity: .45; }
.raid-menu button[hidden] { display: none; }
.raid-planning-placeholder { display: grid; justify-items: center; gap: 8px; padding: 42px 20px 18px; text-align: center; }
.raid-planning-placeholder > span { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(103, 221, 255, .22); border-radius: 10px; color: var(--blue-bright); background: rgba(19, 189, 245, .08); font-weight: 900; box-shadow: 0 0 30px rgba(19, 189, 245, .1); }
.raid-planning-placeholder strong { margin-top: 7px; color: #dcecff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.raid-planning-placeholder p { max-width: 420px; margin: 0; color: #71849a; font-size: .74rem; line-height: 1.6; }
.raid-roster-modal { max-height: calc(100vh - 36px); padding: clamp(20px, 3vw, 34px); overflow-y: auto; }
.raid-roster-status { min-height: 20px; margin: 14px 0 5px; color: #7f93aa; font-size: .72rem; }
.raid-roster-updated { margin: -3px 0 9px; color: #596d84; font-size: .66rem; }
.raid-roster-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; padding-top: 6px; }
.raid-groups { display: grid; gap: 12px; }
.raid-group { min-height: 120px; border: 1px solid rgba(115, 178, 222, .12); border-radius: 8px; padding: 14px; background: rgba(255, 255, 255, .018); }
.raid-group > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.raid-group h3 { margin: 0; color: #cdddec; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.raid-group > header span { min-width: 26px; border-radius: 999px; padding: 4px 7px; color: #91a4b8; background: rgba(255, 255, 255, .05); font-size: .64rem; font-weight: 900; text-align: center; }
.raid-group.tank { border-left: 3px solid #4ea4e8; }
.raid-group.healer { border-left: 3px solid #51cf88; }
.raid-group.melee { border-left: 3px solid #d86f6f; }
.raid-group.ranged { border-left: 3px solid #b980e8; }
.raid-group.bench { border-left: 3px solid #8995a5; }
.raid-group.absence { border-color: rgba(233, 184, 74, .17); border-left: 3px solid #d7a94a; background: linear-gradient(90deg, rgba(144, 92, 31, .045), rgba(255, 255, 255, .012)); }
.raid-group.absence h3 { color: #dfc078; }
.raid-group.raid-drop-active { border-color: rgba(101, 216, 245, .65); background: rgba(53, 191, 231, .09); box-shadow: inset 0 0 0 1px rgba(101, 216, 245, .16), 0 0 24px rgba(53, 191, 231, .08); }
.raid-player-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.raid-player, .raid-candidate { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; border: 1px solid rgba(115, 178, 222, .11); border-radius: 6px; padding: 8px; background: rgba(4, 12, 25, .65); }
.raid-player[draggable="true"], .raid-candidate[draggable="true"] { cursor: grab; }
.raid-player.is-dragging, .raid-candidate.is-dragging { opacity: .42; cursor: grabbing; }
.raid-player img, .raid-candidate img, .raid-avatar-fallback { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; }
.raid-avatar-fallback { display: grid; place-items: center; color: var(--blue-bright); background: rgba(19, 189, 245, .12); font-size: .72rem; font-weight: 900; }
.raid-player strong, .raid-candidate strong { overflow: hidden; color: #dce9f6; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.raid-player-copy { display: grid; min-width: 0; gap: 2px; }
.raid-player-copy small { overflow: hidden; color: #63768c; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.raid-player.is-absent, .raid-candidate.is-absent { border-color: rgba(233, 184, 74, .25); background: linear-gradient(100deg, rgba(151, 91, 28, .11), rgba(4, 12, 25, .72)); }
.raid-player-copy .raid-player-absence-state { position: relative; width: fit-content; max-width: 100%; overflow: visible; border: 1px solid rgba(233, 184, 74, .2); border-radius: 999px; padding: 2px 6px; color: #e2c173; background: rgba(233, 184, 74, .055); font-size: .52rem; font-weight: 850; cursor: help; }
.raid-player .raid-player-absence-state::after { position: absolute; z-index: 20; bottom: calc(100% + 8px); left: 0; width: max-content; max-width: 250px; border: 1px solid rgba(233, 184, 74, .28); border-radius: 7px; padding: 8px 10px; color: #f4dfaa; background: #111923; box-shadow: 0 10px 28px rgba(0, 0, 0, .42); content: attr(data-tooltip); font-size: .62rem; font-weight: 700; line-height: 1.4; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .15s, transform .15s; white-space: normal; }
.raid-player .raid-player-absence-state:hover::after, .raid-player .raid-player-absence-state:focus-visible::after { opacity: 1; transform: translateY(0); }
.raid-player .raid-player-absence-state:focus-visible { outline: 2px solid rgba(233, 184, 74, .7); outline-offset: 2px; }
.raid-player > button { border: 0; padding: 4px; color: #6e8095; background: transparent; font-size: 1rem; cursor: pointer; }
.raid-player > button:hover { color: #ff9b9b; }
.raid-empty { grid-column: 1 / -1; margin: 8px 0; color: #586a80; font-size: .68rem; }
.raid-editor { position: sticky; top: 0; align-self: start; display: grid; gap: 12px; border: 1px solid rgba(103, 221, 255, .14); border-radius: 8px; padding: 14px; background: rgba(4, 12, 25, .72); }
.raid-editor[hidden] { display: none; }
.raid-editor summary { color: #dcecff; font-size: .75rem; font-weight: 850; cursor: pointer; }
.raid-editor details > p { margin: 0 0 10px; color: #61748b; font-size: .64rem; line-height: 1.5; }
.raid-search { margin: 12px 0 8px; }
.raid-search input { padding-block: 10px; font-size: .72rem; }
.raid-candidate-list { display: grid; max-height: 430px; gap: 6px; padding-right: 3px; overflow-y: auto; }
.raid-candidate-list.raid-drop-active { border-radius: 7px; outline: 1px dashed rgba(101, 216, 245, .55); outline-offset: 5px; background: rgba(53, 191, 231, .05); }
.raid-candidate-actions { display: flex; gap: 3px; }
.raid-candidate.is-unavailable { border-color: rgba(235, 180, 91, .16); background: rgba(235, 180, 91, .025); }
.raid-candidate-status { max-width: 105px; border: 1px solid rgba(235, 180, 91, .28); border-radius: 4px; padding: 4px 6px; color: #e7b96d; background: rgba(235, 180, 91, .07); font-size: .54rem; font-weight: 800; line-height: 1.25; text-align: center; }
.raid-candidate button { min-width: 25px; border: 1px solid rgba(103, 221, 255, .16); border-radius: 4px; padding: 4px; color: #9bdcf2; background: rgba(19, 189, 245, .06); font: inherit; font-size: .58rem; font-weight: 800; cursor: pointer; }
.raid-candidate button:hover { color: white; background: rgba(19, 189, 245, .15); }
.raid-candidate button.tank { border-color: rgba(78, 164, 232, .3); color: #84c7ff; background: rgba(78, 164, 232, .09); }
.raid-candidate button.healer { border-color: rgba(81, 207, 136, .3); color: #83e6ad; background: rgba(81, 207, 136, .09); }
.raid-candidate button.damage { border-color: rgba(216, 111, 111, .3); color: #f19a9a; background: rgba(216, 111, 111, .09); }
.raid-candidate button.melee { border-color: rgba(216, 111, 111, .3); color: #f19a9a; background: rgba(216, 111, 111, .09); }
.raid-candidate button.ranged { border-color: rgba(185, 128, 232, .3); color: #d1a9f2; background: rgba(185, 128, 232, .09); }
.raid-candidate button.bench { border-color: rgba(137, 149, 165, .3); color: #bbc3ce; background: rgba(137, 149, 165, .09); }
.raid-save { width: 100%; margin-top: 0; }
.raid-save:disabled { cursor: wait; opacity: .5; }
.raid-publish-panel { position: relative; display: grid; gap: 16px; margin-top: 20px; border: 1px solid rgba(233, 184, 74, .2); border-radius: 12px; padding: 20px; overflow: hidden; background: radial-gradient(circle at 92% 0, rgba(53, 191, 231, .09), transparent 32%), radial-gradient(circle at 0 100%, rgba(233, 184, 74, .07), transparent 31%), linear-gradient(135deg, rgba(14, 27, 39, .98), rgba(6, 18, 29, .98)); box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 18px 45px rgba(0, 0, 0, .18); }
.raid-publish-panel::before { position: absolute; top: 0; left: 20px; width: 86px; height: 2px; content: ""; background: linear-gradient(90deg, var(--gold), var(--blue-bright)); box-shadow: 0 0 18px rgba(101, 216, 245, .32); }
.raid-publish-panel[hidden] { display: none; }
.raid-publish-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.raid-publish-panel h3 { margin: 2px 0 0; color: #eef7fa; font-size: 1rem; letter-spacing: -.01em; }
.raid-publish-panel > header > p { max-width: 430px; margin: 0; color: #687c8f; font-size: .65rem; line-height: 1.5; text-align: right; }
.raid-publish-composer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: start; gap: 10px; }
.raid-message-field { display: grid; gap: 7px; color: #8193a6; font-size: .64rem; font-weight: 800; }
.raid-message-field textarea { width: 100%; min-height: 126px; resize: vertical; border: 1px solid rgba(101, 216, 245, .16); border-radius: 9px; outline: 0; padding: 12px 13px; color: #e2edf4; background: rgba(3, 12, 22, .62); font-family: inherit; font-size: .72rem; font-weight: 500; line-height: 1.55; transition: border-color .18s, box-shadow .18s, background .18s; }
.raid-message-field textarea::placeholder { color: #4f6277; }
.raid-message-field textarea:focus { border-color: rgba(101, 216, 245, .48); background: rgba(3, 12, 22, .78); box-shadow: 0 0 0 3px rgba(53, 191, 231, .065); }
.raid-message-field > small { display: flex; justify-content: space-between; gap: 12px; color: #566a7e; font-size: .55rem; font-weight: 650; }
.raid-publish-options { display: grid; min-width: 0; gap: 8px; }
.raid-config-accordion { min-width: 0; border: 1px solid rgba(233, 184, 74, .15); border-radius: 9px; background: rgba(3, 12, 22, .48); }
.raid-config-accordion summary { display: grid; min-height: 44px; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 9px; padding: 0 12px; color: #8193a6; font-size: .64rem; font-weight: 800; cursor: pointer; list-style: none; }
.raid-config-accordion summary::-webkit-details-marker { display: none; }
.raid-config-accordion summary::after { grid-column: 3; grid-row: 1; color: #d4b669; content: "+"; font-size: .9rem; text-align: center; }
.raid-config-accordion[open] summary::after { content: "−"; }
.raid-config-summary { display: flex; min-width: 0; max-width: 190px; justify-content: flex-end; gap: 4px; overflow: hidden; color: #e6c775; font-size: .55rem; white-space: nowrap; }
.raid-template-menu { display: grid; gap: 11px; border-top: 1px solid rgba(233, 184, 74, .1); padding: 12px; }
.raid-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.raid-template-grid label { display: grid; min-width: 0; gap: 5px; color: #62778b; font-size: .54rem; font-weight: 750; }
.raid-template-grid .raid-template-wide { grid-column: 1 / -1; }
.raid-template-grid input[type="text"] { width: 100%; height: 34px; min-width: 0; border: 1px solid rgba(101, 216, 245, .14); border-radius: 6px; outline: 0; padding: 0 9px; color: #dceaf2; background: rgba(2, 10, 18, .55); font: inherit; font-size: .62rem; font-weight: 650; }
.raid-template-grid input[type="text"]:focus { border-color: rgba(101, 216, 245, .42); }
.raid-template-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.raid-template-toggles label { display: inline-flex; min-height: 30px; align-items: center; gap: 6px; border: 1px solid rgba(101, 216, 245, .1); border-radius: 6px; padding: 5px 8px; color: #8b9cad; font-size: .55rem; font-weight: 750; }
.raid-template-toggles input[type="checkbox"] { width: 13px; height: 13px; margin: 0; accent-color: var(--gold); }
.raid-template-toggles .raid-template-color { margin-left: auto; }
.raid-template-color input { width: 25px; height: 20px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.raid-template-toggles button { min-height: 30px; border: 1px solid rgba(233, 184, 74, .18); border-radius: 6px; padding: 0 9px; color: #cdbb8b; background: rgba(233, 184, 74, .04); font: inherit; font-size: .54rem; font-weight: 800; cursor: pointer; }
.raid-template-toggles button:hover { color: white; background: rgba(233, 184, 74, .1); }
.raid-template-menu > p { margin: 0; color: #566a7e; font-size: .55rem; line-height: 1.45; }
.raid-mention-summary { border-radius: 999px; padding: 4px 7px; background: rgba(233, 184, 74, .08); }
.raid-mention-chip { overflow: hidden; max-width: 78px; text-overflow: ellipsis; }
.raid-mention-chip + .raid-mention-chip { padding-left: 5px; border-left: 1px solid rgba(233, 184, 74, .2); }
.raid-mention-menu { display: grid; gap: 8px; border-top: 1px solid rgba(233, 184, 74, .1); padding: 10px; }
.raid-mention-search { margin: 0; }
.raid-mention-search input { padding-block: 9px; font-size: .65rem; }
.raid-mention-list { display: grid; max-height: 205px; gap: 4px; padding-right: 2px; overflow-y: auto; }
.raid-mention-role { display: grid; grid-template-columns: 16px 12px minmax(0, 1fr); align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 7px; padding: 9px 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.raid-mention-role:hover { border-color: rgba(101, 216, 245, .12); background: rgba(53, 191, 231, .045); }
.raid-mention-role:has(input:checked) { border-color: rgba(233, 184, 74, .2); background: rgba(233, 184, 74, .055); }
.raid-mention-role input { width: 14px; height: 14px; margin: 0; accent-color: var(--gold); }
.raid-mention-role-color { width: 10px; height: 10px; border-radius: 50%; background: var(--raid-mention-role-color); box-shadow: 0 0 10px color-mix(in srgb, var(--raid-mention-role-color) 45%, transparent); }
.raid-mention-role strong { overflow: hidden; color: #dce8f1; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.raid-mention-menu > p, .raid-mention-empty { margin: 0; color: #566a7e; font-size: .55rem; line-height: 1.45; }
.raid-mention-empty { padding: 10px 5px; }
.raid-calendar-option { display: grid; gap: 12px; border: 1px solid rgba(101, 216, 245, .14); border-radius: 9px; padding: 12px; background: rgba(3, 12, 22, .4); }
.raid-calendar-option[hidden], .raid-calendar-fields[hidden] { display: none; }
.raid-calendar-toggle { display: inline-flex; width: fit-content; align-items: center; gap: 10px; cursor: pointer; }
.raid-calendar-toggle > input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); }
.raid-calendar-toggle > span { display: grid; gap: 3px; }
.raid-calendar-toggle strong { color: #dceaf2; font-size: .65rem; }
.raid-calendar-toggle small { color: #60758a; font-size: .55rem; line-height: 1.4; }
.raid-calendar-fields { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(105px, 1fr)); gap: 9px; border-top: 1px solid rgba(101, 216, 245, .09); padding-top: 12px; }
.raid-calendar-fields label { display: grid; min-width: 0; gap: 6px; color: #73889c; font-size: .56rem; font-weight: 800; }
.raid-calendar-fields input, .raid-calendar-fields textarea { width: 100%; min-width: 0; border: 1px solid rgba(101, 216, 245, .16); border-radius: 7px; outline: 0; padding: 0 10px; color: #dceaf2; background: rgba(2, 10, 18, .65); color-scheme: dark; font: inherit; font-size: .65rem; font-weight: 650; }
.raid-calendar-fields input { height: 38px; }
.raid-calendar-fields textarea { min-height: 58px; resize: vertical; padding-block: 9px; line-height: 1.45; }
.raid-calendar-fields input:focus, .raid-calendar-fields textarea:focus { border-color: rgba(101, 216, 245, .45); }
.raid-calendar-description { grid-column: 1 / -1; }
.raid-publish-controls { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: end; gap: 9px; }
.raid-publish-controls label { display: grid; min-width: 0; gap: 7px; color: #8193a6; font-size: .64rem; font-weight: 800; }
.raid-publish-controls select { height: 42px; min-width: 0; border: 1px solid rgba(101, 216, 245, .18); border-radius: 7px; outline: 0; padding: 0 12px; color: #dceaf5; background: #0b1724; font: inherit; font-size: .73rem; }
.raid-publish-controls select:focus { border-color: rgba(101, 216, 245, .5); }
.raid-channel-save, .raid-publish { height: 42px; border-radius: 7px; padding: 0 14px; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.raid-channel-save { border: 1px solid rgba(233, 184, 74, .2); color: #d7c083; background: rgba(233, 184, 74, .055); }
.raid-channel-save:hover { color: white; background: rgba(53, 191, 231, .11); }
.raid-publish { margin: 0; border-color: rgba(101, 216, 245, .32); color: #05131b; background: linear-gradient(135deg, #77ddf5, #46bedf); box-shadow: 0 8px 22px rgba(53, 191, 231, .13); }
.raid-publish:hover { filter: brightness(1.08); box-shadow: 0 10px 28px rgba(53, 191, 231, .2); }
.raid-channel-save:disabled, .raid-publish:disabled { cursor: wait; opacity: .5; }
.raid-publish-status { min-height: 17px; margin: 0; color: #84bca0; font-size: .68rem; }
.raid-workspace-tabs { display: inline-flex; gap: 5px; margin-bottom: 18px; border: 1px solid rgba(115, 178, 222, .13); border-radius: 11px; padding: 4px; background: rgba(3, 11, 20, .52); }
.raid-workspace-tabs button { display: inline-flex; min-height: 39px; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; padding: 0 15px; color: #738499; background: transparent; font: inherit; font-size: .68rem; font-weight: 850; cursor: pointer; }
.raid-workspace-tabs button:hover { color: #c9d7e3; background: rgba(255, 255, 255, .035); }
.raid-workspace-tabs button.active { border-color: rgba(101, 216, 245, .22); color: #e6f8fc; background: rgba(53, 191, 231, .1); box-shadow: inset 0 0 18px rgba(53, 191, 231, .035); }
.raid-workspace-tabs button span:first-child { color: #74ddbd; font-size: .82rem; }
.raid-absence-panel { display: grid; gap: 20px; }
.raid-absence-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(115, 178, 222, .1); padding: 7px 2px 18px; }
.raid-absence-heading h2 { margin: 2px 0 7px; color: #eff6fa; font-size: clamp(1.4rem, 2.8vw, 2.2rem); letter-spacing: -.035em; }
.raid-absence-heading p:last-child { max-width: 620px; margin: 0; color: #738398; font-size: .72rem; line-height: 1.6; }
.raid-absence-privacy { flex: 0 0 auto; border: 1px solid rgba(151, 169, 193, .15); border-radius: 999px; padding: 8px 11px; color: #7e8da0; background: rgba(255, 255, 255, .025); font-size: .58rem; font-weight: 800; }
.raid-absence-privacy.full { border-color: rgba(98, 224, 184, .22); color: #7ce1c0; background: rgba(98, 224, 184, .055); }
.raid-absence-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 18px; }
.raid-absence-form, .raid-absence-list-card { border: 1px solid rgba(115, 178, 222, .13); border-radius: 13px; background: linear-gradient(145deg, rgba(14, 23, 34, .92), rgba(7, 13, 21, .94)); box-shadow: 0 16px 38px rgba(0, 0, 0, .14); }
.raid-absence-form { display: grid; gap: 15px; padding: 20px; }
.raid-absence-form-title { display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(115, 178, 222, .1); padding-bottom: 15px; }
.raid-absence-form-title > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(98, 224, 184, .23); border-radius: 9px; color: #74ddbd; background: rgba(98, 224, 184, .065); font-weight: 900; }
.raid-absence-form-title > div { display: grid; gap: 3px; }
.raid-absence-form-title strong { color: #e4edf4; font-size: .78rem; }
.raid-absence-form-title small { color: #647589; font-size: .6rem; line-height: 1.4; }
.raid-absence-form label { display: grid; gap: 7px; color: #91a2b5; font-size: .66rem; font-weight: 800; }
.raid-absence-form textarea, .raid-absence-form input { width: 100%; border: 1px solid rgba(115, 178, 222, .15); border-radius: 8px; outline: 0; padding: 11px 12px; color: #e9f1f6; color-scheme: dark; background: rgba(2, 9, 16, .52); font: inherit; font-size: .72rem; }
.raid-absence-form textarea { resize: vertical; line-height: 1.55; }
.raid-absence-form textarea:focus, .raid-absence-form input:focus { border-color: rgba(98, 224, 184, .4); box-shadow: 0 0 0 3px rgba(98, 224, 184, .05); }
.raid-absence-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.raid-absence-range-toggle { display: inline-flex; min-height: 35px; width: fit-content; align-items: center; gap: 8px; border: 1px dashed rgba(98, 224, 184, .22); border-radius: 8px; padding: 0 11px; color: #75a99a; background: rgba(98, 224, 184, .025); font: inherit; font-size: .61rem; font-weight: 800; cursor: pointer; }
.raid-absence-range-toggle:hover, .raid-absence-range-toggle.active { border-style: solid; color: #8be5c7; background: rgba(98, 224, 184, .07); }
.raid-absence-status { min-height: 17px; margin: -2px 0 0; color: #d5bb7a; font-size: .64rem; line-height: 1.4; }
.raid-absence-submit { width: 100%; margin: 0; }
.raid-absence-list-card { min-width: 0; overflow: hidden; }
.raid-absence-list-card > header { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(115, 178, 222, .1); padding: 15px 18px; }
.raid-absence-list-card h3 { margin: 2px 0 0; color: #e5eef4; font-size: .92rem; }
.raid-absence-list-card > header > span { min-width: 31px; border: 1px solid rgba(98, 224, 184, .18); border-radius: 999px; padding: 5px 8px; color: #78d8b8; background: rgba(98, 224, 184, .05); font: 850 .62rem ui-monospace, monospace; text-align: center; }
.raid-absence-list { display: grid; max-height: 560px; overflow-y: auto; }
.raid-absence-entry { display: grid; min-width: 0; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid rgba(115, 178, 222, .08); padding: 14px 16px; background: rgba(255, 255, 255, .006); }
.raid-absence-entry:last-child { border-bottom: 0; }
.raid-absence-entry.own { background: linear-gradient(90deg, rgba(98, 224, 184, .035), transparent 55%); box-shadow: inset 2px 0 #62e0b8; }
.raid-absence-entry time { display: grid; min-height: 38px; place-items: center; border: 1px solid rgba(242, 184, 75, .16); border-radius: 8px; padding: 5px; color: #d8bd78; background: rgba(242, 184, 75, .045); font-size: .55rem; font-weight: 850; text-align: center; }
.raid-absence-entry > div { display: grid; min-width: 0; gap: 5px; }
.raid-absence-entry > div > div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; }
.raid-absence-entry strong { overflow: hidden; color: #dce7ee; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.raid-absence-entry span { flex: 0 0 auto; color: #68798d; font-size: .58rem; }
.raid-absence-entry p { overflow: hidden; margin: 0; color: #8b9aab; font-size: .65rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.raid-absence-delete { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(225, 91, 91, .17); border-radius: 7px; color: #a87575; background: rgba(225, 91, 91, .035); font-size: .9rem; cursor: pointer; }
.raid-absence-delete:hover { border-color: rgba(225, 91, 91, .38); color: #ffc0c0; background: rgba(225, 91, 91, .09); }
.raid-absence-empty { margin: 0; padding: 42px 20px; color: #647488; font-size: .7rem; text-align: center; }
.raid-absence-detail-dialog { width: min(540px, calc(100% - 30px)); }
.raid-absence-detail-modal { padding: 26px; }
.raid-absence-detail-range { margin: 20px 0 12px; border: 1px solid rgba(242, 184, 75, .18); border-radius: 9px; padding: 12px 14px; color: #e1c983; background: rgba(242, 184, 75, .05); font-size: .72rem; font-weight: 800; }
.raid-absence-detail-modal > section { border: 1px solid rgba(115, 178, 222, .12); border-radius: 9px; padding: 14px; background: rgba(255, 255, 255, .02); }
.raid-absence-detail-modal > section > span { color: #64778c; font-size: .58rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.raid-absence-detail-modal > section p { margin: 7px 0 0; color: #d3dee7; font-size: .76rem; line-height: 1.6; white-space: pre-wrap; }

.character-dialog, .spec-dialog { width: min(1080px, calc(100% - 30px)); max-height: calc(100vh - 34px); border: 1px solid rgba(103, 221, 255, .2); border-radius: 12px; padding: 0; color: white; background: #07101f; box-shadow: 0 35px 100px rgba(0, 0, 0, .75); }
.spec-dialog { width: min(560px, calc(100% - 30px)); }
.character-dialog::backdrop, .spec-dialog::backdrop { background: rgba(0, 3, 10, .84); backdrop-filter: blur(8px); }
.character-modal { max-height: calc(100vh - 36px); padding: clamp(24px, 4vw, 40px); overflow-y: auto; }
.character-modal .guild-modal-header { position: sticky; z-index: 2; top: -40px; margin-top: -40px; padding-top: 40px; background: linear-gradient(#07101f 85%, transparent); }
.character-modal-toolbar { position: sticky; z-index: 3; top: 0; display: flex; height: 0; justify-content: flex-end; }
.character-modal h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.25rem); text-transform: uppercase; }
.character-loading, .character-empty { color: #7789a0; font-size: .8rem; line-height: 1.6; }
.character-loading { margin: 24px 0 0; }
.character-hero { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 20px 64px 20px 0; }
.character-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.character-portrait { width: 96px; height: 96px; flex: 0 0 96px; border: 1px solid rgba(233, 184, 74, .35); border-radius: 18px; object-fit: cover; background: #0b1422; box-shadow: 0 0 0 5px rgba(233, 184, 74, .045), 0 16px 34px rgba(0, 0, 0, .35); }
.character-hero h3 { margin: 0 0 6px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; text-transform: uppercase; }
.character-hero p { margin: 0 0 14px; color: #8fa0b5; }
.selected-spec { display: inline-flex; border: 1px solid rgba(233, 184, 74, .2); border-radius: 999px; padding: 6px 10px; color: #dfc684; background: rgba(233, 184, 74, .06); font-size: .7rem; font-weight: 800; }
.character-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.character-stats > div { display: grid; gap: 4px; border: 1px solid rgba(115, 178, 222, .11); border-radius: 7px; padding: 12px; background: rgba(255, 255, 255, .025); }
.character-stats span { color: #667a92; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.character-stats strong { color: #e9f7ff; font-size: .92rem; }
.combat-section { border-top: 1px solid var(--line); }
.combat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.combat-grid article { display: grid; min-width: 0; gap: 4px; border: 1px solid rgba(115, 178, 222, .1); border-radius: 7px; padding: 12px; background: rgba(255, 255, 255, .022); }
.combat-grid span { color: #667a92; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.combat-grid strong { color: #e8f6ff; font-size: 1rem; }
.combat-grid small { color: var(--blue-bright); font-size: .66rem; font-weight: 800; }
.character-links { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.character-links a { border: 1px solid rgba(103, 221, 255, .18); border-radius: 5px; padding: 8px 11px; color: #aeeeff; background: rgba(19, 189, 245, .06); font-size: .7rem; font-weight: 800; text-decoration: none; }
.character-links a:hover { color: white; background: rgba(19, 189, 245, .13); }
.character-section { padding-top: 25px; }
.character-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; color: #dcecff; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; list-style: none; }
.character-section > summary::-webkit-details-marker { display: none; }
.character-section > summary::after { content: "+"; display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid rgba(103, 221, 255, .15); border-radius: 50%; color: var(--blue-bright); font-size: .9rem; }
.character-section[open] > summary::after { content: "−"; }
.character-section > summary + * { margin-top: 13px; }
.set-overview { padding-bottom: 24px; border-top: 1px solid var(--line); }
.set-grid { display: grid; gap: 9px; }
.set-grid article { display: grid; gap: 10px; border: 1px solid rgba(233, 184, 74, .16); border-radius: 8px; padding: 14px; background: linear-gradient(120deg, rgba(233, 184, 74, .07), rgba(19, 189, 245, .025)); }
.set-grid article > div:first-child { display: flex; justify-content: space-between; gap: 20px; }
.set-grid article > div:first-child strong { color: #f1dfac; font-size: .85rem; }
.set-grid article > div:first-child span { color: var(--gold); font-size: .75rem; font-weight: 900; }
.set-grid progress, .mythic-bars progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.set-grid progress::-webkit-progress-bar, .mythic-bars progress::-webkit-progress-bar { border-radius: 999px; background: rgba(255, 255, 255, .07); }
.set-grid progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #b88424, #f1cf78); box-shadow: 0 0 12px rgba(233, 184, 74, .35); }
.set-grid progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #b88424, #f1cf78); }
.set-badges { display: flex; gap: 6px; }
.set-badges span { border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; padding: 4px 8px; color: #5f6f83; font-size: .62rem; font-weight: 800; }
.set-badges span.active { border-color: rgba(233, 184, 74, .25); color: #ead18e; background: rgba(233, 184, 74, .08); }
.set-bonuses { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.set-bonuses li { color: #617287; font-size: .66rem; line-height: 1.5; }
.set-bonuses li.active { color: #b9c9d9; }
.gear-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gear-grid article { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; min-width: 0; border: 1px solid rgba(115, 178, 222, .1); border-radius: 7px; padding: 11px; background: rgba(255, 255, 255, .022); }
.gear-icon { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border: 1px solid rgba(233, 184, 74, .2); border-radius: 7px; color: #607187; background: rgba(0, 0, 0, .22); font-weight: 900; }
.gear-icon img { width: 100%; height: 100%; object-fit: cover; }
.gear-copy { display: grid; min-width: 0; gap: 3px; }
.gear-copy > span { color: #61738a; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.gear-copy > strong { overflow: hidden; color: #e6f4ff; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.gear-copy > small { color: #d2b873; font-size: .66rem; }
.gear-copy > p { margin: 5px 0 0; color: #7e90a7; font-size: .64rem; line-height: 1.5; }
.gear-gems { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.gear-gems > span { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; border: 1px solid rgba(159, 102, 255, .18); border-radius: 5px; padding: 3px 6px; color: #ad9bc7; background: rgba(133, 80, 210, .06); font-size: .6rem; }
.gear-gems img { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 3px; object-fit: cover; }
.gear-gems > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-effects { margin-top: 5px; border-top: 1px solid rgba(115, 178, 222, .09); padding-top: 6px; }
.gear-effects summary { color: #79cdea; font-size: .63rem; font-weight: 800; cursor: pointer; list-style-position: inside; }
.gear-effects ul { display: grid; gap: 5px; margin: 7px 0 0; padding: 0; color: #91a4b9; font-size: .63rem; line-height: 1.55; list-style: none; }
.gear-effects li { padding-left: 9px; border-left: 2px solid rgba(103, 221, 255, .18); }
.character-section > h4 { margin: 24px 0 11px; color: #7588a0; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.raid-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.raid-chart-card { display: grid; justify-items: center; gap: 5px; border: 1px solid rgba(115, 178, 222, .1); border-radius: 8px; padding: 14px 10px; background: rgba(255, 255, 255, .02); text-align: center; }
.raid-chart-card svg { width: 106px; height: 106px; overflow: visible; }
.raid-chart-card circle { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 3.2; }
.raid-chart-card circle:nth-child(2) { transform: rotate(-90deg); transform-origin: center; stroke: var(--blue); stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(19, 189, 245, .5)); }
.raid-chart-card text { fill: #edf9ff; font: 800 6px Inter, sans-serif; }
.raid-chart-card > strong { color: #dcecff; font-size: .74rem; text-transform: capitalize; }
.raid-chart-card > span { color: #697c93; font-size: .64rem; }
.raid-breakdown { display: flex; gap: 5px; margin-top: 5px; }
.raid-breakdown span { border-radius: 999px; padding: 3px 6px; color: #8799ae; background: rgba(255, 255, 255, .04); font-size: .58rem; font-weight: 800; }
.mythic-bars { display: grid; gap: 9px; }
.mythic-bars > div { display: grid; gap: 6px; }
.mythic-bars > div > div { display: flex; justify-content: space-between; gap: 15px; color: #8294aa; font-size: .68rem; }
.mythic-bars strong { color: #c9dae9; font-size: .7rem; }
.mythic-bars progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #087aa7, var(--blue)); box-shadow: 0 0 12px rgba(19, 189, 245, .3); }
.mythic-bars progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #087aa7, var(--blue)); }
.spec-options { display: grid; gap: 9px; padding-top: 24px; }
.spec-option { width: 100%; border: 1px solid rgba(103, 221, 255, .17); border-radius: 7px; padding: 14px; color: #c8d8e8; background: rgba(255, 255, 255, .025); font: inherit; font-size: .82rem; font-weight: 800; text-align: left; cursor: pointer; }
.spec-option:hover, .spec-option.selected { border-color: rgba(103, 221, 255, .4); color: white; background: rgba(19, 189, 245, .11); }
.claim-type-copy { margin: 22px 0 0; color: #8193a9; font-size: .78rem; line-height: 1.65; }
.claim-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 18px; }
.claim-type-options button { display: grid; gap: 5px; border: 1px solid rgba(103, 221, 255, .17); border-radius: 8px; padding: 18px; color: #dcecff; background: rgba(255, 255, 255, .025); font: inherit; text-align: left; cursor: pointer; }
.claim-type-options button:first-child { border-color: rgba(233, 184, 74, .24); background: rgba(233, 184, 74, .055); }
.claim-type-options button:hover { border-color: rgba(103, 221, 255, .4); background: rgba(19, 189, 245, .1); }
.claim-type-options strong { font-size: .9rem; }
.claim-type-options small { color: #6c7f96; font-size: .66rem; }

.crest-wrap { position: relative; display: grid; place-items: center; isolation: isolate; }
.crest-wrap::before, .crest-wrap::after { content: ""; position: absolute; z-index: -1; width: 82%; aspect-ratio: 1; border: 1px solid rgba(51, 183, 247, .14); transform: rotate(45deg); }
.crest-wrap::after { width: 62%; animation: breathe 4s ease-in-out infinite; }
.crest-glow { position: absolute; z-index: -1; width: 63%; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 158, 255, .3); filter: blur(70px); }
.crest { width: min(100%, 520px); display: block; mix-blend-mode: screen; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); animation: float 6s ease-in-out infinite; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars article { display: flex; gap: 18px; padding: 34px 28px; }
.pillars article + article { border-left: 1px solid var(--line); }
.number { color: var(--gold); font: 700 .7rem ui-monospace, monospace; letter-spacing: .1em; }
.pillars h2 { margin: 0 0 10px; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.pillars p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.65; }

footer { display: flex; align-items: center; justify-content: space-between; padding: 34px 0 40px; color: #58677d; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
footer span { color: #8290a3; font-weight: 900; letter-spacing: .25em; }

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes breathe { 50% { transform: rotate(45deg) scale(1.08); border-color: rgba(51, 183, 247, .3); } }

@media (max-width: 820px) {
  .nav, main, footer { width: min(100% - 30px, 680px); }
  .dashboard-shell { grid-template-columns: 1fr; gap: 34px; padding-top: 30px; }
  .dashboard-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-admin { margin-top: 0; }
  .sidebar-label { grid-column: 1 / -1; }
  .dashboard-overview { padding-top: 0; }
  .news-heading { align-items: stretch; flex-direction: column; }
  .news-archive { width: 100%; min-width: 0; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 70px; text-align: center; }
  .hero-copy { margin: auto; }
  .intro { margin-inline: auto; }
  .crest-wrap { grid-row: 1; width: min(80vw, 400px); margin: 0 auto -15px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars article + article { border-left: 0; border-top: 1px solid var(--line); }
  .character-hero { grid-template-columns: 1fr; }
  .character-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .combat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raid-roster-layout { grid-template-columns: 1fr; }
  .raid-editor { position: static; }
  .raid-publish-composer { grid-template-columns: 1fr; }
  .raid-calendar-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .raid-calendar-title { grid-column: 1 / -1; }
  .raid-publish-controls { grid-template-columns: 1fr 1fr; }
  .raid-publish-controls label { grid-column: 1 / -1; }
  .raid-player-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raid-absence-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .raid-template-grid { grid-template-columns: 1fr; }
  .raid-template-grid .raid-template-wide { grid-column: auto; }
  .raid-template-toggles .raid-template-color { margin-left: 0; }
  .realm { display: none; }
  .nav { min-height: 72px; }
  h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .profile-menu summary { min-width: 0; }
  .profile-copy { display: none; }
  .profile-chevron { margin-right: 2px; }
  .profile-dropdown { position: fixed; top: 78px; right: 15px; width: min(310px, calc(100vw - 30px)); }
  .dashboard-sidebar { grid-template-columns: 1fr; }
  .dashboard-overview h1 { font-size: clamp(2.8rem, 16vw, 4.6rem); }
  .news-post > header { flex-direction: column; }
  .news-content { padding-inline: 20px; }
  .guild-modal { padding: 22px 18px; }
  .guild-meta { align-items: start; flex-direction: column; gap: 5px; }
  .member-list li { align-items: start; flex-direction: column; gap: 9px; }
  .member-list .member-identity { width: 100%; }
  .member-list .member-actions { width: 100%; justify-content: space-between; }
  .profile-claim-list li { align-items: start; flex-direction: column; }
  .profile-claim-list .profile-char-actions { width: 100%; }
  .profile-char-button { flex: 1; }
  .gear-grid, .raid-charts { grid-template-columns: 1fr; }
  .character-stats { grid-template-columns: 1fr 1fr; }
  .combat-grid { grid-template-columns: 1fr 1fr; }
  .raid-menu, .raid-player-list { grid-template-columns: 1fr; }
  .raid-publish-panel > header { align-items: start; flex-direction: column; gap: 7px; }
  .raid-publish-panel > header > p { text-align: left; }
  .raid-calendar-fields { grid-template-columns: 1fr; }
  .raid-calendar-title, .raid-calendar-description { grid-column: auto; }
  .raid-publish-controls { grid-template-columns: 1fr; }
  .raid-publish-controls label { grid-column: auto; }
  .raid-absence-heading { align-items: flex-start; flex-direction: column; }
  .raid-absence-dates { grid-template-columns: 1fr; }
  .raid-absence-entry { grid-template-columns: 64px minmax(0, 1fr) auto; padding-inline: 11px; }
  .raid-absence-entry > div > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .claim-type-options { grid-template-columns: 1fr; }
  .permission-group-grid { grid-template-columns: 1fr; }
  .calendar-toolbar { align-items: stretch; flex-direction: column; }
  .calendar-date-fields { grid-template-columns: 1fr; }
  .apexium-calendar { min-height: 460px; padding: 8px; }
  .character-identity { align-items: flex-start; }
  .character-portrait { width: 72px; height: 72px; flex-basis: 72px; border-radius: 14px; }
  .pillars article { padding-inline: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Apexium visual refresh — calmer surfaces, stronger hierarchy, fewer neon effects */
:root {
  --blue: #35bfe7;
  --blue-bright: #65d8f5;
  --gold: #f2b84b;
  --ink: #080c13;
  --surface: #111823;
  --surface-raised: #17202c;
  --surface-soft: #0d141e;
  --text: #f4f6f9;
  --muted: #8d99aa;
  --muted-dim: #637083;
  --line: rgba(151, 169, 193, .13);
  --line-strong: rgba(151, 169, 193, .21);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 18px 55px rgba(0, 0, 0, .24);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 83% 8%, rgba(53, 191, 231, .075), transparent 28rem),
    radial-gradient(circle at 10% 88%, rgba(242, 184, 75, .035), transparent 25rem),
    var(--ink);
}

body::before {
  opacity: .11;
  background-image: radial-gradient(rgba(196, 217, 240, .5) .55px, transparent .7px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.ambient { opacity: .42; filter: blur(150px); }
.ambient-one { background: rgba(26, 154, 205, .12); }
.ambient-two { background: rgba(49, 91, 170, .07); }

.nav, main, footer { width: min(1260px, calc(100% - 64px)); }
.nav { min-height: 88px; border-color: var(--line); }
.brand { gap: 13px; font-size: .91rem; letter-spacing: .24em; }
.realm { color: #768296; font-size: .68rem; }
.realm > span:first-child { width: 7px; height: 7px; background: #51d997; box-shadow: 0 0 0 4px rgba(81, 217, 151, .08); }

.hero {
  position: relative;
  min-height: 650px;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(3rem, 7vw, 7rem);
  overflow: hidden;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6.5vw, 82px);
  background:
    linear-gradient(115deg, rgba(23, 32, 44, .98), rgba(12, 18, 27, .92)),
    var(--surface);
  box-shadow: var(--shadow-card);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(242, 184, 75, .18) 35%, rgba(53, 191, 231, .22) 70%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: -240px;
  border-radius: 50%;
  background: rgba(53, 191, 231, .07);
  filter: blur(10px);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  margin-bottom: 16px;
  color: var(--gold);
  font-size: .68rem;
  letter-spacing: .22em;
}
h1 {
  font-size: clamp(3.45rem, 6.6vw, 6rem);
  line-height: .94;
  letter-spacing: -.055em;
}
h1 span {
  color: var(--blue-bright);
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.intro { margin: 26px 0 30px; color: #a6b0bf; font-size: clamp(.98rem, 1.5vw, 1.12rem); line-height: 1.72; }
.intro strong { color: #edf3f8; }
.discord-button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 19px;
  color: #071018;
  background: var(--blue-bright);
  box-shadow: 0 12px 30px rgba(53, 191, 231, .16);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.discord-button:hover {
  transform: translateY(-2px);
  color: #050a0f;
  background: #8ce6fb;
  box-shadow: 0 15px 36px rgba(53, 191, 231, .24);
}
.auth-message { border-radius: var(--radius-sm); }

.crest-wrap {
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at center, rgba(53, 191, 231, .13), transparent 58%),
    #090e16;
}
.crest-wrap::before {
  z-index: 0;
  width: 70%;
  border-color: rgba(101, 216, 245, .1);
}
.crest-wrap::after { display: none; }
.crest-glow { width: 58%; background: rgba(53, 191, 231, .13); filter: blur(65px); }
.crest {
  position: relative;
  z-index: 1;
  width: min(92%, 500px);
  animation: none;
  filter: drop-shadow(0 26px 35px rgba(0, 0, 0, .48));
}

.pillars {
  gap: 18px;
  margin-top: 18px;
  border: 0;
}
.pillars article {
  position: relative;
  min-height: 178px;
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  background: linear-gradient(145deg, rgba(23, 32, 44, .96), rgba(15, 22, 32, .96));
}
.pillars article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(242, 184, 75, .9), transparent 70%);
}
.pillars article + article { border-left: 1px solid var(--line); }
.number { color: var(--gold); font-size: .72rem; }
.pillars h2 { font-size: .9rem; letter-spacing: .07em; }
.pillars p { color: var(--muted); font-size: .84rem; line-height: 1.65; }
footer { padding-block: 34px; color: #515d6d; }

/* Dashboard */
.dashboard-page {
  background:
    radial-gradient(circle at 75% -5%, rgba(53, 191, 231, .07), transparent 31rem),
    var(--ink);
}
.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1520px, calc(100% - 48px));
  min-height: 82px;
  background: rgba(8, 12, 19, .86);
  backdrop-filter: blur(18px);
}
.dashboard-brand { gap: 10px; }
.dashboard-brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(90, 155, 216, .22));
}
.dashboard-actions { gap: 10px; }
.quick-links-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(101, 216, 245, .2);
  border-radius: 9px;
  padding: 9px 12px;
  color: #ccebf4;
  background: linear-gradient(135deg, rgba(19, 189, 245, .09), rgba(242, 184, 75, .035));
  font: 800 .68rem ui-monospace, monospace;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.quick-links-button:hover {
  transform: translateY(-1px);
  border-color: rgba(101, 216, 245, .42);
  color: #fff;
  background: rgba(19, 189, 245, .14);
}
.quick-links-button-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(101, 216, 245, .22);
  border-radius: 6px;
  color: var(--blue-bright);
  background: rgba(19, 189, 245, .08);
  font-size: .8rem;
}
.quick-links-button small {
  min-width: 18px;
  border-radius: 999px;
  padding: 3px 5px;
  color: #f5d582;
  background: rgba(242, 184, 75, .1);
  font-size: .54rem;
  text-align: center;
}
.locale-toggle, .role-preview-button {
  min-height: 40px;
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  color: #a9b6c5;
  background: rgba(255, 255, 255, .035);
}
.locale-toggle:hover, .role-preview-button:hover, .role-preview-button.active {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
}
.role-preview-button { color: #d7bb7f; }
.profile-menu summary {
  min-width: 232px;
  border-color: var(--line-strong);
  border-radius: 12px;
  padding: 7px 10px;
  background: var(--surface);
}
.profile-avatar { border-radius: 9px; }
.profile-copy small { color: #727f91; }
.profile-dropdown {
  top: calc(100% + 12px);
  border-color: var(--line-strong);
  border-radius: var(--radius-md);
  background: #121a25;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}
.profile-tabs { border-color: var(--line); border-radius: var(--radius-sm); background: #0c121b; }
.profile-tab { border-radius: 7px; }
.profile-tab.active { color: var(--text); background: var(--surface-raised); box-shadow: none; }
.profile-claim-list li, .profile-role-list li { border-radius: 9px; background: rgba(255, 255, 255, .025); }

.dashboard-shell {
  width: min(1520px, calc(100% - 48px));
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 38px;
  padding: 38px 0 72px;
}
.dashboard-sidebar {
  position: sticky;
  top: 120px;
  max-height: calc(100dvh - 136px);
  align-self: start;
  gap: 7px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 14px 14px;
  background: rgba(17, 24, 35, .78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}
.sidebar-context { display: flex; align-items: center; gap: 11px; margin: 0 4px 2px; border-bottom: 1px solid var(--line); padding: 1px 5px 15px; }
.sidebar-context > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(101, 216, 245, .24); border-radius: 10px; color: #071018; background: linear-gradient(135deg, #8ee6f7, #3eb5dd); font: 950 .62rem ui-monospace, monospace; letter-spacing: .08em; box-shadow: 0 8px 22px rgba(53, 191, 231, .13); }
.sidebar-context > div { display: grid; min-width: 0; gap: 2px; }
.sidebar-context strong { color: #e8f1f8; font-size: .73rem; letter-spacing: .045em; text-transform: uppercase; }
.sidebar-context small { overflow: hidden; color: #667489; font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-group { display: grid; min-width: 0; gap: 4px; padding: 5px 0 2px; }
.sidebar-group + .sidebar-group { border-top: 1px solid rgba(151, 169, 193, .08); padding-top: 11px; }
.sidebar-label { display: flex; align-items: center; gap: 7px; margin: 0 10px 4px; color: #697689; font-size: .55rem; letter-spacing: .13em; }
.sidebar-label > span:first-child { width: 5px; height: 5px; border-radius: 50%; background: #536174; box-shadow: 0 0 0 3px rgba(83, 97, 116, .08); }
.sidebar-raid-group .sidebar-label > span:first-child { background: var(--blue-bright); box-shadow: 0 0 0 3px rgba(101, 216, 245, .08); }
.sidebar-mythic-group .sidebar-label > span:first-child { background: #62e0b8; box-shadow: 0 0 0 3px rgba(98, 224, 184, .08); }
.sidebar-admin-section .sidebar-label > span:first-child { background: var(--gold); box-shadow: 0 0 0 3px rgba(242, 184, 75, .08); }
.sidebar-button {
  gap: 12px;
  border-radius: 11px;
  padding: 10px;
  color: #8f9bad;
}
.sidebar-button > span:last-child { font-size: .84rem; }
.sidebar-button small { color: #647083; font-size: .65rem; }
.sidebar-button:not(:disabled):hover {
  transform: none;
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .045);
}
.sidebar-button.active {
  border-color: rgba(101, 216, 245, .18);
  color: var(--text);
  background: rgba(53, 191, 231, .095);
  box-shadow: inset 3px 0 0 var(--blue-bright);
}
body:has(#calendar-editor-dialog[open], #bis-view-dialog[open], #bis-edit-dialog[open], #boosting-dialog[open], #permission-admin-dialog[open], #audit-log-dialog[open], #news-editor-dialog[open]) .dashboard-sidebar .sidebar-button.active {
  border-color: transparent;
  color: #8f9bad;
  background: transparent;
  box-shadow: none;
}
body:has(#calendar-editor-dialog[open]) [data-open-calendar],
body:has(#bis-view-dialog[open], #bis-edit-dialog[open]) [data-open-bis-gear],
body:has(#boosting-dialog[open]) [data-open-boosting],
body:has(#permission-admin-dialog[open]) [data-open-admin],
body:has(#audit-log-dialog[open]) [data-open-audit-logs],
body:has(#news-editor-dialog[open]) [data-open-news-editor] {
  border-color: rgba(101, 216, 245, .18);
  color: var(--text);
  background: rgba(53, 191, 231, .095);
  box-shadow: inset 3px 0 0 var(--blue-bright);
}
.sidebar-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-color: var(--line-strong);
  border-radius: 9px;
  color: var(--blue-bright);
  background: rgba(53, 191, 231, .055);
}
.sidebar-news-create { margin-top: 7px; border-color: rgba(242, 184, 75, .14); background: rgba(242, 184, 75, .025); }
.sidebar-news-create .sidebar-icon { color: var(--gold); background: rgba(242, 184, 75, .065); }
.sidebar-admin { border-color: var(--line); background: rgba(255, 255, 255, .02); }
.sidebar-admin .sidebar-icon { border-color: rgba(242, 184, 75, .18); color: var(--gold); background: rgba(242, 184, 75, .06); }
.sidebar-mythic-group .sidebar-icon { border-color: rgba(98, 224, 184, .17); color: #62e0b8; background: rgba(98, 224, 184, .045); }

.dashboard-overview { min-width: 0; padding-top: 7px; }
[data-dashboard-workspace][hidden] { display: none; }
.workspace-page { width: 100%; max-width: none; padding-top: 0; }
.workspace-page-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(17, 24, 35, .96), rgba(9, 14, 22, .96)); box-shadow: var(--shadow-card); }
.workspace-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 22px; border-bottom: 1px solid var(--line); padding: 0 0 22px; background: transparent; }
.workspace-page-heading h1, .workspace-page-heading h2 { margin: 4px 0 8px; color: #eef4fb; font-size: clamp(2.35rem, 4.6vw, 4.25rem); line-height: .94; letter-spacing: -.05em; }
.workspace-page-heading > div:first-child > p:last-child { max-width: 680px; margin: 0; color: #718096; font-size: .76rem; line-height: 1.65; }
.members-page-panel, .raids-workspace .workspace-page-panel, .calendar-workspace .workspace-page-panel { padding: clamp(22px, 3vw, 32px); }
.members-workspace .member-search { margin-top: 0; }
.members-workspace .member-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: clamp(360px, calc(100dvh - 310px), 620px);
  align-items: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.members-workspace .member-list li { min-width: 0; align-items: stretch; flex-direction: column; gap: 12px; }
.members-workspace .member-list .member-identity { width: 100%; }
.members-workspace .member-list .member-actions { width: 100%; justify-content: flex-end; }
.calendar-workspace .calendar-modal { display: flex; min-height: 760px; flex-direction: column; }
.calendar-workspace .calendar-stage { min-height: 610px; }
.calendar-workspace .apexium-calendar { min-height: 610px; }
.raids-workspace .raid-roster-modal { max-height: none; overflow: visible; padding: clamp(22px, 3vw, 32px); }
.raids-workspace .raid-roster-modal.workspace-page-panel { padding: clamp(22px, 3vw, 32px); }
.current-gear-workspace .workspace-page-panel, .bis-gear-workspace .workspace-page-panel { width: min(100%, 1484px); min-height: 0; border-color: rgba(107, 224, 190, .16); background: #080c13; }
.current-gear-workspace .current-gear-modal, .bis-gear-workspace .current-gear-modal { height: clamp(680px, calc(100dvh - 112px), 1120px); min-height: 0; }
.bis-gear-workspace .workspace-page-panel { border-color: rgba(157, 124, 255, .18); }
.current-gear-workspace .workspace-page-heading, .bis-gear-workspace .workspace-page-heading { align-items: center; margin: 0; border-bottom-color: rgba(137, 157, 181, .11); padding: 25px clamp(20px, 2.4vw, 38px) 21px; }

@media (min-width: 981px) {
  body:has(.current-gear-workspace:not([hidden]), .bis-gear-workspace:not([hidden])) .dashboard-shell {
    width: auto;
    margin-right: 14px;
    margin-left: max(24px, calc((100% - 1520px) / 2));
  }
}
.workspace-empty-state { display: grid; min-height: 520px; place-items: center; align-content: center; gap: 10px; border: 1px dashed rgba(98, 224, 184, .18); border-radius: 17px; padding: 40px; text-align: center; background: radial-gradient(circle at 50% 35%, rgba(98, 224, 184, .055), transparent 34%); }
.workspace-empty-state > span { display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid rgba(98, 224, 184, .3); border-radius: 20px; color: #80e8c7; background: rgba(98, 224, 184, .07); font: 900 .8rem ui-monospace, monospace; }
.workspace-empty-state strong { margin-top: 8px; color: #dce8ee; font-size: 1rem; }
.workspace-empty-state p { max-width: 500px; margin: 0; color: #6f7e91; font-size: .7rem; line-height: 1.65; }
.dashboard-brand-banner {
  position: relative;
  height: clamp(160px, 18vw, 220px);
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid rgba(176, 141, 62, .2);
  border-radius: var(--radius-md);
  background: #0b0d11;
  box-shadow: var(--shadow-card);
}
.dashboard-brand-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(234, 242, 250, .035);
  pointer-events: none;
}
.dashboard-brand-banner picture {
  display: block;
  width: 100%;
  height: 100%;
}
.dashboard-brand-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.news-heading { align-items: end; margin-bottom: 24px; }
.news-overview .news-heading h1 {
  margin-top: 5px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.045em;
}
.dashboard-overview h1 span {
  display: inline;
  color: var(--blue-bright);
  -webkit-text-stroke: 0;
}
.dashboard-overview h1 .dashboard-title-prefix { margin-right: .2em; color: var(--text); }
.news-archive { padding-bottom: 1px; }
.news-archive select, .role-preview-select select {
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.news-status {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #78869a;
  background: rgba(17, 24, 35, .84);
}
.news-post {
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  box-shadow: var(--shadow-card);
}
.news-post::before { width: 2px; background: linear-gradient(var(--gold), rgba(242, 184, 75, .12)); box-shadow: none; }
.news-post > header { border-color: var(--line); padding: 26px 30px 22px; }
.news-kicker { color: var(--gold); }
.news-content { color: #a8b3c2; padding: 26px 30px 34px; }
.news-post > footer { border-color: var(--line); color: #697689; background: rgba(0, 0, 0, .08); }
.news-post time { border-color: rgba(242, 184, 75, .18); color: #d8ba79; }

.dashboard-primary {
  border: 0;
  border-radius: var(--radius-sm);
  color: #071018;
  background: var(--blue-bright);
  transition: background .2s ease, transform .2s ease;
}
.dashboard-primary:hover { transform: translateY(-1px); color: #050a0f; background: #8ce6fb; }
.dashboard-primary:focus-visible, .discord-button:focus-visible, .sidebar-button:focus-visible,
.quick-links-button:focus-visible, .locale-toggle:focus-visible, .role-preview-button:focus-visible, .modal-close:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

/* Shared panels and dialogs */
.guild-dialog, .raid-dialog, .raid-roster-dialog, .character-dialog, .spec-dialog {
  border-color: var(--line-strong);
  border-radius: 20px;
  background: #111823;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .62);
}
.guild-dialog::backdrop, .raid-dialog::backdrop, .raid-roster-dialog::backdrop,
.character-dialog::backdrop, .spec-dialog::backdrop {
  background: rgba(3, 6, 10, .76);
  backdrop-filter: blur(10px);
}

/* Quick links */
.quick-links-dialog { width: min(1120px, calc(100% - 30px)); max-height: min(860px, calc(100dvh - 30px)); overflow: hidden; }
.quick-links-modal { max-height: inherit; overflow-y: auto; padding: clamp(24px, 3vw, 34px); }
.quick-links-copy { max-width: 650px; margin: -5px 0 24px; color: #7f8da0; font-size: .75rem; line-height: 1.65; }
.quick-links-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 24px; }
.quick-links-layout:has(.quick-link-form[hidden]) { grid-template-columns: 1fr; }
.quick-links-library { min-width: 0; }
.quick-links-status { min-height: 18px; margin: 0 0 12px; color: #7f91a7; font-size: .7rem; }
.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 12px; }
.quick-link-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--quick-link-accent) 27%, rgba(151, 169, 193, .13));
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0, color-mix(in srgb, var(--quick-link-accent) 14%, transparent), transparent 43%),
    linear-gradient(145deg, rgba(22, 31, 44, .97), rgba(11, 17, 26, .98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}
.quick-link-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--quick-link-accent), transparent 78%); }
.quick-link-card > a { display: grid; min-height: 188px; gap: 14px; padding: 20px; color: inherit; text-decoration: none; }
.quick-link-card > a:hover .quick-link-open { color: #fff; transform: translateX(3px); }
.quick-link-card-heading { display: flex; align-items: center; gap: 11px; }
.quick-link-monogram {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--quick-link-accent) 38%, transparent);
  border-radius: 11px;
  color: var(--quick-link-accent);
  background: color-mix(in srgb, var(--quick-link-accent) 9%, transparent);
  font: 900 .72rem ui-monospace, monospace;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}
.quick-link-card-domain { min-width: 0; }
.quick-link-card-domain small { display: block; overflow: hidden; color: #68788c; font: 750 .58rem ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.quick-link-card-domain span { color: var(--quick-link-accent); font-size: .58rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.quick-link-card-copy { display: grid; align-content: start; gap: 7px; }
.quick-link-card-copy strong { overflow-wrap: anywhere; color: #eef6fb; font-size: .9rem; line-height: 1.25; }
.quick-link-card-copy p { display: -webkit-box; overflow: hidden; margin: 0; color: #8493a5; font-size: .68rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.quick-link-open { align-self: end; color: var(--quick-link-accent); font: 800 .59rem ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; transition: color .2s, transform .2s; }
.quick-link-delete {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(239, 111, 111, .2);
  border-radius: 7px;
  color: #c78888;
  background: rgba(12, 17, 25, .92);
  font: 800 .72rem ui-monospace, monospace;
  cursor: pointer;
}
.quick-link-delete:hover { border-color: rgba(239, 111, 111, .45); color: #ffaaaa; background: rgba(103, 32, 38, .35); }
.quick-links-empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed rgba(101, 216, 245, .16); border-radius: 14px; padding: 30px; color: #718197; text-align: center; }
.quick-links-empty span { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(101, 216, 245, .19); border-radius: 14px; color: #70d8ef; background: rgba(19, 189, 245, .06); font-size: 1.15rem; }
.quick-links-empty strong { color: #b9c8d5; font-size: .8rem; }
.quick-link-form { position: sticky; top: 0; display: grid; gap: 14px; border: 1px solid rgba(101, 216, 245, .15); border-radius: 15px; padding: 19px; background: rgba(7, 13, 22, .72); }
.quick-link-form > header { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid rgba(151, 169, 193, .1); }
.quick-link-form > header > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #071018; background: var(--blue-bright); font-size: 1rem; font-weight: 900; }
.quick-link-form > header > div { display: grid; gap: 2px; }
.quick-link-form > header strong { color: #eaf5fb; font-size: .76rem; }
.quick-link-form > header small { color: #627287; font-size: .58rem; }
.quick-link-form label { display: grid; gap: 7px; color: #7f90a4; font-size: .61rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.quick-link-form input, .quick-link-form textarea { width: 100%; border: 1px solid rgba(151, 169, 193, .14); border-radius: 8px; outline: 0; padding: 11px 12px; color: #eaf3f8; background: #0b121c; font: 500 .72rem Inter, sans-serif; line-height: 1.45; text-transform: none; }
.quick-link-form textarea { resize: vertical; min-height: 94px; }
.quick-link-form input:focus, .quick-link-form textarea:focus { border-color: rgba(101, 216, 245, .45); box-shadow: 0 0 0 3px rgba(19, 189, 245, .06); }
.quick-link-form .quick-link-accent { grid-template-columns: 1fr auto; align-items: center; }
.quick-link-form .quick-link-accent input { width: 50px; height: 34px; padding: 3px; cursor: pointer; }
.quick-link-form-status { min-height: 18px; margin: 0; color: #d5b66d; font-size: .64rem; line-height: 1.45; }

@media (max-width: 850px) {
  .quick-links-layout { grid-template-columns: 1fr; }
  .quick-link-form { position: static; }
}

@media (max-width: 700px) {
  .quick-links-button { width: 42px; min-height: 42px; justify-content: center; padding: 7px; }
  .quick-links-button-label, .quick-links-button small { display: none; }
  .quick-links-dialog { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .quick-links-modal { min-height: 100%; padding: 20px 16px 28px; }
  .quick-links-grid { grid-template-columns: 1fr; }
}
.guild-modal-header { border-color: var(--line); }
.guild-modal-header h2, .character-modal h2 { letter-spacing: -.025em; }
.modal-close { border-color: var(--line-strong); background: rgba(255, 255, 255, .035); }
.member-search, .news-form input, .news-form textarea, .calendar-form input, .calendar-form textarea {
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  background: #0c121b;
}
.permission-group-grid > section, .member-list li, .raid-group, .raid-editor,
.character-stats > div, .combat-grid article, .gear-grid article, .raid-chart-card,
.claim-type-options button, .spec-option {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025);
}
.permission-group-grid > section { padding: 19px; }
.permission-role-list label { border-radius: 8px; background: #0c121b; }
.apexium-calendar { border-color: var(--line); border-radius: var(--radius-md); background: #0c121b; }
.raid-menu button { border-color: var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.raid-menu button > span { border-color: var(--line-strong); border-radius: 9px; }
.character-modal .guild-modal-header { background: linear-gradient(#111823 85%, transparent); }

* { scrollbar-color: #334153 #0b111a; scrollbar-width: thin; }

@media (max-width: 1180px) {
  .members-workspace .member-list { grid-template-columns: 1fr; }
  .members-workspace .member-list li { align-items: center; flex-direction: row; gap: 20px; }
  .members-workspace .member-list .member-identity { width: auto; }
  .members-workspace .member-list .member-actions { width: auto; }
}

@media (max-width: 980px) {
  .nav, main, footer { width: min(calc(100% - 36px), 760px); }
  .dashboard-nav, .dashboard-shell { width: min(calc(100% - 30px), 760px); }
  .dashboard-shell { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .dashboard-sidebar {
    position: static;
    display: grid;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 16px;
  }
  .sidebar-context { grid-column: 1 / -1; }
  .sidebar-label { grid-column: 1 / -1; }
  .sidebar-admin { margin-top: 0; }
  .sidebar-admin-section { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; }
  .sidebar-admin-section .sidebar-label { grid-column: 1 / -1; }
  .audit-log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-log-filters .audit-search { grid-column: span 2; }
  .hero { grid-template-columns: 1fr; gap: 42px; text-align: left; }
  .hero-copy { max-width: 660px; margin: 0; }
  .intro { margin-inline: 0; }
  .crest-wrap { grid-row: auto; width: 100%; margin: 0; }
}

@media (max-width: 700px) {
  .nav, main, footer, .dashboard-nav, .dashboard-shell { width: min(calc(100% - 24px), 620px); }
  .nav { min-height: 72px; }
  .hero { width: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr); margin: 18px auto 0; border-radius: 18px; padding: 34px 24px 24px; }
  .hero-copy { width: 100%; min-width: 0; max-width: calc(100vw - 72px); }
  h1 { max-width: 100%; font-size: clamp(2.5rem, 10.3vw, 4rem); }
  .intro { max-width: 100%; }
  .crest-wrap { min-height: 310px; }
  .pillars { grid-template-columns: 1fr; gap: 12px; }
  .pillars article { min-height: 0; padding: 24px; }
  .pillars article + article { border-left: 1px solid var(--line); }
  .dashboard-nav { gap: 12px; }
  .dashboard-brand { gap: 7px; font-size: .82rem; }
  .dashboard-brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .dashboard-brand-banner { height: clamp(138px, 34vw, 180px); margin-bottom: 22px; border-radius: 13px; }
  .dashboard-sidebar { grid-template-columns: 1fr; }
  .sidebar-label { grid-column: auto; }
  .sidebar-admin-section { grid-template-columns: 1fr; }
  .sidebar-admin-section .sidebar-label, .audit-log-filters .audit-search { grid-column: auto; }
  .audit-log-filters { grid-template-columns: 1fr; }
  .audit-log-modal { padding: 22px 18px; }
  .news-overview .news-heading h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .dashboard-overview h1 span { display: block; }
  .dashboard-overview h1 .dashboard-title-prefix { margin-right: 0; }
  .members-workspace .member-list li { align-items: start; flex-direction: column; gap: 9px; }
  .members-workspace .member-list .member-identity { width: 100%; }
  .members-workspace .member-list .member-actions { width: 100%; justify-content: space-between; }
  .news-post > header { padding-inline: 21px; }
  .news-content { padding-inline: 21px; }
  footer { align-items: flex-start; flex-direction: column; gap: 9px; }
}

@media (max-width: 520px) {
  .dashboard-actions { gap: 7px; }
  .dashboard-brand > span { display: none; }
  .profile-menu summary { min-width: 42px; }
  .role-preview-button, .locale-toggle { min-height: 38px; padding: 8px 9px; }
  .profile-menu summary { padding: 5px 7px; }
  .hero { padding-inline: 21px; }
  .crest-wrap { min-height: 260px; }
}

/* Command-center dashboard and landing-page depth */
.dashboard-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 82px 0 0;
  pointer-events: none;
  opacity: .58;
  background:
    linear-gradient(118deg, transparent 0 17.95%, rgba(101, 216, 245, .09) 18%, transparent 18.08%),
    linear-gradient(28deg, transparent 0 68.95%, rgba(242, 184, 75, .055) 69%, transparent 69.08%),
    linear-gradient(90deg, transparent 0 8%, rgba(101, 216, 245, .04) 8.04%, transparent 8.08% 91.92%, rgba(101, 216, 245, .035) 91.96%, transparent 92%),
    linear-gradient(transparent 0 31%, rgba(151, 169, 193, .035) 31.08%, transparent 31.16% 76%, rgba(151, 169, 193, .03) 76.08%, transparent 76.16%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 92%);
}

.dashboard-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18px;
  right: 0;
  width: min(34vw, 430px);
  height: 180px;
  border-top: 1px solid rgba(101, 216, 245, .09);
  border-right: 1px solid rgba(101, 216, 245, .07);
  background:
    linear-gradient(90deg, rgba(101, 216, 245, .1) 0 5px, transparent 5px) top left / 100% 1px no-repeat,
    radial-gradient(circle at 100% 0, rgba(101, 216, 245, .14) 0 2px, transparent 3px);
  pointer-events: none;
}

.command-overview { width: 100%; max-width: none; padding-top: 0; }
.command-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.command-heading > div { min-width: 0; }
.command-heading .eyebrow { margin-bottom: 11px; }
.command-heading h1 {
  margin: 0;
  font-size: clamp(2.75rem, 4.7vw, 4.7rem);
  line-height: .95;
}
.command-heading > div > p:last-child {
  max-width: 670px;
  margin: 17px 0 0;
  color: #8996a7;
  font-size: .86rem;
  line-height: 1.65;
}
.command-live {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(81, 217, 151, .15);
  border-radius: 999px;
  padding: 8px 11px;
  color: #8ca899;
  background: rgba(81, 217, 151, .045);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.command-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #51d997;
  box-shadow: 0 0 0 4px rgba(81, 217, 151, .08), 0 0 14px rgba(81, 217, 151, .45);
  animation: signalPulse 2.4s ease-in-out infinite;
}
.overview-status {
  min-height: 112px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #78869a;
  background: rgba(17, 24, 35, .78);
  text-align: center;
}
.overview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.overview-kpis article {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(23, 32, 44, .96), rgba(14, 21, 31, .94));
  box-shadow: 0 13px 35px rgba(0, 0, 0, .13);
}
.overview-kpis article::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -38px;
  bottom: -45px;
  transform: rotate(45deg);
  border: 1px solid rgba(101, 216, 245, .08);
}
.kpi-index {
  position: absolute;
  top: 13px;
  right: 14px;
  color: #4f5d70;
  font: 700 .57rem ui-monospace, monospace;
  letter-spacing: .1em;
}
.overview-kpis strong {
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.overview-kpis article > span:not(.kpi-index) {
  color: #c2ccd8;
  font-size: .72rem;
  font-weight: 800;
}
.overview-kpis small {
  overflow: hidden;
  color: #657286;
  font-size: .61rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-kpis article:nth-child(2) strong { color: var(--blue-bright); }
.overview-kpis article:nth-child(3) strong { color: var(--gold); }

.overview-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 14px;
  margin-top: 14px;
}
.overview-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 23px;
  background:
    linear-gradient(145deg, rgba(20, 29, 41, .96), rgba(13, 20, 30, .96)),
    var(--surface);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .15);
}
.overview-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
.overview-card > header h2 {
  margin: 3px 0 0;
  color: #edf2f7;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.overview-card > header > span {
  color: #5f6c7f;
  font-size: .57rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-align: right;
  text-transform: uppercase;
}
.overview-news {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(20, 29, 41, .96), rgba(13, 20, 30, .96)),
    var(--surface);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .15);
}
.overview-news-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 19px 23px;
  cursor: pointer;
  list-style: none;
}
.overview-news-summary::-webkit-details-marker { display: none; }
.overview-news-summary:hover { background: rgba(255, 255, 255, .02); }
.overview-news-summary:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: -3px; }
.overview-news-summary > span:first-child { display: grid; min-width: 0; gap: 3px; }
.overview-news-summary strong { color: #edf2f7; font-size: 1rem; }
.overview-news-summary strong span { color: var(--gold); }
.overview-news-summary small {
  overflow: hidden;
  color: #758397;
  font-size: .65rem;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-news-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .025);
}
.overview-news-toggle i {
  width: 8px;
  height: 8px;
  transform: translateY(-2px) rotate(45deg);
  border-right: 2px solid #8290a3;
  border-bottom: 2px solid #8290a3;
  transition: transform .2s ease;
}
.overview-news[open] .overview-news-toggle i { transform: translateY(2px) rotate(225deg); }
.overview-news-body { border-top: 1px solid var(--line); padding: 20px 23px 23px; }
.overview-news-toolbar { display: flex; justify-content: flex-end; }
.overview-news-toolbar .news-archive { width: min(420px, 100%); min-width: 0; margin-bottom: 16px; padding: 0; }
.overview-news .news-status { min-height: 130px; }
.card-kicker {
  margin: 0;
  color: var(--gold);
  font-size: .57rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.class-distribution-layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}
.overview-donut {
  position: relative;
  display: grid;
  width: 188px;
  height: 188px;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .24));
}
.overview-donut::before {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(151, 169, 193, .11);
  border-radius: inherit;
  background: #111925;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .24);
}
.overview-donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.overview-donut strong { font-size: 1.65rem; line-height: 1; letter-spacing: -.04em; }
.overview-donut span { color: #69778a; font-size: .57rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.class-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.class-legend li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8997aa;
  font-size: .66rem;
}
.class-legend li > span { display: flex; min-width: 0; align-items: center; gap: 7px; }
.class-legend li i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 2px;
  box-shadow: 0 0 10px color-mix(in srgb, currentColor 35%, transparent);
}
.class-legend li span span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.class-legend li strong { color: #d4dde7; font-size: .67rem; }

.role-balance { display: grid; gap: 15px; }
.role-balance > div { display: grid; gap: 7px; }
.role-balance > div > span {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: #8e9bad;
  font-size: .67rem;
}
.role-balance > div > span strong { color: #d9e1e9; font-size: .7rem; }
.role-dot { width: 7px; height: 7px; border-radius: 2px; }
.role-dot.tank { background: #4ea4e8; }
.role-dot.healer { background: #51cf88; }
.role-dot.damage { background: #d86f6f; }
.role-balance > div > i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}
.role-balance > div > i b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width .55s ease;
}
.role-balance > div:nth-child(2) > i b { background: #51cf88; }
.role-balance > div:nth-child(3) > i b { background: #d86f6f; }
.empty-overview-row { grid-column: 1 / -1; color: #657286 !important; font-size: .66rem !important; line-height: 1.5; }

.overview-priority-row { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: stretch; gap: 14px; margin-bottom: 14px; }
.overview-priority-row .overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-priority-row:has(.overview-upcoming-feature[hidden]) { grid-template-columns: 1fr; }
.overview-priority-row:has(.overview-upcoming-feature[hidden]) .overview-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.upcoming-events-card { grid-column: 1 / -1; }
.upcoming-events-card > header { align-items: center; margin-bottom: 17px; }
.overview-upcoming-feature {
  position: relative;
  display: flex;
  height: 314px;
  min-height: 0;
  flex-direction: column;
  grid-column: auto;
  margin: 0;
  overflow: hidden;
  border-color: rgba(242, 184, 75, .2);
  background:
    linear-gradient(115deg, rgba(242, 184, 75, .055), transparent 36%),
    linear-gradient(145deg, rgba(20, 29, 41, .98), rgba(13, 20, 30, .98));
}
.overview-upcoming-feature > header { flex: none; }
.overview-upcoming-feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--gold), rgba(242, 184, 75, .08));
}
.overview-upcoming-feature .upcoming-events {
  min-height: 0;
  flex: 1;
  grid-template-columns: 1fr;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(101, 216, 245, .28) transparent;
  scrollbar-width: thin;
}
.overview-upcoming-feature .upcoming-events button { padding-block: 8px; }
.overview-calendar-link {
  border: 1px solid rgba(101, 216, 245, .18);
  border-radius: 7px;
  padding: 8px 11px;
  color: #a9e9f8;
  background: rgba(101, 216, 245, .055);
  font: inherit;
  font-size: .61rem;
  font-weight: 800;
  cursor: pointer;
}
.overview-calendar-link:hover { border-color: rgba(101, 216, 245, .38); color: white; background: rgba(101, 216, 245, .11); }
.upcoming-events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.upcoming-events > li { min-width: 0; }
.upcoming-events > li.empty-overview-row { border: 1px dashed rgba(151, 169, 193, .12); border-radius: 9px; padding: 16px; }
.upcoming-events button {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(151, 169, 193, .11);
  border-radius: 9px;
  padding: 10px;
  color: inherit;
  background: rgba(255, 255, 255, .018);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.upcoming-events button:hover { transform: translateY(-2px); border-color: rgba(101, 216, 245, .25); background: rgba(101, 216, 245, .055); }
.upcoming-events time { display: grid; height: 47px; place-content: center; border: 1px solid rgba(242, 184, 75, .18); border-radius: 7px; color: var(--gold); background: rgba(242, 184, 75, .05); text-align: center; }
.upcoming-events time strong { font-size: 1rem; line-height: 1; }
.upcoming-events time span { margin-top: 3px; color: #947b4d; font-size: .52rem; font-weight: 800; text-transform: uppercase; }
.upcoming-events button > span { display: grid; min-width: 0; gap: 3px; }
.upcoming-events button > span strong { overflow: hidden; color: #dfe7ef; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-events button > span small { overflow: hidden; color: #647286; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-events button > i { color: #556477; font: 300 1.15rem sans-serif; }

.apexium-calendar .fc { height: 100%; }
.apexium-calendar .fc-toolbar { gap: 16px; margin-bottom: 12px !important; }
.apexium-calendar .fc-toolbar-title { color: #eef4f9; font-size: clamp(1.05rem, 2vw, 1.45rem) !important; letter-spacing: -.02em; }
.apexium-calendar .fc-button { padding: 7px 11px !important; font-size: .7rem !important; font-weight: 750 !important; text-transform: capitalize !important; }
.apexium-calendar .fc-col-header-cell-cushion { padding: 9px 4px !important; font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.apexium-calendar .fc-daygrid-day-number { padding: 7px 9px !important; color: #aeb9c6; font-size: .7rem; font-weight: 750; }
.apexium-calendar .fc-day-other { opacity: .34; }
.apexium-calendar .fc-day-today { background: rgba(101, 216, 245, .055) !important; box-shadow: inset 0 0 0 1px rgba(101, 216, 245, .12); }
.apexium-calendar .fc-day-today .fc-daygrid-day-number { color: var(--blue-bright); }
.apexium-calendar .fc-daygrid-event {
  margin: 2px 4px !important;
  border: 1px solid rgba(101, 216, 245, .18) !important;
  border-radius: 5px !important;
  padding: 3px 5px !important;
  color: #dff8ff !important;
  background: linear-gradient(90deg, rgba(18, 129, 166, .3), rgba(38, 84, 113, .2)) !important;
  box-shadow: inset 2px 0 var(--blue);
}
.apexium-calendar .fc-daygrid-event:hover { border-color: rgba(101, 216, 245, .38) !important; background: rgba(19, 189, 245, .18) !important; }
.apexium-calendar .fc-daygrid-event.calendar-absence-event { border-color: rgba(242, 184, 75, .24) !important; color: #ffe6a5 !important; background: linear-gradient(90deg, rgba(163, 101, 34, .34), rgba(105, 74, 34, .22)) !important; box-shadow: inset 2px 0 var(--gold); }
.apexium-calendar .fc-daygrid-event.calendar-absence-event:hover { border-color: rgba(242, 184, 75, .46) !important; background: rgba(171, 112, 43, .3) !important; }
.apexium-calendar .fc-event-time { color: #7dddf4; font-size: .58rem; font-weight: 850; }
.apexium-calendar .fc-event-title { overflow: hidden; font-size: .61rem; font-weight: 750; text-overflow: ellipsis; }
.apexium-calendar .fc-more-link { margin-left: 5px; color: var(--gold); font-size: .58rem; font-weight: 800; }

/* Landing page: subtle motion and another content layer */
.crest { animation: crestDrift 7s ease-in-out infinite; }
.crest-glow { animation: crestGlow 5.5s ease-in-out infinite; }
.crest-wrap::before { animation: crestFrame 16s linear infinite; }
.home-news {
  position: relative;
  overflow: hidden;
  margin: 26px 0;
  border: 1px solid rgba(242, 184, 75, .2);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(120deg, rgba(242, 184, 75, .07), transparent 34%),
    linear-gradient(145deg, rgba(19, 28, 41, .96), rgba(10, 17, 27, .96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .2);
}
.home-news::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--gold), rgba(242, 184, 75, .08));
}
.home-news-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(151, 169, 193, .12);
  padding-bottom: 20px;
}
.home-news-heading h2 {
  margin: 5px 0 0;
  color: #f0f4f8;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.home-news-heading time {
  flex: 0 0 auto;
  border: 1px solid rgba(242, 184, 75, .2);
  border-radius: 999px;
  padding: 7px 10px;
  color: #d9bd7c;
  background: rgba(242, 184, 75, .055);
  font: 700 .65rem ui-monospace, monospace;
}
.home-news-post h3 {
  margin: 24px 0 0;
  color: #f1f7fd;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  line-height: 1.25;
}
.home-news-content {
  padding: 17px 0 22px;
  color: #a9b8c9;
  font-size: .9rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.home-news-content > :first-child { margin-top: 0; }
.home-news-content > :last-child { margin-bottom: 0; }
.home-news-content p { margin: 0 0 1em; }
.home-news-content h2, .home-news-content h3 { margin: 1.2em 0 .45em; color: #e7f5ff; line-height: 1.3; }
.home-news-content h2 { font-size: 1.3rem; }
.home-news-content h3 { font-size: 1.1rem; }
.home-news-content ul, .home-news-content ol { margin: .5em 0 1em; padding-left: 1.6em; }
.home-news-content li { margin: .25em 0; }
.home-news-content blockquote { margin: .8em 0; border-left: 3px solid rgba(19, 189, 245, .55); padding: .25em 0 .25em 1em; color: #c3d5e7; }
.home-news-content a { color: var(--blue-bright); text-underline-offset: 3px; }
.home-news-content code { border-radius: 4px; padding: .12em .35em; color: #d7f4ff; background: rgba(0, 0, 0, .26); font: .9em ui-monospace, monospace; }
.home-news-content pre { overflow-x: auto; border-radius: 7px; padding: 14px; background: rgba(0, 0, 0, .28); }
.home-news-content pre code { padding: 0; background: transparent; }
.home-news-content img { display: block; width: auto; max-width: 100%; max-height: 720px; margin: 1em auto; border-radius: 10px; object-fit: contain; }
.home-news-content.is-plain-text { white-space: pre-wrap; }
.home-news-content .ql-align-center { text-align: center; }
.home-news-content .ql-align-right { text-align: right; }
.home-news-content .ql-align-justify { text-align: justify; }
.home-news-content .ql-indent-1 { margin-left: 2em; }
.home-news-content .ql-indent-2 { margin-left: 4em; }
.home-news-content .ql-indent-3 { margin-left: 6em; }
.home-news-post > footer {
  display: block;
  width: auto;
  margin: 0;
  border-top: 1px solid rgba(151, 169, 193, .1);
  padding: 14px 0 0;
  color: #687b93;
  font-size: .66rem;
  letter-spacing: .05em;
}
.home-news-post > footer strong { margin-left: 4px; color: #a7bdd1; }
.home-news-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.home-news-media figure { min-width: 0; overflow: hidden; margin: 0; border: 1px solid rgba(115, 178, 222, .14); border-radius: 10px; background: #070d15; }
.home-news-media figure:has(video) { grid-column: 1 / -1; }
.home-news-media img, .home-news-media video { display: block; width: 100%; max-height: 620px; object-fit: contain; background: #03070c; }
.home-news-media figcaption { overflow: hidden; padding: 9px 11px; color: #718398; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.home-recruitment { position: relative; overflow: hidden; margin: 26px 0; border: 1px solid rgba(103, 221, 255, .18); border-radius: 22px; padding: clamp(24px, 4vw, 40px); background: linear-gradient(135deg, rgba(19, 189, 245, .075), rgba(12, 18, 27, .88) 46%, rgba(242, 184, 75, .035)); box-shadow: 0 22px 60px rgba(0, 0, 0, .18); }
.home-recruitment::before { content: ""; position: absolute; width: 230px; height: 230px; right: -90px; top: -120px; border-radius: 50%; background: rgba(19, 189, 245, .12); filter: blur(55px); pointer-events: none; }
.home-recruitment > header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.home-recruitment h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: -.035em; text-transform: uppercase; }
.home-recruitment h2 span { color: var(--blue-bright); }
.home-recruitment > header > span { border: 1px solid rgba(103, 221, 255, .2); border-radius: 999px; padding: 7px 10px; color: #83d9ef; background: rgba(19, 189, 245, .07); font-size: .6rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.home-recruitment > p { max-width: 670px; margin: 12px 0 22px; color: #8998aa; font-size: .82rem; line-height: 1.65; }
.home-recruitment-list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-recruitment-list > article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid rgba(115, 178, 222, .13); border-radius: 10px; padding: 13px 14px; background: rgba(5, 11, 19, .7); }
.home-recruitment-list > article > i { width: 4px; height: 36px; border-radius: 999px; background: var(--need-class-colour); box-shadow: 0 0 13px var(--need-class-colour); }
.home-recruitment-list > article > div { display: grid; min-width: 0; gap: 2px; }
.home-recruitment-list strong { overflow: hidden; color: #edf8ff; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.home-recruitment-list > article > div > span { overflow: hidden; color: #788a9f; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.home-recruitment-priority { border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px 6px; color: #8b9aac; font-size: .5rem; font-weight: 900; text-transform: uppercase; }
.home-recruitment-list .priority-high .home-recruitment-priority { border-color: rgba(255, 105, 105, .25); color: #ef9999; background: rgba(190, 47, 47, .08); }
.home-recruitment-list .priority-medium .home-recruitment-priority { border-color: rgba(242, 184, 75, .25); color: #dcbb74; background: rgba(242, 184, 75, .07); }
.home-recruitment-list .priority-low .home-recruitment-priority { border-color: rgba(103, 221, 255, .2); color: #7ad0e7; background: rgba(19, 189, 245, .06); }
.home-recruitment-list > article > p { grid-column: 2 / -1; margin: 0; color: #6e8095; font-size: .6rem; line-height: 1.45; }
.home-recruitment-apply { margin-top: 18px; border: 1px solid rgba(103, 221, 255, .26); border-radius: 7px; padding: 11px 15px; color: #dff9ff; background: rgba(19, 189, 245, .1); font: inherit; font-size: .72rem; font-weight: 900; cursor: pointer; }
.home-recruitment-apply:hover { background: rgba(19, 189, 245, .18); }

.home-pulse {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 30px 60px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 58px);
  background:
    linear-gradient(112deg, rgba(23, 32, 44, .96), rgba(13, 20, 30, .96)),
    var(--surface);
}
.home-pulse > div:first-child { position: relative; }
.home-pulse > div:first-child::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, rgba(101, 216, 245, .25), transparent);
}
.home-pulse .eyebrow { margin-bottom: 10px; }
.home-pulse h2 {
  max-width: 520px;
  margin: 0;
  color: #f0f3f7;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.home-pulse h2 span { color: var(--blue-bright); }
.home-pulse > p { margin: 0; color: #8996a8; font-size: .9rem; line-height: 1.75; }
.pulse-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.pulse-tags span {
  border: 1px solid rgba(151, 169, 193, .13);
  border-radius: 999px;
  padding: 8px 11px;
  color: #8d9aac;
  background: rgba(255, 255, 255, .025);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* BIS gear */
.sidebar-bis-gear .sidebar-icon { border-color: rgba(242, 184, 75, .24); color: var(--gold); background: rgba(242, 184, 75, .07); }
.sidebar-current-gear .sidebar-icon { border-color: rgba(75, 208, 169, .28); color: #62e0b8; background: rgba(75, 208, 169, .08); font-size: .56rem; }

/* Current gear matrix */
.current-gear-dialog {
  width: min(1880px, calc(100vw - 28px));
  height: min(1120px, calc(100dvh - 28px));
  max-width: none;
  max-height: none;
  border: 1px solid rgba(107, 224, 190, .2);
  border-radius: 20px;
  padding: 0;
  color: var(--text);
  background: #080c13;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .78), 0 0 70px rgba(43, 188, 151, .07);
  overflow: hidden;
}

/* Unified BIS matrix and in-game item tooltips */
.current-gear-item { border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; }
.bis-dialog.bis-matrix-dialog { width: min(1880px, calc(100vw - 28px)); height: min(1120px, calc(100dvh - 28px)); max-width: none; max-height: none; border-radius: 20px; background: #080c13; }
.bis-matrix-dialog .bis-modal, .bis-gear-workspace .bis-modal { padding: 0; }
.bis-matrix-header { background: radial-gradient(circle at 14% -80%, rgba(151, 105, 255, .23), transparent 48%), linear-gradient(100deg, rgba(28, 26, 43, .97), rgba(10, 14, 22, .96)); }
.bis-matrix-header .eyebrow, .bis-matrix-header h2 span { color: #b69aff; }
.bis-matrix-live { border-color: rgba(151, 105, 255, .25); color: #c4b2ff; background: rgba(151, 105, 255, .07); }
.bis-matrix-live i { background: #9d7cff; box-shadow: 0 0 12px #9d7cff; }
.bis-matrix-refresh { border-color: rgba(157, 124, 255, .24); color: #c1afff; background: rgba(157, 124, 255, .07); }
.bis-matrix-refresh:hover:not(:disabled) { border-color: rgba(157, 124, 255, .48); color: #e2d9ff; background: rgba(157, 124, 255, .13); }
.bis-matrix-refresh.syncing { animation: bis-refresh-spin .8s linear infinite; }
@keyframes bis-refresh-spin { to { transform: rotate(360deg); } }
.bis-matrix-dialog .bis-status, .bis-gear-workspace .bis-status { margin: 0; }
.bis-matrix-frame { min-height: 0; }
.bis-matrix-dialog .bis-main-list, .bis-gear-workspace .bis-main-list { display: block; width: max-content; min-width: 100%; gap: 0; overflow: visible; padding: 0; }
.bis-matrix-row { grid-template-columns: 220px 78px 88px repeat(16, 68px); }
.bis-matrix-identity { position: sticky; }
.bis-matrix-identity .current-gear-portrait { position: relative; overflow: hidden; }
.bis-matrix-identity .current-gear-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bis-matrix-edit { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; margin-left: auto; border: 1px solid rgba(242, 184, 75, .22); border-radius: 7px; padding: 0; color: #daba6c; background: rgba(242, 184, 75, .055); font: 800 .67rem ui-monospace, monospace; cursor: pointer; }
.bis-matrix-edit:hover { border-color: rgba(242, 184, 75, .5); color: #ffe2a0; background: rgba(242, 184, 75, .11); }
.bis-matrix-metric { color: #aab6c3; font-size: .62rem; }
.bis-matrix-metric.planned { color: #b9a4ee; }
.bis-matrix-metric.complete { color: #6ce1a3; }
.bis-matrix-item .bis-item-icon { width: 43px; height: 43px; border: 1px solid color-mix(in srgb, var(--current-item-quality) 55%, transparent); border-radius: 7px; background: #080b10; box-shadow: 0 3px 12px rgba(0, 0, 0, .25); }
.bis-matrix-item.acquired .bis-item-icon { border-color: rgba(81, 217, 151, .82); box-shadow: 0 0 12px rgba(81, 217, 151, .14); }
.bis-matrix-item.acquired::after, .bis-matrix-item.equipped::before { position: absolute; z-index: 4; width: 7px; height: 7px; border: 1px solid #07100d; border-radius: 50%; content: ''; }
.bis-matrix-item.acquired::after { top: 1px; right: 1px; background: #51d997; box-shadow: 0 0 7px rgba(81, 217, 151, .75); }
.bis-matrix-item.equipped::before { right: 1px; bottom: 8px; background: #4bc6ee; box-shadow: 0 0 7px rgba(75, 198, 238, .75); }
.bis-matrix-footer .quality-dot.acquired { background: #51d997; box-shadow: 0 0 7px rgba(81, 217, 151, .65); }
.bis-matrix-footer .quality-dot.equipped { background: #4bc6ee; box-shadow: 0 0 7px rgba(75, 198, 238, .65); }

.game-item-tooltip, .bis-hover-card.game-item-tooltip {
  position: fixed;
  z-index: 20000;
  inset: auto;
  display: grid;
  width: min(395px, calc(100vw - 20px));
  max-height: min(720px, calc(100dvh - 20px));
  margin: 0;
  gap: 3px;
  overflow-y: auto;
  border: 2px solid color-mix(in srgb, var(--game-item-quality, var(--bis-item-quality, #a335ee)) 50%, #4b5263);
  border-radius: 4px;
  padding: 10px 11px;
  color: #f5f5f5;
  background: rgba(2, 8, 27, .965);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .9), 0 15px 38px rgba(0, 0, 0, .78);
  pointer-events: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  line-height: 1.28;
}
.game-item-tooltip[hidden], .bis-hover-card.game-item-tooltip[hidden] { display: none; }
.game-tooltip-name { padding-right: 30px; color: var(--game-item-quality, #a335ee); font-size: .98rem; font-weight: 700; line-height: 1.25; }
.game-tooltip-level { color: #ffd100; font-size: .82rem; }
.game-tooltip-pair { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.game-tooltip-slot, .game-tooltip-type { color: #fff; }
.game-tooltip-set { margin-top: 3px; color: #ffd100; }
.game-tooltip-stat, .game-tooltip-enchant { color: #20ff20; }
.game-tooltip-effect { margin-top: 3px; color: #ffd100; line-height: 1.38; }
.game-tooltip-socket { display: flex; align-items: center; gap: 6px; color: #20ff20; }
.game-tooltip-socket img { width: 20px; height: 20px; border: 1px solid rgba(255, 209, 0, .4); border-radius: 3px; }
.game-tooltip-actions, .bis-hover-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 8px; border-top: 1px solid rgba(167, 177, 198, .26); padding-top: 8px; }
.game-tooltip-actions a, .bis-hover-actions a { color: #ffd100; font-size: .68rem; font-weight: 700; text-decoration: none; }
.game-tooltip-actions a:hover, .bis-hover-actions a:hover { color: #fff0a0; }
.game-tooltip-actions button, .bis-hover-actions button { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(167, 177, 198, .35); border-radius: 3px; padding: 0; color: #dfe5ef; background: rgba(255, 255, 255, .055); font: 700 .9rem/1 Arial, sans-serif; cursor: pointer; }
.game-item-tooltip .item-tooltip-close { position: absolute; z-index: 3; top: 8px; right: 8px; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(167, 177, 198, .38); border-radius: 4px; padding: 0; color: #e1e7ef; background: rgba(7, 13, 28, .92); font: 800 .95rem/1 Arial, sans-serif; cursor: pointer; }
.game-item-tooltip .item-tooltip-close:hover, .game-item-tooltip .item-tooltip-close:focus-visible { border-color: rgba(101, 216, 245, .65); color: white; background: rgba(35, 75, 98, .92); outline: 0; }
.bis-hover-header { grid-template-columns: 45px minmax(0, 1fr); gap: 9px; }
.bis-hover-header > span:last-child { padding-right: 30px; }
.bis-hover-header > .bis-item-icon { width: 45px; height: 45px; border-radius: 4px; }
.bis-hover-header small { color: #aab2c0; font-size: .62rem; }
.bis-hover-header strong { color: var(--bis-item-quality, #a335ee); font-size: .94rem; }
.bis-hover-type { color: #fff; font-size: .72rem; }
.bis-hover-facts { margin-top: 2px; }
.bis-hover-facts > span { border: 0; padding: 0; background: transparent; }
.bis-hover-facts small { display: none; }
.bis-hover-facts strong { color: #ffd100; font-size: .8rem; }
.bis-hover-source { margin-top: 4px; border-top-color: rgba(167, 177, 198, .22); }
.bis-hover-source small { color: #aab2c0; font-size: .6rem; }
.bis-hover-source strong { color: #ffd100; font-size: .72rem; }
.bis-hover-viserio { border: 0; padding: 0; color: #20ff20; background: transparent; font-size: .72rem; }
.bis-hover-note { border: 0; padding: 0; color: #20ff20; font-size: .72rem; }
.bis-hover-footer { color: #d8dee8; font-size: .68rem; }
.bis-hover-footer .equipped { color: #53d7ff; }

@media (max-width: 760px) {
  .bis-dialog.bis-matrix-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); border-radius: 14px; }
  .bis-matrix-dialog .bis-modal, .bis-gear-workspace .bis-modal { padding: 0; }
  .bis-matrix-row { grid-template-columns: 176px 68px 76px repeat(16, 62px); }
}
.current-gear-dialog::backdrop { background: rgba(2, 5, 10, .88); backdrop-filter: blur(9px); }
.current-gear-modal { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.current-gear-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(137, 157, 181, .11);
  padding: 25px clamp(20px, 2.4vw, 38px) 21px;
  background:
    radial-gradient(circle at 14% -80%, rgba(75, 208, 169, .21), transparent 48%),
    linear-gradient(100deg, rgba(24, 35, 43, .96), rgba(10, 14, 22, .96));
}
.current-gear-header .eyebrow { margin: 0 0 6px; color: #5adab2; }
.current-gear-header h2 { margin: 0; color: #f3f7fa; font-size: clamp(1.65rem, 2.5vw, 2.65rem); line-height: 1; letter-spacing: -.04em; }
.current-gear-header h2 span { color: #5adab2; }
.current-gear-header > div:first-child > p:last-child { margin: 8px 0 0; color: #77869a; font-size: .7rem; }
.current-gear-header-actions { display: flex; align-items: center; gap: 10px; }
.current-gear-live { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(89, 222, 178, .2); border-radius: 999px; padding: 7px 10px; color: #7ce7c3; background: rgba(51, 191, 146, .055); font: 800 .54rem ui-monospace, monospace; letter-spacing: .1em; }
.current-gear-live i { width: 6px; height: 6px; border-radius: 50%; background: #50e3af; box-shadow: 0 0 12px #50e3af; animation: current-gear-pulse 2s ease-in-out infinite; }
.current-gear-refresh { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(137, 157, 181, .16); border-radius: 9px; color: #a6b4c5; background: rgba(255, 255, 255, .025); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.current-gear-refresh:hover:not(:disabled) { border-color: rgba(89, 222, 178, .4); color: #7ce7c3; background: rgba(89, 222, 178, .07); }
.current-gear-refresh:disabled { cursor: wait; opacity: .45; }
@keyframes current-gear-pulse { 50% { opacity: .4; box-shadow: 0 0 4px #50e3af; } }

.current-gear-toolbar { display: flex; min-height: 66px; flex: 0 0 auto; align-items: center; gap: 12px; border-bottom: 1px solid rgba(137, 157, 181, .1); padding: 11px clamp(16px, 2vw, 30px); background: #0b1018; }
.current-gear-search { position: relative; width: min(330px, 27vw); min-width: 220px; }
.current-gear-search input { width: 100%; height: 40px; border: 1px solid rgba(137, 157, 181, .15); border-radius: 9px; outline: 0; padding: 0 13px 0 38px; color: #e7eef5; background: rgba(0, 0, 0, .22); font: inherit; font-size: .7rem; }
.current-gear-search input:focus { border-color: rgba(89, 222, 178, .42); box-shadow: 0 0 0 3px rgba(89, 222, 178, .055); }
.current-gear-search .search-icon { position: absolute; z-index: 1; top: 13px; left: 14px; }
.current-gear-role-filters { display: flex; min-width: 0; gap: 5px; overflow-x: auto; }
.current-gear-role-filters button { min-height: 36px; border: 1px solid transparent; border-radius: 8px; padding: 0 11px; color: #717f91; background: transparent; font: inherit; font-size: .57rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.current-gear-role-filters button i { color: #94a2b4; font-style: normal; }
.current-gear-role-filters button:hover { color: #c6d2de; background: rgba(255, 255, 255, .03); }
.current-gear-role-filters button.active { border-color: rgba(89, 222, 178, .22); color: #8ae8ca; background: rgba(89, 222, 178, .075); }
.current-gear-count { margin-left: auto; color: #657488; font: 700 .6rem ui-monospace, monospace; white-space: nowrap; }
.current-gear-status { display: grid; min-height: 0; flex: 1; place-items: center; margin: 0; padding: 44px; color: #718196; font-size: .72rem; }
.current-gear-frame { --gear-grid-width: 1474px; min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; background: #080c12; scrollbar-width: thin; scrollbar-color: rgba(112, 132, 155, .42) transparent; }
.current-gear-frame::-webkit-scrollbar { width: 8px; height: 8px; }
.current-gear-frame::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(112, 132, 155, .42); }
.current-gear-frame::-webkit-scrollbar-track { background: transparent; }
.current-gear-table, .bis-matrix-dialog .bis-main-list, .bis-gear-workspace .bis-main-list { width: var(--gear-grid-width); min-width: var(--gear-grid-width); }
.current-gear-grid-row { display: grid; width: var(--gear-grid-width); min-width: var(--gear-grid-width); grid-template-columns: 220px 78px 88px repeat(16, 68px); }
.current-gear-grid-header { position: sticky; z-index: 12; top: 0; min-height: 45px; border-bottom: 1px solid rgba(137, 157, 181, .14); background: rgba(10, 14, 22, .97); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.current-gear-column-title { display: grid; min-width: 0; place-items: center; border-right: 1px solid rgba(137, 157, 181, .08); padding: 8px 4px; color: #78869a; font: 800 .55rem ui-monospace, monospace; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.current-gear-grid-header .current-gear-sticky { z-index: 15; justify-content: start; padding-left: 17px; background: #0b1018; }
.current-gear-role-heading { position: sticky; z-index: 8; left: 0; display: flex; width: var(--gear-grid-width); height: 38px; align-items: center; gap: 9px; border-block: 1px solid rgba(137, 157, 181, .1); padding: 0 17px; color: #8390a1; background: linear-gradient(90deg, #0d131c 0, #0a0f17 70%, rgba(10, 15, 23, .93)); }
.current-gear-role-heading:first-of-type { border-top: 0; }
.current-gear-role-heading > span { display: grid; width: 19px; height: 19px; place-items: center; color: var(--role-colour); font-size: .72rem; }
.current-gear-role-heading strong { color: #98a5b6; font-size: .62rem; letter-spacing: .08em; }
.current-gear-role-heading small { color: #596779; font: 800 .52rem ui-monospace, monospace; }
.current-gear-role-heading.tank { --role-colour: #5c9bff; }
.current-gear-role-heading.healer { --role-colour: #55db8a; }
.current-gear-role-heading.melee { --role-colour: #ef6c6c; }
.current-gear-role-heading.ranged { --role-colour: #e9bc4e; }
.current-gear-role-heading.unknown { --role-colour: #7d8998; }
.current-gear-character-row { position: relative; min-height: 68px; border-bottom: 1px solid rgba(137, 157, 181, .075); background: rgba(255, 255, 255, .008); }
.current-gear-character-row:hover { background: color-mix(in srgb, var(--current-class-colour) 3.5%, rgba(255, 255, 255, .012)); }
.current-gear-character-row.unavailable { opacity: .55; }
.current-gear-sticky { position: sticky; z-index: 5; left: 0; }
.current-gear-identity { display: flex; min-width: 0; align-items: center; gap: 11px; border-right: 1px solid rgba(137, 157, 181, .11); padding: 8px 13px; background: linear-gradient(90deg, color-mix(in srgb, var(--current-class-colour) 8%, #0c1119), #0c1119 72%); box-shadow: 8px 0 18px rgba(0, 0, 0, .15); }
.current-gear-identity::before { position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--current-class-colour); content: ''; opacity: .8; }
.current-gear-identity > span:last-child { display: grid; min-width: 0; gap: 3px; }
.current-gear-identity strong { overflow: hidden; color: var(--current-class-colour); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.current-gear-identity small { overflow: hidden; color: #617085; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
.current-gear-portrait { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid color-mix(in srgb, var(--current-class-colour) 50%, transparent); border-radius: 8px; color: var(--current-class-colour); background: color-mix(in srgb, var(--current-class-colour) 9%, #090e15); box-shadow: inset 0 0 16px color-mix(in srgb, var(--current-class-colour) 8%, transparent); font: 900 .52rem ui-monospace, monospace; }
.current-gear-portrait { position: relative; overflow: hidden; }
.current-gear-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.current-gear-metric { display: grid; place-items: center; border-right: 1px solid rgba(137, 157, 181, .075); color: #c7d2da; background: rgba(255, 255, 255, .012); font: 800 .72rem ui-monospace, monospace; }
.current-gear-metric.muted { color: #566273; }
.current-gear-cell { display: grid; place-items: center; border-right: 1px solid rgba(137, 157, 181, .065); background: rgba(58, 99, 55, .055); }
.current-gear-cell.empty { color: #303947; background: rgba(255, 255, 255, .004); font: 600 .7rem ui-monospace, monospace; }
.current-gear-item { position: relative; display: grid; width: 51px; height: 56px; align-content: start; justify-items: center; color: var(--current-item-quality); text-decoration: none; }
.current-gear-item img, .current-gear-item-fallback { width: 43px; height: 43px; border: 1px solid color-mix(in srgb, var(--current-item-quality) 55%, transparent); border-radius: 7px; background: #080b10; object-fit: cover; box-shadow: 0 3px 12px rgba(0, 0, 0, .25); }
.current-gear-item-fallback { display: grid; place-items: center; color: var(--current-item-quality); font: 900 .72rem ui-monospace, monospace; }
.current-gear-item strong { position: relative; z-index: 2; margin-top: -2px; border-radius: 4px; padding: 1px 4px; color: var(--current-item-quality); background: #080c12; font: 900 .56rem ui-monospace, monospace; line-height: 1.1; text-shadow: 0 1px 3px #000; }
.current-gear-item:hover { z-index: 3; transform: translateY(-2px) scale(1.04); filter: brightness(1.12); }
.current-gear-set-marker { position: absolute; top: 1px; right: 1px; width: 7px; height: 7px; border: 1px solid #d6b2ff; border-radius: 50%; background: #9b5de0; box-shadow: 0 0 8px #9b5de0; }
.current-gear-footer { display: flex; min-height: 39px; flex: 0 0 auto; align-items: center; gap: 18px; border-top: 1px solid rgba(137, 157, 181, .1); padding: 0 24px; color: #566476; background: #0a0f17; font-size: .52rem; }
.current-gear-footer span { display: inline-flex; align-items: center; gap: 6px; }
.current-gear-footer span:last-child { margin-left: auto; font-family: ui-monospace, monospace; }
.quality-dot { width: 6px; height: 6px; border-radius: 50%; }
.quality-dot.epic { background: #bd64ff; box-shadow: 0 0 7px rgba(189, 100, 255, .6); }
.quality-dot.set { border: 1px solid #d6b2ff; background: #9b5de0; }

@media (max-width: 760px) {
  .current-gear-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); border-radius: 14px; }
  .current-gear-header { align-items: flex-start; padding: 18px 16px 15px; }
  .current-gear-header > div:first-child > p:last-child, .current-gear-live { display: none; }
  .current-gear-toolbar { align-items: stretch; flex-direction: column; padding: 10px 12px; }
  .current-gear-search { width: 100%; min-width: 0; }
  .current-gear-count { position: absolute; visibility: hidden; }
  .current-gear-frame { --gear-grid-width: 1312px; }
  .current-gear-grid-row { grid-template-columns: 176px 68px 76px repeat(16, 62px); }
  .current-gear-identity { gap: 8px; padding-inline: 9px; }
  .current-gear-portrait { width: 34px; height: 34px; flex-basis: 34px; }
  .current-gear-footer { padding-inline: 13px; }
  .current-gear-footer span:nth-child(-n+2) { display: none; }
}
.bis-dialog, .bis-view-dialog, .bis-edit-dialog {
  max-height: calc(100dvh - 30px);
  border: 1px solid rgba(101, 216, 245, .2);
  border-radius: 20px;
  padding: 0;
  color: var(--text);
  background: #111823;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .68);
}
.bis-dialog { width: min(1320px, calc(100% - 30px)); height: min(840px, calc(100dvh - 30px)); overflow: hidden; }
.bis-view-dialog { width: min(1040px, calc(100% - 30px)); }
.bis-edit-dialog { width: min(980px, calc(100% - 30px)); }
.bis-dialog::backdrop, .bis-view-dialog::backdrop, .bis-edit-dialog::backdrop { background: rgba(3, 6, 10, .8); backdrop-filter: blur(10px); }
.bis-modal { display: flex; height: 100%; min-height: 0; flex-direction: column; padding: clamp(22px, 3vw, 34px); }
.bis-view-modal, .bis-edit-modal { max-height: calc(100dvh - 32px); padding: clamp(22px, 3vw, 34px); overflow-y: auto; }
.bis-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 21px 0 16px; }
.bis-toolbar > div { display: grid; max-width: 560px; gap: 4px; }
.bis-toolbar strong { color: #e8edf4; font-size: .88rem; }
.bis-toolbar p, .bis-edit-copy { margin: 0; color: #748196; font-size: .7rem; line-height: 1.55; }
.bis-search { width: min(390px, 44%); margin: 0; }
.bis-status { margin: 20px 0; color: #718096; font-size: .76rem; }
.bis-main-list { display: grid; min-height: 0; gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 12px 2px; }
.bis-main-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 215px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  overflow: hidden;
  border: 1px solid rgba(151, 169, 193, .12);
  border-radius: 14px;
  padding: 13px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--bis-class-colour) 7%, transparent), transparent 31%), rgba(255, 255, 255, .018);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.bis-main-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--bis-class-colour); opacity: .7; }
.bis-main-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--bis-class-colour) 38%, transparent); background-color: rgba(255, 255, 255, .027); }
.bis-main-identity, .bis-view-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.bis-main-portrait, .bis-view-portrait {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bis-class-colour, var(--gold)) 42%, transparent);
  border-radius: 11px;
  color: var(--bis-class-colour, var(--gold));
  background: #0a111b;
  font-size: 1.1rem;
  font-weight: 900;
}
.bis-main-portrait img, .bis-view-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bis-main-name { display: grid; min-width: 0; gap: 3px; }
.bis-main-name strong { overflow: hidden; color: var(--bis-class-colour); font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.bis-main-name span { overflow: hidden; color: #7e8b9e; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.bis-main-name small { color: #526073; font-size: .55rem; }
.bis-sync-badge { display: inline-flex; width: fit-content; align-items: center; border: 1px solid rgba(151, 169, 193, .16); border-radius: 999px; padding: 2px 6px; color: #708097; background: rgba(255, 255, 255, .025); font: 800 .48rem ui-monospace, monospace; letter-spacing: .06em; }
.bis-sync-badge.viserio { border-color: rgba(145, 105, 255, .32); color: #b8a3ff; background: rgba(145, 105, 255, .08); }
.bis-track-wrap { display: grid; min-width: 0; gap: 5px; }
.bis-gear-track { display: grid; min-width: 0; grid-template-columns: repeat(16, 48px); gap: 6px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 1px 5px; }
.bis-compact-item { position: relative; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(151, 169, 193, .12); border-radius: 8px; padding: 0; color: #4c596b; background: rgba(0, 0, 0, .15); font: inherit; text-decoration: none; cursor: pointer; }
.bis-compact-item.filled { border-color: color-mix(in srgb, var(--bis-item-quality, #f2b84b) 48%, transparent); color: var(--bis-item-quality, #e7bc62); background: color-mix(in srgb, var(--bis-item-quality, #f2b84b) 7%, transparent); box-shadow: inset 0 0 16px color-mix(in srgb, var(--bis-item-quality, #f2b84b) 5%, transparent); transition: border-color .18s, transform .18s, box-shadow .18s; }
.bis-compact-item.filled:hover, .bis-compact-item.filled:focus-visible { z-index: 1; transform: translateY(-2px); border-color: color-mix(in srgb, var(--bis-item-quality, #f2b84b) 78%, transparent); outline: 0; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.bis-compact-item.filled.equipped { border-color: rgba(75, 198, 238, .75); background: rgba(75, 198, 238, .08); box-shadow: inset 0 0 17px rgba(75, 198, 238, .08), 0 0 0 1px rgba(75, 198, 238, .07); }
.bis-compact-item.filled.acquired { border-color: rgba(81, 217, 151, .72); color: #7ee3ae; background: rgba(81, 217, 151, .09); box-shadow: inset 0 0 17px rgba(81, 217, 151, .08), 0 0 0 1px rgba(81, 217, 151, .08); }
.bis-compact-item.filled.acquired:hover, .bis-compact-item.filled.acquired:focus-visible { border-color: #65e2a3; box-shadow: 0 8px 24px rgba(21, 126, 77, .22), inset 0 0 18px rgba(81, 217, 151, .1); }
.bis-compact-item.filled.equipped::after { position: absolute; z-index: 2; right: -3px; bottom: -3px; width: 9px; height: 9px; border: 2px solid #111923; border-radius: 50%; background: #4bc6ee; box-shadow: 0 0 8px rgba(75, 198, 238, .72); content: ""; }
.bis-item-icon { position: relative; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; border-radius: inherit; font: 800 .55rem ui-monospace, monospace; }
.bis-item-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bis-track-meta { color: #72bd98; font-size: .52rem; font-weight: 700; }
.bis-main-actions { display: grid; gap: 7px; }
.bis-main-actions button { min-width: 82px; border-radius: 7px; padding: 8px 11px; font: inherit; font-size: .62rem; font-weight: 800; cursor: pointer; }
.bis-view-button { border: 1px solid rgba(101, 216, 245, .2); color: #ace9f7; background: rgba(101, 216, 245, .055); }
.bis-edit-button { border: 1px solid rgba(242, 184, 75, .24); color: #e9c879; background: rgba(242, 184, 75, .065); }
.bis-main-actions button:hover { filter: brightness(1.28); }
.bis-view-identity { margin: 22px 0; border: 1px solid rgba(151, 169, 193, .11); border-radius: 13px; padding: 14px; background: rgba(255, 255, 255, .018); }
.bis-view-identity > div { display: grid; gap: 5px; }
.bis-view-identity strong { color: #e6edf5; font-size: .9rem; }
.bis-view-identity span { color: #6f7e92; font-size: .66rem; }
.bis-view-portrait { width: 76px; height: 76px; flex-basis: 76px; }
.bis-view-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.bis-view-grid article { position: relative; display: grid; min-width: 0; gap: 9px; border: 1px solid rgba(151, 169, 193, .11); border-radius: 11px; padding: 11px; background: rgba(255, 255, 255, .018); }
.bis-view-grid article > span { color: #68778c; font-size: .54rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bis-view-grid article > a { display: grid; min-width: 0; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 4px 10px; color: inherit; text-decoration: none; }
.bis-view-grid article > a .bis-item-icon { grid-row: 1 / 4; width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--bis-item-quality, #f2b84b) 56%, transparent); border-radius: 8px; }
.bis-view-grid article > a strong { overflow: hidden; color: var(--bis-item-quality, #e6c46e); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.bis-view-source { overflow: hidden; color: #8492a5; font-size: .55rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.bis-view-grid article > a small { overflow: hidden; color: #657286; font-size: .53rem; text-overflow: ellipsis; white-space: nowrap; }
.bis-view-grid article.filled:hover { border-color: rgba(242, 184, 75, .32); background: rgba(242, 184, 75, .035); }
.bis-view-grid article.equipped { border-color: rgba(75, 198, 238, .48); background: rgba(75, 198, 238, .04); box-shadow: inset 0 0 20px rgba(75, 198, 238, .035); }
.bis-view-grid article.equipped::after { position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #4bc6ee; box-shadow: 0 0 8px rgba(75, 198, 238, .68); content: ""; }
.bis-view-grid article.acquired { border-color: rgba(81, 217, 151, .48); background: rgba(81, 217, 151, .045); box-shadow: inset 0 0 20px rgba(81, 217, 151, .035); }
.bis-view-grid article.acquired > a .bis-item-icon { border-color: rgba(81, 217, 151, .7); }
.bis-view-grid article.acquired > a strong { color: #85e5b3; }
.bis-view-grid article.acquired > a small { color: #67b88e; }
.bis-view-grid article.acquired:hover { border-color: rgba(81, 217, 151, .78); background: rgba(81, 217, 151, .07); }
.bis-view-grid article.empty { opacity: .58; }
.bis-view-grid article.empty > .bis-item-icon { width: 42px; height: 42px; border: 1px dashed rgba(151, 169, 193, .2); border-radius: 8px; }
.bis-view-grid article.empty p { margin: 0; color: #647185; font-size: .59rem; }
.bis-edit-copy { padding-top: 20px; }
.bis-edit-form { display: grid; gap: 18px; padding-top: 18px; }
.bis-sync-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(151, 169, 193, .11); border-radius: 11px; padding: 13px 14px; background: rgba(255, 255, 255, .018); }
.bis-sync-panel > div:first-child { display: grid; gap: 4px; }
.bis-sync-panel strong { color: #dfe7f0; font-size: .7rem; }
.bis-sync-panel p { margin: 0; color: #718096; font-size: .58rem; line-height: 1.45; }
.bis-sync-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.bis-sync-actions button { border: 1px solid rgba(151, 169, 193, .14); border-radius: 7px; padding: 8px 10px; color: #758399; background: rgba(0, 0, 0, .15); font: 800 .55rem ui-monospace, monospace; cursor: pointer; }
.bis-sync-actions button:hover:not(:disabled) { border-color: rgba(101, 216, 245, .34); color: #b8eaf5; }
.bis-sync-actions button.active { border-color: rgba(242, 184, 75, .42); color: #edca77; background: rgba(242, 184, 75, .08); }
.bis-sync-actions button[data-bis-mode="viserio"].active { border-color: rgba(145, 105, 255, .48); color: #c1afff; background: rgba(145, 105, 255, .1); }
.bis-sync-actions button:disabled { opacity: .38; cursor: not-allowed; }
.bis-sync-actions .bis-sync-now { border-color: rgba(145, 105, 255, .28); color: #b9a6f7; }
.bis-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.bis-edit-row { display: grid; min-width: 0; grid-template-columns: 94px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid rgba(151, 169, 193, .1); border-radius: 9px; padding: 9px 10px; background: rgba(255, 255, 255, .016); }
.bis-edit-row > span { color: #8b98aa; font-size: .63rem; font-weight: 750; }
.bis-edit-controls { display: grid; min-width: 0; gap: 7px; }
.bis-edit-controls > input[type="text"] { min-width: 0; border: 1px solid rgba(101, 216, 245, .15); border-radius: 7px; outline: 0; padding: 10px; color: #e4ebf3; background: rgba(0, 0, 0, .2); font: inherit; font-size: .68rem; }
.bis-edit-controls > input[type="text"]:focus { border-color: rgba(101, 216, 245, .48); box-shadow: 0 0 0 3px rgba(101, 216, 245, .07); }
.bis-edit-controls > input[type="text"][readonly] { border-color: rgba(145, 105, 255, .14); color: #8e82b1; background: rgba(145, 105, 255, .035); cursor: default; }
.bis-edit-controls > input[type="text"]::placeholder { color: #4f5d70; }
.bis-acquired-toggle { display: flex; width: fit-content; align-items: center; gap: 7px; color: #738296; font-size: .57rem; font-weight: 700; cursor: pointer; }
.bis-acquired-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bis-acquired-toggle input + span { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid rgba(151, 169, 193, .22); border-radius: 5px; background: rgba(0, 0, 0, .18); transition: border-color .18s, background .18s, box-shadow .18s; }
.bis-acquired-toggle input + span::after { content: ""; width: 7px; height: 4px; transform: translateY(-1px) rotate(-45deg); border: solid transparent; border-width: 0 0 2px 2px; }
.bis-acquired-toggle input:checked + span { border-color: rgba(81, 217, 151, .75); background: rgba(81, 217, 151, .16); box-shadow: 0 0 0 3px rgba(81, 217, 151, .055); }
.bis-acquired-toggle input:checked + span::after { border-color: #7ce4ad; }
.bis-acquired-toggle:has(input:checked) { color: #79d9a6; }
.bis-acquired-toggle:has(input:disabled) { opacity: .38; cursor: not-allowed; }
.bis-acquired-toggle input:focus-visible + span { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.bis-form-status { min-height: 18px; margin: 0; color: #d8bd7b; font-size: .68rem; }
.bis-form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.bis-form-actions button { border-radius: 7px; padding: 11px 15px; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.bis-hover-card { position: fixed; z-index: 10000; inset: auto; display: grid; width: min(360px, calc(100vw - 20px)); margin: 0; gap: 10px; border: 1px solid color-mix(in srgb, var(--bis-item-quality, #f2b84b) 58%, transparent); border-radius: 12px; padding: 13px; color: #e7edf4; background: linear-gradient(145deg, color-mix(in srgb, var(--bis-item-quality, #f2b84b) 7%, #080d15), rgba(8, 13, 21, .99) 42%); box-shadow: 0 18px 50px rgba(0, 0, 0, .68); pointer-events: none; }
.bis-hover-card[hidden] { display: none; }
.bis-hover-card.pinned { border-color: color-mix(in srgb, var(--bis-item-quality, #f2b84b) 78%, transparent); box-shadow: 0 20px 55px rgba(0, 0, 0, .76), 0 0 24px color-mix(in srgb, var(--bis-item-quality, #f2b84b) 9%, transparent); pointer-events: auto; }
.bis-hover-header { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; }
.bis-hover-header > .bis-item-icon { width: 56px; height: 56px; border: 1px solid color-mix(in srgb, var(--bis-item-quality, #f2b84b) 68%, transparent); border-radius: 9px; }
.bis-hover-header > span:last-child { display: grid; min-width: 0; gap: 3px; }
.bis-hover-header small { color: color-mix(in srgb, var(--bis-item-quality, #f2b84b) 64%, #8b96a7); font-size: .53rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bis-hover-header strong { color: var(--bis-item-quality, #f0ca72); font-size: .78rem; line-height: 1.3; }
.bis-hover-type { color: #77869a; font-size: .57rem; line-height: 1.35; }
.bis-hover-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.bis-hover-facts > span { display: grid; gap: 3px; border: 1px solid rgba(151, 169, 193, .11); border-radius: 8px; padding: 8px 9px; background: rgba(255, 255, 255, .02); }
.bis-hover-facts small, .bis-hover-source small { color: #69778b; font-size: .49rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bis-hover-facts strong { color: #dbe4ed; font-size: .65rem; }
.bis-hover-source { display: grid; gap: 4px; border-top: 1px solid rgba(151, 169, 193, .1); padding-top: 9px; }
.bis-hover-source strong { color: #aebaca; font-size: .61rem; line-height: 1.45; }
.bis-hover-viserio { width: fit-content; border: 1px solid rgba(145, 105, 255, .22); border-radius: 999px; padding: 4px 7px; color: #b7a3f2; background: rgba(145, 105, 255, .07); font-size: .52rem; font-weight: 750; }
.bis-hover-note { border-left: 2px solid rgba(192, 173, 201, .36); padding-left: 8px; color: #c0adc9; font-size: .56rem; line-height: 1.45; }
.bis-hover-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; border-top: 1px solid rgba(151, 169, 193, .09); padding-top: 8px; color: #7c899a; font-size: .53rem; }
.bis-hover-footer .equipped { color: #60caed; }
.bis-hover-footer small { grid-column: 1 / -1; color: #596679; font-size: .49rem; }
.bis-hover-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(151, 169, 193, .09); padding-top: 9px; }
.bis-hover-actions a { border: 1px solid color-mix(in srgb, var(--bis-item-quality, #f2b84b) 34%, transparent); border-radius: 7px; padding: 7px 9px; color: color-mix(in srgb, var(--bis-item-quality, #f2b84b) 72%, #dfe8f1); background: color-mix(in srgb, var(--bis-item-quality, #f2b84b) 7%, transparent); font-size: .55rem; font-weight: 800; text-decoration: none; }
.bis-hover-actions a:hover, .bis-hover-actions a:focus-visible { border-color: color-mix(in srgb, var(--bis-item-quality, #f2b84b) 68%, transparent); filter: brightness(1.18); outline: 0; }
.bis-hover-actions button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(151, 169, 193, .14); border-radius: 7px; padding: 0; color: #8795a7; background: rgba(255, 255, 255, .025); font: 700 1rem/1 sans-serif; cursor: pointer; }
.bis-hover-actions button:hover, .bis-hover-actions button:focus-visible { border-color: rgba(101, 216, 245, .36); color: #c5eef7; outline: 0; }

/* Warcraft Logs performance workspace */
.performance-overview { width: 100%; max-width: none; padding-top: 0; }
.performance-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.performance-heading h1 { display: flex; margin: 3px 0 8px; color: #eef4fb; font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: .92; letter-spacing: -.055em; }
.performance-heading > div > p:last-child { max-width: 760px; margin: 0; color: #8b9aaf; font-size: .95rem; line-height: 1.65; }
.performance-live.is-complete { border-color: rgba(151, 169, 193, .18); color: #8491a3; background: rgba(151, 169, 193, .045); }
.performance-live.is-complete i { background: #788699; box-shadow: none; animation: none; }
.performance-source { display: grid; grid-template-columns: minmax(180px, .38fr) minmax(420px, 1fr); align-items: center; gap: 18px; margin-bottom: 18px; border: 1px solid rgba(242, 184, 75, .17); border-radius: 14px; padding: 17px 18px; background: linear-gradient(120deg, rgba(242, 184, 75, .055), rgba(101, 216, 245, .025)); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.performance-source > label { display: grid; gap: 4px; }
.performance-source > label span { color: #e4c674; font-size: .69rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.performance-source > label small { color: #8090a6; font-size: .72rem; line-height: 1.5; }
.performance-source > div { display: flex; min-width: 0; gap: 9px; }
.performance-source input { min-width: 0; flex: 1; border: 1px solid rgba(151, 169, 193, .22); border-radius: 9px; outline: 0; padding: 13px 14px; color: #edf2f8; background: rgba(3, 8, 15, .72); font: 650 .82rem ui-monospace, monospace; }
.performance-source input:focus { border-color: rgba(242, 184, 75, .5); box-shadow: 0 0 0 3px rgba(242, 184, 75, .07); }
.performance-source input::placeholder { color: #4d5a6d; }
.performance-source button { flex: 0 0 auto; border: 0; border-radius: 9px; padding: 0 17px; cursor: pointer; }
.performance-source button:disabled { opacity: .55; cursor: wait; }
.performance-channel-settings { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(230px, .55fr) auto; align-items: end; gap: 12px 16px; margin: -6px 0 18px; border: 1px solid rgba(101, 216, 245, .12); border-radius: 12px; padding: 14px 16px; background: rgba(101, 216, 245, .025); }
.performance-channel-settings[hidden] { display: none; }
.performance-channel-settings > div { display: grid; gap: 3px; }
.performance-channel-settings strong { color: #cfd9e3; font-size: .78rem; }
.performance-channel-settings small { color: #7a899d; font-size: .68rem; line-height: 1.5; }
.performance-channel-settings label { display: grid; gap: 5px; }
.performance-channel-settings label > span { color: #7e8da1; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.performance-channel-settings select { min-width: 0; border: 1px solid rgba(151, 169, 193, .16); border-radius: 8px; outline: 0; padding: 10px; color: #dce5ed; background: #0a111b; font: inherit; font-size: .72rem; }
.performance-channel-settings select:focus { border-color: rgba(101, 216, 245, .42); }
.performance-channel-settings > button { border: 1px solid rgba(101, 216, 245, .22); border-radius: 8px; padding: 10px 12px; color: #9eddeb; background: rgba(101, 216, 245, .055); font-family: inherit; font-size: .68rem; font-weight: 750; cursor: pointer; }
.performance-channel-settings > button:disabled { opacity: .5; cursor: wait; }
.performance-channel-settings > p { grid-column: 2 / -1; min-height: 14px; margin: -5px 0 0; color: #75aebc; font-size: .64rem; }
.performance-empty { display: grid; min-height: 390px; place-items: center; align-content: center; gap: 11px; border: 1px dashed rgba(151, 169, 193, .14); border-radius: 17px; padding: 40px; text-align: center; background: radial-gradient(circle at 50% 34%, rgba(101, 216, 245, .05), transparent 35%); }
.performance-empty-mark { display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid rgba(242, 184, 75, .29); border-radius: 22px; color: #dfbd66; background: rgba(242, 184, 75, .065); box-shadow: 0 0 40px rgba(242, 184, 75, .055); font: 900 .78rem ui-monospace, monospace; letter-spacing: .12em; }
.performance-empty h2 { margin: 7px 0 0; color: #dce4ed; font-size: 1.15rem; }
.performance-empty p { max-width: 510px; margin: 0; color: #68778c; font-size: .68rem; line-height: 1.6; }
.performance-status { margin: 14px 0; border: 1px solid rgba(101, 216, 245, .14); border-radius: 9px; padding: 11px 13px; color: #8ed8e9; background: rgba(101, 216, 245, .045); font-size: .66rem; }
.performance-status.error { border-color: rgba(230, 92, 104, .22); color: #ec9aa2; background: rgba(230, 92, 104, .055); }
.performance-content { display: grid; gap: 20px; }
.performance-report-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid rgba(151, 169, 193, .13); border-radius: 14px; padding: 20px 21px; background: linear-gradient(128deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .012)); }
.performance-report-card h2 { margin: 4px 0 7px; color: #f0f5fa; font-size: 1.38rem; letter-spacing: -.025em; }
.performance-report-card > div:first-child > p:last-child { margin: 0; color: #8796aa; font-size: .76rem; }
.performance-report-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.performance-report-actions > span { width: 100%; color: #78889d; font: 650 .68rem ui-monospace, monospace; text-align: right; }
.performance-report-actions button, .performance-report-actions a { border: 1px solid rgba(151, 169, 193, .2); border-radius: 8px; padding: 9px 11px; color: #a5b2c2; background: rgba(255, 255, 255, .035); font-family: inherit; font-size: .68rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.performance-report-actions a { border-color: rgba(242, 184, 75, .23); color: #d9bc72; background: rgba(242, 184, 75, .05); }
.performance-report-actions button:hover, .performance-report-actions a:hover { filter: brightness(1.28); }
.performance-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.performance-kpis article { position: relative; overflow: hidden; border: 1px solid rgba(151, 169, 193, .14); border-radius: 13px; padding: 20px; background: rgba(255, 255, 255, .025); }
.performance-kpis article::after { position: absolute; right: -20px; bottom: -31px; width: 80px; height: 80px; border: 1px solid rgba(242, 184, 75, .07); border-radius: 50%; content: ''; }
.performance-kpis article > span { color: #637287; font: 800 .62rem ui-monospace, monospace; }
.performance-kpis strong { display: block; margin: 8px 0 4px; color: #f0d17e; font: 850 2.05rem ui-monospace, monospace; letter-spacing: -.055em; }
.performance-kpis p { margin: 0; color: #91a0b3; font-size: .76rem; font-weight: 750; }
.performance-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 15px; }
.performance-panel { min-width: 0; border: 1px solid rgba(151, 169, 193, .14); border-radius: 15px; padding: 23px; background: rgba(255, 255, 255, .022); }
.performance-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.performance-panel > header h2 { margin: 4px 0 0; color: #e8eef5; font-size: 1.12rem; }
.performance-panel > header > span { color: #78879b; font-size: .7rem; font-weight: 750; }
.performance-boss-help { margin: -5px 0 15px; color: #7f8ea2; font-size: .74rem; line-height: 1.5; }
.performance-boss-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 9px; }
.performance-pull-list { display: grid; gap: 7px; }
.performance-boss { display: grid; width: 100%; gap: 8px; border: 1px solid rgba(151, 169, 193, .14); border-radius: 10px; padding: 13px 14px; color: inherit; background: rgba(0, 0, 0, .12); font-family: inherit; text-align: left; cursor: pointer; }
.performance-boss:hover { border-color: rgba(101, 216, 245, .3); background: rgba(101, 216, 245, .035); }
.performance-boss:focus-visible { outline: 2px solid rgba(101, 216, 245, .6); outline-offset: 2px; }
.performance-boss.active { border-color: rgba(242, 184, 75, .48); background: linear-gradient(120deg, rgba(242, 184, 75, .09), rgba(101, 216, 245, .035)); box-shadow: inset 3px 0 #e6bd55; }
.performance-boss > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.performance-boss strong { overflow: hidden; color: #d9e1ea; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.performance-boss > div:first-child span { color: #e88c94; font: 800 .7rem ui-monospace, monospace; }
.performance-boss > div:nth-child(2) { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(230, 92, 104, .09); }
.performance-boss > div:nth-child(2) i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9f3540, #e06470); box-shadow: 0 0 9px rgba(224, 100, 112, .28); }
.performance-boss p { margin: 0; color: #7a899d; font-size: .66rem; }
.performance-boss.killed { border-color: rgba(81, 217, 151, .18); background: rgba(81, 217, 151, .025); }
.performance-boss.killed > div:first-child span { color: #6edba5; }
.performance-boss.killed > div:nth-child(2) { background: rgba(81, 217, 151, .1); }
.performance-boss.killed > div:nth-child(2) i { background: linear-gradient(90deg, #288d60, #53d394); box-shadow: 0 0 9px rgba(81, 217, 151, .26); }
.performance-pull-list { max-height: 420px; overflow: auto; padding-right: 3px; }
.performance-pull-list article { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; border: 1px solid transparent; border-bottom-color: rgba(151, 169, 193, .075); border-radius: 8px; padding: 9px 8px; }
.performance-pull-list article.active { border-color: rgba(242, 184, 75, .28); background: rgba(242, 184, 75, .045); }
.performance-pull-list article > span { color: #68778c; font: 750 .65rem ui-monospace, monospace; }
.performance-pull-list article > div { display: grid; min-width: 0; gap: 3px; }
.performance-pull-list strong { overflow: hidden; color: #d7e0e9; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.performance-pull-list small { color: #78879b; font-size: .63rem; }
.performance-pull-list b { color: #e28a92; font: 800 .65rem ui-monospace, monospace; }
.performance-pull-list b.kill { color: #61d69c; }
.performance-pull-list b.running { color: #e4c36e; }
.performance-pull-list article > button { border: 1px solid rgba(101, 216, 245, .18); border-radius: 7px; padding: 7px 9px; color: #8fcfe0; background: rgba(101, 216, 245, .045); font-family: inherit; font-size: .62rem; font-weight: 800; cursor: pointer; }
.performance-pull-list article > button:hover:not(:disabled) { border-color: rgba(101, 216, 245, .38); color: #c5eff8; }
.performance-pull-list article > button:disabled { color: #617083; cursor: default; opacity: .7; }
.performance-ce-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); gap: 15px; }
.performance-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.performance-metric-grid article { display: grid; min-height: 108px; align-content: start; gap: 7px; border: 1px solid rgba(151, 169, 193, .12); border-radius: 10px; padding: 15px; background: rgba(0, 0, 0, .13); }
.performance-metric-grid article[data-tone="good"] { border-color: rgba(81, 217, 151, .2); background: rgba(81, 217, 151, .025); }
.performance-metric-grid article[data-tone="critical"] { border-color: rgba(230, 92, 104, .22); background: rgba(230, 92, 104, .03); }
.performance-metric-grid span { color: #7a899d; font-size: .64rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.performance-metric-grid strong { color: #e7eef5; font: 850 1.28rem ui-monospace, monospace; letter-spacing: -.03em; }
.performance-metric-grid small { min-height: 16px; color: #68778b; font-size: .61rem; line-height: 1.4; }
.performance-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.performance-signals article { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(151, 169, 193, .11); border-radius: 10px; padding: 14px; background: rgba(0, 0, 0, .13); }
.performance-signals article > i { width: 7px; height: 7px; border-radius: 50%; background: #718096; box-shadow: 0 0 9px rgba(113, 128, 150, .3); }
.performance-signals article > span { color: #a5b1c0; font-size: .76rem; line-height: 1.45; }
.performance-signals article > strong { color: #c6d0dc; font: 800 .72rem ui-monospace, monospace; white-space: nowrap; }
.performance-signals article[data-tone="good"] > i { background: #58d39a; box-shadow: 0 0 9px rgba(88, 211, 154, .4); }
.performance-signals article[data-tone="warning"] > i { background: #e5a35f; box-shadow: 0 0 9px rgba(229, 163, 95, .4); }
.performance-signals article[data-tone="critical"] > i { background: #e06470; box-shadow: 0 0 9px rgba(224, 100, 112, .4); }
.performance-analytics-panel { overflow: hidden; }
.performance-donut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.performance-donut-grid > article { min-width: 0; border: 1px solid rgba(151, 169, 193, .09); border-radius: 10px; padding: 14px; background: rgba(0, 0, 0, .1); }
.performance-donut-grid h3 { margin: 0 0 14px; color: #8f9caf; font-size: .59rem; font-weight: 800; letter-spacing: .035em; }
.performance-donut-grid > article > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 13px; }
.performance-donut { display: grid; width: 112px; height: 112px; place-items: center; border-radius: 50%; box-shadow: inset 0 0 18px rgba(0, 0, 0, .28), 0 0 24px rgba(101, 216, 245, .025); }
.performance-donut > span { display: grid; width: 72px; height: 72px; place-content: center; border: 1px solid rgba(151, 169, 193, .1); border-radius: 50%; color: #dde6ef; background: #0a1019; text-align: center; }
.performance-donut strong { font: 850 .75rem ui-monospace, monospace; }
.performance-donut small { color: #556378; font-size: .43rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.performance-donut-legend { display: grid; min-width: 0; align-content: center; gap: 6px; }
.performance-donut-legend > span { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.performance-donut-legend i { width: 6px; height: 6px; border-radius: 50%; }
.performance-donut-legend b { overflow: hidden; color: #8492a5; font-size: .48rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.performance-donut-legend small { color: #59677a; font: 700 .47rem ui-monospace, monospace; }
.performance-phase-list { display: grid; gap: 8px; }
.performance-phase-list article { display: grid; grid-template-columns: 42px minmax(0, 1fr) 80px; align-items: center; gap: 10px; }
.performance-phase-list strong { color: #aab7c6; font: 800 .56rem ui-monospace, monospace; }
.performance-phase-list article > div { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(101, 216, 245, .06); }
.performance-phase-list article > div i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #376bba, #65d8f5); box-shadow: 0 0 10px rgba(101, 216, 245, .22); }
.performance-phase-list span { color: #5f6d81; font-size: .5rem; text-align: right; }
.performance-player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -2px 0 12px; }
.performance-view-tabs, .performance-role-filter { display: flex; flex-wrap: wrap; gap: 7px; }
.performance-role-filter { margin: 0 0 16px; }
.performance-view-tabs button, .performance-role-filter button { border: 1px solid rgba(151, 169, 193, .16); border-radius: 999px; padding: 8px 13px; color: #8d9bad; background: rgba(255, 255, 255, .025); font-family: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; }
.performance-view-tabs button.active, .performance-role-filter button.active { border-color: rgba(242, 184, 75, .42); color: #f0cf79; background: rgba(242, 184, 75, .09); }
.performance-view-tabs button:focus-visible, .performance-role-filter button:focus-visible { outline: 2px solid rgba(242, 184, 75, .65); outline-offset: 2px; }
.performance-player-pull-control { display: flex; align-items: center; gap: 8px; color: #7f8fa3; font-size: .68rem; font-weight: 800; }
.performance-player-pull-control select { min-width: 220px; border: 1px solid rgba(151, 169, 193, .18); border-radius: 8px; padding: 8px 30px 8px 10px; color: #dce5ee; background: #0d1622; font-family: inherit; font-size: .7rem; font-weight: 750; cursor: pointer; }
.performance-player-pull-control select:disabled { cursor: wait; opacity: .6; }
.performance-method { margin: -5px 0 16px; color: #8291a5; font-size: .75rem; line-height: 1.55; }
.performance-player-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.performance-player { display: grid; gap: 15px; border: 1px solid rgba(151, 169, 193, .12); border-radius: 12px; padding: 17px 18px; background: rgba(0, 0, 0, .14); }
.performance-player[data-tone="warning"] { border-color: rgba(229, 163, 95, .25); background: rgba(229, 163, 95, .035); }
.performance-player[data-tone="critical"] { border-color: rgba(230, 92, 104, .28); background: rgba(230, 92, 104, .045); }
.performance-player-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.performance-player-heading > div { display: flex; min-width: 0; align-items: center; gap: 11px; }
.performance-player-heading > div > i { width: 8px; height: 38px; flex: 0 0 auto; border-radius: 999px; }
.performance-player-heading > div > div { display: grid; min-width: 0; gap: 4px; }
.performance-player-heading strong { overflow: hidden; color: #edf3f8; font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; }
.performance-player-heading small { color: #8291a4; font-size: .74rem; }
.performance-player-heading > span { flex: 0 0 auto; border: 1px solid rgba(81, 217, 151, .22); border-radius: 999px; padding: 6px 9px; color: #72d9aa; background: rgba(81, 217, 151, .05); font-size: .68rem; font-weight: 800; }
.performance-player-heading > span[data-tone="warning"] { border-color: rgba(229, 163, 95, .28); color: #e8b273; background: rgba(229, 163, 95, .07); }
.performance-player-heading > span[data-tone="critical"] { border-color: rgba(230, 92, 104, .3); color: #ed9ba2; background: rgba(230, 92, 104, .075); }
.performance-player-heading > span[data-tone="info"] { border-color: rgba(101, 216, 245, .28); color: #83d8ef; background: rgba(101, 216, 245, .07); }
.performance-player-metrics { display: grid; grid-template-columns: repeat(6, minmax(85px, 1fr)); gap: 8px; }
.performance-player-metrics > span, .performance-mana-summary > span { display: grid; min-width: 0; gap: 5px; border-left: 2px solid rgba(101, 216, 245, .12); padding: 4px 8px; }
.performance-player-metrics small, .performance-mana-summary small { overflow: hidden; color: #7f8da0; font-size: .68rem; font-weight: 800; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.performance-player-metrics b, .performance-mana-summary b { color: #dbe4ed; font: 850 .9rem ui-monospace, monospace; }
.performance-player-observations { display: flex; flex-wrap: wrap; gap: 7px; margin: -2px 0 0; padding: 0; list-style: none; }
.performance-player-observations li { border: 1px solid rgba(229, 163, 95, .2); border-radius: 7px; padding: 7px 9px; color: #d9a96f; background: rgba(229, 163, 95, .055); font-size: .72rem; line-height: 1.4; }
.performance-mechanic-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.performance-mechanic-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; border: 1px solid rgba(101, 216, 245, .1); border-radius: 8px; padding: 10px 11px; background: rgba(101, 216, 245, .025); }
.performance-mechanic-list strong, .performance-mechanic-list a { overflow: hidden; color: #d8e4ed; font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.performance-mechanic-list a:hover { color: #83d8ef; }
.performance-mechanic-list span { color: #86a0b5; font: 750 .68rem ui-monospace, monospace; }
.performance-mechanic-list small { grid-column: 1 / -1; color: #74869a; font-size: .67rem; line-height: 1.4; }
.performance-player-details { border-top: 1px solid rgba(151, 169, 193, .1); padding-top: 11px; }
.performance-player-details > summary { color: #91a0b2; font-size: .76rem; font-weight: 800; cursor: pointer; }
.performance-player-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding-top: 14px; }
.performance-mana-panel, .performance-cooldown-panel { display: grid; align-content: start; gap: 10px; border: 1px solid rgba(151, 169, 193, .1); border-radius: 9px; padding: 13px; background: rgba(0, 0, 0, .13); }
.performance-mana-panel > strong, .performance-cooldown-panel > strong { color: #c8d3de; font-size: .78rem; }
.performance-mana-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.performance-mana-chart { display: flex; height: 58px; align-items: flex-end; gap: 3px; border-bottom: 1px solid rgba(101, 216, 245, .18); padding-top: 5px; }
.performance-mana-chart i { min-width: 3px; flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#65d8f5, #376bba); opacity: .78; }
.performance-mana-panel > p { margin: 0; color: #93a1b3; font-size: .71rem; line-height: 1.45; }
.performance-mana-panel > p[data-tone="warning"] { color: #e5ad70; }
.performance-cooldown-panel > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-bottom: 1px solid rgba(151, 169, 193, .07); padding: 7px 0; }
.performance-cooldown-panel > div span { overflow: hidden; color: #9cabbc; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.performance-cooldown-panel > div b { color: #72d9aa; font: 800 .72rem ui-monospace, monospace; }
.performance-cooldown-panel > div[data-tone="warning"] b { color: #e8ad6c; }
.performance-timeline-panel { background: radial-gradient(circle at 86% 0, rgba(101, 216, 245, .055), transparent 30%), rgba(255, 255, 255, .022); }
.performance-timeline-open { border: 1px solid rgba(242, 184, 75, .36); border-radius: 8px; padding: 9px 13px; color: #f0cd77; background: rgba(242, 184, 75, .08); font-family: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.performance-timeline-open:hover:not(:disabled) { border-color: rgba(242, 184, 75, .62); background: rgba(242, 184, 75, .13); }
.performance-timeline-open:disabled { color: #68768a; cursor: default; opacity: .6; }
.performance-timeline-preview { display: grid; gap: 12px; }
.performance-timeline-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.performance-timeline-stats > span { display: grid; gap: 4px; border: 1px solid rgba(151, 169, 193, .1); border-radius: 9px; padding: 12px; background: rgba(0, 0, 0, .14); }
.performance-timeline-stats strong { color: #e5edf4; font: 850 1.05rem ui-monospace, monospace; }
.performance-timeline-stats small { color: #7d8ca0; font-size: .64rem; font-weight: 750; }
.performance-timeline-event-strip { display: flex; min-width: 0; gap: 7px; overflow-x: auto; padding: 2px 0 6px; }
.performance-timeline-event-strip button { flex: 0 0 auto; border: 1px solid rgba(101, 216, 245, .13); border-radius: 999px; padding: 7px 10px; color: #91a5b8; background: rgba(101, 216, 245, .035); font-family: inherit; font-size: .65rem; cursor: pointer; }
.performance-timeline-event-strip button[data-type="death"] { border-color: rgba(230, 92, 104, .24); color: #e7989f; background: rgba(230, 92, 104, .055); }
.performance-timeline-event-strip button:hover { color: #dce8f1; }
.performance-timeline-preview > span, .performance-timeline-toolbar [data-performance-health-evidence] { justify-self: start; border: 1px solid rgba(81, 217, 151, .2); border-radius: 999px; padding: 6px 9px; color: #77d7aa; background: rgba(81, 217, 151, .05); font-size: .64rem; font-weight: 800; }
.performance-timeline-preview > span[data-mode="estimated"], .performance-timeline-toolbar [data-performance-health-evidence][data-mode="estimated"] { border-color: rgba(229, 163, 95, .25); color: #e4ae70; background: rgba(229, 163, 95, .06); }
.performance-timeline-dialog, .performance-event-dialog { max-width: none; max-height: none; border: 0; padding: 0; color: #dfe7ef; background: transparent; }
.performance-timeline-dialog::backdrop, .performance-event-dialog::backdrop { background: rgba(2, 6, 12, .82); backdrop-filter: blur(9px); }
.performance-timeline-modal { display: grid; width: min(96vw, 1540px); height: min(92vh, 980px); grid-template-rows: auto auto auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(151, 169, 193, .18); border-radius: 18px; background: #080e17; box-shadow: 0 28px 90px rgba(0, 0, 0, .65); }
.performance-timeline-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(151, 169, 193, .1); padding: 24px 26px 20px; background: radial-gradient(circle at 80% 0, rgba(101, 216, 245, .08), transparent 34%); }
.performance-timeline-modal-header h2 { margin: 4px 0 5px; color: #f1f5f8; font-size: clamp(1.35rem, 2.1vw, 2rem); }
.performance-timeline-modal-header p:last-child { margin: 0; color: #8493a7; font-size: .74rem; }
.performance-timeline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 25px; }
.performance-timeline-toolbar nav { display: flex; flex-wrap: wrap; gap: 6px; }
.performance-timeline-toolbar nav button { border: 1px solid rgba(151, 169, 193, .14); border-radius: 999px; padding: 7px 11px; color: #7f8fa3; background: rgba(255, 255, 255, .02); font-family: inherit; font-size: .67rem; font-weight: 800; cursor: pointer; }
.performance-timeline-toolbar nav button.active { border-color: rgba(242, 184, 75, .4); color: #f0cd77; background: rgba(242, 184, 75, .08); }
.performance-timeline-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.performance-timeline-controls label { display: flex; align-items: center; gap: 7px; color: #7f8fa3; font-size: .64rem; font-weight: 800; }
.performance-timeline-controls select { min-width: 190px; border: 1px solid rgba(151, 169, 193, .18); border-radius: 8px; padding: 7px 30px 7px 10px; color: #dce5ee; background: #0d1622; font-family: inherit; font-size: .68rem; font-weight: 750; cursor: pointer; }
.performance-timeline-controls select:disabled { cursor: wait; opacity: .6; }
.performance-timeline-legend { display: flex; flex-wrap: wrap; gap: 13px; border-bottom: 1px solid rgba(151, 169, 193, .08); padding: 0 25px 12px; }
.performance-timeline-legend > span { display: inline-flex; align-items: center; gap: 6px; color: #748398; font-size: .62rem; font-weight: 750; }
.performance-timeline-legend i { width: 8px; height: 8px; border-radius: 3px; background: #718096; }
.performance-timeline-legend i[data-type="healing"], .performance-timeline-marker[data-type="healing"] { background: #4fd1a1; }
.performance-timeline-legend i[data-type="raid"], .performance-timeline-marker[data-type="raid"] { background: #f2b84b; }
.performance-timeline-legend i[data-type="defensive"], .performance-timeline-marker[data-type="defensive"] { background: #65d8f5; }
.performance-timeline-legend i[data-type="death"], .performance-timeline-marker[data-type="death"] { background: #e06470; }
.performance-timeline-legend i[data-type="utility"], .performance-timeline-marker[data-type="interrupt"], .performance-timeline-marker[data-type="dispel"] { background: #9b7bea; }
.performance-timeline-canvas { min-height: 0; overflow: auto; border-top: 1px solid rgba(151, 169, 193, .04); background: linear-gradient(90deg, rgba(101, 216, 245, .018), transparent 38%); }
.performance-timeline-scroll { width: max-content; min-width: 100%; padding-bottom: 15px; }
.performance-timeline-ruler, .performance-timeline-health, .performance-timeline-lane { display: grid; width: max-content; min-width: 100%; grid-template-columns: 180px var(--timeline-width); }
.performance-timeline-ruler { position: sticky; z-index: 12; top: 0; height: 38px; background: rgba(8, 14, 23, .96); box-shadow: 0 5px 14px rgba(0, 0, 0, .18); }
.performance-timeline-ruler > strong { position: sticky; z-index: 13; left: 0; display: flex; align-items: center; border-right: 1px solid rgba(151, 169, 193, .1); padding-left: 22px; color: #718095; background: #080e17; font-size: .62rem; text-transform: uppercase; }
.performance-timeline-ruler > div { position: relative; border-bottom: 1px solid rgba(151, 169, 193, .1); }
.performance-timeline-ruler span { position: absolute; bottom: 8px; color: #66758a; font: 700 .58rem ui-monospace, monospace; transform: translateX(-50%); }
.performance-timeline-ruler span:first-child { transform: none; }
.performance-timeline-ruler span:last-child { transform: translateX(-100%); }
.performance-timeline-health { min-height: 112px; border-bottom: 1px solid rgba(151, 169, 193, .1); }
.performance-timeline-health > div:first-child { position: sticky; z-index: 10; left: 0; display: grid; align-content: center; gap: 4px; border-right: 1px solid rgba(151, 169, 193, .1); padding: 0 22px; background: #09101a; }
.performance-timeline-health > div:first-child strong { color: #b8c5d2; font-size: .72rem; }
.performance-timeline-health > div:first-child small { color: #6f8094; font-size: .58rem; }
.performance-timeline-health-chart { position: relative; height: 112px; overflow: hidden; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(151, 169, 193, .07) 25%); }
.performance-timeline-health-chart svg { position: absolute; inset: 9px 0 8px; width: 100%; height: calc(100% - 17px); overflow: visible; }
.performance-timeline-health-chart .health-area { fill: rgba(224, 100, 112, .075); }
.performance-timeline-health-chart .health-line { fill: none; stroke: #e06470; stroke-width: 2.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px rgba(224, 100, 112, .32)); }
.performance-timeline-health-chart > span { position: absolute; z-index: 2; right: 8px; color: rgba(185, 197, 211, .42); font: 700 .52rem ui-monospace, monospace; transform: translateY(-50%); }
.performance-timeline-lane { min-height: 62px; border-bottom: 1px solid rgba(151, 169, 193, .065); }
.performance-timeline-player { position: sticky; z-index: 8; left: 0; display: flex; min-width: 0; align-items: center; gap: 9px; border-right: 1px solid rgba(151, 169, 193, .1); padding: 10px 15px 10px 22px; background: #080e17; }
.performance-timeline-player > i { width: 5px; height: 30px; flex: 0 0 auto; border-radius: 999px; }
.performance-timeline-player > span { display: grid; min-width: 0; gap: 3px; }
.performance-timeline-player strong, .performance-timeline-player small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.performance-timeline-player strong { color: #d8e1e9; font-size: .72rem; }
.performance-timeline-player small { color: #69798e; font-size: .55rem; }
.performance-timeline-track { position: relative; min-height: 62px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(151, 169, 193, .055) 25%); }
.performance-timeline-track::after { position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: rgba(151, 169, 193, .06); content: ''; }
.performance-timeline-marker { position: absolute; z-index: 3; top: 50%; display: grid; width: 28px; height: 28px; place-items: center; border: 3px solid #0a111b; border-radius: 8px; color: #071018; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 4px 12px rgba(0, 0, 0, .35); font-family: inherit; cursor: pointer; transform: translate(-50%, -50%); }
.performance-timeline-marker:hover, .performance-timeline-marker:focus-visible { z-index: 5; outline: 2px solid rgba(255, 255, 255, .45); outline-offset: 2px; transform: translate(-50%, -50%) scale(1.12); }
.performance-timeline-marker span { overflow: hidden; max-width: 20px; font-size: .48rem; font-weight: 950; text-overflow: clip; white-space: nowrap; }
.performance-timeline-no-event { position: absolute; top: 50%; left: 16px; color: #4f5c6e; font-size: .57rem; transform: translateY(-50%); }
.performance-timeline-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(151, 169, 193, .1); padding: 14px 25px 17px; }
.performance-timeline-footer p { max-width: 900px; margin: 0; color: #718197; font-size: .64rem; line-height: 1.5; }
.performance-timeline-footer a { flex: 0 0 auto; color: #e7c66e; font-size: .68rem; font-weight: 800; text-decoration: none; }
.performance-event-modal { width: min(92vw, 590px); overflow: hidden; border: 1px solid rgba(151, 169, 193, .18); border-radius: 16px; padding: 0 24px 24px; background: #0a111b; box-shadow: 0 28px 80px rgba(0, 0, 0, .62); }
.performance-event-modal .guild-modal-header { margin: 0 -24px 20px; padding: 21px 24px 17px; background: radial-gradient(circle at 75% 0, rgba(101, 216, 245, .07), transparent 40%); }
.performance-event-identity { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.performance-event-identity > i { width: 7px; height: 38px; border-radius: 999px; }
.performance-event-identity > span { display: grid; gap: 4px; }
.performance-event-identity strong { color: #e6edf3; font-size: .9rem; }
.performance-event-identity small { color: #748499; font-size: .66rem; }
.performance-event-facts { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr); margin: 0; border: 1px solid rgba(151, 169, 193, .1); border-radius: 10px; background: rgba(0, 0, 0, .12); }
.performance-event-facts dt, .performance-event-facts dd { margin: 0; border-bottom: 1px solid rgba(151, 169, 193, .075); padding: 10px 12px; font-size: .7rem; }
.performance-event-facts dt { color: #718196; font-weight: 800; }
.performance-event-facts dd { color: #c6d1dc; font-family: ui-monospace, monospace; }
.performance-event-facts dt:nth-last-of-type(1), .performance-event-facts dd:last-child { border-bottom: 0; }
.performance-event-evidence { margin: 14px 0; border-left: 3px solid #58d39a; border-radius: 0 8px 8px 0; padding: 11px 13px; color: #8fb8a5; background: rgba(81, 217, 151, .045); font-size: .68rem; line-height: 1.55; }
.performance-event-evidence[data-mode="interpolated"] { border-color: #65d8f5; color: #8bbbc7; background: rgba(101, 216, 245, .045); }
.performance-event-evidence[data-mode="estimated"], .performance-event-evidence[data-mode="unavailable"] { border-color: #e5a35f; color: #cfa577; background: rgba(229, 163, 95, .05); }
.performance-event-wcl { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; text-decoration: none; }
.performance-secondary { display: grid; gap: 14px; border: 1px solid rgba(151, 169, 193, .1); border-radius: 14px; padding: 16px; background: rgba(255, 255, 255, .012); }
.performance-secondary > summary { color: #9aa8b9; font-size: .76rem; font-weight: 800; cursor: pointer; }
.performance-secondary[open] > summary { margin-bottom: 14px; }
.performance-secondary .performance-panel + .performance-panel { margin-top: 14px; }
.performance-list-empty { margin: 0; border: 1px dashed rgba(151, 169, 193, .14); border-radius: 9px; padding: 25px 15px; color: #7c8b9f; font-size: .72rem; line-height: 1.5; text-align: center; }

@keyframes crestDrift {
  0%, 100% { transform: translate3d(0, 2px, 0) scale(.985); }
  50% { transform: translate3d(0, -10px, 0) scale(1); }
}
@keyframes crestGlow {
  0%, 100% { opacity: .68; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes crestFrame {
  to { transform: rotate(405deg); }
}
@keyframes signalPulse {
  50% { opacity: .45; box-shadow: 0 0 0 7px rgba(81, 217, 151, 0); }
}

@media (max-width: 1180px) {
  .overview-priority-row { grid-template-columns: 1fr; }
  .overview-priority-row:has(.overview-upcoming-feature[hidden]) .overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-analytics { grid-template-columns: 1fr; }
  .upcoming-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-upcoming-feature .upcoming-events { grid-template-columns: 1fr; }
  .home-recruitment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .overview-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .overview-analytics { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }
  .performance-source { grid-template-columns: 1fr; }
  .performance-grid { grid-template-columns: 1fr; }
  .performance-ce-grid { grid-template-columns: 1fr; }
  .performance-donut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-player-list { grid-template-columns: 1fr; }
  .performance-player-metrics { grid-template-columns: repeat(4, minmax(85px, 1fr)); }
  .performance-player-detail-grid { grid-template-columns: 1fr; }
  .performance-channel-settings { grid-template-columns: 1fr auto; }
  .performance-channel-settings > div { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .command-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .overview-news-summary { padding-inline: 18px; }
  .overview-news-body { padding: 16px 18px 18px; }
  .overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-analytics { grid-template-columns: 1fr; }
  .guild-dialog.calendar-dialog { width: 100vw; height: 100dvh; border-radius: 0; overflow-y: auto; }
  .calendar-dialog .calendar-modal { height: auto; min-height: 100%; padding: 20px 16px; }
  .calendar-stage { flex: none; overflow: visible; }
  .apexium-calendar { height: auto; min-height: 680px; padding: 8px; }
  .apexium-calendar .fc-toolbar { align-items: stretch; flex-direction: column; }
  .apexium-calendar .fc-toolbar-chunk { display: flex; justify-content: center; }
  .home-pulse { grid-template-columns: 1fr; }
  .home-news-heading { align-items: flex-start; flex-direction: column; }
  .home-news-media { grid-template-columns: 1fr; }
  .home-news-media figure:has(video) { grid-column: auto; }
  .home-recruitment > header { flex-direction: column; gap: 12px; }
  .home-recruitment-list { grid-template-columns: 1fr; }
  .home-pulse > div:first-child::after { display: none; }
  .home-pulse > p { max-width: 570px; }
  .bis-dialog { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .bis-modal { padding: 20px 15px; }
  .bis-toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .bis-search { width: 100%; }
  .bis-main-card { grid-template-columns: 1fr auto; }
  .bis-track-wrap { grid-column: 1 / -1; grid-row: 2; }
  .bis-main-actions { grid-column: 2; grid-row: 1; }
  .bis-view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bis-edit-grid { grid-template-columns: 1fr; }
  .bis-sync-panel { align-items: stretch; flex-direction: column; }
  .bis-sync-actions { flex-wrap: wrap; }
  .performance-heading { align-items: flex-start; flex-direction: column; }
  .performance-source > div { flex-direction: column; }
  .performance-source button { min-height: 42px; }
  .performance-channel-settings { grid-template-columns: 1fr; }
  .performance-channel-settings > div, .performance-channel-settings > p { grid-column: auto; }
  .performance-report-card { align-items: flex-start; flex-direction: column; }
  .performance-report-actions { justify-content: flex-start; }
  .performance-report-actions > span { text-align: left; }
  .performance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-signals { grid-template-columns: 1fr; }
  .performance-player-toolbar { align-items: stretch; flex-direction: column; }
  .performance-player-pull-control { justify-content: space-between; }
  .performance-player-heading { align-items: flex-start; flex-direction: column; }
  .performance-player-metrics { grid-template-columns: repeat(3, minmax(80px, 1fr)); }
  .performance-timeline-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .performance-timeline-dialog { width: 100vw; height: 100dvh; }
  .performance-timeline-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .performance-timeline-modal-header { padding: 18px 16px 15px; }
  .performance-timeline-toolbar { align-items: flex-start; flex-direction: column; padding: 11px 16px; }
  .performance-timeline-controls { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .performance-timeline-legend { padding: 0 16px 11px; }
  .performance-timeline-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 11px 16px 14px; }
  .performance-timeline-ruler, .performance-timeline-health, .performance-timeline-lane { grid-template-columns: 145px var(--timeline-width); }
  .performance-pull-list article { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .performance-pull-list article > button { grid-column: 2 / -1; justify-self: start; }
}

@media (max-width: 520px) {
  .overview-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
  .overview-kpis article { padding: 17px 15px; }
  .overview-kpis strong { font-size: 1.75rem; }
  .overview-card { padding: 19px 17px; }
  .upcoming-events { grid-template-columns: 1fr; }
  .overview-upcoming-feature .upcoming-events { grid-template-columns: 1fr; }
  .performance-metric-grid, .performance-donut-grid { grid-template-columns: 1fr; }
  .performance-player { padding: 15px; }
  .performance-player-metrics { grid-template-columns: repeat(2, minmax(80px, 1fr)); }
  .performance-mana-summary { grid-template-columns: 1fr; }
  .performance-donut-grid > article > div { grid-template-columns: 104px minmax(0, 1fr); }
  .performance-donut { width: 104px; height: 104px; }
  .performance-timeline-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-timeline-panel > header { align-items: flex-start; flex-direction: column; }
  .performance-event-modal { width: 100vw; min-height: 100dvh; border-radius: 0; }
  .performance-event-facts { grid-template-columns: 1fr; }
  .performance-event-facts dt { border-bottom: 0; padding-bottom: 3px; }
  .performance-event-facts dd { padding-top: 3px; }
  .upcoming-events-card > header { align-items: flex-start; flex-direction: column; }
  .upcoming-events-card.overview-upcoming-feature > header { align-items: center; flex-direction: row; }
  .calendar-form-section { padding: 15px; }
  .calendar-form-section > header { align-items: flex-start; }
  .calendar-form-actions { flex-wrap: wrap; }
  .calendar-delete-event { width: 100%; margin-right: 0; }
  .calendar-cancel-event, .calendar-form-actions .dashboard-primary { flex: 1; }
  .class-distribution-layout { grid-template-columns: 1fr; justify-items: center; }
  .class-legend { width: 100%; }
  .home-pulse { border-radius: 18px; padding: 30px 22px; }
  .bis-main-card { gap: 12px; padding: 11px; }
  .bis-main-portrait { width: 52px; height: 52px; flex-basis: 52px; }
  .bis-main-name span { max-width: 165px; }
  .bis-main-actions button { min-width: 72px; padding-inline: 8px; }
  .bis-view-dialog, .bis-edit-dialog { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .bis-view-modal, .bis-edit-modal { max-height: 100dvh; padding: 20px 15px; }
  .bis-view-grid { grid-template-columns: 1fr; }
  .bis-edit-row { grid-template-columns: 78px minmax(0, 1fr); }
  .performance-heading h1 { font-size: clamp(2.4rem, 15vw, 3.6rem); }
  .performance-source, .performance-panel { padding: 15px; }
  .performance-empty { min-height: 320px; padding: 28px 18px; }
}

@media (max-width: 980px) {
  .guide-library { grid-template-columns: 1fr; }
  .guide-entry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .guide-workspace-heading, .guide-reader > header, .guide-link-editor > header, .guide-media-editor > header, .guide-editor-actions { align-items: stretch; flex-direction: column; }
  .guide-entry-list, .guide-media-gallery { grid-template-columns: 1fr; }
  .guide-media-gallery figure:has(video) { grid-column: auto; }
  .guide-media-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-link-row { grid-template-columns: 1fr 38px; }
  .guide-link-row input:first-child { grid-column: 1 / -1; }
  .guide-link-row input:nth-child(2) { grid-column: 1; }
  .guide-reader-actions { max-width: none; justify-content: flex-start; }
  .raid-guide-settings { grid-template-columns: 1fr; }
  .raid-guide-settings p { grid-column: auto; }
  .guide-reader-actions { flex-wrap: wrap; }
  .workspace-page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .workspace-page-heading h1, .workspace-page-heading h2 { font-size: clamp(2.25rem, 13vw, 3.5rem); }
  .members-page-panel, .raids-workspace .workspace-page-panel, .calendar-workspace .workspace-page-panel { padding: 19px 15px; }
  .calendar-workspace .calendar-modal { min-height: 690px; }
  .calendar-workspace .calendar-stage, .calendar-workspace .apexium-calendar { min-height: 540px; }
  .current-gear-workspace .current-gear-modal, .bis-gear-workspace .current-gear-modal { height: 680px; min-height: 680px; border-radius: 13px; }
  .current-gear-workspace .workspace-page-heading, .bis-gear-workspace .workspace-page-heading { align-items: flex-start; flex-direction: row; padding: 18px 16px 15px; }
  .workspace-empty-state { min-height: 380px; padding: 28px 18px; }
}

/* Keep the shared in-game treatment above the legacy BIS tooltip rules. */
.bis-hover-card.game-item-tooltip .bis-hover-header { grid-template-columns: 45px minmax(0, 1fr); gap: 9px; }
.bis-hover-card.game-item-tooltip .bis-hover-header > .bis-item-icon { width: 45px; height: 45px; border-radius: 4px; }
.bis-hover-card.game-item-tooltip .bis-hover-header small { color: #aab2c0; font-size: .62rem; }
.bis-hover-card.game-item-tooltip .bis-hover-header strong { color: var(--bis-item-quality, #a335ee); font-size: .94rem; }
.bis-hover-card.game-item-tooltip .bis-hover-type { color: #fff; font-size: .72rem; }
.bis-hover-card.game-item-tooltip .bis-hover-facts { margin-top: 2px; }
.bis-hover-card.game-item-tooltip .bis-hover-facts > span { border: 0; padding: 0; background: transparent; }
.bis-hover-card.game-item-tooltip .bis-hover-facts small { display: none; }
.bis-hover-card.game-item-tooltip .bis-hover-facts strong { color: #ffd100; font-size: .8rem; }
.bis-hover-card.game-item-tooltip .bis-hover-source { margin-top: 4px; border-top-color: rgba(167, 177, 198, .22); }
.bis-hover-card.game-item-tooltip .bis-hover-source small { color: #aab2c0; font-size: .6rem; }
.bis-hover-card.game-item-tooltip .bis-hover-source strong { color: #ffd100; font-size: .72rem; }
.bis-hover-card.game-item-tooltip .bis-hover-viserio { border: 0; padding: 0; color: #20ff20; background: transparent; font-size: .72rem; }
.bis-hover-card.game-item-tooltip .bis-hover-note { border: 0; padding: 0; color: #20ff20; font-size: .72rem; }
.bis-hover-card.game-item-tooltip .bis-hover-footer { color: #d8dee8; font-size: .68rem; }
.bis-hover-card.game-item-tooltip .bis-hover-footer .equipped { color: #53d7ff; }
.bis-hover-card.game-item-tooltip .bis-hover-actions a { border: 0; padding: 0; color: #ffd100; background: transparent; font-size: .68rem; }
.bis-hover-card.game-item-tooltip .bis-hover-actions button { width: 25px; height: 25px; border-radius: 3px; }
