
:root {
  --bx-ease: cubic-bezier(.2, 0, 0, 1);          
  --bx-ease-out: cubic-bezier(.16, 1, .3, 1);    
  --bx-ease-in: cubic-bezier(.4, 0, 1, 1);       
  --bx-spring: cubic-bezier(.34, 1.36, .64, 1);  
  --bx-t1: 80ms;    
  --bx-t2: 160ms;   
  --bx-t3: 240ms;   
  --bx-t4: 360ms;   
  --bx-press: .97;  
  --bx-press-o: .82;
}
/* BX-TOKENS-END */
:root { --bx-ground: #0B0E16; --bx-surface: #0E121C; --bx-surface2: #121826; --bx-line: rgba(220, 230, 240, .14); --bx-ink: #F3F7FC; --bx-body: #C9D3E0; --bx-mute: #AEB8CB; --bx-acc: #A8E6EA;
  --bx-tabs-h: 58px; --bx-rail-w: 84px; --bx-kb: 0px;
  --bx-safe-t: env(safe-area-inset-top, 0px); --bx-safe-b: env(safe-area-inset-bottom, 0px); --bx-safe-l: env(safe-area-inset-left, 0px); --bx-safe-r: env(safe-area-inset-right, 0px);
  --bx-sys: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

:where(html) { background-color: var(--bx-ground); }

:where(a, button, summary, label, select, input, textarea, [role=button], [role=tab], [role=link], [tabindex]) { touch-action: manipulation; }
:where(a, button, summary, [role=button], [role=tab]) { -webkit-tap-highlight-color: transparent; }
[data-bx-down] { opacity: var(--bx-press-o); transition: scale var(--bx-t1) var(--bx-ease); }   
[data-bx-down]:where(button, summary, [role=button], [role=tab], .btn, [class*="btn"], [class*="card"], [class*="door"], [class*="tab"], [class*="item"]) { scale: var(--bx-press); }
[data-bx-up] { transition: opacity var(--bx-t2) var(--bx-ease), scale var(--bx-t2) var(--bx-spring); }

@media (prefers-reduced-motion: no-preference) and (max-width: 759.98px) {
  [data-bx-t] { view-transition-name: bx-title; }
  .bx-tabs { view-transition-name: bx-tabs; }
  ::view-transition-old(root) { animation: bx-vt-out var(--bx-t2) var(--bx-ease-in) both; }
  ::view-transition-new(root) { animation: bx-vt-in var(--bx-t3) var(--bx-ease-out) both; }
  ::view-transition-group(bx-title) { animation-duration: var(--bx-t4); animation-timing-function: var(--bx-ease); }
  ::view-transition-group(bx-tabs) { animation-duration: 1ms; }
}
@keyframes bx-vt-out { to { opacity: 0; } }
@keyframes bx-vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: no-preference) and (max-width: 759.98px) { main { animation: bx-enter var(--bx-t3) var(--bx-ease-out) both; } }
@keyframes bx-enter { from { opacity: 0; } }

.bx-ct { display: none; }
@media (max-width: 759.98px) {
  .bx-ct { position: fixed; z-index: 900; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: calc(48px + var(--bx-safe-t)); padding: var(--bx-safe-t) max(12px, var(--bx-safe-r)) 0 max(12px, var(--bx-safe-l));
    background: var(--bx-ground); border-bottom: 1px solid var(--bx-line);   
    opacity: 0; translate: 0 -100%; visibility: hidden; transition: opacity var(--bx-t2) var(--bx-ease), translate var(--bx-t3) var(--bx-ease), visibility 0s linear var(--bx-t3); }
  .bx-ct[data-on] { opacity: 1; translate: none; visibility: visible; transition: opacity var(--bx-t2) var(--bx-ease), translate var(--bx-t3) var(--bx-ease-out), visibility 0s; }
  .bx-ct__b { min-height: 48px; max-width: 100%; margin: 0; padding: 0 14px; border: 0; background: none; color: var(--bx-ink); font: 600 16px/1.2 var(--bx-sys); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
  .bx-ct__b:focus-visible { outline: 2px solid #EAF6FF; outline-offset: -4px; border-radius: 10px; }
}

.bx-tabs, .bx-tabs-space { display: none; }
.bx-tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box; min-width: 48px; min-height: 48px; margin: 0; padding: 6px 4px; border: 0; border-radius: 14px; background: none;
  color: var(--bx-mute); font: 600 12px/1.1 var(--bx-sys); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer; }
.bx-tab svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bx-tab[aria-current="page"], .bx-tab[aria-expanded="true"] { color: var(--bx-ink); }
.bx-tab[aria-current="page"] svg, .bx-tab[aria-expanded="true"] svg { stroke: var(--bx-acc); }
.bx-tab:focus-visible { outline: 2px solid #EAF6FF; outline-offset: -3px; }
@media (hover: hover) { .bx-tab:hover { color: var(--bx-ink); } }
@media (max-width: 759.98px) {
  .bx-tabs { position: fixed; z-index: 930; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch; justify-content: space-around; box-sizing: border-box; height: calc(var(--bx-tabs-h) + var(--bx-safe-b));
    padding: 4px max(6px, var(--bx-safe-r)) calc(4px + var(--bx-safe-b)) max(6px, var(--bx-safe-l)); background: var(--bx-ground); border-top: 1px solid var(--bx-line); }   
  .bx-tab { max-width: 120px; }
  .bx-tabs-space { display: block; height: calc(var(--bx-tabs-h) + var(--bx-safe-b)); }
  .bx-tabs[data-off~="m"], .bx-tabs[data-off~="m"] + .bx-tabs-space, .bx-tabs[data-off~="kb"] { display: none; }
}
@media (min-width: 1320px) {
  .bx-tabs { position: fixed; z-index: 930; left: max(14px, var(--bx-safe-l)); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 4px; box-sizing: border-box; width: var(--bx-rail-w); padding: 8px 6px;
    background: var(--bx-surface); border: 1px solid var(--bx-line); border-radius: 22px; }
  .bx-tab { flex: none; min-height: 60px; }
  .bx-tabs[data-off~="d"] { display: none; }
}
@media print { .bx-tabs, .bx-tabs-space, .bx-ct, .bx-sheet { display: none !important; } }

.bx-sheet { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 6, 12, .62); opacity: 0; transition: opacity var(--bx-t2) var(--bx-ease); }
.bx-sheet[data-open] { opacity: 1; }
.bx-sheet__card { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; max-width: 560px; max-height: 86vh; max-height: min(86dvh, 760px); background: var(--bx-surface); color: #E6EDF6; border: 1px solid #2A3346; border-bottom: 0; border-radius: 20px 20px 0 0;
  padding-bottom: calc(var(--bx-safe-b) + var(--bx-kb)); font: 400 16px/1.5 var(--bx-sys); translate: 0 100%; transition: translate var(--bx-t4) var(--bx-ease-out); }
.bx-sheet[data-open] .bx-sheet__card { translate: none; }
.bx-sheet__grab { flex: none; display: flex; justify-content: center; padding: 10px 0 6px; touch-action: none; cursor: grab; }
.bx-sheet__grab::before { content: ""; width: 40px; height: 5px; border-radius: 9999px; background: rgba(220, 230, 240, .34); }
.bx-sheet__h { flex: none; margin: 0; padding: 2px 18px 10px; font: 600 20px/1.25 var(--bx-sys); color: var(--bx-ink); touch-action: none; }
.bx-sheet__body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 12px 10px; }
.bx-sheet__foot { flex: none; display: flex; gap: 10px; padding: 10px 12px 12px; border-top: 1px solid var(--bx-line); }
.bx-sheet__in { flex: 1 1 auto; min-width: 0; min-height: 48px; box-sizing: border-box; margin: 0; padding: 0 16px; border-radius: 14px; border: 1px solid #3A4560; background: #0A0D16; color: var(--bx-ink); font: 400 16px/1 var(--bx-sys); }
.bx-sheet__in::placeholder { color: var(--bx-mute); opacity: 1; }
.bx-sheet__x { flex: none; min-width: 72px; min-height: 48px; margin: 0; padding: 0 16px; border-radius: 14px; border: 1px solid #3A4560; background: transparent; color: #DCE6F0; font: 600 15px/1 var(--bx-sys); cursor: pointer; }
.bx-sheet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bx-sheet__list > li { margin: 0; content-visibility: auto; contain-intrinsic-size: auto 68px; }
.bx-sheet__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 60px; box-sizing: border-box; padding: 8px 10px; border-radius: 14px; border: 1px solid #232B3C; background: var(--bx-surface2); color: #E6EDF6; text-decoration: none; }
.bx-sheet__mono { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; font: 800 18px/1 var(--bx-sys); color: var(--bx-ink); background: linear-gradient(135deg, rgba(168, 230, 234, .22), rgba(154, 133, 232, .22)); border: 1px solid rgba(220, 230, 240, .16); }
.bx-sheet__n { font: 600 16px/1.25 var(--bx-sys); color: var(--bx-ink); }
.bx-sheet__l { font: 400 14px/1.35 var(--bx-sys); color: var(--bx-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-sheet__none { padding: 14px 6px; color: var(--bx-mute); font-size: 15px; }
.bx-sheet__in:focus-visible, .bx-sheet__x:focus-visible, .bx-sheet__item:focus-visible { outline: 2px solid #EAF6FF; outline-offset: 2px; }
@media (min-width: 760px) {
  .bx-sheet { align-items: center; }
  .bx-sheet__card { border-bottom: 1px solid #2A3346; border-radius: 20px; max-height: min(80vh, 720px); opacity: 0; translate: 0 14px; transition: translate var(--bx-t3) var(--bx-ease-out), opacity var(--bx-t2) var(--bx-ease); }
  .bx-sheet[data-open] .bx-sheet__card { opacity: 1; }
  .bx-sheet__grab { display: none; }
  .bx-sheet__h { padding-top: 18px; }
}

.bx-skel { position: relative; display: block; box-sizing: border-box; min-height: 72px; overflow: hidden; color: transparent !important; -webkit-text-fill-color: transparent; user-select: none; border-radius: 10px;
  background: linear-gradient(#1A2130, #1A2130) 0 4px / 72% 14px no-repeat, linear-gradient(#1A2130, #1A2130) 0 30px / 92% 14px no-repeat, linear-gradient(#1A2130, #1A2130) 0 56px / 54% 14px no-repeat; }
.bx-skel::after { content: ""; position: absolute; inset: 0; translate: -100% 0; background: linear-gradient(90deg, transparent, rgba(220, 230, 240, .08), transparent); animation: bx-shimmer 1.4s var(--bx-ease) infinite; }
@keyframes bx-shimmer { to { translate: 100% 0; } }

.bx-rail { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.bx-rail::-webkit-scrollbar { display: none; }
.bx-rail > * { flex: 0 0 min(80%, 320px); scroll-snap-align: start; }
.bx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.bx-cv > * { content-visibility: auto; contain-intrinsic-size: auto var(--bx-cv-h, 120px); }
@media (display-mode: standalone) { :where(html) { overscroll-behavior-y: none; } }

@media (prefers-reduced-motion: reduce) {
  [data-bx-down], [data-bx-up], .bx-ct, .bx-ct[data-on], .bx-sheet, .bx-sheet__card { transition: none; }
  [data-bx-down]:where(button, summary, [role=button], [role=tab], .btn, [class*="btn"], [class*="card"], [class*="door"], [class*="tab"], [class*="item"]) { scale: none; }
  .bx-skel::after { animation: none; }
  .bx-rail { scroll-behavior: auto; }
}
