/* Zenkai UI Shell — all component selectors are intentionally prefixed. */
:root {
  --zus-accent: #8b32ff;
  --zus-accent-alt: #ff35bc;
  --zus-surface: #0b0b24;
  --zus-header-h: 80px;
  --zus-left-w: 268px;
  --zus-sidebar-top: 64px;
  --zus-mobile-sidebar-top: 105px;
  --zus-right-w: 304px;
  --zus-content-max: 1500px;
  --zus-adminbar: 0px;
  --zus-bg: #050616;
  --zus-panel: color-mix(in srgb, var(--zus-surface) 88%, #171339 12%);
  --zus-panel-2: #10102e;
  --zus-border: rgba(139, 116, 255, .25);
  --zus-border-strong: rgba(164, 115, 255, .48);
  --zus-text: #f7f5ff;
  --zus-muted: #a6a2c2;
  --zus-danger: #ff426d;
  --zus-success: #39db87;
  --zus-radius: 15px;
  --zus-shadow: 0 18px 50px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .025);
}

body.admin-bar.zus-shell { --zus-adminbar: 32px; }

body.zus-shell {
  min-height: 100vh;
  transition: padding .24s ease;
}

body.zus-shell:not(.zus-shell--sidebar-only) {
  background-color: var(--zus-bg);
  background-image:
    radial-gradient(circle at 8% 28%, rgba(84, 32, 174, .12), transparent 30%),
    radial-gradient(circle at 92% 72%, rgba(115, 19, 174, .10), transparent 25%);
}

body.zus-shell--header { padding-top: var(--zus-header-h); }
body.zus-shell--left { padding-left: var(--zus-left-w); }
body.zus-shell--right { padding-right: var(--zus-right-w); }
body.zus-shell--sidebar-only.zus-shell--left { padding-left: 0; }
body.zus-shell--sidebar-only.zus-shell--reserve-left { padding-left: var(--zus-left-w); }

body.zus-shell--sidebar-only .zus-content-auto-offset {
  box-sizing: border-box !important;
  padding-left: calc(var(--zus-existing-left-pad, 0px) + var(--zus-collision-offset, var(--zus-left-w))) !important;
}

body.zus-shell .zus-shell-root,
body.zus-shell .zus-shell-root *,
body.zus-shell .zus-footer,
body.zus-shell .zus-footer * { box-sizing: border-box; }

body.zus-shell:not(.zus-shell--sidebar-only) .content-grid { max-width: var(--zus-content-max); }

.zus-icon {
  display: block;
  width: 1.35em;
  height: 1.35em;
  pointer-events: none;
}

.zus-skip-link {
  position: fixed;
  z-index: 1000010;
  top: -100px;
  left: 18px;
  padding: 11px 16px;
  border-radius: 0 0 10px 10px;
  background: #fff;
  color: #16072e;
  font: 700 14px/1.2 system-ui, sans-serif;
  transition: top .2s ease;
}

.zus-skip-link:focus { top: var(--zus-adminbar); }
.zus-main-anchor { position: absolute; width: 1px; height: 1px; overflow: hidden; }

.zus-header {
  position: fixed;
  z-index: 1000000;
  top: var(--zus-adminbar);
  left: 0;
  right: 0;
  height: var(--zus-header-h);
  display: grid;
  grid-template-columns: minmax(170px, var(--zus-left-w)) auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  color: var(--zus-text);
  border-bottom: 1px solid rgba(125, 105, 246, .22);
  background:
    linear-gradient(180deg, rgba(4, 5, 23, .98), rgba(5, 5, 26, .96)),
    radial-gradient(circle at 50% 0, rgba(106, 37, 227, .13), transparent 42%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.zus-header a { color: inherit; text-decoration: none; }

.zus-header__brand-area {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zus-brand {
  min-width: 0;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
}

.zus-brand__image {
  display: block;
  max-width: 174px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.zus-brand__wordmark {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(179, 67, 255, .55));
  transform: skew(-7deg);
}

.zus-brand__wordmark strong {
  font: italic 900 25px/.84 system-ui, sans-serif;
  letter-spacing: -1.6px;
  background: linear-gradient(135deg, #fff 10%, #f27eff 50%, #8155ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.zus-brand__wordmark small { margin-top: 4px; font: 800 8px/1 system-ui, sans-serif; letter-spacing: 4px; }

.zus-icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #ded9f7;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.zus-icon-button:hover,
.zus-icon-button:focus-visible {
  color: #fff;
  border-color: var(--zus-border);
  background: rgba(129, 76, 230, .12);
  outline: none;
}

.zus-header__drawer-toggle { display: none; }

.zus-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zus-menu li { margin: 0; padding: 0; list-style: none; }

.zus-menu--header a {
  position: relative;
  min-width: 62px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  color: #c7c2dc;
  border: 1px solid transparent;
  border-radius: 14px;
  font: 600 12px/1.05 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.zus-menu--header .zus-menu__icon { display: grid; place-items: center; font-size: 17px; }

.zus-menu--header a:hover,
.zus-menu--header a:focus-visible,
.zus-menu--header a.is-active {
  color: #fff;
  border-color: rgba(147, 90, 255, .33);
  background: linear-gradient(180deg, rgba(113, 45, 212, .22), rgba(82, 33, 155, .09));
  box-shadow: 0 10px 25px rgba(78, 26, 165, .22), inset 0 -2px 0 var(--zus-accent);
  outline: 0;
}

.zus-search {
  min-width: 220px;
  width: min(100%, 460px);
  height: 42px;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--zus-border);
  border-radius: 13px;
  background: rgba(13, 13, 44, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.zus-search:focus-within {
  border-color: var(--zus-border-strong);
  box-shadow: 0 0 0 3px rgba(128, 52, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.zus-search__icon { color: #a9a3ca; font-size: 15px; }

.zus-search input[type="search"] {
  min-width: 0;
  height: 38px;
  flex: 1;
  padding: 0;
  color: #f5f3ff;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: 500 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: 0;
}

.zus-search input::placeholder { color: #8f89aa; opacity: 1; }

.zus-search kbd {
  padding: 0;
  color: #8e88aa;
  border: 0;
  background: transparent;
  box-shadow: none;
  font: 500 11px/1 system-ui, sans-serif;
}

.zus-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }

.zus-create-button,
.zus-login-link {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff !important;
  border: 1px solid rgba(180, 91, 255, .55);
  border-radius: 13px;
  background: linear-gradient(135deg, #9824ee, #5b27ed 65%, #7842ff);
  box-shadow: 0 9px 24px rgba(105, 27, 234, .25), inset 0 1px 0 rgba(255, 255, 255, .23);
  font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  transition: transform .18s ease, filter .18s ease;
}

.zus-create-button:hover,
.zus-create-button:focus-visible { transform: translateY(-1px); filter: brightness(1.12); outline: none; }
.zus-create-button .zus-icon { width: 17px; height: 17px; }

.zus-login-link { padding: 0 16px; border-color: var(--zus-border); background: rgba(18, 18, 52, .76); box-shadow: none; }

.zus-currency {
  height: 42px;
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #ddd9f5 !important;
  border: 1px solid var(--zus-border);
  border-radius: 13px;
  background: rgba(15, 15, 45, .8);
  font: 650 13px/1 system-ui, sans-serif;
}

.zus-currency:hover { border-color: var(--zus-border-strong); background: rgba(24, 20, 67, .92); }
.zus-currency__icon { width: 26px; height: 26px; display: grid; place-items: center; color: #bf8bff; border-radius: 9px; background: rgba(116, 52, 220, .24); }
.zus-currency--stellars .zus-currency__icon { color: #ff56bd; background: rgba(235, 40, 153, .17); }
.zus-currency__plus { margin-left: auto; color: #eeeaff; font-size: 18px; font-weight: 400; }

.zus-header-action .zus-icon { width: 22px; height: 22px; }

.zus-count {
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #fff;
  border: 2px solid #070719;
  border-radius: 20px;
  background: var(--zus-danger);
  font: 800 9px/1 system-ui, sans-serif;
}

.zus-user-menu { position: relative; }

.zus-user-menu__toggle {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: #c7c2df;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.zus-user-menu__toggle > .zus-icon { width: 14px; height: 14px; }

.zus-avatar-ring {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 2px;
  border: 1px solid rgba(242, 66, 255, .68);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3bc4, #7551ff);
  box-shadow: 0 0 14px rgba(207, 45, 255, .28);
}

.zus-avatar-ring img { width: 100%; height: 100%; display: block; object-fit: cover; border: 2px solid #111129; border-radius: inherit; }

.zus-online-dot {
  position: absolute;
  right: 17px;
  bottom: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid #080819;
  border-radius: 50%;
  background: var(--zus-success);
  box-shadow: 0 0 8px rgba(57, 219, 135, .65);
}

.zus-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  overflow: hidden;
  padding: 8px;
  color: var(--zus-text);
  border: 1px solid var(--zus-border-strong);
  border-radius: 14px;
  background: rgba(10, 10, 36, .98);
  box-shadow: var(--zus-shadow);
}

.zus-user-menu__dropdown[hidden] { display: none; }
.zus-user-menu__identity { display: flex; flex-direction: column; gap: 3px; margin: -2px -2px 6px; padding: 12px; border-radius: 10px; background: rgba(115, 51, 218, .12); }
.zus-user-menu__identity strong { color: #fff; font: 750 14px/1.2 system-ui, sans-serif; }
.zus-user-menu__identity span { color: var(--zus-muted); font: 500 11px/1.2 system-ui, sans-serif; }
.zus-user-menu__dropdown > a { display: flex; align-items: center; gap: 10px; padding: 10px; color: #d7d3e9; border-radius: 9px; font: 600 12px/1 system-ui, sans-serif; }
.zus-user-menu__dropdown > a:hover { color: #fff; background: rgba(132, 71, 234, .15); }
.zus-user-menu__dropdown > a .zus-icon { width: 17px; height: 17px; color: #a989ff; }

.zus-sidebar {
  position: fixed;
  z-index: 999990;
  top: calc(var(--zus-adminbar) + var(--zus-header-h));
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 10px 0 0;
  color: var(--zus-text);
  background: linear-gradient(180deg, rgba(6, 7, 29, .985), rgba(7, 7, 28, .99));
}

body.zus-shell:not(.zus-shell--header):not(.zus-shell--sidebar-only) .zus-sidebar { top: var(--zus-adminbar); }
body.zus-shell--sidebar-only .zus-sidebar { top: calc(var(--zus-adminbar) + var(--zus-runtime-header-h, var(--zus-sidebar-top))); }
.zus-sidebar--left {
  left: 0;
  bottom: 8px;
  width: var(--zus-left-w);
  border: 1px solid rgba(139, 116, 255, .28);
  border-left: 0;
  border-radius: 0 22px 22px 0;
  box-shadow: 18px 18px 48px rgba(0, 0, 0, .34), inset -1px 0 0 rgba(255, 255, 255, .018);
}
.zus-sidebar--right { right: 0; width: var(--zus-right-w); border-left: 1px solid rgba(125, 105, 246, .22); }

/* The Zenkai header owns global navigation decoration. Generated header
   artifacts are never allowed to become a second icon or status tag here. */
[data-zus-shell] .zmi-feature-icon,
[data-zus-shell] .zmi-nav-icon-shell,
[data-zus-shell] .zmi-new-badge,
[data-zus-shell] .zmi-nav-new-badge,
[data-zus-shell] .zmi-side-rank-card { display: none !important; }
[data-zus-shell] .zmi-original-nav-icon-hidden {
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.zus-sidebar__mobile-head { display: none; flex: 0 0 auto; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px 6px 18px; }
.zus-sidebar__mobile-head strong { font: 750 14px/1 system-ui, sans-serif; }

.zus-sidebar__scroll {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 12px 12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(133, 74, 226, .52) transparent;
}

.zus-sidebar__scroll::-webkit-scrollbar { width: 5px; }
.zus-sidebar__scroll::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(133, 74, 226, .52); }

.zus-profile-card {
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--zus-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 16, 53, .98), rgba(11, 11, 38, .98));
  box-shadow: var(--zus-shadow);
}

.zus-profile-card__cover {
  position: relative;
  height: clamp(300px, calc(var(--zus-left-w) * 1.28), 365px);
  background-color: #41336b;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(60, 169, 255, .32), transparent 25%),
    radial-gradient(circle at 70% 34%, rgba(193, 46, 255, .22), transparent 29%),
    linear-gradient(180deg, #0c1a4c 0%, #11133e 45%, #0d0d2b 100%);
  background-position: top center;
  background-size: 100% 88px;
  background-repeat: no-repeat;
}

.zus-profile-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 25, .06) 0 88px, rgba(39, 27, 79, .05) 45%, rgba(8, 8, 31, .3));
  pointer-events: none;
}

.zus-profile-card__rankline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 7px;
  color: #ece7ff;
  font: 700 8px/1 system-ui, sans-serif;
  letter-spacing: .35px;
}

.zus-profile-card__rankline span:first-child { color: #ff50bd; }

.zus-progress {
  position: relative;
  z-index: 2;
  display: block;
  height: 6px;
  overflow: hidden;
  margin: 0 10px;
  border-radius: 20px;
  background: rgba(125, 119, 170, .27);
}

.zus-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--zus-accent-alt), var(--zus-accent));
  box-shadow: 0 0 9px rgba(204, 52, 255, .65);
}

.zus-profile-card__avatar {
  position: absolute;
  z-index: 1;
  inset: 36px -28px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.zus-profile-card__avatar img {
  display: block;
  max-width: none;
  max-height: calc(100% - 4px);
  width: auto;
  height: calc(100% - 4px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 11px rgba(0, 0, 0, .5));
  transition: transform .25s ease;
}

.zus-profile-card__avatar:hover img { transform: translateY(-2px) scale(1.015); }

.zus-profile-card__identity { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 8px; text-align: center; }
.zus-profile-card__identity > a { display: flex; align-items: center; gap: 5px; color: #fff; text-decoration: none; }
.zus-profile-card__identity strong { font: 800 19px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.zus-profile-card__identity small { color: #9893b3; font: 550 11px/1 system-ui, sans-serif; }

.zus-verified {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  color: #fff;
  border-radius: 50%;
  background: #6d5cff;
  font: 900 9px/1 system-ui, sans-serif;
  vertical-align: middle;
}

.zus-role-pill { padding: 4px 9px; color: #fff; border-radius: 20px; background: linear-gradient(90deg, #ff2d77, #f044a4); font: 850 9px/1 system-ui, sans-serif; letter-spacing: .25px; }
.zus-rank-pill { padding: 4px 9px; color: #fff; border: 1px solid rgba(178, 105, 255, .35); border-radius: 20px; background: linear-gradient(90deg, #8737df, #a94eff); box-shadow: 0 5px 12px rgba(104, 43, 199, .16); font: 800 9px/1 system-ui, sans-serif; }

.zus-flairs { min-height: 35px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px 10px; }
.zus-flairs > a:not(.zus-flairs__empty) { width: 33px; height: 33px; display: grid; place-items: center; overflow: hidden; color: #e1b9ff; border: 1px solid rgba(166, 104, 255, .6); border-radius: 10px; background: radial-gradient(circle at 50% 20%, rgba(197, 92, 255, .22), transparent 70%), rgba(78, 42, 157, .16); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.zus-flairs > a:not(.zus-flairs__empty):hover { border-color: #e061ff; box-shadow: 0 0 13px rgba(192, 47, 255, .32); transform: translateY(-1px); }
.zus-flairs img { width: 100%; height: 100%; display: block; object-fit: contain; }
.zus-flairs .zus-icon { width: 18px; height: 18px; }
.zus-flairs__empty { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: #bcb4d4; border: 1px dashed rgba(157, 104, 255, .4); border-radius: 9px; background: rgba(100, 53, 184, .1); text-decoration: none; font: 650 9px/1 system-ui, sans-serif; }
.zus-flairs__empty:hover { color: #fff; border-color: rgba(211, 91, 255, .7); }

.zus-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(139, 116, 255, .16); }
.zus-profile-stats > div { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 3px; }
.zus-profile-stats > div + div { border-left: 1px solid rgba(139, 116, 255, .13); }
.zus-profile-stats strong { color: #f7f5ff; font: 750 14px/1 system-ui, sans-serif; }
.zus-profile-stats span { color: #8f8aa7; font: 650 7px/1 system-ui, sans-serif; letter-spacing: .45px; text-transform: uppercase; }

.zus-side-nav { flex: 0 0 auto; }
.zus-menu--left { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.zus-menu--left li { width: 100%; }
.zus-menu--left a {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: #bbb6d2;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font: 600 11px/1.15 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: color .17s ease, background .17s ease, border-color .17s ease, transform .17s ease;
}

.zus-menu--left a.has-status {
  min-height: 52px;
  padding-top: 17px;
}

.zus-menu--left .zus-menu__icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; color: #a9a2c5; font-size: 14px; }
.zus-menu--left .zus-menu__icon > svg,
.zus-menu--left .zus-menu__icon > img,
.zus-menu--left .zus-menu__icon > .icon-svg { max-width: 22px; max-height: 22px; width: 100%; height: 100%; object-fit: contain; }
.zus-menu--left .zus-menu__icon > *:not(:first-child) { display: none !important; }
.zus-menu--left .zus-reused-icon { display: block; max-width: 22px !important; max-height: 22px !important; width: 22px !important; height: 22px !important; object-fit: contain; }
.zus-menu--left a.zus-has-external-icon > .zus-menu__icon { display: none; }
.zus-menu--left a.zus-has-external-icon > :is(svg, img, i, [class*="icon"]):not(.zus-menu__icon) { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.zus-menu--left a.zus-has-external-icon > .zus-external-icon > :is(svg, img) { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.zus-menu--left .zus-menu__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zus-menu--left a:hover { color: #fff; background: rgba(109, 65, 200, .10); transform: translateX(2px); }
.zus-menu--left a.is-active {
  color: #fff;
  border-color: rgba(156, 89, 255, .4);
  background: linear-gradient(90deg, rgba(130, 43, 234, .8), rgba(85, 36, 161, .35));
  box-shadow: 0 7px 18px rgba(92, 29, 184, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.zus-menu--left a.is-active .zus-menu__icon { color: #fff; }
.zus-menu--left a.is-disabled { color: #87819c; cursor: not-allowed; }
.zus-menu--left a.is-disabled .zus-menu__icon { opacity: .7; }

.zus-nav-badge {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 5px;
  max-width: 70px;
  overflow: hidden;
  padding: 2px 6px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  background: linear-gradient(90deg, #a331ef, #f43bb2);
  box-shadow: 0 3px 10px rgba(156, 42, 225, .44), 0 0 8px rgba(193, 61, 255, .18);
  font: 900 5.5px/1 system-ui, sans-serif;
  letter-spacing: .35px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: rotate(-5deg);
}
.zus-menu--left a.zus-has-external-status > .zus-nav-badge { display: none; }
.zus-nav-badge--new { background: linear-gradient(90deg, #8738ef, #df37ff); }
.zus-nav-badge--sale { color: #331600; background: linear-gradient(90deg, #ffd24b, #ff9d28); }
.zus-nav-badge--disabled { color: #dad6e5; border-color: rgba(255, 255, 255, .12); background: linear-gradient(90deg, #575268, #312d41); }
.zus-nav-badge--beta { background: linear-gradient(90deg, #3177ff, #8c56ff); }

.zus-pass-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  color: #f4f0ff;
  border: 1px solid rgba(129, 97, 244, .32);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(18, 20, 63, .98), rgba(14, 13, 47, .98));
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.zus-pass-card:hover { color: #fff; border-color: var(--zus-border-strong); }
.zus-pass-card__icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; color: #a98cff; border: 1px solid rgba(139, 104, 255, .4); border-radius: 10px; background: rgba(91, 57, 201, .22); }
.zus-pass-card__content { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.zus-pass-card__content strong { font: 700 11px/1.1 system-ui, sans-serif; }
.zus-pass-card__content small { overflow: hidden; color: #9c96b4; font: 500 8px/1.2 system-ui, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.zus-pass-card .zus-progress { height: 4px; margin: 3px 0 0; }
.zus-pass-card__level { color: #c9c2e7; font: 750 9px/1 system-ui, sans-serif; }
.zus-pass-card--join .zus-pass-card__content small { white-space: normal; }

.zus-sidebar__widgets { display: flex; flex-direction: column; gap: 10px; }

.zus-sidebar__collapse {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 10px 12px 12px;
  color: #8d88a8;
  border: 0;
  border-top: 1px solid rgba(139, 116, 255, .16);
  background: linear-gradient(180deg, rgba(7, 7, 28, .94), rgba(7, 7, 28, 1));
  box-shadow: 0 -12px 24px rgba(4, 4, 18, .32);
  font: 600 9px/1 system-ui, sans-serif;
  cursor: pointer;
}
.zus-sidebar__collapse:hover { color: #fff; }
.zus-sidebar__collapse .zus-icon { width: 14px; height: 14px; transition: transform .2s ease; }

.zus-panel {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px;
  color: var(--zus-text);
  border: 1px solid var(--zus-border);
  border-radius: var(--zus-radius);
  background: linear-gradient(145deg, rgba(16, 16, 50, .96), rgba(11, 11, 38, .96));
  box-shadow: var(--zus-shadow);
}

.zus-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.zus-panel__head h2,
.zus-panel__title { margin: 0; color: #f7f5ff; font: 750 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.zus-panel__head > a { flex: 0 0 auto; color: #d25cff; text-decoration: underline; text-underline-offset: 2px; font: 650 9px/1 system-ui, sans-serif; }
.zus-panel__head > a:hover { color: #f0a4ff; }

.zus-mini-list { display: flex; flex-direction: column; gap: 4px; }
.zus-mini-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px;
  color: #e6e2f5;
  border-radius: 10px;
  text-decoration: none;
  transition: background .17s ease;
}
.zus-mini-row:hover { color: #fff; background: rgba(118, 69, 207, .11); }
.zus-mini-row__avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; color: #c890ff; border: 1px solid rgba(170, 88, 255, .48); border-radius: 10px; background: #171742; }
.zus-mini-row__avatar--group { border-radius: 50%; }
.zus-mini-row__avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.zus-mini-row__avatar .zus-icon { width: 18px; height: 18px; }
.zus-mini-row__content { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.zus-mini-row__content strong { overflow: hidden; color: #f5f3ff; font: 700 11px/1.15 system-ui, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.zus-mini-row__content small { overflow: hidden; color: #9d98b7; font: 500 9px/1.15 system-ui, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.zus-live-count { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; color: #b6b0ca; font: 600 9px/1 system-ui, sans-serif; }
.zus-live-count i { width: 6px; height: 6px; border-radius: 50%; background: #ff416a; box-shadow: 0 0 7px rgba(255, 65, 106, .6); }

.zus-empty-state { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 8px 8px; color: #9c97b4; text-align: center; }
.zus-empty-state > span { width: 35px; height: 35px; display: grid; place-items: center; color: #ba7bff; border-radius: 10px; background: rgba(113, 58, 209, .14); }
.zus-empty-state p { margin: 0; font: 550 10px/1.35 system-ui, sans-serif; }
.zus-empty-state a { color: #d86fff; font: 700 9px/1 system-ui, sans-serif; }
.zus-empty-state--compact { padding: 7px; }

.zus-event-list { display: flex; flex-direction: column; gap: 7px; }
.zus-event { min-width: 0; display: flex; align-items: center; gap: 8px; color: #ece8fa; text-decoration: none; }
.zus-event:hover { color: #fff; }
.zus-event__image { width: 56px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; color: #c899ff; border-radius: 8px; background: linear-gradient(135deg, #32226d, #12143f); }
.zus-event__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.zus-event__content { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.zus-event__content strong { overflow: hidden; font: 750 9px/1.15 system-ui, sans-serif; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.zus-event__content small { overflow: hidden; color: #9d98b5; font: 500 8px/1.15 system-ui, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.zus-event__days { width: 36px; height: 42px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #eeeaff; border: 1px solid rgba(130, 103, 216, .22); border-radius: 8px; background: rgba(27, 26, 66, .75); }
.zus-event__days strong { font: 800 11px/1 system-ui, sans-serif; }
.zus-event__days small { color: #9994af; font: 700 6px/1 system-ui, sans-serif; text-transform: uppercase; }

.zus-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.zus-quick-grid a { min-width: 0; min-height: 67px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 7px 3px; color: #dcd7ee; border: 1px solid rgba(120, 103, 204, .18); border-radius: 10px; background: rgba(21, 20, 59, .72); text-align: center; text-decoration: none; }
.zus-quick-grid a:hover { color: #fff; border-color: rgba(174, 94, 255, .45); background: rgba(87, 46, 155, .16); }
.zus-quick-grid a > span { color: #d057ff; }
.zus-quick-grid a:nth-child(3) > span { color: #ff465e; }
.zus-quick-grid a:nth-child(4) > span { color: #ffad35; }
.zus-quick-grid .zus-icon { width: 21px; height: 21px; }
.zus-quick-grid small { display: block; font: 600 7.5px/1.15 system-ui, sans-serif; }

.zus-widget ul { margin: 8px 0 0; padding: 0; list-style: none; }
.zus-widget li { margin: 0; padding: 7px 0; border-bottom: 1px solid rgba(139, 116, 255, .11); }
.zus-widget li:last-child { border-bottom: 0; }
.zus-widget a { color: #cbbff1; text-decoration: none; font: 550 10px/1.3 system-ui, sans-serif; }
.zus-widget a:hover { color: #fff; }
.zus-widget p { color: #aaa4bd; font-size: 10px; }

.zus-footer {
  position: relative;
  z-index: 4;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 13px 24px;
  color: #9893ae;
  border-top: 1px solid rgba(125, 105, 246, .22);
  background: rgba(5, 6, 24, .98);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.zus-shell--left .zus-footer { margin-left: calc(var(--zus-left-w) * -1); padding-left: 24px; }
body.zus-shell--right .zus-footer { margin-right: calc(var(--zus-right-w) * -1); padding-right: 24px; }

.zus-footer__brand { min-width: 0; display: flex; align-items: center; gap: 18px; }
.zus-footer__brand > a { flex: 0 0 auto; text-decoration: none; }
.zus-footer .zus-brand__image { max-width: 92px; max-height: 40px; }
.zus-footer .zus-brand__wordmark strong { font-size: 18px; }
.zus-footer .zus-brand__wordmark small { font-size: 5px; letter-spacing: 3px; }
.zus-footer__brand > span { font: 500 10px/1.3 system-ui, sans-serif; }
.zus-menu--footer { justify-content: center; gap: 20px; }
.zus-menu--footer a { color: #9b96ae; text-decoration: none; font: 550 10px/1 system-ui, sans-serif; }
.zus-menu--footer a:hover { color: #fff; }
.zus-footer__social { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.zus-footer__social a { width: 30px; height: 30px; display: grid; place-items: center; color: #b0abc0; border-radius: 9px; text-decoration: none; font: 750 15px/1 system-ui, sans-serif; }
.zus-footer__social a:hover { color: #fff; background: rgba(127, 72, 220, .15); }

.zus-backdrop { display: none; }

.zus-mobile-dock {
  position: fixed;
  z-index: 999995;
  left: 12px;
  bottom: 12px;
  display: none;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--zus-border);
  border-radius: 14px;
  background: rgba(8, 8, 31, .92);
  box-shadow: var(--zus-shadow);
}

.zus-disabled-modal[hidden] { display: none; }
.zus-disabled-modal { position: fixed; z-index: 1000010; inset: 0; display: grid; place-items: center; padding: 20px; }
.zus-disabled-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(3, 3, 17, .8); backdrop-filter: blur(7px); cursor: default; }
.zus-disabled-modal__card { position: relative; width: min(430px, 100%); display: flex; flex-direction: column; align-items: center; padding: 28px; color: #f8f6ff; border: 1px solid rgba(160, 99, 255, .48); border-radius: 19px; background: radial-gradient(circle at 50% 0, rgba(151, 48, 229, .22), transparent 45%), linear-gradient(145deg, #111131, #090922); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04); text-align: center; }
.zus-disabled-modal__icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 14px; color: #e88aff; border: 1px solid rgba(192, 98, 255, .44); border-radius: 15px; background: rgba(118, 47, 204, .2); box-shadow: 0 0 22px rgba(173, 48, 232, .16); }
.zus-disabled-modal__icon .zus-icon { width: 25px; height: 25px; }
.zus-disabled-modal__card h2 { margin: 0 0 9px; color: #fff; font: 800 20px/1.2 system-ui, sans-serif; }
.zus-disabled-modal__card p { margin: 0 0 20px; color: #aba5c0; font: 500 13px/1.55 system-ui, sans-serif; }
.zus-disabled-modal__button { min-width: 120px; height: 40px; padding: 0 20px; color: #fff; border: 1px solid rgba(182, 92, 255, .48); border-radius: 11px; background: linear-gradient(135deg, #9229e6, #6d34ea); box-shadow: 0 8px 18px rgba(104, 38, 206, .22); font: 750 12px/1 system-ui, sans-serif; cursor: pointer; }
.zus-disabled-modal__button:hover { filter: brightness(1.12); }
body.zus-modal-open { overflow: hidden; }

/* Compact desktop rail. */
@media (min-width: 1181px) {
  body.zus-left-collapsed.zus-shell--left { padding-left: 82px; }
  body.zus-shell--sidebar-only.zus-left-collapsed:not(.zus-shell--reserve-left) { padding-left: 0; }
  body.zus-shell--sidebar-only.zus-shell--reserve-left.zus-left-collapsed { padding-left: 82px; }
  body.zus-left-collapsed .zus-sidebar--left { width: 82px; padding-left: 10px; padding-right: 10px; }
  body.zus-left-collapsed .zus-profile-card,
  body.zus-left-collapsed .zus-pass-card,
  body.zus-left-collapsed .zus-sidebar--left .zus-sidebar__widgets { display: none; }
  body.zus-left-collapsed .zus-menu--left a { justify-content: center; min-height: 45px; padding: 9px; }
  body.zus-left-collapsed .zus-menu--left a.has-status { min-height: 45px; padding-top: 9px; }
  body.zus-left-collapsed .zus-menu--left .zus-menu__icon { font-size: 17px; }
  body.zus-left-collapsed .zus-menu--left .zus-menu__label,
  body.zus-left-collapsed .zus-menu--left .zus-nav-badge,
  body.zus-left-collapsed .zus-menu--left .zus-external-status,
  body.zus-left-collapsed .zus-sidebar__collapse span { display: none; }
  body.zus-left-collapsed .zus-sidebar__collapse .zus-icon { transform: rotate(180deg); }
  body.zus-left-collapsed.zus-shell--left .zus-footer { margin-left: -82px; }
}

@media (max-width: 1700px) {
  .zus-header { grid-template-columns: minmax(150px, var(--zus-left-w)) auto minmax(220px, 1fr) auto; gap: 10px; padding-left: 12px; padding-right: 12px; }
  .zus-menu--header a { min-width: 55px; padding-left: 7px; padding-right: 7px; }
  .zus-currency { min-width: 102px; }
  .zus-create-button { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 1550px) {
  .zus-header { grid-template-columns: minmax(150px, var(--zus-left-w)) auto minmax(200px, 1fr) auto; }
  .zus-menu--header li:nth-child(4) { display: none; }
  .zus-search { max-width: 330px; }
  .zus-currency { min-width: 94px; }
}

/* Right rail becomes an off-canvas panel on laptops. */
@media (max-width: 1450px) {
  body.zus-shell--right { padding-right: 0; }
  body.zus-shell--right .zus-footer { margin-right: 0; }
  .zus-sidebar--right { width: min(var(--zus-right-w), calc(100vw - 36px)); transform: translateX(105%); box-shadow: -24px 0 55px rgba(0, 0, 0, .42); transition: transform .24s ease; }
  body.zus-right-open .zus-sidebar--right { transform: translateX(0); }
  .zus-header__drawer-toggle--right { display: inline-grid; }
  .zus-sidebar--right .zus-sidebar__mobile-head { display: flex; }
  body.zus-drawer-open { overflow: hidden; }
  body.zus-drawer-open .zus-backdrop { position: fixed; z-index: 999980; inset: calc(var(--zus-adminbar) + var(--zus-header-h)) 0 0; display: block; padding: 0; border: 0; background: rgba(2, 2, 15, .68); backdrop-filter: blur(3px); cursor: default; }
  body.zus-shell:not(.zus-shell--header).zus-drawer-open .zus-backdrop { inset: var(--zus-adminbar) 0 0; }
  body.zus-shell--sidebar-only.zus-drawer-open .zus-backdrop { inset: calc(var(--zus-adminbar) + var(--zus-runtime-header-h, var(--zus-sidebar-top))) 0 0; }
}

@media (max-width: 1250px) {
  .zus-header { grid-template-columns: minmax(150px, var(--zus-left-w)) minmax(230px, 1fr) auto; }
  .zus-header-nav { display: none; }
  .zus-search { justify-self: stretch; max-width: none; width: 100%; }
}

@media (max-width: 1040px) {
  .zus-currency { min-width: 0; width: 43px; justify-content: center; padding: 0; }
  .zus-currency strong,
  .zus-currency__plus { display: none; }
  .zus-currency__icon { background: transparent; }
  .zus-create-button span { display: none; }
  .zus-create-button { width: 43px; padding: 0; }
}

/* Both sidebars become drawers on tablet and mobile. */
@media (max-width: 1180px) {
  body.zus-shell--left { padding-left: 0; }
  body.zus-shell--sidebar-only .zus-content-auto-offset { padding-left: var(--zus-existing-left-pad, 0px) !important; }
  body.zus-shell--sidebar-only .zus-sidebar { top: calc(var(--zus-adminbar) + var(--zus-runtime-header-h, var(--zus-mobile-sidebar-top))); }
  body.zus-shell--sidebar-only.zus-drawer-open .zus-backdrop { inset: calc(var(--zus-adminbar) + var(--zus-runtime-header-h, var(--zus-mobile-sidebar-top))) 0 0; }
  body.zus-shell--left .zus-footer { margin-left: 0; }
  .zus-header { grid-template-columns: auto minmax(150px, 1fr) auto; gap: 9px; height: var(--zus-header-h); }
  .zus-header__drawer-toggle { display: inline-grid; }
  .zus-mobile-dock { display: flex; }
  body.zus-has-external-toggle .zus-mobile-dock { display: none; }
  .zus-header__brand-area { min-width: 118px; }
  .zus-brand__image { max-width: 118px; max-height: 45px; }
  .zus-brand__wordmark strong { font-size: 20px; }
  .zus-header .zus-search { order: initial; }
  .zus-sidebar--left { width: min(var(--zus-left-w), calc(100vw - 36px)); transform: translateX(-105%); box-shadow: 24px 0 55px rgba(0, 0, 0, .42); transition: transform .24s ease; }
  body.zus-left-open .zus-sidebar--left { transform: translateX(0); }
  .zus-sidebar--left .zus-sidebar__mobile-head { display: flex; }
  .zus-sidebar__collapse { display: none; }
  .zus-footer { grid-template-columns: 1fr; gap: 17px; text-align: center; }
  .zus-footer__brand { justify-content: center; flex-wrap: wrap; }
  .zus-footer__social { justify-content: center; }
}

@media (max-width: 700px) {
  :root { --zus-header-h: 68px; }
  .zus-header { grid-template-columns: 1fr auto; padding: 7px 10px; }
  .zus-header__brand-area { min-width: 0; }
  .zus-header .zus-search { position: absolute; top: calc(100% + 8px); left: 10px; right: 10px; width: auto; display: none; }
  .zus-header-actions { gap: 4px; }
  .zus-header .zus-currency { display: none; }
  .zus-header-action { display: none; }
  .zus-user-menu__toggle > .zus-icon { display: none; }
  .zus-online-dot { right: 0; }
  .zus-create-button { width: 38px; height: 38px; }
  .zus-icon-button { width: 38px; height: 38px; }
  .zus-avatar-ring { width: 39px; height: 39px; }
  .zus-user-menu__dropdown { right: -42px; }
  body.zus-shell:not(.zus-shell--sidebar-only) .zus-sidebar { top: calc(var(--zus-adminbar) + var(--zus-header-h)); }
  .zus-menu--footer { flex-wrap: wrap; row-gap: 12px; }
}

@media (max-width: 480px) {
  .zus-header__drawer-toggle--right { display: none; }
  .zus-brand__image { max-width: 100px; }
  .zus-brand__wordmark strong { font-size: 18px; }
  .zus-sidebar--left,
  .zus-sidebar--right { width: min(340px, calc(100vw - 24px)); }
  .zus-profile-card__cover { height: clamp(270px, 43vh, 325px); }
  .zus-profile-card__avatar { left: -20px; right: -20px; }
  .zus-profile-card__avatar img { max-height: calc(100% - 4px); height: calc(100% - 4px); }
  .zus-footer { padding-left: 14px; padding-right: 14px; }
  .zus-footer__brand > span { width: 100%; }
}

@media (max-width: 782px) {
  body.admin-bar.zus-shell { --zus-adminbar: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  body.zus-shell,
  .zus-sidebar,
  .zus-menu a,
  .zus-create-button,
  .zus-profile-card__avatar img { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .zus-header,
  .zus-sidebar,
  .zus-panel,
  .zus-profile-card,
  .zus-pass-card,
  .zus-footer { border-color: CanvasText; }
}
