:root {
  --rail-w: 76px;
  --rail-gap: 16px;
  --rail-bg: var(--s1);
  --rail-line: var(--line);
  --rail-on: var(--s3);
  --rail-on-tx: var(--tx);
}

:root.nav-x {
  --rail-w: 248px;
}

:root[data-theme="copper"] {
  --rail-bg: rgba(78, 78, 82, 0.74);
  --rail-line: rgba(255, 255, 255, 0.14);
  --rail-on: #f5f5f6;
  --rail-on-tx: #1d1d1f;
}

:root[data-theme="dark"] {
  --rail-bg: #111113;
  --rail-on: #2f6bff;
  --rail-on-tx: #fff;
}

:root[data-theme="light"] {
  --rail-bg: #ffffff;
  --rail-on: rgba(11, 108, 255, 0.1);
  --rail-on-tx: #0b63f3;
}

select option,
select optgroup {
  background-color: #1c1c1f;
  color: #f4f4f6;
}

:root[data-theme="light"] select option,
:root[data-theme="light"] select optgroup {
  background-color: #ffffff;
  color: #101218;
}

.nv-img {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  vertical-align: -0.2em;
  border-radius: 50%;
  background: center / contain no-repeat;
}

.nv-board {
  background-image: url("/static/brand/nav-board.svg");
}

.nv-wheel {
  background-image: url("/static/images/color_wheel.webp?v=3");
}

.adm-nav button i.nv-img {
  width: 20px;
  height: 20px;
}

.xp-ic .nv-img {
  width: 44px;
  height: 44px;
}

.ic-tile.ic-board .nv-img {
  width: 72%;
  height: 72%;
}

.tabbar a i.nv-img {
  width: 24px;
  height: 24px;
}

:root .tabbar .tab-play-c.nv-pc {
  border: none;
  background: center / cover no-repeat;
  box-shadow: 0 0 0 5px var(--bg), 0 8px 20px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

:root .tabbar .tab-play-c.nv-pc.nv-board {
  background-image: url("/static/brand/nav-board.svg");
}

:root .tabbar .tab-play-c.nv-pc.nv-wheel {
  background-image: url("/static/images/color_wheel.webp?v=3");
}

:root .tabbar a.tab-play.on .tab-play-c.nv-pc {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink), 0 8px 20px rgba(0, 0, 0, 0.28);
}

.tn-me {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--tx);
  border-radius: 16px;
}

.tn-me .tn-av {
  flex-shrink: 0;
}

.tn-me-t {
  display: none;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.tn-me-t b {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tn-me-t small {
  font-size: 12px;
  color: var(--tx3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-tg {
  display: none;
}

.tn-sbtn {
  display: none;
}

.tn-links a i {
  display: none;
}

@media (min-width: 900px) {
  .app {
    padding-left: calc(var(--rail-w) + var(--rail-gap) * 2);
    transition: padding-left 0.22s ease;
  }

  .no-chrome .app {
    padding-left: 0;
  }

  .topnav {
    position: fixed;
    top: var(--rail-gap);
    bottom: var(--rail-gap);
    left: var(--rail-gap);
    width: var(--rail-w);
    z-index: 40;
    border: 1px solid var(--rail-line);
    border-radius: 26px;
    background: var(--rail-bg);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    backdrop-filter: blur(24px) saturate(130%);
    transition: width 0.22s ease;
  }

  .topnav-in {
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 22px;
  }

  .topnav .brand,
  .topnav .brand-t {
    height: 44px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .topnav .brand-t {
    gap: 0;
  }

  .topnav .brand {
    gap: 8px;
  }

  .topnav .brand .dsp {
    font-size: 15px;
  }

  .topnav .brand-tag {
    padding: 2px 6px;
    font-size: 9px;
  }

  .topnav .brand img {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .topnav .brand-t::before {
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 10px;
  }

  :root:not(.nav-x) .topnav .brand-t::before {
    margin-right: 0;
  }

  .tn-links {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .tn-links a {
    position: relative;
    height: 48px;
    padding: 0 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--tx2);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .tn-links a i {
    display: inline-block;
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    font-size: 18px;
  }

  .tn-links a i.nv-img {
    width: 22px;
    height: 22px;
    margin: 0 -1px;
  }

  .tn-links a:hover {
    background: var(--s2);
    color: var(--tx);
  }

  .tn-links a.on {
    background: var(--rail-on);
    color: var(--rail-on-tx);
    font-weight: 700;
  }

  .tn-links a.on i {
    color: inherit;
  }

  .tn-right {
    margin: auto 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tn-right > *:not(.tn-av),
  #tn-user {
    width: 100%;
  }

  #tn-user {
    flex-direction: column;
    align-items: stretch;
  }

  .tn-right .tn-av {
    flex-shrink: 0;
    margin: 0 auto;
  }

  .tn-right .tn-me {
    justify-content: center;
  }

  :root.nav-x .tn-right .tn-me {
    justify-content: flex-start;
    padding: 6px;
  }

  :root.nav-x .tn-right .tn-me .tn-av {
    margin: 0;
  }

  :root.nav-x .tn-me-t {
    display: flex;
  }

  .tn-right .tn-me:hover {
    background: var(--s2);
  }

  .tn-right .tn-search {
    width: 100%;
    max-width: none;
  }

  .tn-sbtn,
  .tn-right .tn-bell,
  .tn-right .tn-buy {
    height: 46px;
    padding: 0 13px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--tx2);
    white-space: nowrap;
  }

  .tn-sbtn i,
  .tn-right .tn-bell i,
  .tn-right .tn-buy i {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    font-size: 17px;
  }

  .tn-sbtn:hover,
  .tn-right .tn-bell:hover,
  .tn-right .tn-buy:hover {
    background: var(--s2);
    color: var(--tx);
  }

  .tn-right .tn-bell {
    width: 100%;
    border: none;
    background: none;
    justify-content: flex-start;
    font-size: 15px;
    font-weight: 600;
  }

  .tn-right .tn-bell .dot {
    top: 9px;
    left: 30px;
    right: auto;
  }

  .tn-right .gm-wrap {
    display: flex;
    justify-content: center;
  }

  .topnav .gm-pop {
    position: fixed;
    top: auto;
    bottom: 0;
    left: calc(100% + 12px);
    right: auto;
  }

  .rail-tg {
    position: absolute;
    top: 30px;
    right: -14px;
    z-index: 2;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--rail-line);
    background: var(--rail-bg);
    color: var(--tx2);
    display: grid;
    place-items: center;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  :root[data-theme="copper"] .rail-tg {
    background: #5a5a5e;
  }

  .rail-tg:hover {
    color: var(--tx);
  }

  .rail-tg i {
    transition: transform 0.22s ease;
  }

  :root.nav-x .rail-tg i {
    transform: rotate(180deg);
  }

  :root:not(.nav-x) .topnav .brand .dsp,
  :root:not(.nav-x) .topnav .brand-tag,
  :root:not(.nav-x) .tn-links a span,
  :root:not(.nav-x) .tn-sbtn span,
  :root:not(.nav-x) .tn-right .tn-bell span,
  :root:not(.nav-x) .tn-right .tn-buy span,
  :root:not(.nav-x) .tn-right .tn-search {
    display: none;
  }

  :root:not(.nav-x) .topnav .brand-t {
    font-size: 0;
  }

  :root:not(.nav-x) .tn-links a,
  :root:not(.nav-x) .tn-sbtn,
  :root:not(.nav-x) .tn-right .tn-bell,
  :root:not(.nav-x) .tn-right .tn-buy {
    justify-content: center;
    padding: 0;
  }

  :root.nav-x .tn-sbtn {
    display: none;
  }

  :root:not(.nav-x) .tn-sbtn {
    display: flex;
  }
}

@media (min-width: 1000px) {
  .adm-body .adm {
    padding: var(--rail-gap) 0 0 var(--rail-gap);
    gap: var(--rail-gap);
  }

  :root .adm-body aside.adm-side {
    position: sticky;
    left: auto;
    bottom: auto;
    overflow: visible;
    top: var(--rail-gap);
    width: var(--rail-w);
    height: calc(100vh - var(--rail-gap) * 2);
    height: calc(100dvh - var(--rail-gap) * 2);
    padding: 18px 12px 14px;
    gap: 22px;
    border: 1px solid var(--rail-line);
    border-radius: 26px;
    background: var(--rail-bg);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    backdrop-filter: blur(24px) saturate(130%);
    transition: width 0.22s ease;
  }

  .adm-body .adm-brand {
    height: 44px;
    padding: 0 9px;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
  }

  .adm-body .adm-tag {
    padding: 2px 6px;
    font-size: 9px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
  }

  .adm-body .adm-brand .bt::before {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .adm-body .adm-nav {
    gap: 6px;
  }

  .adm-body .adm-nav button {
    position: relative;
    height: 48px;
    padding: 0 15px;
    border-radius: 15px;
    gap: 14px;
  }

  .adm-body .adm-nav button i {
    width: 20px;
    font-size: 17px;
  }

  .adm-body .adm-nav button.on {
    background: var(--rail-on);
    color: var(--rail-on-tx);
  }

  .adm-body .adm-nav button.on i {
    color: inherit;
  }

  .adm-body .adm-me {
    padding-top: 10px;
  }

  .adm-body .adm-mm {
    position: fixed;
    top: auto;
    bottom: 0;
    left: calc(100% + 12px);
    right: auto;
    width: 260px;
  }

  .adm-body .adm-main {
    min-width: 0;
    margin-left: 0;
  }

  .adm-body .rail-tg {
    display: grid;
  }

  .adm-body .adm-side .rail-tg {
    position: absolute;
    top: 30px;
    right: -14px;
  }

  :root:not(.nav-x) .adm-body .adm-brand .bt {
    font-size: 0;
  }

  :root:not(.nav-x) .adm-body .adm-brand .bt::before {
    margin-right: 0;
  }

  :root:not(.nav-x) .adm-body .adm-tag,
  :root:not(.nav-x) .adm-body .adm-nav button span,
  :root:not(.nav-x) .adm-body .adm-me .me-t,
  :root:not(.nav-x) .adm-body .adm-meb > i {
    display: none;
  }

  :root:not(.nav-x) .adm-body .adm-nav button {
    justify-content: center;
    padding: 0;
  }

  :root:not(.nav-x) .adm-body .adm-nav .nav-n {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
  }

  :root:not(.nav-x) .adm-body .adm-meb {
    justify-content: center;
    padding: 6px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app,
  .topnav,
  .adm-body .adm-side,
  .rail-tg i {
    transition: none;
  }
}

.bnr {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--s2);
}

.bnr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-fld {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bc-pv {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  padding: 0;
  border-radius: 16px;
  border: 1.5px dashed var(--line2, var(--line));
  background: var(--s1);
  color: var(--tx3);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
}

.bc-pv.has {
  border-style: solid;
  border-color: var(--line);
}

.bc-pv img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-pv.busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.bc-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
}

.bc-ph i {
  font-size: 22px;
}

.bc-ph b {
  font-size: 14px;
  color: var(--tx2);
}

.bc-ph small {
  font-size: 12px;
}

.bc-acts {
  display: flex;
  gap: 8px;
}

.bc-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--s2);
  color: var(--tx);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bc-btn.sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.bc-btn.pri {
  background: var(--tx);
  border-color: var(--tx);
  color: var(--bg);
}

.bc-btn:disabled {
  opacity: 0.6;
}

.bc-ov {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
}

.bc-box {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--tx);
}

.bc-h {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bc-h b {
  font-size: 17px;
}

.bc-h span {
  font-size: 13px;
  color: var(--tx3);
}

.bc-fr {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.bc-fr:active {
  cursor: grabbing;
}

.bc-fr img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
}

.bc-g {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(0deg, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  border-radius: 14px;
}

.bc-z {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tx3);
  font-size: 13px;
}

.bc-z input {
  flex: 1;
  min-width: 0;
  accent-color: var(--tx);
}

.bc-zl {
  font-size: 19px;
}

.bc-f {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bc-f span {
  margin-right: auto;
  font-size: 12px;
  color: var(--tx3);
}

.bc-z input[type="range"] {
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.bhero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 210px;
  border-radius: 22px;
  overflow: hidden;
  background: #17181b;
  color: #f4f3ef;
  isolation: isolate;
}

.bhero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0) 25%, rgba(10, 10, 12, 0.55) 58%, rgba(10, 10, 12, 0.9) 100%);
}

.bh-in {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  min-width: 0;
}

.bh-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bhero h1 {
  margin: 0;
  font-family: var(--dsp);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.bh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(244, 243, 239, 0.86);
}

.bh-meta > span,
.bh-meta > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.bh-meta i {
  font-size: 12px;
  opacity: 0.85;
}

.bh-kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.bh-kpi span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  line-height: 30px;
  color: rgba(244, 243, 239, 0.85);
}

.bh-kpi b {
  font-size: 14px;
  color: #fff;
}

@media (min-width: 900px) {
  .bhero {
    min-height: 0;
    max-height: 340px;
  }

  .bh-in {
    padding: 28px 32px;
    gap: 10px;
  }

  .bhero h1 {
    font-size: 34px;
  }

  .bh-meta {
    font-size: 14px;
  }
}

@media (max-width: 899px) {
  .bh-meta .bh-x {
    display: none;
  }
}
