/* ==========================================================================
   xe.css — дизайн-система x-elliott
   Подключается на всех поддоменах. Токены → база → фон → HUD → компоненты.
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  /* фон и поверхности */
  --xe-bg:        #0D0C0A;
  --xe-surface:   #16140F;
  --xe-surface-2: #211E18;

  /* текст */
  --xe-text:   #EDE8DE;
  --xe-text-2: #9C968A;
  --xe-text-3: #5C574E;

  /* акцент: шкала от «шаг до кислоты» до «почти оранжевого» */
  --xe-accent:       #FFC629;
  --xe-accent-hi:    #FFE14D;
  --xe-accent-lo:    #FFA91A;
  --xe-on-accent:    #0D0C0A;
  --xe-accent-dim:   #4A3D14;

  /* HUD */
  --xe-hud:     #6B5A22;
  --xe-hud-dim: #5A4B1C;
  --xe-hud-hi:  #8A7530;
  --xe-hud-line:#4A3B14;

  /* семантика (только по смыслу) */
  --xe-danger:  #D8473F;
  --xe-discord: #5865F2;

  /* материал (стекло) */
  --xe-glass-tint: rgba(20, 18, 14, .75);
  --xe-glass-rim:  inset 0 0 0 .5px rgba(255,255,255,.10), inset 0 .5px 0 rgba(255,255,255,.10);
  --xe-glass-drop: 0 10px 30px rgba(0,0,0,.40);
  /* блок прямо на фоне (позади только фон) — фон монотонный, поэтому затемняем и размываем меньше */
  --xe-glass-tint-bg: rgba(20, 18, 14, .40);
  --xe-glass-blur-bg: 12px;
  --xe-glass-drop-bg: 0 8px 26px rgba(0,0,0,.26);
  /* элемент внутри стекла: лёгкая подложка + тот же кант, без второго блюра */
  --xe-inset: rgba(255, 255, 255, .035);
  --xe-inset-hi: rgba(255, 255, 255, .075);

  /* карточки */
  --xe-card-rim: inset 0 0 0 .5px rgba(255,255,255,.05);
  --xe-card-rim-hover: inset 0 0 0 .5px rgba(255,255,255,.12);

  /* шрифты */
  --xe-font: 'Inter', system-ui, sans-serif;
  --xe-mono: 'Geist Mono', ui-monospace, monospace;

  /* радиусы */
  --xe-r-sm: 8px;
  --xe-r-md: 16px;
  --xe-r-lg: 24px;
}

/* на 1x-мониторах волосок рендерится в 1px — делаем тише */
@media (max-resolution: 1.5dppx) {
  :root { --xe-glass-rim: inset 0 0 0 .5px rgba(255,255,255,.07), inset 0 .5px 0 rgba(255,255,255,.06); }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--xe-bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: transparent; /* фон на html, иначе body перекрывает .xe-bg (z-index:-1) */
  color: var(--xe-text);
  font: 400 15px/1.6 var(--xe-font);
  font-feature-settings: 'cv05', 'cv08', 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--xe-accent); color: var(--xe-on-accent); }
.xe-mono { font-family: var(--xe-mono); font-feature-settings: normal; }
.xe-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Фон: зарево, пепел, зерно, сканлайны, VHS ---------- */
.xe-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.xe-bg__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 70% 115%,
    rgba(255,170,40,.18) 0%, rgba(255,140,30,.07) 40%, transparent 75%);
}
.xe-bg__ash { position: absolute; inset: 0; width: 100%; height: 100%; }
.xe-bg__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.009) 0 1px, transparent 1px 3px);
}
.xe-bg__grain { position: absolute; inset: -50%; opacity: .01; animation: xe-grain .5s steps(1) infinite; }
.xe-bg__band {
  position: absolute; left: 0; right: 0; top: -160px; height: 160px;
  background: linear-gradient(180deg, transparent,
    rgba(255,240,210,.0255) 45%, rgba(255,240,210,.04) 50%, rgba(255,240,210,.0255) 55%, transparent);
  animation: xe-roll var(--xe-band-dur, 10s) linear infinite;
}
.xe-bg__trk { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.07); opacity: 0; }

@keyframes xe-grain {
  0% { transform: translate(0,0) } 20% { transform: translate(-7%,4%) } 40% { transform: translate(5%,-9%) }
  60% { transform: translate(-3%,8%) } 80% { transform: translate(9%,2%) }
}
@keyframes xe-roll { to { transform: translateY(var(--xe-band-path, 1200px)); } }

/* ---------- Материал: стекло ---------- */
/* Базовый (Safari/Firefox): матовое. В Chromium xe.js добавляет рефракцию по форме. */
.xe-glass {
  background: var(--xe-glass-tint);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--xe-glass-rim), var(--xe-glass-drop);
}

/* блок на фоне: меньше тинта и блюра */
.xe-glass-bg {
  background: var(--xe-glass-tint-bg);
  -webkit-backdrop-filter: blur(var(--xe-glass-blur-bg)) saturate(150%);
  backdrop-filter: blur(var(--xe-glass-blur-bg)) saturate(150%);
  box-shadow: var(--xe-glass-rim), var(--xe-glass-drop-bg);
}

/* ---------- Навигация-пилюля ---------- */
.xe-nav-wrap { position: sticky; top: 16px; z-index: 50; display: flex; justify-content: center; padding: 0 12px; }
.xe-nav {
  display: flex; align-items: center; gap: 4px;
  height: 52px; padding: 0 6px 0 18px; border-radius: 26px;
  max-width: 100%;
}
.xe-nav__logo { font: 600 13px var(--xe-mono); color: var(--xe-text); text-decoration: none; margin-right: 10px; white-space: nowrap; }
.xe-nav__logo b { color: var(--xe-accent); font-weight: 600; }
.xe-nav__items { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.xe-nav__items::-webkit-scrollbar { display: none; }
.xe-nav__item {
  border: 0; background: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  color: var(--xe-text-2); font: 500 13px var(--xe-font);
  padding: 8px 12px; border-radius: 18px;
  transition: color .15s, background .15s;
}
.xe-nav__item:hover { color: var(--xe-text); }
.xe-nav__item[aria-selected="true"], .xe-nav__item.is-on { background: var(--xe-accent); color: var(--xe-on-accent); }
.xe-nav__item:focus-visible { outline: 1px solid var(--xe-accent); outline-offset: 2px; }
@media (max-width: 560px) { .xe-nav__logo { display: none; } .xe-nav { padding-left: 6px; } }

.xe-nav__item[aria-expanded="true"] { color: var(--xe-text); background: rgba(255,255,255,.06); }
.xe-nav__item .ti { font-size: 12px; margin-left: 3px; opacity: .6; vertical-align: -1px; transition: transform .15s; }
.xe-nav__item[aria-expanded="true"] .ti { transform: rotate(180deg); }

/* ---------- Выпадающее меню ---------- */
/* Лежит СНАРУЖИ .xe-nav: вложенный backdrop-filter видел бы только пилюлю, а не страницу. */
.xe-drop {
  position: absolute; top: 100%; left: 0; padding-top: 8px; /* мостик для мыши */
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility 0s .14s;
}
.xe-drop.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .14s, transform .14s; }
.xe-drop__panel { width: 360px; max-width: calc(100vw - 24px); padding: 6px; border-radius: 18px; }
.xe-drop__head { padding: 8px 10px 6px; }
.xe-drop__item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 10px; border-radius: 12px; border: 0; background: none; cursor: pointer;
  color: var(--xe-text); text-decoration: none; text-align: left; font: inherit;
}
.xe-drop__item:hover, .xe-drop__item:focus-visible { background: rgba(255,255,255,.055); outline: none; }
.xe-drop__icon {
  flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); color: var(--xe-accent); font-size: 17px;
}
.xe-drop__item--discord .xe-drop__icon { color: var(--xe-discord); }
.xe-drop__text { flex: 1; min-width: 0; }
.xe-drop__title { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.xe-drop__desc { display: block; font-size: 12px; color: var(--xe-text-2); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xe-drop__meta { flex: none; }
.xe-drop__item--placeholder .xe-drop__title, .xe-drop__item--placeholder .xe-drop__desc { color: var(--xe-text-3); }
@media (prefers-reduced-motion: reduce) { .xe-drop, .xe-drop.is-open { transition: none; transform: none; } }

/* ---------- HUD ---------- */
.xe-hud { font: 400 11px var(--xe-mono); color: var(--xe-hud-dim); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.xe-hud--md { font-size: 13px; color: var(--xe-hud); line-height: 1.5; }
.xe-hud-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #7A6628; margin-right: 7px; vertical-align: 1px; }
.xe-hud-dot.is-down { background: var(--xe-danger); }
.xe-corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--xe-hud-line); }
.xe-corner--tl { left: 14px; top: 14px; border-left-width: 1.5px; border-top-width: 1.5px; }
.xe-corner--tr { right: 14px; top: 14px; border-right-width: 1.5px; border-top-width: 1.5px; }
.xe-corner--bl { left: 14px; bottom: 14px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.xe-corner--br { right: 14px; bottom: 14px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.xe-label { font: 400 11px var(--xe-mono); color: var(--xe-hud-dim); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }

.xe-cursor { display: inline-block; width: 8px; height: 13px; background: var(--xe-accent); animation: xe-blink 1.2s steps(2) infinite; }
@keyframes xe-blink { 50% { opacity: 0; } }

/* глитч-обёртки (заполняет xe.js) */
.xe-g { position: relative; display: inline-block; white-space: pre; }
.xe-g .xe-ch { display: inline-block; }
.xe-g .xe-w { display: inline-block; white-space: pre; }
.xe-g .xe-bar { position: absolute; left: -6px; right: -6px; height: 1px; background: var(--xe-accent); opacity: 0; pointer-events: none; }

/* ---------- Карточки ---------- */
.xe-card {
  background: var(--xe-surface); border-radius: var(--xe-r-md);
  padding: 16px 18px; box-shadow: var(--xe-card-rim);
}
a.xe-card, button.xe-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
  border: 0; text-align: left; font: inherit; cursor: pointer; width: 100%;
  transition: box-shadow .15s, transform .15s;
}
a.xe-card:hover, button.xe-card:hover { box-shadow: var(--xe-card-rim-hover); transform: translateY(-1px); }
a.xe-card:focus-visible, button.xe-card:focus-visible { outline: 1px solid var(--xe-accent); outline-offset: 2px; }

/* ---------- Markdown (как в Discord) ---------- */
.xe-md { color: var(--xe-text); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.xe-md p { margin: 0 0 .7em; }
.xe-md h3, .xe-md h4, .xe-md h5 { margin: .9em 0 .4em; line-height: 1.25; font-weight: 600; }
.xe-md h3 { font-size: 1.5em; } .xe-md h4 { font-size: 1.25em; } .xe-md h5 { font-size: 1.05em; }
.xe-md > :first-child { margin-top: 0; }
.xe-md .xe-md-sub { font-size: 12px; color: var(--xe-text-3); margin-top: -.3em; }
.xe-md a { color: var(--xe-accent); text-decoration: none; }
.xe-md a:hover { text-decoration: underline; }
.xe-md code { font: .88em var(--xe-mono); background: rgba(255,255,255,.06); padding: .12em .38em; border-radius: 5px; }
.xe-md pre { margin: .5em 0 .9em; padding: 12px 14px; background: #0F0E0B; border-radius: 10px; box-shadow: var(--xe-card-rim); overflow-x: auto; }
.xe-md pre code { background: none; padding: 0; font-size: 13px; line-height: 1.55; }
.xe-md blockquote { margin: .5em 0 .9em; padding: 2px 0 2px 12px; border-left: 3px solid var(--xe-hud-line); color: var(--xe-text-2); border-radius: 0; }
.xe-md ul, .xe-md ol { margin: .3em 0 .9em; padding-left: 1.3em; }
.xe-md li { margin: .15em 0; }
.xe-md li::marker { color: var(--xe-accent); }
.xe-md-spoiler { background: #2A2720; color: transparent; border-radius: 4px; padding: 0 .2em; cursor: pointer; transition: color .15s, background .15s; }
.xe-md-spoiler a, .xe-md-spoiler code { visibility: hidden; }
.xe-md-spoiler.is-open { background: rgba(255,255,255,.07); color: inherit; cursor: auto; }
.xe-md-spoiler.is-open a, .xe-md-spoiler.is-open code { visibility: visible; }

/* ---------- Сегмент-переключатель (вариант A) ---------- */
.xe-seg { display: inline-flex; background: rgba(255,255,255,.035); border-radius: 10px; padding: 3px; gap: 2px; }
.xe-seg button { border: 0; background: none; color: var(--xe-text-2); font: 500 12px var(--xe-font); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.xe-seg button[aria-pressed="true"] { background: var(--xe-surface-2); color: var(--xe-text); box-shadow: var(--xe-glass-rim), 0 1px 3px rgba(0,0,0,.3); }

/* ---------- Тост ---------- */
.xe-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); z-index: 100;
  padding: 10px 16px; border-radius: 14px; opacity: 0; pointer-events: none;
  font: 400 12px var(--xe-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--xe-text);
  transition: opacity .18s, transform .18s;
}
.xe-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
  .xe-bg__grain, .xe-bg__band, .xe-cursor { animation: none; }
  a.xe-card:hover, button.xe-card:hover { transform: none; }
}

/* ---------- HUD-рамка поддоменов (XE.frame) ---------- */
.xe-frame { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.xe-frame__l { position: absolute; line-height: 1.7; }
.xe-frame__l--tl { left: 40px; top: 20px; }
.xe-frame__l--tr { right: 40px; top: 20px; text-align: right; }
.xe-frame__l--bl { left: 40px; bottom: 20px; }
.xe-frame__l--br { right: 40px; bottom: 20px; text-align: right; }
.xe-frame.is-hide-tl .xe-frame__l--tl, .xe-frame.is-hide-tr .xe-frame__l--tr { visibility: hidden; }
.xe-frame.is-tight .xe-frame__l--bl, .xe-frame.is-tight .xe-frame__l--br { display: none; }
/* мобилка — как герой главной: рамка на первый экран и уезжает со скроллом, метки слева снизу */
@media (max-width: 640px) {
  .xe-frame { position: absolute; bottom: auto; height: 100vh; height: 100svh; }
  .xe-frame__l--tr, .xe-frame__l--br { display: none; }
  .xe-frame__l--tl { top: auto; bottom: 62px; left: 24px; visibility: visible !important; }
  .xe-frame__l--bl { left: 24px; display: block !important; }
  .xe-frame.is-crowded .xe-frame__l { display: none !important; }
}

/* =====================================================================
   Виджеты stats/profiles (xe-stats.js)
   ===================================================================== */

/* HUD-уголки вокруг блока */
.xe-hc { position: relative; }
.xe-hc > .xe-corner { width: 12px; height: 12px; pointer-events: none; }
.xe-hc > .xe-corner--tl { left: -12px; top: -12px; }
.xe-hc > .xe-corner--tr { right: -12px; top: -12px; left: auto; }
.xe-hc > .xe-corner--bl { left: -12px; bottom: -12px; top: auto; }
.xe-hc > .xe-corner--br { right: -12px; bottom: -12px; left: auto; top: auto; }

/* шапка сервера */
.xe-guild {
  position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden; isolation: isolate;
  height: 64px; padding: 0 16px 0 10px; border-radius: 14px; text-decoration: none; color: var(--xe-text);
  background: var(--xe-glass-tint-bg); box-shadow: var(--xe-glass-rim), var(--xe-glass-drop-bg);
  -webkit-backdrop-filter: blur(var(--xe-glass-blur-bg)) saturate(150%); backdrop-filter: blur(var(--xe-glass-blur-bg)) saturate(150%);
  min-width: 0; flex: 0 1 420px;
}
.xe-guild__bg { position: absolute; inset: -8px; z-index: -2; background: center 40% / cover no-repeat;
  filter: blur(3px) brightness(.42) saturate(1.15); transform: scale(1.04); opacity: 0; transition: opacity .6s, filter .3s; }
.xe-guild.has-banner .xe-guild__bg { opacity: 1; }
.xe-guild__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,12,10,.72) 0%, rgba(13,12,10,.35) 60%, rgba(13,12,10,.55) 100%); }
.xe-guild:hover .xe-guild__bg { filter: blur(2px) brightness(.5) saturate(1.2); }
.xe-guild__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--xe-surface-2, #24211A); font: 600 18px var(--xe-mono); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.4); }
.xe-guild__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xe-guild__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.xe-guild__name { font: 600 16px/1.2 var(--xe-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xe-guild__sub { font-size: 10px; color: var(--xe-hud-hi); }
.xe-guild__go { font-size: 10px; color: var(--xe-hud); opacity: 0; transform: translateX(-4px); transition: .2s; }
.xe-guild:hover .xe-guild__go { opacity: 1; transform: none; color: var(--xe-accent); }

/* мгновенный поиск */
.xe-find { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; display: none; padding: 4px;
  border-radius: 12px; background: rgba(22,20,16,.86); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--xe-glass-rim), 0 14px 40px rgba(0,0,0,.5); max-height: 380px; overflow-y: auto; }
.xe-find.is-open { display: block; }
.xe-find__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px;
  color: var(--xe-text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xe-find__item:hover, .xe-find__item.is-sel { background: rgba(255,198,41,.09); }
.xe-find__item.is-sel { box-shadow: inset 2px 0 0 var(--xe-accent); }
.xe-find__item img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.xe-find__item svg { flex: none; opacity: .55; }
.xe-find__item .xe-find__meta { margin-left: auto; padding-left: 10px; font: 400 10px var(--xe-mono); color: var(--xe-hud); }
.xe-find__empty { padding: 10px; font-size: 10px; }

/* график */
.xc { position: relative; }
.xc__plot { position: relative; }
.xc__cv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; display: block; }
.xc__tip { position: absolute; left: 0; top: 0; pointer-events: none; padding: 7px 11px; border-radius: 10px;
  opacity: 0; transition: opacity .12s; white-space: nowrap; z-index: 3; }
.xc__tip.is-on { opacity: 1; }
.xc__tl { font-size: 10px; color: var(--xe-hud-hi); }
.xc__tv { font: 600 15px/1.3 var(--xe-mono); margin-top: 2px; }
.xc__foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,198,41,.1); }
.xc__foot > .xe-hud:first-child { color: var(--xe-hud); }
.xc__step { min-width: 46px; color: var(--xe-accent) !important; }
.xc__meta { margin-left: auto; color: var(--xe-hud); }
.xc__auto { border: 0; background: none; cursor: pointer; padding: 3px 6px; border-radius: 4px; color: var(--xe-hud-dim); font-size: 10px; }
.xc__auto:hover { color: var(--xe-text-2); }
.xc__auto.is-on { color: #0D0C0A; background: var(--xe-accent); }
.xc.is-single-step .xc__foot { opacity: .45; pointer-events: none; }
.xc__range { -webkit-appearance: none; appearance: none; flex: 0 1 320px; height: 18px; background: transparent; cursor: pointer; margin: 0; }
.xc__range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, rgba(255,198,41,.35), rgba(255,198,41,.12)); }
.xc__range::-moz-range-track { height: 2px; background: rgba(255,198,41,.2); }
.xc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 16px; margin-top: -7px; border-radius: 1px;
  background: var(--xe-accent); box-shadow: 0 0 10px rgba(255,198,41,.55); }
.xc__range::-moz-range-thumb { width: 8px; height: 16px; border: 0; border-radius: 1px; background: var(--xe-accent); }
.xc__range:focus-visible { outline: 1px dashed var(--xe-hud); outline-offset: 2px; }

/* топ-3 */
.xe-pod { position: relative; }
.xe-pod__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.xe-pod::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -1px; height: 60%; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(14px); opacity: 0; }
.xe-pod--1::after { background: radial-gradient(ellipse at 50% 100%, rgba(255,198,41,.32), transparent 70%); opacity: 1; }
.xe-pod--2::after { background: radial-gradient(ellipse at 50% 100%, rgba(200,196,186,.16), transparent 70%); opacity: 1; }
.xe-pod--1 { box-shadow: inset 0 0 0 1px rgba(255,198,41,.18) !important; }
.xe-pod--2 { box-shadow: inset 0 0 0 1px rgba(200,196,186,.12) !important; }
.xe-pod--3 { box-shadow: inset 0 0 0 1px rgba(201,138,75,.12) !important; }

/* свой выпадающий список (XE.fancySelect) */
.xe-sel { position: relative; display: inline-flex; vertical-align: middle; }
.xe-sel__native { position: absolute !important; inset: 0; opacity: 0 !important; pointer-events: none !important; width: 100% !important; }
.xe-sel__btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: space-between; min-width: 100%;
  height: 34px; padding: 0 10px 0 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--xe-inset); box-shadow: var(--xe-glass-rim); color: var(--xe-text);
  font: 400 13px var(--xe-font); text-align: left; white-space: nowrap;
}
.xe-sel__btn:hover { background: var(--xe-inset-hi); }
.xe-sel__btn:focus-visible { outline: 1px solid rgba(255,198,41,.5); outline-offset: 1px; }
.xe-sel__arr { width: 12px; height: 12px; flex: none; color: var(--xe-hud-hi); transition: transform .18s; }
.xe-sel.is-open .xe-sel__arr { transform: rotate(180deg); color: var(--xe-accent); }
.xe-sel__list {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 100%; max-height: 260px; overflow-y: auto; z-index: 400;
  padding: 4px; border-radius: 10px; display: none;
  background: #18160F;   /* без backdrop-filter: внутри стеклянной панели Chrome рисует его с просветом */
  box-shadow: var(--xe-glass-rim), 0 14px 40px rgba(0,0,0,.5);
}
.xe-sel.is-up .xe-sel__list { top: auto; bottom: calc(100% + 6px); }
.xe-sel.is-open .xe-sel__list { display: block; animation: xe-sel-in .12s ease-out; }
@keyframes xe-sel-in { from { opacity: 0; transform: translateY(-3px); } }
.xe-sel__opt { padding: 7px 10px; border-radius: 7px; font: 400 13px var(--xe-font); color: var(--xe-text-2); cursor: pointer; white-space: nowrap; }
.xe-sel__opt.is-hi { background: rgba(255,198,41,.09); color: var(--xe-text); }
.xe-sel__opt.is-sel { color: var(--xe-accent); box-shadow: inset 2px 0 0 var(--xe-accent); }
.xe-sel__opt.is-off { opacity: .4; cursor: default; }
