:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0c0911;
    color: #f7f3fc;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(ellipse at 78% 7%, #341654 0, #170d20 29%, #0c0911 67%);
}

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 94px; border-bottom: 1px solid #ffffff17; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #b678fa80; border-radius: 14px; background: linear-gradient(145deg, #8c35df, #391357); font-weight: 900; box-shadow: 0 0 28px #a34be133; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.brand small { margin-top: 4px; color: #a99cb5; font-size: 12px; }
.user-area { display: flex; align-items: center; gap: 10px; color: #c8bfce; font-size: 13px; }
.user-avatar { width: 36px; height: 36px; border: 1px solid #c88cff66; border-radius: 50%; object-fit: cover; }
.account-menu { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 10px; padding: 5px 9px; border: 1px solid transparent; border-radius: 12px; background: #ffffff05; color: #d8cedf; font: inherit; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: #c783f447; background: #ffffff0c; }
.account-trigger:focus-visible, .account-menu-item:focus-visible { outline: 2px solid #cb8aff; outline-offset: 2px; }
.account-trigger .user-avatar { flex: 0 0 36px; }
.account-identity { display: grid; gap: 2px; text-align: left; }
.account-identity small { color: #a99cb5; font-size: 9px; }
.account-identity strong { max-width: 180px; overflow: hidden; color: #f2eafa; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { margin-left: 2px; color: #c78afa; font-size: 17px; transition: transform .16s ease; }
.account-trigger[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-dropdown { position: absolute; z-index: 50; top: calc(100% + 9px); right: 0; display: grid; width: 205px; padding: 6px; border: 1px solid #ffffff1c; border-radius: 12px; background: linear-gradient(145deg, #211729, #120e17); box-shadow: 0 16px 42px #0009; }
.account-dropdown[hidden] { display: none; }
.account-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 11px 10px; border: 0; border-radius: 8px; background: transparent; color: #e7ddeb; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.account-menu-item:hover { background: #ffffff0c; color: #fff; }
.account-menu-item > span:last-child { color: #c886f3; }
.account-menu-item:last-child > span:last-child { color: #f193a1; }
.account-menu-item:disabled, .account-trigger:disabled { opacity: .6; cursor: wait; }
.account-page, .dashboard-page, .home-page.server-selection { position: relative; isolation: isolate; min-height: 100vh; background: #0c0911; }
.account-page::before, .dashboard-page::before, .home-page.server-selection::before { position: fixed; z-index: -1; inset: -36px; background-image: linear-gradient(120deg, #09060d68, #09060d50 48%, #09060d80), var(--dashboard-background-image, url("/dashboard-gaming-background.png")); background-position: center; background-size: cover; background-repeat: no-repeat; filter: blur(var(--dashboard-background-blur, 0px)); content: ""; pointer-events: none; }
.account-shell { width: min(1480px, calc(100% - 56px)); margin: 0 auto; }
.account-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; border-bottom: 1px solid #ffffff17; }
.account-top-actions { display: flex; align-items: center; gap: 16px; }
.account-dashboard-link { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.account-dashboard-link span { color: #c78afa; }
.account-settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(22px, 4vw, 54px); padding: 34px 0 60px; }
.account-settings-nav { position: sticky; top: 24px; align-self: start; display: grid; gap: 7px; padding: 12px 0; }
.account-settings-back { display: flex; align-items: center; gap: 9px; margin: 0 0 25px; color: #a99cb5; font-size: 12px; text-decoration: none; }
.account-settings-back:hover { color: #f4e9fa; }
.account-settings-back:first-letter { color: #ca87fa; font-size: 20px; }
.account-nav-heading { margin: 0 9px 5px; color: #8f829b; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.account-settings-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid transparent; border-radius: 10px; color: #bdb2c7; font-size: 12px; font-weight: 650; text-decoration: none; }
.account-settings-nav-item > span { width: 19px; color: #a99bb1; font-size: 16px; text-align: center; }
.account-settings-nav-item:hover { background: #ffffff0b; color: #fff; }
.account-settings-nav-item.active { border-color: #bd75ec24; background: linear-gradient(90deg, #a34ce329, #a34ce30a); color: #ead3ff; box-shadow: inset 2px 0 #c47af2; }
.account-settings-nav-item.active > span { color: #ce8bff; }
.account-settings-main { display: grid; align-content: start; gap: 17px; min-width: 0; }
.account-breadcrumb { color: #a69aaf; font-size: 11px; }
.account-breadcrumb span { margin: 0 7px; color: #c585f4; }
.account-page-heading { display: flex; align-items: end; justify-content: space-between; padding: 0 0 19px; border-bottom: 1px solid #ffffff17; }
.account-page-heading h1 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.035em; }
.account-section { scroll-margin-top: 24px; padding: clamp(20px, 3vw, 30px); }
.account-section-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 19px; border-bottom: 1px solid #ffffff12; }
.account-section-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid #ffffff16; border-radius: 13px; background: #ffffff08; color: #d2c7da; font-size: 21px; }
.account-section-heading h2 { margin: 0; font-size: 19px; }
.account-section-heading p { margin: 6px 0 0; color: #a99eb3; font-size: 12px; }
.account-identity-row { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 13px 15px; border: 1px solid #ffffff13; border-radius: 12px; background: #0d0b10a6; }
.account-profile-avatar { width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid #c88cff66; border-radius: 13px; object-fit: cover; }
.account-identity-copy { display: grid; gap: 5px; min-width: 0; }
.account-identity-copy strong { overflow: hidden; color: #f0e8f4; font-size: 13px; text-overflow: ellipsis; }
.account-identity-copy small { color: #8f8993; font-size: 9px; font-weight: 750; letter-spacing: .07em; }
.account-identity-copy .online-dot { width: 6px; height: 6px; margin-right: 5px; }
.account-description { margin: 14px 0 0; color: #a99eb3; font-size: 11px; line-height: 1.6; }
.account-profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.account-profile-details > div { display: grid; gap: 7px; min-width: 0; padding: 14px; border: 1px solid #ffffff12; border-radius: 10px; background: #0d0b1080; }
.account-profile-details span { color: #968b9e; font-size: 10px; }
.account-profile-details strong { overflow-wrap: anywhere; color: #e8deed; font-size: 12px; }
.account-server-card .primary-button { margin-top: 18px; }
.account-edit-form { display: grid; gap: 17px; margin-top: 18px; }
.appearance-preview { min-height: 180px; margin-top: 18px; overflow: hidden; border: 1px solid #ffffff22; border-radius: 13px; background-position: center; background-size: cover; filter: blur(var(--preview-blur, 0px)); transition: filter .15s ease; }
.appearance-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.appearance-controls input[type="file"] { width: 100%; padding: 10px; border: 1px solid #ffffff20; border-radius: 9px; background: #0e0b1280; color: #dcd2e4; font: inherit; font-size: 11px; }
.appearance-controls input[type="range"] { width: 100%; accent-color: #b96df2; }
.appearance-controls .field > span strong { float: right; color: #d4a2ff; font-size: 11px; }
.account-section > .form-actions { margin-top: 18px; }
.account-section > .form-actions .primary-button { margin-top: 0; }
.account-edit-form .primary-button { margin-top: 0; }
.account-full-field { grid-column: 1 / -1; }
.account-edit-form textarea { width: 100%; min-height: 108px; resize: vertical; }
.account-edit-form select { width: 100%; }
.account-field-hint { display: flex; justify-content: flex-end; color: #8f829b; font-size: 10px; }
.account-links-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-links-heading > div { display: grid; gap: 4px; }
.account-links-heading strong { font-size: 13px; }
.account-links-heading small { color: #958a9e; font-size: 10px; }
.account-links-list { display: grid; gap: 9px; }
.account-link-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.3fr) auto; gap: 9px; }
.account-link-row input { min-width: 0; min-height: 40px; padding: 10px 11px; border: 1px solid #ffffff20; border-radius: 9px; outline: none; background: #0e0b12; color: #f7f3fc; font: inherit; font-size: 12px; }
.account-link-row input:focus { border-color: #b96df2; box-shadow: 0 0 0 3px #a84cec20; }
.account-logout { margin-left: auto; flex: 0 0 auto; }
.account-reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.account-reward-grid article { display: grid; gap: 8px; padding: 16px; border: 1px solid #ffffff12; border-radius: 11px; background: #0d0b1080; }
.account-reward-grid span { color: #a99eb3; font-size: 11px; }
.account-reward-grid strong { color: #d8a6ff; font-size: 16px; }
.account-referral-box { display: flex; align-items: end; gap: 9px; margin-top: 17px; }
.account-referral-box .field { flex: 1; min-width: 0; }
.account-referral-box input { width: 100%; }
.account-referral-box button { flex: 0 0 auto; }
.account-vote-link { margin-top: 14px !important; }
.referral-result-shell { padding-top: 32px; }
.referral-result-card { display: grid; justify-items: start; max-width: 650px; margin: clamp(70px, 15vh, 150px) auto 0; padding: clamp(24px, 5vw, 48px); }
.referral-result-card h1 { margin: 12px 0 4px; font-size: clamp(30px, 5vw, 46px); }
.referral-result-card .account-section-icon { margin-bottom: 19px; color: #d4a2ff; }
.save-feedback { color: #bdaac8; font-size: 11px; }
.save-feedback.error { color: #ff9eae !important; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-actions button:disabled, .quiet-button:disabled { opacity: .65; cursor: wait; }

.welcome-card { max-width: 720px; padding: 100px 0 92px; }
.eyebrow { color: #be7aff; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 22px 0 18px; font-size: clamp(44px, 8vw, 76px); line-height: .99; letter-spacing: -.055em; }
h1 span { color: #c88cff; }
.welcome-card > p { max-width: 530px; color: #b8adbf; font-size: 17px; line-height: 1.65; }
.primary-button { display: inline-flex; align-items: center; gap: 28px; margin-top: 20px; padding: 15px 19px; border: 1px solid #cf9aff60; border-radius: 999px; background: linear-gradient(130deg, #8c3bd1, #64249e); color: white; font-size: 14px; font-weight: 750; text-decoration: none; box-shadow: 0 8px 34px #7b30bb38; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.primary-button:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 12px 38px #7b30bb52; }
.primary-button:active { transform: translateY(0) scale(.98); }
.primary-button:focus-visible { outline: 2px solid #d5a7ff; outline-offset: 3px; }

.servers-section { padding: 20px 0 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 22px 0 24px; }
h2 { margin: 8px 0 0; font-size: 30px; letter-spacing: -.035em; }
.section-heading p { max-width: 380px; margin: 0; color: #a99fb2; font-size: 13px; line-height: 1.6; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.server-card { display: flex; align-items: center; min-height: 78px; gap: 13px; padding: 14px; border: 1px solid #ffffff19; border-radius: 16px; background: linear-gradient(145deg, #ffffff0a, #ffffff04); color: inherit; text-decoration: none; box-shadow: 0 10px 26px #0002; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.server-card:hover { transform: translateY(-3px); border-color: #bb73fa80; background: linear-gradient(145deg, #a34ce31c, #ffffff06); box-shadow: 0 16px 34px #0005, 0 0 24px #a34ce31a; }
.server-card:active { transform: translateY(-1px) scale(.995); }
.server-card:focus-visible { outline: 2px solid #d2a0ff; outline-offset: 3px; }
.server-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg, #46245f, #241632); color: #d6a7ff; font-size: 14px; font-weight: 800; }
.server-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.server-name { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.server-action { margin-left: auto; color: #b977ef; font-size: 20px; transition: color .18s ease, transform .18s ease; }
.server-card:hover .server-action, .server-card:focus-visible .server-action { transform: translateX(4px); color: #ead1ff; }
.empty-state { padding: 22px 0; color: #b8adbf; }
.error { color: #ff9eae !important; font-size: 13px !important; }
footer { padding: 20px 0 34px; border-top: 1px solid #ffffff17; color: #81768b; font-size: 11px; }
[hidden] { display: none !important; }

/* Public landing page */
.home-page { overflow-x: hidden; background: radial-gradient(ellipse at 79% 7%, #38154f 0, #1b1025 27%, #0c0911 66%); }
.home-page.server-selection { background: transparent; }
.server-selection .shell { position: relative; }
.home-page .shell { width: min(1240px, calc(100% - 64px)); }
.home-page .topbar { position: sticky; top: 12px; z-index: 40; width: min(100%, 1040px); height: 68px; margin: 14px auto 0; padding: 0 20px; border: 1px solid #ffffff20; border-radius: 999px; background: #100e14e8; box-shadow: 0 18px 50px #0006; backdrop-filter: blur(18px); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.home-page .topbar:hover { border-color: #b77cff36; box-shadow: 0 20px 54px #0007, 0 0 25px #a34ce312; }
.brand-logo { width: 44px; height: 44px; border: 1px solid #bb78f77d; border-radius: 50%; object-fit: cover; box-shadow: 0 0 28px #9b4bd52b; }
.public-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 2vw, 24px); flex-wrap: wrap; }
.public-nav a { color: #c1b6c9; font-size: 12px; font-weight: 600; text-decoration: none; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.public-nav a:hover { color: #fff; }
.public-nav a:focus-visible { outline: 2px solid #d5a7ff; outline-offset: 4px; border-radius: 4px; }
.public-nav .nav-login { padding: 10px 15px; border: 1px solid #c18bff55; border-radius: 999px; background: #a34ce31a; color: #f7f1fc; box-shadow: inset 0 1px #ffffff12; }
.public-nav .nav-login:hover { transform: translateY(-1px); border-color: #d6adff9c; background: #a34ce32d; box-shadow: 0 8px 24px #8d38c92e; }
.public-nav .nav-login span { display: inline-block; margin-left: 10px; color: #d294ff; transition: transform .18s ease; }
.public-nav .nav-login:hover span, .home-page .primary-button:hover > span { transform: translate(3px, -1px); }
.home-hero { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(38px, 6vw, 84px); min-height: 570px; padding: 66px 0 92px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #d27aff; box-shadow: 0 0 12px #d27affaa; }
.home-hero h1 { margin: 25px 0 20px; font-size: clamp(48px, 6.2vw, 78px); line-height: .98; letter-spacing: -.065em; }
.home-hero h1 span, .section-intro h2 span, .steps-heading h2 span, .closing-cta h2 span { color: #cf8aff; }
.hero-copy > p:not(.error) { max-width: 490px; margin: 0; color: #b9adbf; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 29px; }
.hero-actions .primary-button { margin: 0; padding: 16px 19px; }
.text-link { color: #d8c9e1; font-size: 12px; font-weight: 650; text-decoration: none; }
.text-link span { margin-left: 6px; color: #c77cff; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 29px; color: #8e8398; font-size: 10px; }
.secure-icon { color: #c882ff; font-size: 16px; }
.hero-visual { position: relative; padding: 34px 0 24px; }
.bot-brand-banner { position: relative; display: block; width: min(74%, 420px); height: auto; margin: 18px auto 0; border: 1px solid #c58bdf38; border-radius: 12px; box-shadow: 0 18px 46px #0008; }
.visual-glow { position: absolute; inset: 13% -5% 6%; border-radius: 50%; background: #a144e824; filter: blur(76px); }
.preview-window { position: relative; overflow: hidden; border: 1px solid #c58bdf38; border-radius: 17px; background: linear-gradient(145deg, #1c1424, #100d15 75%); box-shadow: 0 32px 90px #0008, 0 0 65px #9c4fbd13; transform: perspective(1200px) rotateY(-4deg) rotateX(1deg); }
.preview-topbar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 15px; border-bottom: 1px solid #ffffff13; color: #95889e; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.preview-brand-icon { width: 20px; height: 20px; border: 1px solid #bb78f766; border-radius: 50%; object-fit: cover; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #f06c76; }
.window-dots i:nth-child(2) { background: #e5b267; }
.window-dots i:nth-child(3) { background: #6bd49a; }
.preview-badge { margin-left: auto; padding: 5px 7px; border-radius: 99px; background: #a64be51c; color: #d19af2; font-size: 6px; font-weight: 800; letter-spacing: .08em; }
.preview-body { display: grid; grid-template-columns: 155px minmax(0, 1fr); min-height: 320px; }
.preview-sidebar { padding: 13px 9px; border-right: 1px solid #ffffff12; background: #0e0b12aa; }
.preview-server { display: flex; align-items: center; gap: 8px; padding: 0 4px 13px; border-bottom: 1px solid #ffffff12; }
.preview-server img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.preview-server b, .preview-server small { display: block; }
.preview-server b { max-width: 95px; overflow: hidden; color: #f1e9f6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.preview-server small { margin-top: 3px; color: #84798c; font-size: 7px; }
.preview-server small:first-child { margin: 0 0 3px; color: #bd80e6; font-size: 6px; font-weight: 800; letter-spacing: .08em; }
.preview-label { margin: 14px 5px 6px; color: #81758b; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.preview-item { padding: 7px 6px; border-radius: 6px; color: #aaa0b1; font-size: 8px; }
.preview-item i { display: inline-block; width: 17px; color: #b47ae0; font-style: normal; }
.preview-item.active { background: #a748d524; color: #f1defb; }
.preview-content { padding: 22px 20px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-bottom: 16px; border-bottom: 1px solid #ffffff12; }
.preview-heading small, .preview-heading b { display: block; }
.preview-heading small { color: #bb7ced; font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.preview-heading b { margin-top: 5px; font-size: 16px; letter-spacing: -.03em; }
.preview-heading > span { padding: 5px 8px; border-radius: 99px; background: #32c87817; color: #7be0a7; font-size: 7px; }
.preview-field { display: grid; gap: 7px; margin-top: 17px; }
.preview-field > small { color: #908599; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.preview-field > div { min-height: 35px; padding: 10px; border: 1px solid #ffffff19; border-radius: 7px; background: #0c0911; color: #d8cfe0; font-size: 8px; }
.preview-field > div > i { color: #bb7ced; font-style: normal; }
.preview-field > div > b { float: right; color: #988c9f; }
.preview-field .preview-message { min-height: 55px; color: #aea3b7; line-height: 1.6; }
.preview-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; color: #84798d; font-size: 7px; }
.preview-bottom b { padding: 8px 10px; border-radius: 7px; background: linear-gradient(120deg, #9a44d3, #632798); color: #fff; font-size: 7px; }
.floating-tag { position: absolute; right: -16px; bottom: 0; padding: 12px 15px; border: 1px solid #d099ee35; border-radius: 11px; background: #1a1022ee; box-shadow: 0 13px 35px #0006; color: #e1d4e9; font-size: 10px; font-weight: 650; }
.floating-tag span { margin-right: 7px; color: #d287ff; }
.features-section { padding: 76px 0 87px; border-top: 1px solid #ffffff14; }
.section-intro { display: grid; grid-template-columns: 1fr minmax(250px, .65fr); align-items: end; column-gap: 45px; margin-bottom: 35px; }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section-intro h2, .steps-heading h2 { margin: 14px 0 0; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.05em; }
.section-intro > p { max-width: 390px; margin: 0 0 3px; color: #a99fb2; font-size: 13px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.feature-card { position: relative; min-height: 255px; overflow: hidden; padding: 21px 19px; border: 1px solid #ffffff17; border-radius: 14px; background: linear-gradient(145deg, #1b1421, #120e17); }
.feature-card h3 { position: relative; z-index: 1; max-width: 215px; margin: 23px 0 10px; font-size: 18px; line-height: 1.2; letter-spacing: -.035em; }
.feature-card p { position: relative; z-index: 1; margin: 0; color: #a89daf; font-size: 11px; line-height: 1.65; }
.feature-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #bd7de744; border-radius: 10px; background: #a644d51c; color: #d297ff; font-size: 16px; }
.feature-kicker { position: absolute; top: 33px; right: 17px; color: #887b91; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.feature-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.feature-tags span { padding: 5px 7px; border: 1px solid #ffffff13; border-radius: 99px; color: #bcb0c5; font-size: 8px; }
.feature-community { border-color: #bd7de733; background: radial-gradient(ellipse at 100% 0, #873cb329, transparent 55%), linear-gradient(145deg, #1b1421, #120e17); }
.feature-orbit { position: absolute; right: -66px; top: 19px; width: 145px; height: 145px; border: 1px solid #d189f01c; border-radius: 50%; }
.orbit-two { right: -37px; top: 47px; width: 88px; height: 88px; border-color: #d189f028; }
.steps-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; padding: 71px 0 80px; border-top: 1px solid #ffffff14; }
.steps-heading h2 { font-size: clamp(32px, 4vw, 44px); }
.steps-heading > p { margin: 14px 0 0; color: #a99fb2; font-size: 13px; }
.steps-grid { display: grid; gap: 0; }
.steps-grid article { display: flex; gap: 19px; padding: 19px 0; border-bottom: 1px solid #ffffff14; }
.steps-grid article:first-child { padding-top: 0; }
.steps-grid article:last-child { border-bottom: 0; padding-bottom: 0; }
.step-number { color: #c67cff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.steps-grid h3 { margin: 0; font-size: 14px; }
.steps-grid p { margin: 7px 0 0; color: #9e93a7; font-size: 11px; line-height: 1.55; }
.closing-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px; overflow: hidden; margin: 7px 0 53px; padding: 36px 40px; border: 1px solid #bd7de733; border-radius: 16px; background: radial-gradient(ellipse at 82% 40%, #7934a43b, transparent 46%), linear-gradient(105deg, #1c1323, #16101d); }
.closing-cta h2 { margin: 11px 0 9px; font-size: clamp(27px, 3vw, 36px); line-height: 1.08; letter-spacing: -.045em; }
.closing-cta p { margin: 0; color: #ada2b7; font-size: 12px; }
.closing-cta .primary-button { position: relative; z-index: 1; flex: 0 0 auto; margin: 0 22px 0 0; }
.cta-sparkle { position: absolute; right: 24%; top: -66px; color: #cd8cff16; font-size: 200px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 29px; border-top: 1px solid #ffffff14; color: #81768b; font-size: 10px; }

@media (max-width: 950px) {
    .home-page .shell { width: min(100% - 44px, 760px); }
    .home-page .topbar { height: auto; min-height: 68px; gap: 10px; padding: 10px 18px; border-radius: 22px; }
    .public-nav { gap: 10px 14px; }
    .public-nav a { font-size: 11px; }
    .home-hero { grid-template-columns: 1fr; gap: 13px; padding: 64px 0 75px; }
    .hero-copy { max-width: 650px; }
    .hero-visual { width: min(100%, 650px); margin: 0 auto; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-section { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 600px) {
    .home-page .shell { width: calc(100% - 32px); }
    .home-page .topbar { min-height: 72px; gap: 8px; padding: 10px 12px; border-radius: 18px; }
    .home-page .topbar > .brand { flex: 0 0 auto; }
    .public-nav { flex: 1 1 130px; min-width: 0; max-width: calc(100% - 128px); gap: 7px 10px; }
    .brand-logo { width: 38px; height: 38px; border-radius: 50%; }
    .brand strong { font-size: 13px; }
    .brand small { font-size: 10px; }
    .public-nav { gap: 11px; }
    .public-nav a { font-size: 10px; }
    .public-nav a:first-child { display: none; }
    .public-nav .nav-login { padding: 9px 10px; }
    .public-nav .nav-login span { margin-left: 3px; }
    .home-hero { min-height: auto; gap: 9px; padding: 58px 0 62px; }
    .home-hero h1 { margin: 20px 0 16px; font-size: clamp(45px, 13vw, 65px); }
    .hero-copy > p:not(.error) { font-size: 14px; }
    .hero-actions { gap: 17px; margin-top: 24px; }
    .hero-actions .primary-button { padding: 14px 15px; font-size: 12px; }
    .hero-note { align-items: flex-start; font-size: 9px; line-height: 1.5; }
    .hero-visual { padding: 22px 0 26px; }
    .bot-brand-banner { width: min(82%, 420px); margin-top: 14px; }
    .preview-window { transform: none; }
    .preview-body { grid-template-columns: 112px minmax(0, 1fr); min-height: 282px; }
    .preview-sidebar { padding: 11px 6px; }
    .preview-server { gap: 5px; padding: 0 2px 11px; }
    .preview-server img { width: 24px; height: 24px; }
    .preview-server b { max-width: 69px; font-size: 7px; }
    .preview-server small { font-size: 6px; }
    .preview-content { padding: 17px 11px; }
    .preview-heading b { font-size: 14px; }
    .preview-heading > span { font-size: 6px; }
    .preview-bottom { align-items: flex-start; flex-direction: column; }
    .floating-tag { right: -3px; font-size: 8px; }
    .features-section { padding: 57px 0 63px; }
    .section-intro { display: block; margin-bottom: 24px; }
    .section-intro h2, .steps-heading h2 { font-size: 34px; }
    .section-intro > p { margin-top: 13px; font-size: 12px; }
    .feature-grid { grid-template-columns: 1fr; gap: 10px; }
    .feature-card { min-height: 214px; }
    .feature-card h3 { margin-top: 18px; }
    .steps-section { gap: 25px; padding: 55px 0 60px; }
    .steps-heading > p { font-size: 12px; }
    .closing-cta { align-items: flex-start; flex-direction: column; margin: 3px 0 38px; padding: 27px 23px; }
    .closing-cta .primary-button { margin: 0; }
    .cta-sparkle { right: 4%; top: 0; font-size: 140px; }
    .site-footer { flex-direction: column; gap: 7px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.dashboard-page { background: transparent; }
.dashboard-page::after { position: fixed; z-index: -1; inset: 0; background-image: radial-gradient(ellipse 34% 38% at 24% 28%, #a94dff52 0, transparent 78%), radial-gradient(ellipse 38% 42% at 78% 72%, #684cff48 0, transparent 80%), radial-gradient(circle, #f1e4ffdb 0 1.35px, transparent 2.4px), radial-gradient(circle, #c8a6ffbf 0 1.1px, transparent 2.2px); background-position: 0 0, 100% 100%, 0 0, 110px 80px; background-size: 165% 160%, 165% 160%, 280px 240px, 380px 320px; opacity: .64; animation: dashboard-ambient-stars 17s ease-in-out infinite alternate; pointer-events: none; content: ""; }
.dashboard-page[data-ambient-motion="off"]::after { opacity: 0; animation: none; }
.dashboard-page[data-ambient-motion="off"] .overview-readiness-ring, .dashboard-page[data-ambient-motion="off"] .overview-hero-glow { animation: none; }
.app-layout { display: grid; grid-template-columns: 278px minmax(0, 1fr); gap: 14px; min-height: 100vh; }
.sidebar { position: sticky; top: 14px; display: flex; flex-direction: column; height: calc(100vh - 28px); margin: 14px 0 14px 14px; padding: 19px 14px 14px; border: 1px solid #ffffff1c; border-radius: 22px; background: linear-gradient(160deg, #17141ceF, #100e14ed 62%); box-shadow: 0 20px 50px #0005; backdrop-filter: blur(18px); }
.sidebar .brand { padding: 0 8px 18px; border-bottom: 1px solid #ffffff17; }
.server-switch { position: relative; display: grid; gap: 10px; margin: 18px 2px 14px; padding: 15px; overflow: hidden; border: 1px solid #bb75e538; border-radius: 17px; background: radial-gradient(ellipse at 100% 0%, #8c38c51c, transparent 64%), linear-gradient(145deg, #ffffff0a, #ffffff04); box-shadow: inset 0 1px #ffffff08, 0 10px 24px #00000018; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.server-switch:hover { transform: translateY(-1px); border-color: #bb75e566; box-shadow: inset 0 1px #ffffff0b, 0 14px 30px #0004; }
.server-switch::before { position: absolute; top: 0; left: 14px; width: 34px; height: 1px; background: #cf91ff; content: ""; opacity: .8; }
.active-server-row { display: flex; min-width: 0; align-items: center; gap: 11px; }
.active-server-avatar { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; overflow: hidden; border: 1px solid #ffffff24; border-radius: 14px; background: linear-gradient(145deg, #8d38c9, #32134c); box-shadow: 0 4px 16px #0005; color: #f6eaff; font-size: 13px; font-weight: 800; }
.active-server-avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.active-server-avatar.has-image { border-color: #c888f866; box-shadow: 0 0 0 3px #a54bd51c, 0 5px 18px #0006; }
.server-switch strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.server-change { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 5px; color: #c890ff; font-size: 11px; font-weight: 650; text-decoration: none; transition: color .18s ease, gap .18s ease; }
.server-change:hover { gap: 9px; color: #e3c1ff; }
.server-change:focus-visible { outline: 2px solid #d2a0ff; outline-offset: 3px; }
.server-change span { font-size: 13px; }
#module-nav { flex: 1; overflow: auto; padding-right: 3px; }
#module-nav .nav-home { margin-bottom: 13px; }
#module-nav .nav-heading:first-of-type { margin-top: 8px; }
.nav-tools { display: grid; gap: 7px; margin: 0 4px 8px; }
.module-search-wrap { position: relative; min-width: 0; }
.module-search-wrap .module-search { display: block; }
.module-search-results { position: absolute; z-index: 50; top: calc(100% + 7px); left: 0; right: 0; max-height: min(440px, 65vh); overflow: auto; padding: 7px; border: 1px solid #ffffff20; border-radius: 12px; background: #17111f; box-shadow: 0 18px 48px #0009; }
.module-search-results[hidden] { display: none !important; }
.module-search-results-heading { padding: 6px 8px 8px; color: #a996b6; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.module-search-result { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; padding: 9px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #eee4f6; text-align: left; cursor: pointer; }
.module-search-result:hover, .module-search-result:focus-visible { border-color: #b96df244; background: #a34ce31c; outline: none; }
.module-search-result-icon { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: #a34ce321; color: #d4a0f3; font-size: 13px; }
.module-search-result-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.module-search-result-copy strong { overflow: hidden; color: #f3eafa; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.module-search-result-copy small { overflow: hidden; color: #a99bb4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.module-search-result-arrow { color: #b9a1ca; font-size: 13px; }
.module-search-empty { padding: 14px 9px; color: #b5a7c0; font-size: 11px; line-height: 1.6; }
.search-result-highlight { border-radius: 9px !important; outline: 2px solid #bd75ec !important; outline-offset: 3px; background-color: #a34ce318 !important; transition: background-color .25s ease; }
.module-search input, .record-search input { width: 100%; min-height: 40px; padding: 10px 12px; border: 1px solid #ffffff1c; border-radius: 11px; outline: none; background: #100e14; color: #f2eaf8; font: inherit; font-size: 11px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.module-search input::placeholder, .record-search input::placeholder { color: #83778c; }
.module-search input:focus, .record-search input:focus { border-color: #c18bff; background: #131018; box-shadow: 0 0 0 3px #a84cec25; }
.favorites-toggle { justify-self: start; padding: 6px 9px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #9f92a8; font: inherit; font-size: 10px; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.favorites-toggle:hover, .favorites-toggle.active { transform: translateY(-1px); border-color: #bd75ec42; background: #a34ce31a; color: #e5c5ff; }
.favorites-toggle:active { transform: scale(.97); }
.favorites-toggle:focus-visible { outline: 2px solid #d2a0ff; outline-offset: 3px; }
.nav-entry { display: flex; align-items: center; gap: 2px; }
.nav-entry .nav-item { flex: 1; min-width: 0; }
.nav-favorite { width: 28px; height: 30px; flex: 0 0 28px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #84778f; font-size: 15px; cursor: pointer; opacity: .55; transition: color .16s ease, background .16s ease, opacity .16s ease, transform .16s ease; }
.nav-entry:hover .nav-favorite, .nav-favorite:focus-visible, .nav-favorite.is-favorite { opacity: 1; }
.nav-favorite:hover, .nav-favorite.is-favorite { background: #a34ce318; color: #e2a94f; }
.nav-favorite:active { transform: scale(.9) rotate(-8deg); }
.nav-favorite:focus-visible { outline: 2px solid #d2a0ff; outline-offset: 2px; }
.nav-empty { padding: 12px 8px; color: #8c8095; font-size: 10px; line-height: 1.5; }
.nav-entry[hidden], .nav-heading[hidden], #module-nav [hidden] { display: none !important; }
.nav-heading { margin: 20px 8px 7px; color: #8f829b; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nav-item { position: relative; display: block; width: 100%; margin: 3px 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #bdb2c7; text-align: left; font: inherit; font-size: 12px; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.nav-item:hover { transform: translateX(2px); border-color: #ffffff12; background: #ffffff0a; color: #fff; }
.nav-item:active { transform: translateX(1px) scale(.99); }
.nav-item:focus-visible { outline: 2px solid #d2a0ff; outline-offset: 2px; }
.nav-item.active { border-color: #bd75ec32; background: linear-gradient(100deg, #a34ce329, #a34ce30a); color: #ead3ff; box-shadow: inset 2px 0 #c47af2, 0 7px 18px #0002; }
.sidebar-footer { padding: 14px 7px 2px; border-top: 1px solid #ffffff17; color: #9e92a8; font-size: 10px; }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #52d88a; }
.main-panel { min-width: 0; padding: 0 clamp(18px, 4vw, 54px) 50px; }
.main-header { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; margin-top: 14px; padding: 12px 19px; border: 1px solid #ffffff1c; border-radius: 18px; background: #100e14d9; box-shadow: 0 14px 38px #0004; backdrop-filter: blur(16px); }
.main-header h1 { margin: 5px 0 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.header-actions { display: flex; align-items: center; gap: 12px; color: #b2a8bb; font-size: 12px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.motion-toggle-icon { color: #c99bff; font-size: 12px; transition: transform .2s ease, color .2s ease; }
.motion-toggle[aria-pressed="true"]:not(:disabled) .motion-toggle-icon { animation: ambient-star-pulse 2.8s ease-in-out infinite; }
.motion-toggle:disabled { cursor: not-allowed !important; opacity: .62; }
.quiet-button { padding: 8px 12px; border: 1px solid #ffffff22; border-radius: 999px; background: #ffffff08; color: #eee7f3; font: inherit; font-size: 11px; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.quiet-button:hover { transform: translateY(-1px); border-color: #bf7bfa77; background: #ffffff10; box-shadow: 0 7px 18px #0003; }
.quiet-button:active { transform: scale(.97); }
.quiet-button:focus-visible { outline: 2px solid #d2a0ff; outline-offset: 3px; }
.module-content { max-width: 1180px; margin-inline: auto; padding-top: 28px; }
.overview-page { display: grid; gap: 18px; }
.overview-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 218px; padding: clamp(22px, 4vw, 36px); overflow: hidden; border: 1px solid #bd75ec30; border-radius: 20px; background: radial-gradient(ellipse at 100% 0%, #8d38c934, transparent 50%), linear-gradient(125deg, #21152b, #15101a 68%); box-shadow: 0 22px 60px #00000020; }
.overview-hero-copy { position: relative; z-index: 1; display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px 18px; min-width: 0; }
.overview-server-mark { position: relative; z-index: 1; display: grid; grid-row: 1; width: 68px; height: 68px; flex: 0 0 68px; place-items: center; overflow: hidden; border: 1px solid #d49cff70; border-radius: 21px; background: linear-gradient(145deg, #8d38c9, #32134c); box-shadow: 0 0 0 6px #a34ce315, 0 12px 30px #0006; color: white; font-size: 20px; font-weight: 800; }
.overview-server-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.overview-welcome { position: relative; z-index: 1; min-width: 0; }
.overview-welcome h2 { margin: 8px 0; font-size: clamp(23px, 3vw, 32px); letter-spacing: -.04em; }
.overview-welcome p { margin: 0; color: #a99eb3; font-size: 13px; line-height: 1.6; }
.overview-welcome p strong { color: #e8d9f3; }
.overview-quick-links { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
.overview-quick-link { display: inline-flex; align-items: center; gap: 12px; padding: 9px 11px; border: 1px solid #ffffff1c; border-radius: 999px; background: #100b1870; color: #e8d9f3; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.overview-quick-link > span:last-child { color: #c983f2; transition: transform .18s ease; }
.overview-quick-link:hover { transform: translateY(-1px); border-color: #c983f266; background: #a34ce31a; }
.overview-quick-link:active { transform: scale(.98); }
.overview-quick-link:focus-visible { outline: 2px solid #d2a0ff; outline-offset: 3px; }
.overview-quick-link:hover > span:last-child { transform: translateX(2px); }
.overview-quick-link.is-pending { border-color: #d2a15335; }
.overview-quick-link.is-pending > span:last-child { color: #edc981; }
.overview-readiness { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; min-width: 204px; padding: 16px; border: 1px solid #ffffff18; border-radius: 15px; background: #100b1875; box-shadow: 0 14px 35px #0003; backdrop-filter: blur(8px); }
.overview-readiness-ring { display: grid; width: 82px; height: 82px; flex: 0 0 82px; place-items: center; border-radius: 50%; background: conic-gradient(#c77af2 var(--completion), #ffffff16 0); box-shadow: 0 0 24px #ad55df20; animation: overview-ring-pulse 3.2s ease-in-out infinite alternate; }
.overview-readiness-ring > div { display: grid; width: 68px; height: 68px; align-content: center; justify-items: center; border: 1px solid #ffffff16; border-radius: 50%; background: #191220; }
.overview-readiness-ring strong { color: #f2e7fb; font-size: 19px; line-height: 1; }
.overview-readiness-ring small { margin-top: 4px; color: #a99eb3; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.overview-readiness-copy { display: grid; gap: 5px; }
.overview-readiness-copy > strong { color: #f2e7fb; font-size: 17px; }
.overview-readiness-copy > small { color: #a99eb3; font-size: 10px; }
.overview-hero-glow { position: absolute; right: 9%; width: 180px; height: 180px; border: 1px solid #d5a0ff24; border-radius: 50%; box-shadow: 0 0 0 24px #d5a0ff0d, 0 0 0 52px #d5a0ff08; pointer-events: none; animation: overview-orbit-drift 7s ease-in-out infinite alternate; }
.overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.overview-stats article { display: grid; gap: 8px; min-width: 0; padding: 16px 18px; border: 1px solid #ffffff15; border-radius: 13px; background: linear-gradient(145deg, #19131e, #120f16); }
.overview-stats article > span { color: #9f93a9; font-size: 11px; }
.overview-stats strong { overflow: hidden; color: #f3eafd; font-size: 23px; text-overflow: ellipsis; white-space: nowrap; }
.overview-stats strong small { color: #8f8298; font-size: 13px; font-weight: 600; }
.overview-stats .overview-server-name { font-size: 16px; }
.overview-section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 10px 0 0; }
.overview-section-title h3 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.025em; }
.overview-section-title > span { color: #92869c; font-size: 11px; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.overview-card { display: grid; align-content: start; gap: 13px; padding: 18px; border: 1px solid #ffffff18; border-radius: 17px; background: linear-gradient(145deg, #19161fd9, #120f16e8); box-shadow: 0 12px 32px #0003; animation: overview-card-enter .32s cubic-bezier(.2,.75,.25,1) both; transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease; }
.overview-card:nth-child(2) { animation-delay: .04s; }
.overview-card:nth-child(3) { animation-delay: .08s; }
.overview-card:nth-child(4) { animation-delay: .12s; }
.overview-card:hover { transform: translateY(-3px); border-color: #bb75e566; background: linear-gradient(145deg, #211a29ed, #151019f2); box-shadow: 0 20px 42px #0005, 0 0 24px #a34ce316; }
.overview-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overview-count { padding: 5px 8px; border: 1px solid #ffffff14; border-radius: 999px; color: #d8c5e6; font-size: 10px; font-weight: 700; }
.overview-progress { height: 4px; overflow: hidden; border-radius: 999px; background: #ffffff12; }
.overview-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9b45d1, #d18bff); box-shadow: 0 0 12px #bd75ec45; transition: width .7s cubic-bezier(.2,.75,.25,1); }
.overview-module-links { display: flex; flex-wrap: wrap; gap: 6px; min-height: 25px; }
.overview-module-link { padding: 6px 9px; border: 1px solid #ffffff12; border-radius: 999px; background: #ffffff05; color: #c7bacf; font: inherit; font-size: 10px; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.overview-module-link.is-pending { border-color: #c28b492e; background: #bd85200c; color: #e7c88f; }
.overview-module-link.is-configured { color: #a99cb2; }
.overview-module-link:hover { transform: translateY(-1px); border-color: #bd75ec55; background: #a34ce31a; color: #f0dcff; }
.overview-module-link:active { transform: scale(.97); }
.overview-module-link:focus-visible { outline: 2px solid #d2a0ff; outline-offset: 2px; }
.overview-more { align-self: center; color: #8d8295; font-size: 10px; }
.overview-pending, .overview-all-ready { display: grid; gap: 14px; padding: 17px 19px; border: 1px solid #c28b4933; border-radius: 13px; background: linear-gradient(110deg, #bd85200d, #19131e); }
.overview-pending > div:first-child, .overview-all-ready { display: flex; align-items: center; gap: 11px; }
.overview-pending-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; background: #bd852018; color: #edc981; }
.overview-pending strong, .overview-pending small, .overview-all-ready strong, .overview-all-ready small { display: block; }
.overview-pending strong, .overview-all-ready strong { color: #ecd9b7; font-size: 12px; }
.overview-pending small, .overview-all-ready small { margin-top: 4px; color: #a599a8; font-size: 10px; }
.checks-page { display: grid; gap: 16px; }
.checks-page-heading { display: grid; gap: 7px; padding: 24px 26px; border: 1px solid #ffffff16; border-radius: 15px; background: linear-gradient(120deg, #a34ce318, #19131e 70%); }
.checks-page-heading h2 { margin: 0; color: #f2e8fa; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.035em; }
.checks-page-heading p { max-width: 760px; margin: 0; color: #b4a7be; font-size: 12px; line-height: 1.7; }
.checks-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.checks-summary article { display: grid; gap: 8px; min-width: 0; padding: 15px 16px; border: 1px solid #ffffff15; border-radius: 12px; background: linear-gradient(145deg, #19131e, #120f16); }
.checks-summary article span { color: #a99eb3; font-size: 10px; line-height: 1.5; }
.checks-summary article strong { color: #f3eafd; font-size: 24px; line-height: 1.1; }
.checks-section-heading { display: grid; gap: 5px; margin-top: 5px; }
.checks-section-heading h3 { margin: 0; color: #e8d9f3; font-size: 18px; }
.checks-section-heading p { margin: 0; color: #a99eb3; font-size: 11px; line-height: 1.6; }
.overview-next-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px 19px; border: 1px solid #b875e84a; border-radius: 13px; background: linear-gradient(110deg, #a34ce31a, #19131e); }
.overview-next-step-marker { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #c983f244; border-radius: 11px; background: #a34ce326; color: #e4b8ff; font-size: 15px; font-weight: 800; }
.overview-next-step-copy { display: grid; gap: 5px; min-width: 0; }
.overview-next-step-copy .eyebrow { color: #c995ec; font-size: 9px; letter-spacing: .1em; }
.overview-next-step-copy h3 { margin: 0; color: #f0e4fa; font-size: 14px; }
.overview-next-step-copy p { margin: 0; color: #b4a7be; font-size: 11px; line-height: 1.6; }
.overview-next-step > button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 1px solid #c983f255; border-radius: 9px; background: #a34ce326; color: #ecd8fa; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.overview-next-step > button:hover { border-color: #d6a0f5; background: #a34ce340; }
.overview-next-step > button span { font-size: 15px; }
.overview-next-step-info { border-color: #e2a04a45; background: linear-gradient(110deg, #bd85200d, #19131e); }
.overview-next-step-info .overview-next-step-marker { border-color: #e2a04a35; background: #bd852018; color: #edc981; }
.overview-next-step-info .overview-next-step-copy .eyebrow { color: #edc981; }
.overview-next-step-ready { border-color: #39cc8333; background: linear-gradient(110deg, #39cc830d, #19131e); }
.overview-next-step-ready .overview-next-step-marker { border-color: #63c89a30; background: #39cc8315; color: #82d9ae; }
.overview-next-step-ready .overview-next-step-copy .eyebrow { color: #82d9ae; }
.overview-pending-links { display: flex; flex-wrap: wrap; gap: 7px; }
.overview-pending-link { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid #ffffff15; border-radius: 8px; background: #0e0b12a6; color: #d9cbdc; font: inherit; font-size: 10px; cursor: pointer; }
.overview-pending-link span { color: #d3a767; font-size: 9px; }
.overview-pending-link:hover { border-color: #d0a25355; background: #bd852018; }
.overview-all-ready { border-color: #39cc8333; background: linear-gradient(110deg, #39cc830d, #19131e); }
.overview-all-ready > span { color: #79e5ab; font-size: 19px; }
.overview-all-ready strong { color: #b5edcc; }
.overview-open { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 0; border: 0; border-top: 1px solid #ffffff12; background: transparent; color: #d3a6f1; font: inherit; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }
.overview-open span { font-size: 16px; transition: transform .18s ease; }
.overview-open:hover span { transform: translateX(3px); }
.audit-card { display: grid; gap: 18px; padding: clamp(18px, 3vw, 26px); border: 1px solid #ffffff18; border-radius: 16px; background: linear-gradient(145deg, #1b1421c9, #130f17bf); box-shadow: 0 20px 60px #00000020; }
.audit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #ffffff16; }
.audit-heading h2 { margin: 6px 0; font-size: 21px; }
.audit-heading p { margin: 0; color: #aaa0b2; font-size: 12px; line-height: 1.6; }
.audit-live-mark { padding: 7px 10px; border: 1px solid #39cc8333; border-radius: 999px; background: #39cc8312; color: #8ce6b5; font-size: 10px; white-space: nowrap; }
.audit-table-wrap { overflow-x: auto; border: 1px solid #ffffff14; border-radius: 10px; }
.audit-table { width: 100%; border-collapse: collapse; text-align: left; }
.audit-table th, .audit-table td { padding: 13px 12px; border-bottom: 1px solid #ffffff12; font-size: 11px; }
.audit-table th { color: #a99eb3; font-weight: 700; }
.audit-table td { color: #d9cfdf; }
.audit-table tr:last-child td { border-bottom: 0; }
.audit-table a { color: #c18afa; text-decoration: none; }
.audit-table a:hover { text-decoration: underline; }
.audit-unknown-user { color: #9c91a5; }
.audit-loading, .audit-empty { padding: 26px 12px; color: #9f93a9; text-align: center; }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #a99eb3; font-size: 11px; }
.audit-pagination label, .audit-page-actions { display: flex; align-items: center; gap: 9px; }
.audit-pagination select, .audit-page-actions button { min-height: 34px; padding: 6px 10px; border: 1px solid #ffffff18; border-radius: 8px; background: #100d14; color: #eee7f3; font: inherit; }
.audit-page-actions button { min-width: 34px; cursor: pointer; }
.audit-page-actions button:disabled { opacity: .38; cursor: not-allowed; }
.audit-page-actions button:not(:disabled):hover, .audit-pagination select:hover { border-color: #bd75ec66; }
.settings-card, .loading-card { padding: clamp(18px, 3vw, 28px); border: 1px solid #ffffff1c; border-radius: 19px; background: linear-gradient(145deg, #1a1720e8, #110f15ed); box-shadow: 0 22px 64px #0004; backdrop-filter: blur(14px); }
.settings-card { animation: dashboard-panel-enter .24s cubic-bezier(.2,.75,.25,1) both; transform-origin: top center; }
.settings-card-with-preview { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-content: start; align-items: start; column-gap: 24px; }
.settings-card-with-preview > .card-heading, .settings-card-with-preview > .card-description { grid-column: 1 / -1; }
.settings-card-with-preview > .live-preview { grid-column: 2; grid-row: 3; position: sticky; top: 18px; align-self: start; margin: 0; box-shadow: inset 0 1px #ffffff08, 0 12px 32px #0003; }
.settings-card-with-preview > form { grid-column: 1; grid-row: 3; min-width: 0; }
@media (max-width: 1500px) {
    .settings-card-with-preview { grid-template-columns: minmax(0, 1fr); }
    .settings-card-with-preview > .live-preview { grid-column: 1; grid-row: auto; position: static; margin: 18px 0 22px; }
    .settings-card-with-preview > form { grid-column: 1; grid-row: auto; }
}
.settings-card > .card-heading { padding-bottom: 15px; border-bottom: 1px solid #ffffff14; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-heading h2 { margin: 6px 0 0; font-size: 24px; }
.status-pill { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-pill.configured { background: #39cc831a; color: #79e5ab; }
.status-pill.unconfigured { background: #ffffff10; color: #a99fb2; }
.card-description { margin: 13px 0 24px; color: #aaa0b2; font-size: 12px; line-height: 1.6; }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aligned-toggle-grid > .checkbox-field { margin-top: 22px; }
.levels-settings-grid > .form-section-heading { grid-column: 1 / -1; }
.levels-settings-grid [data-setting-field="enabled"] { grid-column: 1; }
.levels-settings-grid [data-setting-field="messageLevelTitle"],
.levels-settings-grid [data-setting-field="voiceLevelTitle"],
.levels-settings-grid [data-setting-field="levelRoleTitle"] { align-self: stretch; }
.levels-settings-grid [data-setting-field="messageLevelTitle"] textarea,
.levels-settings-grid [data-setting-field="voiceLevelTitle"] textarea,
.levels-settings-grid [data-setting-field="levelRoleTitle"] textarea { min-height: 100px; }
.economy-settings-grid [data-setting-field="enabled"] { grid-column: 1 / -1; }
.weekly-drop-grid [data-setting-field="description"] textarea { min-height: 100px; }
.weekly-drop-grid [data-setting-field="image"] input { height: 100px; }
.tempvoice-settings-grid [data-setting-field="enabled"] { grid-column: 1 / -1; }
.social-alerts-grid [data-setting-field="enabled"] { grid-column: 1 / -1; }
.missions-grid [data-setting-field="enabled"] { grid-column: 1 / -1; }
.missions-grid [data-setting-field="description"] textarea { min-height: 114px; }
.missions-grid [data-setting-field="goal"] input { height: 114px; }
.field { display: grid; align-content: start; gap: 8px; color: #d6cddd; font-size: 12px; }
.button-list-field { grid-column: 1 / -1; gap: 12px; }
.button-list-heading, .config-button-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.button-list-heading > div { display: grid; gap: 5px; }
.button-list-heading small { color: #a99fb2; font-size: 11px; font-weight: 400; }
.config-button-rows { display: grid; gap: 10px; }
.config-button-row { padding: 13px; border: 1px solid #ffffff18; border-radius: 11px; background: #0d0a11a8; }
.config-button-row-heading { margin-bottom: 10px; color: #e8def0; }
.config-button-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.button-role-field[hidden], .button-link-field[hidden] { display: none !important; }
.discord-preview-buttons { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.discord-preview-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 6px; background: #5865f2; color: white; font-size: 11px; }
.field > span { font-weight: 650; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), .field textarea, .field select { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #ffffff20; border-radius: 11px; outline: none; background: linear-gradient(145deg, #121016, #0e0c12); color: #f7f3fc; font: inherit; font-size: 12px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.field select:not([multiple]) { padding-right: 36px; appearance: none; color-scheme: dark; background-image: linear-gradient(45deg, transparent 50%, #cdb6df 50%), linear-gradient(135deg, #cdb6df 50%, transparent 50%), linear-gradient(145deg, #121016, #0e0c12); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%, 0 0; background-size: 5px 5px, 5px 5px, 100% 100%; background-repeat: no-repeat; cursor: pointer; }
.field select:not([multiple]) option { background: #19141f; color: #f7f3fc; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):hover:not(:focus), .field textarea:hover:not(:focus), .field select:hover:not(:focus) { border-color: #ffffff38; }
.field textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.field select[multiple] { min-height: 126px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #b96df2; box-shadow: 0 0 0 3px #a84cec20; }
.field select:not([multiple]):focus-visible { outline: 2px solid #d2a0ff; outline-offset: 2px; }
.field select:not([multiple]):disabled { cursor: not-allowed; opacity: .6; }
.field small { color: #8e8397; font-size: 10px; line-height: 1.5; }
.field em { color: #8e8397; font-size: 10px; font-style: normal; font-weight: 400; }
.kick-channel-field { position: relative; z-index: 2; }
.kick-channel-field > label { color: #d6cddd; font-size: 12px; font-weight: 650; }
.kick-channel-control { position: relative; display: grid; gap: 6px; }
.kick-channel-control > input[type="search"] { width: 100%; }
.kick-channel-results { position: absolute; z-index: 40; top: 45px; left: 0; display: grid; width: 100%; max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid #ffffff20; border-radius: 10px; background: #211b28; box-shadow: 0 16px 38px #0009; }
.kick-channel-results[hidden], .kick-channel-selected[hidden] { display: none; }
.kick-channel-option { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #e4dce9; text-align: left; cursor: pointer; }
.kick-channel-option:hover, .kick-channel-option:focus-visible { outline: none; background: #ffffff0d; }
.kick-channel-option > img, .kick-channel-selected > img, .kick-channel-fallback { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; }
.kick-channel-fallback { display: grid; place-items: center; background: #53fc1822; color: #53fc18; font-weight: 800; }
.kick-channel-option-names { display: grid; min-width: 0; gap: 2px; }
.kick-channel-option-names strong { overflow: hidden; color: #f0e8f6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kick-channel-option-names small, .kick-channel-status { color: #a99fb2; font-size: 10px; }
.kick-channel-selected { display: flex; align-items: center; gap: 8px; color: #bdb2c8; font-size: 10px; }
.kick-channel-selected > img, .kick-channel-selected > .kick-channel-fallback { width: 24px; height: 24px; flex-basis: 24px; }
.role-picker-field { position: relative; z-index: 1; }
.role-picker { position: relative; }
.role-picker[open] { z-index: 20; }
.role-picker-trigger { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px solid #ffffff20; border-radius: 9px; background: #0e0b12; color: #f7f3fc; font-size: 12px; cursor: pointer; list-style: none; }
.role-picker-trigger::-webkit-details-marker { display: none; }
.role-picker[open] .role-picker-trigger { border-color: #b96df2; box-shadow: 0 0 0 3px #a84cec20; }
.role-picker-chevron { color: #9f93a9; transition: transform .15s ease; }
.role-picker[open] .role-picker-chevron { transform: rotate(180deg); }
.role-picker-menu { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; display: grid; width: 100%; gap: 7px; padding: 8px; border: 1px solid #ffffff20; border-radius: 10px; background: #211b28; box-shadow: 0 16px 38px #0009; }
.role-picker-search { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #ffffff1c; border-radius: 8px; outline: none; background: #120e17; color: #f7f3fc; font: inherit; font-size: 11px; }
.role-picker-search:focus { border-color: #b96df2; }
.role-picker-options { display: grid; max-height: 220px; overflow-y: auto; }
.role-picker-option { display: flex; min-height: 34px; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: #ddd3e5; font-size: 11px; cursor: pointer; }
.role-picker-option:hover { background: #ffffff0d; }
.role-picker-option[hidden] { display: none; }
.role-picker-option input { width: 15px; min-height: 15px; flex: 0 0 15px; margin: 0; padding: 0; accent-color: #b96df2; }
.social-alert-preview-author { display: flex; align-items: center; gap: 8px; color: #f0e8f6; font-size: 11px; }
.social-alert-preview-author .message-preview-avatar, .social-alert-preview-avatar { width: 25px; height: 25px; flex: 0 0 25px; }
.social-alert-preview-avatar { display: grid; place-items: center; border-radius: 50%; background: #53fc1822; font-size: 13px; }
.social-alert-preview-author > span:not(.social-alert-preview-avatar) { padding: 2px 4px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 8px; font-weight: 800; }
.social-alert-preview-author small { color: #a99fb2; font-size: 9px; }
.social-diagnostics { display: grid; gap: 13px; margin: 18px 0 22px; padding: 16px; border: 1px solid #ffffff18; border-radius: 14px; background: linear-gradient(145deg, #100d16d9, #17121cbd); }
.social-diagnostics-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.social-diagnostics-heading h3 { margin: 5px 0 3px; color: #f0e8f6; font-size: 16px; }
.social-diagnostics-heading p { margin: 0; color: #9e93a8; font-size: 11px; line-height: 1.5; }
.social-diagnostics-heading .quiet-button { flex: 0 0 auto; }
.social-diagnostics-heading .quiet-button:disabled { cursor: progress; opacity: .65; }
.social-diagnostics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.social-diagnostic-card { min-width: 0; padding: 13px; border: 1px solid #ffffff14; border-radius: 11px; background: #0d0a11a8; }
.social-diagnostic-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.social-diagnostic-card-heading > strong { min-width: 0; overflow-wrap: anywhere; color: #ece3f2; font-size: 12px; }
.social-diagnostic-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #ffffff0c; color: #b8adbf; font-size: 9px; font-weight: 750; }
.social-diagnostic-card.status-online { border-color: #39cc8340; }
.social-diagnostic-card.status-online .social-diagnostic-status { background: #39cc8318; color: #79e5ab; }
.social-diagnostic-card.status-offline .social-diagnostic-status, .social-diagnostic-card.status-disabled .social-diagnostic-status { color: #a99fb2; }
.social-diagnostic-card.status-error, .social-diagnostic-card.status-stale { border-color: #ff6d7845; }
.social-diagnostic-card.status-error .social-diagnostic-status, .social-diagnostic-card.status-stale .social-diagnostic-status { background: #ff6d7818; color: #ff9ba2; }
.social-diagnostic-card.status-checking .social-diagnostic-status { background: #b96df21a; color: #d5a1f6; }
.social-diagnostic-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 13px 0 10px; }
.social-diagnostic-values > div { min-width: 0; }
.social-diagnostic-values dt { margin-bottom: 4px; color: #93889e; font-size: 9px; }
.social-diagnostic-values dd { margin: 0; overflow-wrap: anywhere; color: #e0d7e7; font-size: 10px; line-height: 1.4; }
.social-diagnostic-checked, .social-diagnostic-success { display: block; color: #91869b; font-size: 9px; line-height: 1.5; }
.social-diagnostic-success { color: #a99fb2; }
.social-diagnostic-error, .social-diagnostics-error { margin: 8px 0 0; color: #ff9ba2; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.social-diagnostic-suggestion { margin: 7px 0 0; padding: 8px 9px; border-left: 2px solid #b96df2; border-radius: 0 7px 7px 0; background: #b96df20c; color: #c6b8d0; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.social-diagnostic-suggestion strong { color: #d7b3f0; }
.social-diagnostics-empty { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px dashed #ffffff18; border-radius: 10px; color: #a99fb2; font-size: 11px; text-align: center; }
@media (max-width: 520px) {
    .social-diagnostics { padding: 12px; }
    .social-diagnostics-heading { align-items: flex-start; }
    .social-diagnostic-values { grid-template-columns: 1fr; gap: 7px; }
}
.template-field > label { color: #d6cddd; font-size: 12px; font-weight: 650; }
.template-composer { position: relative; display: flex; justify-content: flex-end; }
.template-toolbar { display: flex; gap: 6px; margin-top: -1px; }
.template-toolbar button { width: 34px; height: 32px; border: 1px solid #ffffff18; border-radius: 8px; background: #26202e; color: #d8cce2; font: inherit; font-size: 15px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.template-toolbar button:hover, .template-toolbar button:focus-visible { border-color: #b96df2; background: #382346; color: #e2a6ff; outline: none; }
.template-popover { position: absolute; z-index: 30; right: 0; bottom: calc(100% + 8px); width: min(380px, calc(100vw - 48px)); max-height: 330px; overflow: hidden; border: 1px solid #ffffff20; border-radius: 12px; background: #211b28; box-shadow: 0 18px 50px #0009; }
.template-popover[hidden] { display: none; }
.template-popover-heading { padding: 12px 14px; color: #f2eafa; font-size: 12px; font-weight: 700; }
.template-search { width: calc(100% - 20px); margin: 0 10px 8px; padding: 9px 10px; border: 1px solid #ffffff1c; border-radius: 8px; background: #120e17; color: #f7f3fc; font: inherit; font-size: 12px; outline: none; }
.template-search:focus { border-color: #b96df2; }
.template-options { display: grid; max-height: 250px; overflow-y: auto; padding: 0 7px 7px; }
.template-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: #e4dce9; text-align: left; cursor: pointer; }
.template-option:hover, .template-option:focus-visible { background: #ffffff12; outline: none; }
.template-option-icon { display: grid; flex: 0 0 30px; min-height: 30px; place-items: center; border: 1px solid #ffffff12; border-radius: 8px; color: #d789ff; font-size: 12px; }
.template-option > span:last-child { display: grid; gap: 2px; min-width: 0; }
.template-option strong { color: #f0e8f6; font-size: 12px; }
.template-option small { color: #a99fb2; font-size: 10px; }
.template-empty { margin: 0; padding: 14px; color: #a99fb2; font-size: 11px; }
.setups-field { grid-column: 1 / -1; }
.setup-rows { display: grid; gap: 12px; }
.setup-row { padding: 15px; border: 1px solid #ffffff18; border-radius: 12px; background: #0e0b1280; }
.setup-row-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #e6ddeb; font-size: 12px; }
.setup-row-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.special-channel-editor { grid-column: 1 / -1; }
.special-channel-row { display: grid; gap: 12px; }
.special-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.special-channel-add { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.special-channel-add select { flex: 1; }
.setup-add { justify-self: start; }
.setup-empty { margin: 0; padding: 16px; border: 1px dashed #ffffff24; border-radius: 10px; color: #a99fb2; font-size: 12px; }
.prestige-rows { display: grid; gap: 8px; }
.prestige-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 10px; color: #d6cddd; font-size: 11px; }
.prestige-row strong { font-size: 11px; }
.prestige-map-field > small { margin-top: 1px; }
.prestige-settings-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 18px; }
.prestige-settings-grid > .checkbox-field { grid-column: 1 / -1; grid-row: 2; }
.prestige-settings-grid [data-prestige-map="prestigeRoles"] { grid-column: 2; grid-row: 1; padding: 16px; border: 1px solid #ffffff18; border-radius: 12px; background: linear-gradient(145deg, #24162d, #110e16); }
.prestige-settings-grid [data-prestige-map="prestigeRewards"] { grid-column: 1; grid-row: 1; padding: 16px; border: 1px solid #ffffff18; border-radius: 12px; background: #0e0b1280; }
.prestige-settings-grid .prestige-rows { gap: 11px; margin-top: 12px; }
.prestige-settings-grid [data-prestige-map="prestigeRoles"] .prestige-row { grid-template-columns: 88px minmax(0, 1fr); }
.prestige-settings-grid .form-actions { grid-row: 3; }
.community-autoroles-grid, .community-confessions-grid, .community-suggestions-grid { align-items: start; }
.community-autoroles-grid [data-setting-field="enabled"],
.community-confessions-grid [data-setting-field="Enabled"],
.community-suggestions-grid [data-setting-field="Enabled"] { grid-column: 1 / -1; }
.community-autoroles-grid [data-setting-field="enabled"] { grid-row: 2; }
.community-autoroles-grid .form-actions { grid-row: 3; }
.community-confessions-grid [data-setting-field="channelId"] { grid-column: 1; grid-row: 1; }
.community-confessions-grid [data-setting-field="rolesToMention"] { grid-column: 2; grid-row: 1; }
.community-confessions-grid [data-setting-field="replyButtonsEnabled"] { grid-column: 1; grid-row: 2; }
.community-confessions-grid [data-setting-field="repliesInThreads"] { grid-column: 2; grid-row: 2; }
.community-confessions-grid [data-setting-field="Enabled"] { grid-row: 3; }
.community-confessions-grid .form-actions { grid-row: 4; }
.community-suggestions-grid [data-setting-field="guildChannel"] { grid-column: 1; grid-row: 1; }
.community-suggestions-grid [data-setting-field="createThreads"] { grid-column: 2; grid-row: 1; }
.community-suggestions-grid [data-setting-field="Enabled"] { grid-row: 2; }
.community-suggestions-grid .form-actions { grid-row: 3; }
.community-boosts-grid [data-setting-field="boostButtons"] { grid-column: 1 / -1; }
.community-boosts-grid [data-setting-field="boostImage"], .community-welcome-grid [data-setting-field="Thumbnail"] { grid-column: 1 / -1; }
.community-welcome-grid .field, .community-leaves-grid .field, .community-birthday-grid .field, .community-boosts-grid .field { align-self: start; }
.community-welcome-grid .checkbox-field, .community-confessions-grid .checkbox-field, .community-suggestions-grid .checkbox-field { align-self: stretch; }
.community-welcome-grid .checkbox-field > span, .community-confessions-grid .checkbox-field > span, .community-suggestions-grid .checkbox-field > span { min-width: 0; }
.community-welcome-grid .checkbox-field small, .community-confessions-grid .checkbox-field small, .community-suggestions-grid .checkbox-field small { display: block; margin-top: 4px; line-height: 1.45; }
.member-search-panel { position: relative; width: min(100%, 500px); }
.member-picker-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #ffffff18; border-radius: 9px; background: #1c1921; color: #f0e8f6; text-align: left; cursor: pointer; }
.member-picker-trigger:hover, .member-picker-trigger[aria-expanded="true"] { border-color: #ae55e8; }
.member-picker-trigger > span:last-child { color: #9a8fa1; font-size: 18px; }
.member-picker-menu { position: absolute; z-index: 4; top: calc(100% + 5px); left: 0; right: 0; overflow: hidden; border: 1px solid #ffffff20; border-radius: 9px; background: #292630; box-shadow: 0 14px 35px #0008; }
.member-picker-menu[hidden], .member-economy-detail[hidden] { display: none; }
.member-picker-search { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 13px; border-bottom: 1px solid #ffffff12; color: #9a8fa1; }
.member-picker-search > span { font-size: 20px; }
.member-picker-search input { width: 100%; min-height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: #f0e8f6; }
.member-search-results { max-height: 270px; overflow-y: auto; padding: 5px; }
.member-search-results:empty { display: none; }
.member-search-result { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 54px; padding: 9px 11px; border: 0; border-radius: 6px; background: transparent; color: #eee5f2; text-align: left; cursor: pointer; }
.member-search-result:hover { background: #ffffff0d; }
.member-search-result img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #342c3a; }
.member-search-result strong { font-weight: 550; }
.member-economy-detail { display: grid; gap: 16px; margin-top: 24px; }
.member-economy-heading h3 { margin: 4px 0; }
.member-trophy-summary { border-color: #ad65e54a; background: linear-gradient(145deg, #281b34, #130f19); }
.member-trophy-summary .member-economy-stat { align-items: center; min-height: 58px; background: #a04bd50b; }
.member-trophy-summary .member-economy-stat strong { color: #d6a8ff; font-size: 18px; }
.member-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.member-balance-grid article, .member-balance-field, .member-backpack { display: grid; gap: 8px; padding: 18px; border: 1px solid #ffffff18; border-radius: 12px; background: linear-gradient(145deg, #211827, #110e16); }
.member-balance-grid article > span, .member-balance-field > span { color: #c7b8d0; font-size: 12px; }
.member-balance-input { width: 100%; min-height: 48px; padding: 9px 12px; border: 1px solid #ffffff18; border-radius: 9px; background: #0e0b12; color: #f3e9fb; font: inherit; font-size: 22px; font-weight: 750; }
.member-balance-input::-webkit-inner-spin-button, .member-balance-input::-webkit-outer-spin-button { opacity: 1; }
.member-balance-update { margin: 0; padding: 10px 14px; gap: 8px; font-size: 12px; }
.member-balance-update[hidden] { display: none; }
.member-balance-update:disabled { cursor: default !important; }
.member-balance-grid strong { color: #f3e9fb; font-size: 26px; }
.member-balance-grid small, .member-backpack p { margin: 0; color: #a99fb2; }
.member-economy-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.member-economy-stat { display: flex; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid #ffffff14; border-radius: 9px; color: #b8adbf; font-size: 11px; }
.member-economy-stat strong { color: #eadff1; }
.member-backpack h3 { margin: 0; }
.member-backpack-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.member-backpack-heading span { color: #b8adbf; font-size: 11px; }
.member-backpack-item, .member-achievement-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #ffffff14; border-radius: 10px; background: #ffffff05; min-width: 0; }
.member-backpack-emoji { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: #8a2be21f; font-size: 20px; }
.member-backpack-copy, .member-achievement-item > div { display: grid; gap: 4px; min-width: 0; flex: 1; }
.member-backpack-copy strong, .member-achievement-item strong { color: #eadff1; overflow-wrap: anywhere; }
.member-backpack-copy small, .member-achievement-item small { color: #a99fb2; font-size: 11px; overflow-wrap: anywhere; }
.member-backpack-quantity { color: #eadff1; font-weight: 700; white-space: nowrap; }
.member-backpack-empty { margin: 0; color: #a99fb2; }
.member-achievement-list { display: grid; gap: 8px; }
.member-achievement-item > span { font-size: 20px; }
.member-achievement-item b { color: #c4a7ff; font-size: 11px; text-align: right; }
.checkbox-field { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 12px; border: 1px solid #ffffff20; border-radius: 12px; background: #111015; transition: border-color .18s ease, background .18s ease; }
.checkbox-field:hover { border-color: #ffffff38; background: #141118; }
.checkbox-field { align-self: start; }
.checkbox-field input[type="checkbox"] { position: relative; width: 42px; height: 24px; min-height: 24px; flex: 0 0 42px; margin: 0 0 0 12px; padding: 0; appearance: none; border: 1px solid #ffffff30; border-radius: 999px; background: #ffffff12; box-shadow: inset 0 1px 2px #0005; cursor: pointer; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .16s ease; }
.checkbox-field input[type="checkbox"]::before { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(145deg, #fff, #cfc5d8); box-shadow: 0 1px 4px #0008; content: ""; transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s ease; }
.checkbox-field input[type="checkbox"]:checked { border-color: #c47af277; background: linear-gradient(110deg, #7531a8, #a44cdb); box-shadow: inset 0 0 0 1px #e3baff22, 0 0 14px #9e49d52a; }
.checkbox-field input[type="checkbox"]:checked::before { transform: translateX(18px); background: linear-gradient(145deg, #fff, #ead8ff); }
.checkbox-field input[type="checkbox"]:hover { border-color: #d1a0ef; }
.checkbox-field input[type="checkbox"]:active { transform: scale(.94); }
.checkbox-field input[type="checkbox"]:focus-visible { outline: 2px solid #d2a0ff; outline-offset: 3px; }
.checkbox-field input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .5; }
.form-actions { display: flex; align-items: center; gap: 9px; grid-column: 1 / -1; padding-top: 4px; }
.form-actions .primary-button { margin: 0; padding: 11px 14px; gap: 8px; font-size: 12px; cursor: pointer; }
.save-feedback { display: inline-flex; align-items: center; min-height: 1em; color: #a99fb2; font-size: 11px; transition: color .18s ease; }
.save-feedback::before { display: inline-block; width: 1em; margin-right: 5px; opacity: 0; text-align: center; transform: scale(.7); transition: opacity .18s ease, transform .18s ease; content: ""; }
.save-feedback.pending { color: #d4b1ee; }
.save-feedback.pending::before { opacity: 1; content: "◌"; animation: save-feedback-spin 1s linear infinite; }
.save-feedback.success { color: #79e5ab; animation: save-feedback-pop .24s ease-out; }
.save-feedback.success::before { opacity: 1; transform: scale(1); content: "✓"; }
.save-feedback.error { color: #ff9eae; animation: save-feedback-shake .22s ease-out; }
.save-feedback.error::before { opacity: 1; transform: scale(1); content: "!"; }
button:disabled { opacity: .55; cursor: wait !important; }
.notice { position: sticky; top: 12px; z-index: 5; margin-top: 12px; padding: 11px 14px; border: 1px solid #5bd08c55; border-radius: 9px; background: #17402b; color: #b7f3cf; font-size: 12px; }
.notice-error { border-color: #ef6c8255; background: #481e29; color: #ffc0cb; }
.records-list { margin-top: 20px; }
.record-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px solid #ffffff12; }
.record-row[hidden] { display: none !important; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 18px 0 4px; color: #95899e; font-size: 10px; }
.record-search { width: min(100%, 260px); }

.achievements-backup-toolbar { flex-wrap: wrap; align-items: center; padding: 13px; border: 1px solid #ffffff14; border-radius: 12px; background: #100c1680; }
.achievements-backup-toolbar > div:first-child { display: grid; flex: 1 1 220px; gap: 4px; }
.achievements-backup-toolbar > div:first-child strong { color: #eee5f5; font-size: 12px; }
.achievements-backup-toolbar > div:first-child span { color: #95899e; font-size: 10px; }
.achievements-backup-toolbar select { width: 100%; min-height: 34px; }

.record-title { overflow: hidden; color: #e6ddeb; font-size: 12px; font-weight: 650; text-overflow: ellipsis; }
.record-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.danger-text { color: #ff9ba9; }
.form-divider { height: 1px; margin: 24px 0 18px; background: #ffffff17; }
.settings-card h3 { margin: 0 0 16px; font-size: 15px; }
.unsaved-indicator { color: #e5bd72; font-size: 10px; }
.unsaved-indicator[hidden] { display: none; }
.has-unsaved-changes .unsaved-indicator { display: inline-flex; }
.live-preview { display: grid; gap: 11px; margin: 18px 0 22px; padding: 15px; border: 1px solid #ffffff14; border-radius: 13px; background: #0e0b1280; }
.live-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-preview-heading small { color: #8f8298; font-size: 10px; }
.dm-preview-block { display: grid; gap: 11px; margin-top: 8px; padding-top: 14px; border-top: 1px solid #ffffff16; }
.discord-preview { overflow: hidden; border: 1px solid #ffffff13; border-left: 3px solid var(--preview-accent); border-radius: 10px; background: #111015; }
.message-preview-banner { display: grid; min-height: 54px; max-height: 138px; place-items: center; overflow: hidden; background: linear-gradient(110deg, color-mix(in srgb, var(--preview-accent) 20%, #17121d), #17121d); color: #8e8297; font-size: 10px; }
.preview-empty { color: #8e8297; font-size: 12px; font-style: italic; }
.preview-reminder { margin: 0; padding: 10px 12px; border: 1px solid #ffffff12; border-radius: 9px; color: #c9bbd2; font-size: 11px; line-height: 1.5; }
.message-preview-banner img { display: block; width: 100%; max-height: 138px; object-fit: cover; }
.discord-preview-body { display: flex; align-items: flex-start; gap: 12px; padding: 15px; }
.discord-preview-author { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 10px 15px 0; color: #f0e8f6; font-size: 12px; }
.discord-preview-bot-avatar, .discord-preview-bot-avatar-fallback { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid #bd75ec55; border-radius: 50%; background: #21152b; object-fit: cover; }
.discord-preview-bot-avatar-fallback { color: #e5c8f8; font-size: 12px; font-weight: 800; }
.discord-preview-author > span { padding: 2px 4px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 8px; font-weight: 800; }
.discord-preview-author small { color: #a99fb2; font-size: 10px; }
.discord-preview-thumbnail { width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid #ffffff20; border-radius: 8px; background: #211b28; object-fit: cover; }
.discord-preview-emoji { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; object-fit: contain; }
.message-preview-avatar { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid #ffffff20; border-radius: 50%; object-fit: cover; }
.message-preview-avatar.placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #8d38c9, #32134c); color: #f5e8ff; font-size: 12px; font-weight: 800; }
.discord-preview-copy { min-width: 0; }
.discord-preview-copy > small, .level-preview-copy small { color: #a99bb0; font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.discord-preview-copy h3 { margin: 7px 0; color: var(--preview-accent); font-size: 16px; }
.discord-preview-separator { width: 100%; height: 1px; margin: 9px 0; border: 0; background: #ffffff1c; }
.discord-preview-copy p { margin: 0; color: #d2cad8; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-preview-copy > span { display: block; margin-top: 11px; color: #82778a; font-size: 9px; }
.level-preview { position: relative; display: flex; min-height: 150px; align-items: center; gap: 15px; padding: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--preview-accent) 45%, transparent); border-radius: 11px; background: linear-gradient(120deg, #201727, #111015 72%); }
.level-preview-background { position: absolute; inset: 0; opacity: .25; }
.level-preview-background img { width: 100%; height: 100%; object-fit: cover; }
.level-preview > *:not(.level-preview-background) { position: relative; z-index: 1; }
.level-preview-copy { display: grid; gap: 6px; }
.level-preview-copy .discord-preview-separator, .level-preview-role .discord-preview-separator { margin: 3px 0; }
.level-preview-copy strong { color: #f2e8f7; font-size: 16px; }
.level-preview-copy > span { color: #b3a7bc; font-size: 11px; }
.level-preview-number { margin-left: auto; color: var(--preview-accent); font-size: 40px; text-shadow: 0 0 24px color-mix(in srgb, var(--preview-accent) 45%, transparent); }
.dashboard-page .empty-state { color: #94899e; font-size: 12px; }
.dashboard-page .error a { color: #dfb3ff; }
.poll-create-card, .poll-list-card { margin-top: 16px; }
.poll-full-field { grid-column: 1 / -1; }
.poll-form-note { align-self: center; color: #a99bb0; font-size: 11px; line-height: 1.5; }
.poll-preview-copy > small { display: block; margin-bottom: 8px; color: #a99bb0; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.poll-preview-options { display: grid; gap: 7px; margin: 12px 0; padding: 0; list-style: none; }
.poll-preview-options li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #ffffff14; border-radius: 8px; background: #ffffff05; color: #e4dce9; font-size: 12px; overflow-wrap: anywhere; }
.poll-preview-options li small { flex: 0 0 auto; color: #8f8298; font-size: 10px; }
.poll-preview-options .poll-preview-empty { color: #8f8298; font-style: italic; }
.poll-preview-duration { margin-top: 12px !important; color: #a99bb0 !important; font-size: 10px !important; }
.poll-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.poll-stats > div { display: grid; gap: 7px; padding: 13px 15px; border: 1px solid #ffffff12; border-radius: 11px; background: #0e0b1280; }
.poll-stats span { color: #a99bb0; font-size: 10px; }
.poll-stats strong { color: #f1e5f7; font-size: 21px; }
.poll-list { display: grid; gap: 10px; margin-top: 18px; }
.poll-row { display: flex; justify-content: space-between; gap: 20px; padding: 17px; border: 1px solid #ffffff12; border-radius: 12px; background: #0e0b1270; }
.poll-row-main { min-width: 0; flex: 1; }
.poll-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.poll-channel, .poll-votes { color: #a99bb0; font-size: 10px; }
.poll-row h3 { margin: 11px 0; color: #f0e7f3; font-size: 15px; overflow-wrap: anywhere; }
.poll-row ul { display: grid; gap: 6px; margin: 0 0 11px; padding: 0; list-style: none; }
.poll-row li { display: flex; justify-content: space-between; gap: 10px; color: #cbbfd1; font-size: 11px; }
.poll-row li strong { color: #d4a5f4; }
.poll-row-main > small { color: #8f8298; font-size: 10px; }
.poll-row .record-actions { flex-wrap: wrap; align-content: flex-start; }
.poll-row .record-actions a { text-decoration: none; }

@media (max-width: 800px) {
    .app-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .sidebar { padding-left: 10px; padding-right: 10px; }
    .account-shell { width: min(100% - 32px, 1480px); }
    .account-settings-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 600px) {
    .shell { width: min(100% - 28px, 1120px); }
    .topbar { height: 78px; }
    .welcome-card { padding: 78px 0 65px; }
    .welcome-card > p { font-size: 15px; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 12px; }
    .app-layout { display: block; }
    .sidebar { position: relative; top: auto; height: auto; margin: 12px; padding: 12px 14px; border-radius: 18px; }
    .sidebar .brand { padding-bottom: 12px; }
    .server-switch { margin: 10px 0; }
    .nav-tools { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 10px 0 8px; }
    .favorites-toggle { justify-self: end; }
    #module-nav { display: flex; gap: 4px; overflow-x: auto; }
    .nav-heading { display: none; }
    .nav-item { flex: 0 0 auto; width: auto; white-space: nowrap; }
    .nav-entry { flex: 0 0 auto; }
    .nav-entry .nav-item { width: auto; white-space: nowrap; }
    .nav-favorite { display: block; width: 25px; height: 29px; flex-basis: 25px; opacity: .85; }
    .nav-home { flex: 0 0 auto; }
    .sidebar-footer { display: none; }
    .main-panel { padding: 0 14px 35px; }
    .account-shell { width: calc(100% - 28px); }
    .account-topbar { min-height: 72px; gap: 8px; }
    .account-topbar .brand { gap: 8px; }
    .account-topbar .brand-logo { width: 36px; height: 36px; }
    .account-topbar .brand strong { font-size: 12px; }
    .account-topbar .brand small { display: none; }
    .account-top-actions { gap: 5px; }
    .account-dashboard-link { display: none; }
    .account-settings-layout { display: block; padding-top: 20px; }
    .account-settings-nav { position: static; display: flex; gap: 5px; padding: 0 0 15px; overflow-x: auto; }
    .account-settings-back, .account-nav-heading { display: none; }
    .account-settings-nav-item { flex: 0 0 auto; padding: 9px 11px; }
    .account-settings-main { gap: 12px; }
    .account-page-heading { padding-bottom: 14px; }
    .account-page-heading h1 { font-size: 24px; }
    .account-section { padding: 17px; }
    .account-section-heading { gap: 10px; }
    .account-section-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .account-section-heading h2 { font-size: 16px; }
    .account-section-heading p { font-size: 10px; }
    .account-identity-row { gap: 9px; padding: 10px; }
    .account-profile-avatar { width: 40px; height: 40px; flex-basis: 40px; }
    .account-identity-copy strong { font-size: 11px; }
    .account-profile-details { grid-template-columns: 1fr; }
    .account-link-row { grid-template-columns: 1fr auto; }
    .account-link-row input:nth-child(2) { grid-column: 1; }
    .account-link-row button { grid-column: 2; grid-row: 1 / span 2; }
    .account-reward-grid { grid-template-columns: 1fr; }
    .account-logout { padding: 8px; font-size: 10px; }
    .account-trigger { gap: 6px; padding: 4px 6px; }
    .account-identity { max-width: 115px; }
    .account-identity strong { max-width: 115px; }
    .main-header { min-height: 74px; }
    .header-actions { gap: 7px; }
    .overview-page { gap: 12px; }
    .checks-page { gap: 12px; }
    .checks-page-heading { padding: 18px 15px; }
    .checks-page-heading h2 { font-size: 21px; }
    .checks-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .checks-summary article { gap: 6px; padding: 12px 10px; }
    .checks-summary article strong { font-size: 20px; }
    .overview-next-step { grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 14px; }
    .overview-next-step > button { grid-column: 1 / -1; justify-content: space-between; width: 100%; }
    .overview-next-step-marker { width: 32px; height: 32px; flex-basis: 32px; }
    .overview-hero { grid-template-columns: minmax(0, 1fr); align-items: flex-start; gap: 14px; min-height: auto; padding: 20px 16px; }
    .overview-hero-copy { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
    .overview-server-mark { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; font-size: 15px; }
    .overview-welcome h2 { font-size: 21px; }
    .overview-welcome p { font-size: 11px; }
    .overview-quick-links { gap: 6px; }
    .overview-quick-link { gap: 8px; padding: 8px; font-size: 10px; }
    .overview-readiness { min-width: 0; width: 100%; padding: 11px; }
    .overview-readiness-ring { width: 58px; height: 58px; flex-basis: 58px; }
    .overview-readiness-ring > div { width: 48px; height: 48px; }
    .overview-readiness-ring strong { font-size: 15px; }
    .overview-readiness-copy { gap: 3px; }
    .overview-readiness-copy > strong { font-size: 14px; }
    .overview-hero-glow { right: -32px; width: 110px; height: 110px; }
    .overview-stats { gap: 7px; }
    .overview-stats article { gap: 6px; padding: 12px 10px; }
    .overview-stats article > span { font-size: 9px; }
    .overview-stats strong { font-size: 19px; }
    .overview-stats .overview-server-name { font-size: 12px; }
    .overview-section-title { align-items: flex-start; flex-direction: column; gap: 6px; }
    .overview-grid { grid-template-columns: 1fr; gap: 9px; }
    .overview-card { gap: 11px; padding: 15px; }
    .audit-heading { flex-direction: column; }
    .audit-table th, .audit-table td { padding: 10px 8px; font-size: 10px; }
    .audit-pagination { align-items: flex-start; flex-direction: column; }
    .audit-page-actions { width: 100%; justify-content: space-between; }
    .save-feedback { flex-basis: 100%; }
    .list-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; }
    .record-search { width: 100%; }
    .poll-row { flex-direction: column; gap: 14px; }
    .poll-row .record-actions { justify-content: flex-start; }
    .poll-stats { gap: 7px; }
    .poll-stats > div { padding: 10px; }
    .poll-stats strong { font-size: 18px; }
    .live-preview { padding: 11px; }
    .live-preview-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .discord-preview-body { gap: 9px; padding: 11px; }
    .discord-preview-author { gap: 6px; padding: 9px 11px 0; font-size: 11px; }
    .message-preview-avatar { width: 34px; height: 34px; flex-basis: 34px; }
    .discord-preview-thumbnail { width: 38px; height: 38px; flex-basis: 38px; }
    .discord-preview-copy h3 { font-size: 14px; }
    .discord-preview-copy p { font-size: 11px; }
    .level-preview { min-height: 125px; gap: 9px; padding: 12px; }
    .level-preview-number { font-size: 30px; }
    .fields-grid { grid-template-columns: 1fr; }
    .aligned-toggle-grid > .checkbox-field { margin-top: 0; }
    .prestige-settings-grid { grid-template-columns: 1fr; }
    .prestige-settings-grid > .checkbox-field, .prestige-settings-grid [data-prestige-map="prestigeRoles"], .prestige-settings-grid [data-prestige-map="prestigeRewards"] { grid-column: 1; grid-row: auto; }
    .prestige-settings-grid .form-actions { grid-row: auto; }
    .community-autoroles-grid [data-setting-field], .community-confessions-grid [data-setting-field], .community-suggestions-grid [data-setting-field] { grid-column: 1; grid-row: auto; }
    .community-autoroles-grid .form-actions, .community-confessions-grid .form-actions, .community-suggestions-grid .form-actions { grid-row: auto; }
    .community-boosts-grid [data-setting-field="boostButtons"] { grid-column: 1; }
    .member-balance-grid { grid-template-columns: 1fr; }
    .setup-row-fields { grid-template-columns: 1fr; }
    .special-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .special-channel-add { align-items: stretch; flex-direction: column; }
    .config-button-fields { grid-template-columns: 1fr; }
    .prestige-row { grid-template-columns: 82px minmax(0, 1fr); }
    .form-actions { flex-wrap: wrap; }
}
.form-section-heading {
    grid-column: 1 / -1;
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 11px;
    border: 1px solid #bd75ec24;
    border-radius: 10px;
    background: linear-gradient(100deg, #a34ce318, #a34ce304 58%, transparent);
    color: #d4a2f3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.form-section-heading::before { width: 3px; height: 14px; flex: 0 0 3px; border-radius: 999px; background: linear-gradient(180deg, #ddaaff, #9945d4); box-shadow: 0 0 10px #a44ce344; content: ""; }

.level-preview-list { display: grid; gap: 14px; }
.level-preview-panel { display: grid; gap: 8px; }


/* Shared active-state controls for all system toggles */
.system-toggle-field { align-items: center; }
.system-toggle-field > span { min-width: 0; }
.system-toggle { position: relative; display: inline-flex; width: 166px; min-width: 166px; min-height: 38px; align-items: center; justify-content: flex-start; padding: 9px 52px 9px 13px; border: 1px solid #ffffff24; border-radius: 999px; background: #ffffff0b; color: #c8bdcf; font: inherit; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: left; cursor: pointer; transition: transform .16s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.system-toggle::before { position: absolute; top: 8px; right: 8px; width: 38px; height: 20px; border: 1px solid #ffffff22; border-radius: 999px; background: #08070b80; box-shadow: inset 0 1px 2px #0006; content: ""; transition: background .18s ease, border-color .18s ease; }
.system-toggle::after { position: absolute; top: 12px; right: 29px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(145deg, #f5edf9, #a99fb2); box-shadow: 0 1px 5px #0009; content: ""; transition: right .2s cubic-bezier(.2,.8,.2,1), background .18s ease, box-shadow .18s ease; }
.system-toggle:hover { transform: translateY(-1px); border-color: #bd75ec77; }
.system-toggle:active { transform: scale(.98); }
.system-toggle.is-active { border-color: #39cc8370; background: linear-gradient(105deg, #39cc831c, #39cc830c); color: #82e7ae; box-shadow: inset 0 0 0 1px #39cc8315, 0 4px 14px #39cc8312; }
.system-toggle.is-active::before { border-color: #39cc8370; background: #39cc8326; }
.system-toggle.is-active::after { right: 11px; background: linear-gradient(145deg, #d7ffe7, #71d99c); box-shadow: 0 0 9px #52dd8b88; }
.system-toggle:focus-visible { outline: 2px solid #c47af2; outline-offset: 2px; }
@media (max-width: 560px) { .system-toggle-field { align-items: flex-start; gap: 12px; } .system-toggle { width: 166px; min-width: 166px; } }


/* Personal statistics */
.personal-stats-refresh { margin-left: auto; flex: 0 0 auto; }
.personal-stats-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 15px; padding: 5px; border: 1px solid #ffffff12; border-radius: 12px; background: #0d0a1180; }
.personal-stats-tab { padding: 9px 13px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #b8acbf; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.personal-stats-tab:hover { background: #ffffff0a; color: #fff; }
.personal-stats-tab.active { border-color: #bd75ec30; background: linear-gradient(135deg, #a34ce32c, #a34ce30c); color: #e9d1ff; }
.personal-stats-status { margin: 0 0 15px; color: #a99eb3; font-size: 11px; line-height: 1.6; }
.personal-stats-content { min-width: 0; }
.personal-stats-intro { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin: 7px 0 18px; }
.personal-stats-intro h3 { margin: 0; color: #f3eafa; font-size: 17px; }
.personal-stats-intro p { margin: 6px 0 0; color: #a99eb3; font-size: 11px; line-height: 1.6; }
.personal-stats-period { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #ffffff13; border-radius: 7px; color: #c9b8d6; font-size: 9px; }
.personal-stats-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 21px; }
.personal-stats-metric { display: grid; gap: 8px; min-width: 0; padding: 16px; border: 1px solid #ffffff13; border-radius: 11px; background: #0d0b1099; }
.personal-stats-metric span { color: #a99eb3; font-size: 10px; }
.personal-stats-metric strong { overflow-wrap: anywhere; color: #dfb5ff; font-size: clamp(18px, 2.4vw, 25px); letter-spacing: -.025em; }
.personal-stats-metric small { color: #897c94; font-size: 9px; }
.personal-stats-content h4 { margin: 20px 0 13px; color: #e9deef; font-size: 12px; }
.personal-stats-bars { display: grid; gap: 14px; }
.personal-stats-bar-row { display: grid; gap: 7px; }
.personal-stats-bar-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #bdb0c8; font-size: 10px; }
.personal-stats-bar-label span { overflow-wrap: anywhere; }
.personal-stats-bar-label strong { flex: 0 0 auto; color: #e8d3fa; font-size: 10px; font-variant-numeric: tabular-nums; }
.personal-stats-bar-track { height: 7px; overflow: hidden; border-radius: 99px; background: #ffffff0e; }
.personal-stats-bar-track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #873ac2, #d19aff); box-shadow: 0 0 14px #b15af344; transition: width .25s ease; }
.personal-stats-empty { padding: 18px; border: 1px dashed #ffffff1d; border-radius: 10px; color: #94879f; font-size: 11px; text-align: center; }
@media (max-width: 760px) {
    .personal-stats-refresh { margin-left: 0; }
    .account-section-heading:has(.personal-stats-refresh) { flex-wrap: wrap; }
    .personal-stats-tabs { gap: 5px; }
    .personal-stats-tab { flex: 1 1 auto; padding: 9px 10px; }
}
@media (max-width: 480px) {
    .personal-stats-metrics { grid-template-columns: 1fr; }
    .personal-stats-intro { flex-direction: column; }
    .account-settings-layout { grid-template-columns: minmax(0, 1fr); }
    .account-settings-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-settings-back, .account-nav-heading { grid-column: 1 / -1; }
}


/* Integridad de referencias existentes: complemento del progreso de configuración. */
.overview-integrity { display: grid; gap: 13px; padding: 16px 18px; border: 1px solid #ffffff16; border-radius: 13px; background: linear-gradient(110deg, #19131e, #120f16); }
.overview-integrity-warning { border-color: #e2a04a45; background: linear-gradient(110deg, #bd85200d, #19131e); }
.overview-integrity-ok { border-color: #63c89a30; }
.overview-integrity-heading { display: flex; align-items: flex-start; gap: 11px; }
.overview-integrity-heading > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; background: #e2a04a1c; color: #edc981; font-weight: 800; }
.overview-integrity-ok .overview-integrity-heading > span { background: #63c89a1a; color: #82d9ae; }
.overview-integrity-heading > div { display: grid; gap: 5px; min-width: 0; }
.overview-integrity-heading strong { color: #e8d9f3; font-size: 13px; }
.overview-integrity-heading small { color: #a99eb3; font-size: 11px; line-height: 1.6; }
.overview-integrity-links { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-integrity-links button { display: grid; gap: 5px; min-width: 150px; padding: 9px 11px; border: 1px solid #e2a04a30; border-radius: 9px; background: #100b1870; color: #e8d9f3; text-align: left; font: inherit; cursor: pointer; }
.overview-integrity-links button:hover { border-color: #c983f266; background: #a34ce31a; }
.overview-integrity-links button > span { font-size: 11px; font-weight: 700; }
.overview-integrity-links button > small { color: #edc981; font-size: 10px; }
@media (max-width: 640px) { .overview-integrity-links { display: grid; grid-template-columns: 1fr; } .overview-integrity-links button { min-width: 0; } }

/* Botones en la vista previa: diferenciar enlaces y acciones de rol. */
.discord-preview-buttons { align-items: stretch; }
.discord-preview-button { flex-direction: column; align-items: stretch; min-width: 110px; max-width: 100%; gap: 4px; padding: 7px 10px; border: 1px solid #ffffff20; }
.discord-preview-button-main { display: inline-flex; align-items: center; justify-content: center; gap: 5px; overflow-wrap: anywhere; }
.discord-preview-button-emoji { flex: 0 0 auto; }
.discord-preview-button-kind { padding: 2px 4px; border-radius: 4px; background: #ffffff22; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.discord-preview-button > small { color: #e5e1ffb8; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; text-align: center; }
.discord-preview-button.role-button { background: #248b6238; border-color: #39cc8360; }
.discord-preview-button.link-button { background: #5865f2; border-color: #8b94ff66; }
@media (max-width: 560px) { .discord-preview-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .discord-preview-button { min-width: 0; } }


/* Bryvex Intelligence: actionable, data-driven dashboard recommendations */
.intelligence-panel {
    display: grid;
    gap: 18px;
    margin: 0 0 30px;
    padding: clamp(18px, 2.5vw, 26px);
    border: 1px solid #b77bea35;
    border-radius: 18px;
    background: linear-gradient(125deg, #21152ee8, #100d17e8 70%);
    box-shadow: 0 18px 48px #0002, inset 0 1px #ffffff0a;
}
.intelligence-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.intelligence-heading h3 { margin: 6px 0 0; font-size: clamp(18px, 2vw, 23px); letter-spacing: -.025em; }
.intelligence-heading p { margin: 8px 0 0; color: #a99eb3; font-size: 12px; line-height: 1.6; }
.intelligence-status { flex: 0 0 auto; max-width: 220px; padding: 7px 10px; border: 1px solid #c78afa35; border-radius: 999px; background: #a34ce315; color: #dfbaff; font-size: 10px; font-weight: 750; text-align: center; }
.intelligence-list { display: grid; gap: 9px; }
.intelligence-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 15px; border: 1px solid #ffffff12; border-radius: 12px; background: #09070d7a; }
.intelligence-number { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #c78afa2b; border-radius: 9px; background: #a34ce31a; color: #d9a8ff; font-size: 11px; font-weight: 800; }
.intelligence-copy { display: grid; gap: 5px; min-width: 0; }
.intelligence-category { color: #c58cf0; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.intelligence-copy strong, .intelligence-empty strong { color: #f2eafa; font-size: 13px; }
.intelligence-copy p, .intelligence-empty p { margin: 0; color: #a99eb3; font-size: 11px; line-height: 1.6; }
.intelligence-copy small { color: #83768e; font-size: 10px; line-height: 1.5; }
.intelligence-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; align-self: center; min-height: 36px; padding: 0 12px; border: 1px solid #c78afa35; border-radius: 9px; background: #a34ce318; color: #e6c8ff; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.intelligence-action:hover { border-color: #c78afa85; background: #a34ce32c; }
.intelligence-empty { display: grid; justify-items: start; gap: 10px; padding: 16px; border: 1px solid #ffffff12; border-radius: 12px; background: #09070d7a; }
@media (max-width: 700px) {
    .intelligence-heading { flex-direction: column; }
    .intelligence-status { max-width: 100%; }
    .intelligence-item { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
    .intelligence-action { grid-column: 2; justify-self: start; }
}


/* Bryvex context-aware assistant */
.assistant-widget { position: fixed; z-index: 60; right: 24px; bottom: 22px; display: grid; justify-items: end; gap: 12px; font-family: inherit; }
.assistant-launcher { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 17px 0 11px; border: 1px solid #d29aff70; border-radius: 999px; background: linear-gradient(135deg, #853bc1, #4c1d70); color: #fff; font: inherit; font-size: 12px; font-weight: 750; box-shadow: 0 12px 36px #0008, 0 0 28px #9d4cdb24; cursor: pointer; }
.assistant-launcher:hover { border-color: #e0bdff; transform: translateY(-1px); }
.assistant-launcher[hidden] { display: none; }
.assistant-launcher-mark { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #ffffff3d; border-radius: 50%; background: #ffffff16; font-size: 16px; }
.assistant-panel { display: grid; grid-template-rows: 34px auto minmax(170px, 1fr) auto auto auto; width: min(390px, calc(100vw - 28px)); height: min(590px, calc(100dvh - 100px)); overflow: hidden; border: 1px solid #bd75ec52; border-radius: 18px; background: linear-gradient(155deg, #201529, #100d15 70%); box-shadow: 0 24px 75px #000b; animation: assistant-window-open .26s cubic-bezier(.2,.75,.25,1) both; transform-origin: bottom right; transition: width .22s ease, height .22s ease; }
.assistant-panel[hidden] { display: none; }
.assistant-window-bar { position: relative; display: flex; align-items: center; padding: 0 13px; border-bottom: 1px solid #ffffff10; background: #ffffff05; }
.assistant-window-controls { display: flex; align-items: center; gap: 6px; }
.assistant-window-button { appearance: none; width: 12px; height: 12px; padding: 0; border: 1px solid #0004; border-radius: 50%; box-shadow: inset 0 1px #ffffff4d; cursor: pointer; transition: filter .14s ease, transform .14s ease, box-shadow .14s ease; }
.assistant-window-button:hover { filter: brightness(1.12); transform: scale(1.12); }
.assistant-window-button:active { transform: scale(.92); }
.assistant-window-button:focus-visible { outline: 2px solid #f8eeff; outline-offset: 3px; }
.assistant-window-close { background: #ff625c; }
.assistant-window-minimize { background: #ffbd44; }
.assistant-window-expand { background: #00ca58; }
.assistant-window-title { position: absolute; left: 50%; display: flex; align-items: center; gap: 6px; color: #a99bb4; font-size: 8px; font-weight: 800; letter-spacing: .12em; transform: translateX(-50%); }
.assistant-window-title span { color: #c58bff; font-size: 10px; }
.assistant-header { display: flex; align-items: center; gap: 11px; padding: 15px; border-bottom: 1px solid #ffffff15; background: #ffffff04; }
.assistant-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #c47cf55e; border-radius: 12px; background: linear-gradient(145deg, #873bc1, #3b1757); color: white; font-size: 20px; }
.assistant-header > div:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.assistant-header strong { color: #f7edff; font-size: 12px; }
.assistant-header small { overflow: hidden; color: #a99bb4; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.assistant-panel.is-expanded { width: min(540px, calc(100vw - 28px)); height: min(720px, calc(100dvh - 100px)); }
.assistant-panel.is-minimized { width: min(340px, calc(100vw - 28px)); height: 34px; grid-template-rows: 34px; }
.assistant-panel.is-minimized > :not(.assistant-window-bar) { display: none; }
.assistant-messages { display: flex; flex-direction: column; align-items: stretch; gap: 10px; overflow: auto; padding: 15px; }
.assistant-message { max-width: 94%; padding: 11px 12px; border: 1px solid #ffffff12; border-radius: 12px; }
.assistant-message p { margin: 0; color: #d8cddd; font-size: 11px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.assistant-message-bot { align-self: flex-start; background: #ffffff07; border-top-left-radius: 4px; }
.assistant-message-user { align-self: flex-end; border-color: #a85fe93d; background: #7335a52b; border-top-right-radius: 4px; }
.assistant-message-pending { animation: assistant-thinking 1.1s ease-in-out infinite alternate; }
@keyframes assistant-thinking { from { opacity: .58; } to { opacity: 1; } }
.assistant-open-module { margin-top: 10px; padding: 8px 10px; border: 1px solid #bd75ec44; border-radius: 8px; background: #9a48ce21; color: #e6c7ff; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 13px 11px; }
.assistant-suggestions button { padding: 7px 9px; border: 1px solid #ffffff1c; border-radius: 999px; background: #ffffff06; color: #bfb1ca; font: inherit; font-size: 9px; cursor: pointer; }
.assistant-suggestions button:hover { border-color: #c180ef6b; color: #f0dcff; }
.assistant-form { display: flex; gap: 8px; padding: 11px 13px; border-top: 1px solid #ffffff13; }
.assistant-form input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #ffffff20; border-radius: 10px; outline: none; background: #0d0a11; color: #f5eafa; font: inherit; font-size: 11px; }
.assistant-form input:focus { border-color: #bd75ec9c; box-shadow: 0 0 0 3px #a34ce31a; }
.assistant-form > button { width: 40px; flex: 0 0 40px; border: 0; border-radius: 10px; background: #8e3fc3; color: white; font-size: 20px; cursor: pointer; }
.assistant-form[aria-busy="true"] > button { opacity: .55; cursor: wait; }
.assistant-form input:disabled { opacity: .72; }
.assistant-disclaimer { margin: 0; padding: 0 14px 12px; color: #81748d; font-size: 9px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .assistant-message-pending { animation: none; } }
@keyframes assistant-window-open { from { opacity: 0; transform: translateY(12px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dashboard-panel-enter { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dashboard-ambient-stars { from { background-position: 0 0, 100% 100%, 0 0, 110px 80px; } to { background-position: 100% 45%, 0 55%, 280px -170px, -270px 210px; } }
@keyframes overview-ring-pulse { from { transform: scale(.96); box-shadow: 0 0 15px #ad55df20; } to { transform: scale(1.04); box-shadow: 0 0 34px #ad55df66; } }
@keyframes overview-orbit-drift { from { opacity: .45; transform: translate(-5px, 3px) scale(.96); } to { opacity: 1; transform: translate(7px, -5px) scale(1.04); } }
@keyframes ambient-star-pulse { 0%, 100% { opacity: .7; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes overview-card-enter { from { opacity: 0; filter: blur(5px); } to { opacity: 1; filter: blur(0); } }
@keyframes save-feedback-spin { to { transform: rotate(360deg); } }
@keyframes save-feedback-pop { from { opacity: .65; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@keyframes save-feedback-shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@media (max-width: 600px) {
    .assistant-widget { right: 12px; bottom: 12px; }
    .assistant-panel { height: min(560px, calc(100dvh - 84px)); }
    .assistant-panel.is-expanded { width: calc(100vw - 24px); height: min(720px, calc(100dvh - 84px)); }
    .motion-toggle { width: 36px; height: 36px; justify-content: center; padding: 0; }
    .motion-toggle-label { display: none; }
}


.trophy-members-page { display: grid; gap: 18px; animation: dashboard-panel-enter .24s cubic-bezier(.2,.75,.25,1) both; }
.trophy-members-hero { position: relative; display: flex; min-height: 132px; align-items: center; gap: 18px; overflow: hidden; padding: 24px clamp(20px, 3vw, 34px); border: 1px solid #bd75ec35; border-radius: 18px; background: radial-gradient(ellipse at 90% 20%, #a84be426, transparent 42%), linear-gradient(125deg, #21142c, #130f19 72%); box-shadow: inset 0 1px #ffffff0b, 0 20px 52px #0003; }
.trophy-members-hero::after { position: absolute; right: 12%; bottom: -96px; width: 230px; height: 180px; border: 1px solid #bd75ec20; border-radius: 50%; box-shadow: 0 0 0 24px #bd75ec08, 0 0 0 48px #bd75ec05; content: ""; pointer-events: none; }
.trophy-members-emblem { display: grid; width: 62px; height: 62px; flex: 0 0 62px; place-items: center; border: 1px solid #d7a7f05c; border-radius: 18px; background: linear-gradient(145deg, #a14bd237, #5d288c30); box-shadow: 0 0 32px #a04bd52a; font-size: 29px; }
.trophy-members-hero-copy { position: relative; z-index: 1; min-width: 0; }
.trophy-members-hero-copy .eyebrow { color: #d193f5; }
.trophy-members-hero-copy h2 { margin: 7px 0 5px; color: #f5edf9; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.035em; }
.trophy-members-hero-copy p { max-width: 700px; margin: 0; color: #b9adbf; font-size: 12px; line-height: 1.55; }
.trophy-members-top-badge { position: relative; z-index: 1; margin-left: auto; padding: 8px 11px; border: 1px solid #c887ec45; border-radius: 999px; background: #a04bd51b; color: #d7a7f0; font-size: 9px; font-weight: 850; letter-spacing: .12em; white-space: nowrap; }
.trophy-members-toolbar { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(280px, 1.3fr); align-items: center; gap: 20px; padding: 17px 20px; border: 1px solid #ffffff16; border-radius: 14px; background: linear-gradient(120deg, #17131cde, #100e14de); box-shadow: 0 12px 30px #0002; }
.trophy-members-search-copy { display: grid; gap: 5px; }
.trophy-members-search-copy label { color: #eee5f3; font-size: 12px; font-weight: 750; }
.trophy-members-search-copy small { color: #93879b; font-size: 10px; }
.trophy-member-autocomplete { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; }
.trophy-member-search-wrap { position: relative; min-width: 0; }
.trophy-member-search-icon { position: absolute; top: 50%; left: 13px; z-index: 1; color: #a98db9; font-size: 20px; line-height: 1; transform: translateY(-54%); pointer-events: none; }
.trophy-member-search-wrap > input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; border: 1px solid #ffffff1c; border-radius: 10px; padding: 10px 13px 10px 40px; outline: none; color: #f2eaf6; background: #0d0b11; font: inherit; font-size: 12px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.trophy-member-search-wrap > input:focus { border-color: #bd75ec85; background: #100d15; box-shadow: 0 0 0 3px #b15be51b; }
.trophy-member-search-wrap > input::placeholder { color: #817587; }
.trophy-member-options { position: absolute; z-index: 30; inset: calc(100% + 7px) 0 auto; max-height: 300px; overflow-y: auto; padding: 6px; border: 1px solid #ffffff20; border-radius: 12px; background: #17131c; box-shadow: 0 18px 42px #0009; }
.trophy-member-option { display: grid; gap: 4px; width: 100%; border: 0; border-radius: 8px; padding: 10px 12px; text-align: left; color: #f2eaf6; background: transparent; cursor: pointer; }
.trophy-member-option:hover, .trophy-member-option:focus-visible { outline: none; background: #a04bd526; }
.trophy-member-option small, .trophy-member-empty { color: #9f92a8; }
.trophy-member-empty { margin: 0; padding: 12px; font-size: 12px; }
.trophy-member-autocomplete > .quiet-button { min-height: 40px; padding: 0 13px; border: 1px solid #ffffff1c; border-radius: 9px; background: #ffffff08; color: #d8cce0; cursor: pointer; }
.trophy-member-autocomplete > .quiet-button:hover { border-color: #bd75ec6b; background: #a04bd51a; }
.trophy-member-selection { display: flex; width: fit-content; align-items: center; gap: 7px; margin: -6px 0 0; padding: 7px 10px; border: 1px solid #bd75ec35; border-radius: 999px; background: #a04bd515; color: #d4b6e4; font-size: 11px; }
.trophy-member-selection:empty { display: none; }
.trophy-leaderboard { display: grid; gap: 13px; }
.trophy-ranking-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 5px 2px 2px; }
.trophy-ranking-heading h3 { margin: 5px 0 0; color: #f0e8f4; font-size: 17px; letter-spacing: -.02em; }
.trophy-ranking-heading .eyebrow { color: #b981d8; }
.trophy-ranking-count { padding: 5px 9px; border: 1px solid #ffffff17; border-radius: 999px; color: #a99db2; font-size: 10px; white-space: nowrap; }
.trophy-rank-list { display: grid; gap: 9px; }
.trophy-rank-row { display: grid; grid-template-columns: 48px minmax(145px, .8fr) minmax(250px, 1.5fr) auto; align-items: center; gap: 15px; min-width: 0; padding: 13px 15px; border: 1px solid #ffffff15; border-radius: 13px; background: linear-gradient(110deg, #17131cdb, #100e14e8); box-shadow: 0 8px 22px #0002; transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.trophy-rank-row:hover { transform: translateY(-2px); border-color: #bd75ec58; background: linear-gradient(110deg, #201629ed, #131017ed); box-shadow: 0 13px 28px #0003; }
.trophy-rank-row.top-1 { border-color: #e7bd6757; background: linear-gradient(105deg, #45301e52, #19131bed 48%, #110e15); }
.trophy-rank-row.top-2 { border-color: #bec5d333; }
.trophy-rank-row.top-3 { border-color: #c9866535; }
.trophy-rank-number { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #ffffff1a; border-radius: 12px; background: #ffffff08; color: #c7b9d0; font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; }
.trophy-rank-row.top-1 .trophy-rank-number { border-color: #eac46a66; background: linear-gradient(145deg, #c58d352a, #e8c15d18); color: #f4cf78; box-shadow: 0 0 19px #eac46a12; }
.trophy-rank-row.top-2 .trophy-rank-number { border-color: #c9d0dc42; color: #d4dbe5; }
.trophy-rank-row.top-3 .trophy-rank-number { border-color: #ca8b6d48; color: #dfa482; }
.trophy-rank-member { display: grid; min-width: 0; gap: 5px; }
.trophy-rank-member strong { overflow: hidden; color: #eee6f3; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.trophy-rank-member small { overflow: hidden; color: #93879b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.trophy-rank-stats { display: grid; min-width: 0; gap: 7px; }
.trophy-rank-points { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.trophy-rank-points > span { color: #8f8298; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.trophy-rank-points > strong { color: #dfb1f6; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trophy-rank-row.top-1 .trophy-rank-points > strong { color: #f3cf7a; }
.trophy-rank-points > strong small { color: #a99bb2; font-size: 10px; font-weight: 600; }
.trophy-rank-progress { height: 4px; overflow: hidden; border-radius: 999px; background: #ffffff12; }
.trophy-rank-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7b38ba, #cf82ef); box-shadow: 0 0 12px #b75de575; }
.trophy-rank-row.top-1 .trophy-rank-progress > span { background: linear-gradient(90deg, #b47c2f, #f0d07b); box-shadow: 0 0 12px #e5bb5b66; }
.trophy-rank-achievements { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #a99db2; font-size: 9px; }
.trophy-rank-achievements strong { color: #d9cde1; font-size: 10px; }
.trophy-rank-row > .quiet-button { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #bd75ec3f; border-radius: 9px; background: #a04bd515; color: #ddc2ec; font-size: 10px; font-weight: 700; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; white-space: nowrap; }
.trophy-rank-row > .quiet-button:hover { transform: translateY(-1px); border-color: #c27ae99c; background: #a04bd52c; }
.trophy-rank-row > .quiet-button span { color: #d596f1; font-size: 13px; }
.trophy-empty-state { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; border: 1px dashed #ffffff24; border-radius: 14px; background: #100d145c; text-align: center; }
.trophy-empty-state > span { font-size: 26px; filter: drop-shadow(0 0 12px #c47bef55); }
.trophy-empty-state > strong { color: #ece3f1; font-size: 14px; }
.trophy-empty-state > small { max-width: 440px; color: #96899f; font-size: 11px; line-height: 1.5; }
@media (max-width: 920px) {
    .trophy-members-toolbar { grid-template-columns: 1fr; gap: 13px; }
    .trophy-rank-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 11px; }
    .trophy-rank-stats { grid-column: 2 / -1; }
    .trophy-rank-row > .quiet-button { grid-column: 3; grid-row: 1; }
}
@media (max-width: 600px) {
    .trophy-members-page { gap: 13px; }
    .trophy-members-hero { min-height: 0; gap: 12px; padding: 18px 15px; }
    .trophy-members-emblem { width: 46px; height: 46px; flex-basis: 46px; border-radius: 13px; font-size: 22px; }
    .trophy-members-hero-copy h2 { font-size: 21px; }
    .trophy-members-hero-copy p { font-size: 10px; }
    .trophy-members-top-badge { position: absolute; top: 12px; right: 12px; font-size: 7px; }
    .trophy-members-hero-copy .eyebrow { font-size: 8px; }
    .trophy-members-toolbar { padding: 14px; }
    .trophy-member-autocomplete { grid-template-columns: minmax(0, 1fr) auto; }
    .trophy-member-autocomplete > .quiet-button { padding-inline: 9px; }
    .trophy-rank-row { grid-template-columns: 38px minmax(0, 1fr); gap: 9px 10px; padding: 11px; }
    .trophy-rank-number { width: 36px; height: 36px; border-radius: 10px; }
    .trophy-rank-stats { grid-column: 1 / -1; grid-row: 2; }
    .trophy-rank-row > .quiet-button { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
    .trophy-rank-points { justify-content: flex-start; }
    .trophy-rank-row > .quiet-button { min-height: 31px; }
}


.trophy-live-preview { display: grid; gap: 12px; margin: 18px 0 22px; }
.trophy-preview-context { color: var(--muted, #a8a0b5); font-size: 12px; }
.trophy-preview-context strong { color: var(--text, #f6f2fc); font-weight: 650; }
.trophy-preview-message { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border-radius: 12px; background: #313338; color: #dbdee1; }
.trophy-preview-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--preview-accent, #0000ff); color: #fff; font-size: 20px; }
.trophy-preview-message-body { min-width: 0; flex: 1; }
.trophy-preview-author { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; color: #f2f3f5; font-size: 13px; font-weight: 700; }
.trophy-preview-author small { color: #aeb2b8; font-size: 10px; font-weight: 500; }
.trophy-preview-message p { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.trophy-preview-muted { color: #aeb2b8 !important; font-size: 12px !important; }
.trophy-preview-plain { border-left: 4px solid var(--preview-accent, #0000ff); }
.trophy-preview-embed { display: flex; overflow: hidden; border-radius: 8px; background: #313338; color: #dbdee1; }
.trophy-preview-embed::before { content: ""; flex: 0 0 4px; background: var(--preview-accent, #0000ff); }
.trophy-preview-embed-body { padding: 16px; min-width: 0; flex: 1; }
.trophy-preview-embed h3 { margin: 14px 0 10px; color: #f2f3f5; font-size: 16px; }
.trophy-preview-embed p { margin: 7px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.trophy-preview-fields { display: flex; gap: 30px; margin-top: 15px; }
.trophy-preview-fields div { display: grid; gap: 4px; }
.trophy-preview-fields small { color: #b5bac1; font-size: 11px; }
.trophy-preview-fields strong { color: #f2f3f5; font-size: 13px; }
.trophy-preview-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 220px; padding: clamp(18px, 4vw, 30px); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; color: #fff; background-color: #111827; background-size: cover; background-position: center; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.trophy-preview-kicker { font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.trophy-preview-card-title { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 4vw, 32px); }
.trophy-preview-card-title span { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; background: rgba(255,255,255,.12); font-size: 30px; }
.trophy-preview-card p { margin: 0; color: rgba(255,255,255,.82); }
.trophy-preview-card-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.25); color: #fef08a; font-size: 12px; letter-spacing: .06em; }
.trophy-preview-card > small { color: rgba(255,255,255,.8); overflow-wrap: anywhere; font-size: 11px; }
.trophy-preview-components { display: flex; overflow: hidden; border: 1px solid var(--border, #30283d); border-radius: 12px; background: var(--surface, #17121f); color: var(--text, #f6f2fc); }
.trophy-preview-components-accent { flex: 0 0 5px; background: var(--preview-accent, #0000ff); }
.trophy-preview-components-content { min-width: 0; padding: 18px; }
.trophy-preview-components h3 { margin: 0 0 14px; font-size: 12px; letter-spacing: .1em; }
.trophy-preview-components h4 { margin: 0 0 8px; font-size: 20px; }
.trophy-preview-components p { margin: 8px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.trophy-preview-components-points { display: inline-flex; margin: 8px 0; padding: 6px 9px; border: 1px solid var(--border, #30283d); border-radius: 8px; font-size: 11px; font-weight: 800; }
.trophy-preview-silent { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border, #30283d); border-radius: 12px; background: var(--surface, #17121f); }
.trophy-preview-icon { font-size: 24px; }
.trophy-preview-silent p { margin: 5px 0 0; color: var(--muted, #a8a0b5); font-size: 13px; line-height: 1.5; }


/* Personalización visual de /level rank y /level perfil */
.level-command-preview-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.level-command-preview-panel { min-width: 0; display: grid; gap: 10px; }
.level-command-preview-card, .level-command-preview-components, .level-command-preview-embed, .level-command-preview-text { position: relative; isolation: isolate; overflow: hidden; min-height: 190px; padding: 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--preview-accent, #8a2be2) 55%, transparent); background: linear-gradient(135deg, #0c0914, #211337 58%, #0b1020); color: #f8f3ff; }
.level-command-preview-card { border-radius: 18px; box-shadow: 0 12px 35px #0007, inset 0 0 0 1px #ffffff12; }
.level-command-preview-components { border-left: 4px solid var(--preview-accent, #8a2be2); border-radius: 8px 14px 14px 8px; }
.level-command-preview-embed { border-left: 4px solid var(--preview-accent, #8a2be2); border-radius: 5px 12px 12px 5px; background: #17151c; }
.level-command-preview-card > strong, .level-command-preview-components > strong, .level-command-preview-embed > strong, .level-command-preview-text > strong { position: relative; z-index: 1; display: block; margin-bottom: 16px; color: #d8b7ff; font-size: 10px; letter-spacing: .12em; }
.level-command-preview-user, .level-command-preview-stats, .level-command-preview-track, .level-command-preview-card > small { position: relative; z-index: 1; }
.level-command-preview-user { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.level-command-preview-user > div { display: grid; gap: 3px; }
.level-command-preview-user > div strong { font-size: 13px; }
.level-command-preview-user > div small, .level-command-preview-card > small { color: #b9a9ca; font-size: 10px; }
.level-command-preview-user > b { margin-left: auto; padding: 6px 9px; border-radius: 8px; background: #8a2be233; color: #e8ceff; font-size: 11px; }
.level-command-preview-avatar { display: grid; width: 40px; height: 40px; place-items: center; border: 2px solid var(--preview-accent, #8a2be2); border-radius: 50%; background: #33204a; color: #fff; font-weight: 800; }
.level-command-preview-stats { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 11px; }
.level-command-preview-stats strong { color: #dfc3ff; }
.level-command-preview-track { height: 9px; overflow: hidden; border-radius: 20px; background: #05040b; }
.level-command-preview-track i { display: block; width: 82%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--preview-accent, #8a2be2), #76aaff); }
.level-command-preview-card > small { display: block; margin-top: 10px; }
.level-command-preview-text { min-height: 110px; background: #17151c; border: 1px solid #ffffff1c; }
.level-command-preview-text p { position: relative; z-index: 1; color: #ddd4e8; font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) { .level-command-preview-grid { grid-template-columns: 1fr; } }


/* Community panel creator */
.community-panels-page { display: grid; gap: 20px; }
.community-panels-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; border: 1px solid var(--border, #ffffff18); border-radius: 18px; background: linear-gradient(135deg, #21152f, #121019 72%); }
.community-panels-header h2 { margin: 4px 0 6px; }
.community-panels-header p { margin: 0; color: var(--muted, #aaa); }
.community-panel-list { display: grid; gap: 10px; }
.community-panel-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; border: 1px solid var(--border, #ffffff18); border-radius: 14px; background: var(--card, #17151e); }
.community-panel-row h3 { margin: 5px 0; font-size: 16px; }
.community-panel-row p, .community-panel-row small { margin: 0; color: var(--muted, #aaa); font-size: 12px; }
.community-panel-kind { color: #c5a0ff; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.community-panel-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.community-panel-editor { margin-top: 4px; }
.community-panel-full { grid-column: 1 / -1; }
.community-panel-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.community-panel-section-heading h3 { margin: 0; font-size: 15px; }
.community-panel-section-heading span { color: var(--muted, #999); font-size: 11px; }
.community-panel-kind-fields { grid-column: 1 / -1; padding: 18px; border: 1px solid #9b65d633; border-radius: 14px; background: #8a2be20b; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.community-panel-kind-fields[hidden] { display: none; }
.community-role-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 340px; overflow: auto; padding-right: 4px; }
.community-role-choice { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid #ffffff16; border-radius: 10px; background: #0d0b12; }
.community-role-choice input[type="checkbox"] { accent-color: #9b5de5; flex: 0 0 auto; }
.community-role-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.community-role-label { width: 38%; min-width: 65px; padding: 6px 7px; border: 1px solid #ffffff1c; border-radius: 7px; background: #17131e; color: inherit; font-size: 11px; }
.community-panel-enabled { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; color: var(--text, #eee); }
.community-panel-enabled input { accent-color: #9b5de5; }
.community-panel-preview-wrap { padding: 16px; border: 1px solid #ffffff18; border-radius: 14px; background: #0d0b12; }
.community-message-preview { max-width: 720px; margin: 0 auto; }
.community-preview-card { position: relative; display: flex; overflow: hidden; border: 1px solid #ffffff1a; border-radius: 10px; background: #242329; color: #f4effa; }
.community-preview-card.is-v2 { border-color: color-mix(in srgb, var(--community-panel-accent), transparent 35%); background: #17151c; }
.community-preview-card.is-text { border: 0; background: transparent; }
.community-preview-embed-bar { width: 4px; flex: 0 0 4px; background: var(--community-panel-accent); }
.community-preview-body { min-width: 0; padding: 17px 18px; }
.community-preview-body h3 { margin: 0 0 8px; font-size: 16px; }
.community-preview-body p { margin: 0 0 10px; color: #d1cbd9; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.community-preview-body img { display: block; max-width: 100%; max-height: 220px; margin: 12px 0; border-radius: 8px; object-fit: contain; }
.community-preview-body small { display: block; margin-top: 13px; color: #9b94a5; font-size: 10px; }
.community-preview-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.community-preview-control, .community-preview-select { padding: 8px 12px; border: 1px solid #ffffff25; border-radius: 7px; background: #36313e; color: #fff; font-size: 12px; }
.community-preview-select { min-width: 220px; color: #cfc7d9; }
.danger-button { color: #ff9b9b !important; }
@media (max-width: 760px) {
    .community-panels-header, .community-panel-row { align-items: stretch; flex-direction: column; }
    .community-panel-actions { justify-content: flex-start; }
    .community-panel-kind-fields, .community-role-grid { grid-template-columns: 1fr; }
}


/* Auditoría de solo lectura del catálogo español de Trofeos */
.achievement-audit-panel{margin:18px 0;padding:20px;border:1px solid rgba(153,116,255,.28);border-radius:16px;background:linear-gradient(145deg,rgba(30,22,49,.82),rgba(13,13,22,.94));}
.achievement-audit-heading,.achievement-audit-heading>div{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;}
.achievement-audit-heading h3{margin:5px 0;font-size:1.12rem;}
.achievement-audit-heading p,.achievement-audit-progress p,.achievement-audit-footnote{margin:5px 0;color:var(--muted,#a7a2b5);font-size:.82rem;}
.achievement-audit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:15px 0;}
.achievement-audit-stat{display:grid;gap:5px;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(255,255,255,.035);}
.achievement-audit-stat span{color:var(--muted,#a7a2b5);font-size:.76rem;}
.achievement-audit-stat strong{font-size:1.2rem;}
.achievement-audit-progress{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.09);}
.achievement-audit-progress h4,.achievement-audit-detail h4{margin:0 0 10px;font-size:.92rem;}
.achievement-audit-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;margin-top:16px;}
.achievement-audit-detail{min-width:0;padding:13px;border:1px solid rgba(255,255,255,.08);border-radius:12px;}
.achievement-audit-detail h4{display:flex;justify-content:space-between;}
.achievement-audit-detail ul{display:grid;gap:8px;max-height:220px;overflow:auto;margin:0;padding-left:20px;font-size:.8rem;}
.achievement-audit-detail li{overflow-wrap:anywhere;}
.achievement-audit-detail li span,.achievement-audit-detail li small{display:block;margin-top:3px;color:var(--muted,#a7a2b5);}
.achievement-audit-empty,.achievement-audit-loading,.achievement-audit-error{margin:8px 0;font-size:.85rem;}
.achievement-audit-error{color:#ff9292;}
.achievement-audit-footnote{margin-top:14px;}
@media(max-width:620px){.achievement-audit-panel{padding:14px}.achievement-audit-heading{flex-direction:column}.achievement-audit-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Administración: permisos avanzados y centro de notificaciones */
.admin-center-card { display: grid; gap: 22px; }
.admin-center-section { border-top: 1px solid var(--border, rgba(255,255,255,.1)); padding-top: 20px; display: grid; gap: 14px; }
.admin-center-heading, .permission-rule-top, .notification-item-heading, .notification-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-center-heading h3 { margin: 0 0 5px; }
.admin-center-heading p, .admin-center-note { margin: 0; color: var(--muted, #aaa); font-size: .9rem; }
.permission-rule { border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 14px; padding: 16px; display: grid; gap: 14px; margin-top: 12px; }
.permission-rule-top .field { flex: 1; max-width: 520px; }
.permission-rule-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; }
.admin-module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 12px; margin-top: 10px; }
.admin-module-check, .admin-action-list label, .notification-preference { display: flex; align-items: center; gap: 9px; color: var(--text, inherit); font-size: .9rem; }
.admin-module-check input, .admin-action-list input, .notification-preference input { accent-color: #9561ff; }
.admin-action-list { display: grid; gap: 10px; margin-top: 10px; }
.notification-preferences { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.notification-preference { border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 10px; padding: 10px 12px; }
.notification-compose { display: grid; gap: 14px; }
.notification-compose-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.notification-item { border: 1px solid var(--border, rgba(255,255,255,.12)); border-left: 3px solid #8b5cf6; border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.notification-item.is-read { opacity: .72; }
.notification-item.severity-warning { border-left-color: #d99b36; }
.notification-item.severity-critical { border-left-color: #dc5555; }
.notification-item.severity-success { border-left-color: #35a77a; }
.notification-item-heading strong { font-weight: 700; }
.notification-item-heading span, .notification-item-footer { color: var(--muted, #aaa); font-size: .82rem; }
.notification-item p { margin: 9px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .permission-rule-grid, .notification-compose-options { grid-template-columns: 1fr; }
    .admin-center-heading, .permission-rule-top { align-items: flex-start; }
    .notification-item-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Member profiles and activity analytics */
.member-profile-detail { display: grid; gap: 18px; margin-top: 22px; }
.member-profile-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--border-color, rgba(255,255,255,.1)); border-radius: 18px; background: linear-gradient(135deg, rgba(112,45,190,.22), rgba(10,10,18,.35)); }
.member-profile-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(170,110,255,.7); }
.member-profile-avatar-fallback { display: grid; place-items: center; background: rgba(138,43,226,.3); font-size: 32px; font-weight: 800; }
.member-profile-identity h2 { margin: 4px 0; }
.member-profile-identity p, .member-profile-identity small { color: var(--muted-text, #a8a4b4); margin: 3px 0; }
.member-profile-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; }
.member-profile-facts > div { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.035); display: grid; gap: 6px; }
.member-profile-facts span, .member-profile-section > h3 { color: var(--muted-text, #a8a4b4); }
.member-profile-facts strong { overflow-wrap: anywhere; }
.member-profile-section { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border-color, rgba(255,255,255,.09)); border-radius: 16px; background: rgba(255,255,255,.025); }
.member-profile-section > h3 { margin: 0; font-size: 15px; }
.member-profile-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.member-profile-role { padding: 6px 10px; border-radius: 999px; background: rgba(138,43,226,.15); border: 1px solid rgba(138,43,226,.3); font-size: 12px; }
.activity-period-controls { display: flex; gap: 8px; margin: 18px 0; }
.activity-period-controls button { border: 1px solid var(--border-color, rgba(255,255,255,.12)); border-radius: 999px; padding: 8px 14px; color: inherit; background: transparent; cursor: pointer; }
.activity-period-controls button.active { background: rgba(138,43,226,.22); border-color: rgba(138,43,226,.7); }
.activity-daily-chart { display: grid; gap: 7px; }
.activity-day-row { display: grid; grid-template-columns: 48px minmax(40px,1fr) 64px; align-items: center; gap: 10px; font-size: 12px; }
.activity-day-row > span { color: var(--muted-text, #a8a4b4); }
.activity-day-row > strong { text-align: right; }
.activity-bar-track { height: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.activity-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#6e32b5,#b45cff); }
.activity-top-member { width: 100%; text-align: left; color: inherit; cursor: pointer; align-items: center; }
.activity-rank { min-width: 34px; font-weight: 800; color: #bd8cff; }
@media (max-width: 640px) { .member-profile-hero { align-items: flex-start; padding: 15px; } .member-profile-avatar { width: 64px; height: 64px; } .activity-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.owner-control-link{display:inline-flex;align-items:center;justify-content:center;margin:0 10px;padding:9px 12px;border:1px solid rgba(189,123,255,.55);border-radius:10px;background:rgba(151,76,211,.14);color:#e5caff;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}.owner-control-link:hover{background:rgba(151,76,211,.26);border-color:#bd7bff}@media(max-width:520px){.owner-control-link{margin:8px 0}}
