/* ========== App shell (/home) ========== */
html, body.page-app { height: 100%; overflow: hidden; background: #0b0c10; }
.page-app { color: var(--text-primary); }

.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  background: #0b0c10;
  overflow: hidden;
}

/* Sidebar */
.app-sidebar {
  width: 17.5rem;
  flex-shrink: 0;
  background: linear-gradient(180deg, #16181e 0%, #12141a 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  z-index: 20;
  transition: width .28s ease, opacity .2s ease;
}
body.sidebar-collapsed .app-sidebar {
  width: 0; min-width: 0; overflow: hidden; border-right: none; opacity: 0; pointer-events: none;
}
.sb-logo {
  display: flex; align-items: center; gap: .55rem;
  padding: .85rem .9rem .55rem 1rem;
  flex-shrink: 0;
}
.sb-logo .meta { display: flex; flex-direction: column; min-width: 0; }
.sb-logo .sub { font-size: .68rem; color: var(--text-tertiary); margin-top: .15rem; white-space: nowrap; }

.sb-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: .15rem .5rem .55rem;
  gap: .15rem;
}
.sb-nav a {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: .4rem 0 .3rem;
  border-radius: .55rem;
  font-size: .7rem;
  color: var(--text-secondary);
}
.sb-nav a svg { width: 1.15rem; height: 1.15rem; }
.sb-nav a:hover { background: rgba(255,255,255,.04); color: #fff; }
.sb-nav a.is-active { color: var(--color-primary); }

.sb-filters {
  display: flex; gap: .15rem;
  padding: .15rem .65rem .45rem;
  flex-shrink: 0;
}
.sb-filters button {
  flex: 1;
  font-size: .72rem;
  color: var(--text-secondary);
  padding: .2rem 0;
  border-radius: .35rem;
}
.sb-filters button.is-on { color: var(--color-primary); background: rgba(0,202,224,.1); }

.sb-tools {
  display: flex; align-items: center; gap: .4rem;
  padding: 0 .65rem .5rem;
  flex-shrink: 0;
}
.sb-vendor {
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--text-secondary);
  padding: .28rem .5rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .4rem;
  background: rgba(255,255,255,.03);
  max-width: 6.2rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-search {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: .35rem;
  padding: .28rem .5rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .4rem;
  background: rgba(255,255,255,.03);
  color: var(--text-tertiary);
  font-size: .75rem;
}
.sb-search input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--text-primary); font-size: .75rem;
}

.sb-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 .4rem .5rem; }
.model-row, .agent-row {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .5rem .45rem;
  border-radius: .55rem;
  cursor: pointer;
  position: relative;
}
.model-row:hover, .agent-row:hover { background: rgba(255,255,255,.04); }
.model-row.is-active {
  background: rgba(0,202,224,.1);
  box-shadow: inset 0 0 0 1px rgba(0,202,224,.18);
}
.model-row .vicon, .agent-row .vicon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: #fff; flex-shrink: 0;
  margin-top: .1rem;
}
.agent-row .vicon { width: 32px; height: 32px; }
.model-row .vicon.is-mark { border-radius: 8px; }
.model-row .vicon.has-img {
  background: transparent !important;
  border-radius: 8px;
  overflow: visible;
}
.model-row .body, .agent-row .body { flex: 1; min-width: 0; }
.model-row .name, .agent-row .name {
  font-size: .82rem; font-weight: 600; color: #eef3f6;
  display: flex; align-items: center; gap: .3rem;
}
.model-row .desc, .agent-row .desc {
  font-size: .68rem; color: var(--text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: .1rem;
}
.badge-pin {
  font-size: .55rem; color: var(--color-primary);
}
.badge-new {
  font-size: .55rem; font-weight: 700;
  background: #ef4444; color: #fff;
  padding: 0 .25rem; border-radius: .2rem; line-height: 1.2;
}
.badge-wait {
  font-size: .55rem; font-weight: 700;
  background: rgba(148,163,184,.22); color: #cbd5e1;
  padding: 0 .28rem; border-radius: .2rem; line-height: 1.2;
  letter-spacing: 0;
}
.model-row.is-wait { opacity: .78; }
.model-wait-note {
  margin: .6rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: .82rem;
  line-height: 1.55;
  color: #fbbf24;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.28);
  border-radius: .6rem;
  padding: .65rem .9rem;
  position: relative;
  z-index: 1;
}
.sb-ready-only {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  font-size: .68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  flex-shrink: 0;
}
.sb-ready-only input { accent-color: #7c5cff; margin: 0; }
.type-chip {
  flex-shrink: 0;
  font-size: .62rem;
  padding: .08rem .32rem;
  border-radius: .25rem;
  margin-top: .15rem;
}
.type-chip.chat { color: #7dd3e8; background: rgba(0,202,224,.12); }
.type-chip.video { color: #f0a05a; background: rgba(234,88,12,.15); }
.type-chip.image { color: #c084fc; background: rgba(168,85,247,.15); }
.type-chip.audio { color: #f9a8d4; background: rgba(236,72,153,.15); }
.type-chip.doc { color: #93c5fd; background: rgba(59,130,246,.15); }
.type-chip.tool { color: #86efac; background: rgba(34,197,94,.15); }

/* tag cloud in inspiration sidebar */
.tag-cloud { padding: .3rem .55rem .8rem; display: flex; flex-wrap: wrap; gap: .35rem; overflow: auto; flex: 1; }
.tag-cloud button, .tag-pill {
  padding: .18rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text-secondary);
  font-size: .72rem;
}
.tag-cloud button.is-on, .tag-pill.is-on {
  background: rgba(0,202,224,.15);
  border-color: rgba(0,202,224,.4);
  color: var(--color-primary);
}
.tag-search-row { display: flex; gap: .35rem; padding: .2rem .55rem .45rem; }
.tag-search-row input {
  flex: 1; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .4rem; padding: .3rem .5rem; font-size: .75rem; outline: none;
}

.sb-account {
  flex-shrink: 0;
  margin: .4rem .55rem .7rem;
  padding: .55rem .65rem;
  border-radius: .7rem;
  border: 1px solid rgba(245, 197, 66, .28);
  background: rgba(245, 197, 66, .08);
  display: flex; align-items: center; gap: .55rem;
  cursor: pointer;
  color: #f3d27a;
}
.sb-account:hover { background: rgba(245, 197, 66, .14); }
.sb-account .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(245,197,66,.2);
  display: flex; align-items: center; justify-content: center;
}
.sb-account .t { font-size: .82rem; font-weight: 600; color: #f3d27a; }
.sb-account .s { font-size: .65rem; color: rgba(243,210,122,.7); }

/* Main */
.app-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  position: relative;
  background: #0b0c10;
}

.app-top {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3.5rem;
  display: flex; align-items: center;
  padding: 0 .85rem;
  z-index: 15;
  pointer-events: none;
}
.app-top > * { pointer-events: auto; }
.top-left { display: flex; align-items: center; gap: .45rem; }
.collapse-btn {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(20,22,28,.7);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
}
.collapse-btn:hover { color: #fff; border-color: rgba(0,202,224,.4); }
.btn-newchat {
  height: 2rem;
  padding: 0 .8rem;
  border-radius: 999px;
  font-size: .8rem;
  display: inline-flex; align-items: center; gap: .3rem;
}
.btn-gift {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid rgba(245,197,66,.35);
  color: #F5C542;
  background: rgba(245,197,66,.08);
  display: flex; align-items: center; justify-content: center;
}
.model-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: .9rem; color: var(--text-secondary); font-weight: 500;
}
.top-right {
  margin-left: auto;
  display: flex; align-items: center; gap: .45rem;
}
.btn-login-gold {
  height: 2rem;
  padding: 0 .9rem;
  border-radius: 999px;
  font-size: .8rem;
  display: inline-flex; align-items: center; gap: .3rem;
}
.btn-dl-cyan {
  height: 2rem;
  padding: 0 .85rem;
  border-radius: 999px;
  font-size: .8rem;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex; align-items: center; gap: .3rem;
  box-shadow: var(--glow);
  font-weight: 600;
}
.btn-theme-grid {
  width: 2rem; height: 2rem; border-radius: .55rem;
  background: conic-gradient(from 180deg, #5B9CFF, #00CAE0, #F5C542, #ec4899, #7850ff, #5B9CFF);
  box-shadow: 0 0 0 2px rgba(255,255,255,.08);
}

/* History rail */
.hist-rail {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  writing-mode: vertical-rl;
  padding: .7rem .35rem;
  border-radius: 0 .6rem .6rem 0;
  background: #1a1c22;
  border: 1px solid rgba(255,255,255,.08);
  border-left: none;
  color: var(--text-secondary);
  font-size: .75rem;
  letter-spacing: .12em;
  display: flex; align-items: center; gap: .35rem;
}
.hist-rail:hover { color: var(--color-primary); }
body.sidebar-collapsed .hist-rail { left: .15rem; }

/* Canvas */
.chat-canvas {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 10.5rem;
  position: relative;
}
.spark {
  width: 64px; height: 64px;
  margin-bottom: 1.4rem;
  color: #5ee6f0;
  filter: drop-shadow(0 0 12px rgba(0,202,224,.5));
}
.model-intro {
  max-width: 36rem;
  text-align: center;
  padding: .85rem 1.1rem;
  border-radius: .85rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(20,22,28,.7);
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.7;
}

/* Composer */
.composer-wrap {
  position: absolute;
  left: 50%; bottom: 1.15rem;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 4rem));
  z-index: 10;
}
.composer {
  background: #16181e;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.05rem;
  padding: .7rem .75rem .55rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.composer-top { display: flex; gap: .6rem; align-items: flex-start; }
.attach-tile {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: .55rem;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem;
  font-size: .62rem; color: var(--text-tertiary);
}
.composer textarea {
  flex: 1; min-height: 52px; max-height: 160px;
  background: transparent; border: 0; outline: none; resize: none;
  color: var(--text-primary); font-size: .88rem; line-height: 1.55;
}
.composer-bottom {
  display: flex; align-items: center; gap: .4rem;
  margin-top: .45rem; padding-top: .15rem;
  flex-wrap: wrap;
}
.tool-chip {
  display: inline-flex; align-items: center; gap: .28rem;
  height: 1.7rem; padding: 0 .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text-secondary);
  font-size: .72rem;
}
.tool-chip:hover { border-color: rgba(0,202,224,.35); color: var(--color-primary); }
.price-hint {
  margin-left: auto;
  font-size: .72rem; color: var(--text-tertiary);
  display: inline-flex; align-items: center; gap: .25rem;
}
.send-btn, .help-fab {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: #1c1e24;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  position: absolute;
}
.send-btn { right: -2.6rem; bottom: 2.6rem; }
.help-fab { right: -2.6rem; bottom: 0; }
.send-btn:hover, .help-fab:hover { color: #fff; border-color: rgba(0,202,224,.4); }

/* Inspiration main chrome */
.insp-chrome {
  display: none;
  flex-direction: column;
  flex: 1; min-height: 0;
  padding: 3.6rem 1rem 1rem;
}
.page-app[data-menu="linggan"] .insp-chrome { display: flex; }
.page-app[data-menu="linggan"] .chat-canvas,
.page-app[data-menu="linggan"] .composer-wrap,
.page-app[data-menu="linggan"] .hist-rail { display: none; }
.page-app[data-menu="zhinengti"] .composer-wrap,
.page-app[data-menu="zhinengti"] .chat-canvas .spark,
.page-app[data-menu="zhinengti"] .chat-canvas .model-intro { display: none; }

.insp-toolbar {
  display: flex; align-items: center; gap: .55rem;
  flex-wrap: wrap;
  padding: 0 .4rem .8rem;
}
.insp-tabs { display: flex; gap: .35rem; }
.insp-tabs button {
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--text-secondary);
}
.insp-tabs button.is-on { background: var(--color-primary); color: #061016; font-weight: 600; }
.insp-types, .insp-price { display: flex; gap: .15rem; margin-left: .4rem; }
.insp-types button, .insp-price button, .insp-sort {
  padding: .3rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  color: var(--text-secondary);
}
.insp-types button.is-on, .insp-price button.is-on {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.insp-sort {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.1);
  display: inline-flex; align-items: center; gap: .3rem;
}
.insp-grid {
  flex: 1; min-height: 0; overflow: auto;
  columns: 5; column-gap: .7rem;
  padding: .2rem .4rem 2rem;
}
.insp-grid .insp-card { margin-bottom: .7rem; }
.client-chip {
  position: absolute; right: 1.2rem; top: 50%;
  z-index: 16;
  padding: .4rem .7rem;
  border-radius: .7rem 0 0 .7rem;
  background: #1a1c22;
  border: 1px solid rgba(255,255,255,.1);
  color: #9feaf3;
  font-size: .78rem;
  display: none;
  align-items: center; gap: .35rem;
}
.page-app[data-menu="linggan"] .client-chip { display: inline-flex; }

.float-collapse {
  display: none;
  position: fixed; top: 1.1rem; left: .85rem; z-index: 40;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20,24,30,.8);
  color: #fff;
  align-items: center; justify-content: center;
}
body.sidebar-collapsed .float-collapse { display: inline-flex; }

@media (max-width: 1200px) { .insp-grid { columns: 4; } }
@media (max-width: 900px) { .insp-grid { columns: 3; } .insp-toolbar { padding-right: 5rem; } }

.page-app[data-menu="linggan"] .btn-newchat,
.page-app[data-menu="linggan"] .top-left .btn-gift,
.page-app[data-menu="linggan"] .model-center { display: none; }
.page-app[data-menu="linggan"] .insp-chrome { padding-top: 3.4rem; }
.page-app[data-menu="zhinengti"] .model-center { opacity: .0; }

/* ---- Enriched workspace ---- */
.page-app[data-menu="zhinengti"] .model-center { opacity: 1; }
.page-app[data-menu="zhinengti"] .chat-canvas {
  justify-content: flex-start;
  align-items: stretch;
  overflow: auto;
  padding: 4.2rem 1.5rem 2rem;
}
.page-app[data-menu="zhinengti"] .composer-wrap { display: none; }
.chat-canvas.is-thread {
  justify-content: flex-start;
  align-items: stretch;
  overflow: auto;
  padding: 4.4rem 1.5rem 10.5rem;
}
.chat-canvas.is-agent { overflow: auto; }
.model-kicker {
  font-size: .75rem; color: var(--text-tertiary);
  letter-spacing: .06em; margin-bottom: .7rem;
}
.example-row, .tag-row, .agent-suggest, .ag-prompts {
  display: flex; flex-wrap: wrap; gap: .45rem;
  justify-content: center;
  margin-top: 1rem;
  max-width: 40rem;
}
.tag-row { margin-top: .7rem; }
.ex-chip, .param-chip {
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text-secondary);
  font-size: .78rem;
  text-align: left;
  line-height: 1.4;
}
.ex-chip:hover, .param-chip:hover { border-color: rgba(0,202,224,.4); color: #fff; }
.param-chip.is-on { background: rgba(0,202,224,.15); border-color: rgba(0,202,224,.45); color: var(--color-primary); }
.chip {
  display: inline-block;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: rgba(0,202,224,.1);
  color: #9feaf3;
  font-size: .68rem;
  margin-right: .2rem;
}

.thread-log { width: min(720px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: .85rem; }
.msg { display: flex; }
.msg-user { justify-content: flex-end; }
.msg .bubble {
  max-width: 80%;
  padding: .75rem 1rem;
  border-radius: 1rem;
  line-height: 1.7;
  font-size: .88rem;
  white-space: pre-wrap;
}
.msg-user .bubble { background: #1e3a42; color: #e8f7fa; border-bottom-right-radius: .3rem; }
.msg-ai { flex-direction: column; align-items: flex-start; }
.msg-ai .bubble { background: #16181e; border: 1px solid rgba(255,255,255,.08); color: #dce3e8; border-bottom-left-radius: .3rem; }
.msg .who { font-size: .72rem; color: var(--text-tertiary); margin: 0 0 .3rem .15rem; display: flex; gap: .4rem; align-items: center; }
.demo-tag {
  font-size: .62rem; padding: .05rem .3rem; border-radius: .25rem;
  background: rgba(245,197,66,.15); color: #f3d27a;
}
.soft-cta { font-size: .78rem; color: var(--text-secondary); margin-top: .45rem; }
.linkish, .soft-cta .btn-mini { color: var(--color-primary); }

.empty-pane { text-align: center; padding: 1.4rem 1rem; color: var(--text-secondary); }
.empty-pane h3, .empty-pane h4 { color: #fff; margin: .4rem 0; }
.empty-pane p { font-size: .82rem; line-height: 1.7; }
.empty-ico { font-size: 1.6rem; color: #f3d27a; }
.empty-canvas { margin-top: 2rem; }
.btn-mini {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .7rem; padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--color-primary); color: #062026;
  font-weight: 600; font-size: .8rem;
}
.btn-mini.ghost { background: transparent; border: 1px solid rgba(255,255,255,.14); color: #dfe7ec; }

.hist-panel {
  display: none;
  position: absolute; left: 0; top: 3.5rem; bottom: 0;
  width: 16rem; z-index: 14;
  background: #14161c;
  border-right: 1px solid rgba(255,255,255,.08);
  padding: .8rem .7rem;
  overflow: auto;
}
body.hist-open .hist-panel { display: block; }
body.hist-open .hist-rail { color: var(--color-primary); }
.hist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.hist-close { color: var(--text-secondary); font-size: 1.1rem; padding: .1rem .35rem; }
.hist-item {
  display: block; width: 100%; text-align: left;
  padding: .55rem .6rem; border-radius: .5rem;
  margin-bottom: .3rem;
  background: rgba(255,255,255,.03);
  color: #dce3e8;
}
.hist-item .t { font-size: .82rem; font-weight: 600; }
.hist-item .s { font-size: .68rem; color: var(--text-tertiary); margin-top: .15rem; }
.hist-item.is-on, .hist-item:hover { background: rgba(0,202,224,.1); }
.hist-note { font-size: .68rem; color: var(--text-tertiary); margin-top: .8rem; }
.hist-rail.has-items { color: #9feaf3; }

.agent-landing { max-width: 40rem; margin: 2rem auto; text-align: center; }
.agent-landing h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.agent-landing p { color: var(--text-secondary); line-height: 1.7; }
.agent-workspace {
  width: min(820px, 100%);
  margin: 0 auto;
  background: rgba(18,20,26,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.1rem;
  padding: 1.3rem 1.4rem 1.5rem;
}
.ag-head { display: flex; gap: .9rem; align-items: flex-start; }
.ag-title { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .45rem; }
.ag-intro { color: var(--text-secondary); font-size: .86rem; line-height: 1.7; margin-top: .35rem; }
.ag-form { margin-top: 1rem; display: grid; gap: .7rem; }
.ag-field { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--text-secondary); }
.ag-field textarea, .ag-field input, .ag-field select {
  background: #12141a; border: 1px solid rgba(255,255,255,.1);
  border-radius: .55rem; padding: .55rem .7rem;
  color: #fff; font: inherit;
}
.ag-field textarea { min-height: 6rem; resize: vertical; }
.ag-params { display: flex; flex-wrap: wrap; gap: .4rem; }
.ag-actions { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; }
.btn-generate {
  padding: .55rem 1.2rem; border-radius: 999px;
  background: var(--color-primary); color: #062026;
  font-weight: 700; font-size: .88rem;
  box-shadow: var(--glow);
}
.demo-result {
  margin-top: 1.1rem; padding: 1rem 1.1rem;
  border: 1px solid rgba(0,202,224,.25);
  background: rgba(0,202,224,.06);
  border-radius: .8rem;
}
.demo-result h4 { margin: .3rem 0 .4rem; }
.demo-result p, .demo-result li { font-size: .85rem; color: var(--text-secondary); line-height: 1.7; }
.demo-result ul { padding-left: 1.1rem; margin: .4rem 0; }

.agent-row.is-active {
  background: rgba(0,202,224,.1);
  box-shadow: inset 0 0 0 1px rgba(0,202,224,.18);
}
body.hist-open .chat-canvas, body.hist-open .composer-wrap { padding-left: 16.5rem; }
body.hist-open .composer-wrap { width: min(760px, calc(100% - 20rem)); }
body.sidebar-collapsed.hist-open .hist-panel { left: 0; }

/* Live chat states */
.demo-tag.is-err { color: #fca5a5; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); }
.msg-ai.is-error .bubble { color: #fca5a5; }
.msg-ai.is-streaming .bubble::after {
  content: "▍";
  margin-left: .15rem;
  color: var(--color-primary);
  animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.send-btn.is-busy { opacity: .55; pointer-events: none; }

.msg-ai .bubble video,
.msg-ai .bubble img,
.msg-ai .bubble audio,
.msg-ai .bubble .gen-media {
  display: block;
  max-width: 100%;
  border-radius: .7rem;
  margin: .1rem 0 .45rem;
  background: #0b0d12;
}
.msg-ai .bubble video,
.msg-ai .bubble img {
  max-height: 28rem;
  object-fit: contain;
}
.msg-ai .bubble audio {
  width: min(100%, 28rem);
  background: transparent;
}
.msg-ai .bubble .media-dl {
  display: inline-block;
  font-size: .78rem;
  color: var(--color-primary);
  margin: 0 0 .4rem;
}

/* Favorites, works, account balance */
.model-row { position: relative; }
.fav-star {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  color: rgba(255,255,255,.35);
  font-size: .95rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-star:hover, .fav-star.is-on { color: #f3d27a; }
.sb-account .s b, .acct-bal {
  color: #f3d27a;
  font-weight: 700;
}
.btn-login-gold.is-user {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
  padding: .4rem 0 1.2rem;
}
.work-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .8rem;
  overflow: hidden;
  text-align: left;
  color: inherit;
}
.work-card .media {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #0b0d12;
}
.work-card audio.media { aspect-ratio: auto; height: 2.6rem; width: calc(100% - 1rem); margin: .6rem auto; }
.work-card .body { padding: .65rem .75rem .8rem; }
.work-card .t { font-size: .82rem; font-weight: 600; line-height: 1.45; }
.work-card .s { font-size: .7rem; color: var(--text-tertiary); margin-top: .25rem; }
.work-card .prompt {
  font-size: .72rem;
  color: var(--text-secondary);
  margin-top: .35rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ag-stream {
  white-space: pre-wrap;
  font-size: .88rem;
  line-height: 1.75;
  color: #dce3e8;
  min-height: 2rem;
}
.ag-stream.is-streaming::after {
  content: "▍";
  margin-left: .15rem;
  color: var(--color-primary);
  animation: caret-blink 1s step-end infinite;
}

.attach-list { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem 0 0; }
.attach-list[hidden] { display: none !important; }
.attach-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  max-width: 100%; padding: .2rem .35rem .2rem .25rem;
  border-radius: .5rem; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-secondary); font-size: .72rem;
}
.attach-chip img { width: 28px; height: 28px; object-fit: cover; border-radius: .3rem; }
.attach-chip .name { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip .rm {
  width: 1.15rem; height: 1.15rem; border: 0; background: transparent;
  color: var(--text-tertiary); border-radius: 999px; font-size: .8rem; line-height: 1;
}
.attach-chip .rm:hover { color: #fff; background: rgba(255,255,255,.12); }
.msg-user .bubble .attach-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; justify-content: flex-end; }
.msg-user .bubble .attach-row img { max-width: 160px; max-height: 120px; border-radius: .45rem; object-fit: cover; }
.msg-user .bubble .attach-name { font-size: .75rem; color: #9bd4dc; }


/* ========== Official home chrome alignment ========== */
html, body.page-app, .app-shell, .app-main { background: #0F0F12; }
.app-sidebar {
  width: 17.5rem;
  background: #141419;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sb-logo {
  height: 5.75rem;
  padding: 0 1rem;
  position: relative;
  overflow: hidden;
}
.sb-logo::before {
  content: "";
  position: absolute;
  left: -20%; top: -40%;
  width: 90%; height: 160%;
  background: radial-gradient(circle at 35% 45%, rgba(0,202,224,.16), transparent 68%);
  pointer-events: none;
}
.page-app .sb-logo .brand-tile {
  width: 2.15rem; height: 2.15rem;
  border-radius: .7rem;
  background: #0b1220;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 1.1rem rgba(0,202,224,.2);
  position: relative; z-index: 1;
}
.page-app .sb-logo .brand-word {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #FFD24A;
  font-size: 1.06rem;
  font-weight: 760;
  letter-spacing: .02em;
  position: relative; z-index: 1;
}
.page-app .sb-logo .sub { color: rgba(255,255,255,.38); position: relative; z-index: 1; }

.sb-nav { gap: .2rem; padding: .1rem .45rem .65rem; }
.sb-nav a { border-radius: .7rem; padding: .45rem 0 .35rem; }
.sb-nav a.is-active {
  color: var(--color-primary);
  background: rgba(0,202,224,.12);
  box-shadow: inset 0 0 0 1px rgba(0,202,224,.08);
}
.sb-nav a.nav-api { color: #E8B84A; }
.sb-nav a.nav-api svg { stroke: #E8B84A; }
.sb-nav a.nav-api.is-active {
  color: #FFD24A;
  background: rgba(245,197,66,.12);
  box-shadow: inset 0 0 0 1px rgba(245,197,66,.12);
}

.sb-filters { gap: .1rem; padding: .1rem .55rem .4rem; }
.sb-filters button {
  flex: 0 0 auto;
  padding: .18rem .42rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
}
.sb-filters button.is-on {
  background: #00CAE0;
  color: #062026;
  font-weight: 700;
}

.model-row, .agent-row { border-radius: .8rem; padding: .55rem .5rem; }
.model-row:hover, .agent-row:hover { background: rgba(255,255,255,.035); }
.model-row.is-active {
  background: #1C1E24;
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
  border: 0;
}
.model-row .name { justify-content: flex-start; flex-wrap: wrap; gap: .3rem .35rem; }
.model-row .type-chip { margin-left: auto; margin-top: 0; }
.model-row .desc {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.badge-pin { color: #FFD24A; font-size: .7rem; }
.type-chip { border-radius: .3rem; font-weight: 600; }
.type-chip.audio { color: #6ee7b7; background: rgba(16,185,129,.16); }
.fav-star { opacity: 0; }
.model-row:hover .fav-star, .fav-star.is-on { opacity: 1; }

.app-top .collapse-btn {
  position: absolute;
  left: 0;
  top: .85rem;
  transform: translateX(-50%);
  z-index: 25;
  width: 1.7rem; height: 1.7rem;
  background: #1A1C22;
}
body.sidebar-collapsed .app-top .collapse-btn { left: 1.1rem; transform: none; }

.model-center {
  font-size: .78rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .22rem .7rem;
  top: .85rem;
}
.btn-login-gold {
  background: transparent;
  color: #FFD24A;
  border: 1px solid rgba(255,210,74,.45);
  box-shadow: none;
  font-weight: 600;
}
.btn-login-gold:hover { background: rgba(255,210,74,.1); }
.btn-login-gold .icon { width: 1rem; height: 1rem; }
.btn-dl-cyan { background: #00CAE0; color: #062026; }
.btn-dl-cyan .icon { width: 1rem; height: 1rem; }
.btn-help-gold {
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  border: 1px solid rgba(255,210,74,.4);
  background: rgba(255,210,74,.1);
  color: #FFD24A;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.btn-theme-grid {
  width: 1.85rem; height: 1.85rem;
  border-radius: .45rem;
  background: #15161A;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  overflow: hidden;
}
.btn-theme-grid i { display: block; border-radius: 2px; }
.btn-theme-grid i:nth-child(1) { background: #00CAE0; }
.btn-theme-grid i:nth-child(2) { background: #A855F7; }
.btn-theme-grid i:nth-child(3) { background: #F59E0B; }
.btn-theme-grid i:nth-child(4) { background: #10B981; }

.hist-rail {
  background: #1A1C22;
  border-radius: 0 .85rem .85rem 0;
  color: #cfd4da;
  gap: .45rem;
  padding: .85rem .4rem .9rem;
}
.hist-rail .hist-ico {
  writing-mode: horizontal-tb;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: #FFD24A;
  color: #2a2208;
  display: inline-flex; align-items: center; justify-content: center;
}
.hist-rail .hist-ico svg { width: .85rem; height: .85rem; stroke: #2a2208; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.idle-hex-frame {
  width: 5.6rem; height: 5.6rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.35rem;
}
.idle-hex {
  width: 3.4rem; height: 3.4rem;
  position: relative;
  animation: hex-spin 10s linear infinite;
}
.idle-hex i {
  position: absolute;
  left: 50%; top: 50%;
  width: 1.05rem; height: .26rem;
  margin: -.13rem -.525rem;
  border-radius: 999px;
  background: #2EE6D6;
  box-shadow: 0 0 .55rem rgba(0,202,224,.45);
}
.idle-hex i:nth-child(1) { transform: rotate(0deg) translateY(-1.28rem); }
.idle-hex i:nth-child(2) { transform: rotate(60deg) translateY(-1.28rem); }
.idle-hex i:nth-child(3) { transform: rotate(120deg) translateY(-1.28rem); }
.idle-hex i:nth-child(4) { transform: rotate(180deg) translateY(-1.28rem); }
.idle-hex i:nth-child(5) { transform: rotate(240deg) translateY(-1.28rem); }
.idle-hex i:nth-child(6) { transform: rotate(300deg) translateY(-1.28rem); }
@keyframes hex-spin { to { transform: rotate(360deg); } }

.sy-model-hero {
  width: 11.25rem;
  height: 11.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.1rem;
  perspective: 920px;
}
.sy-model-hero-stage {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: sy-hero-float 6.8s ease-in-out infinite;
}
.sy-model-hero-stage::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -10%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.55) 0%, rgba(0,202,224,.16) 42%, transparent 72%);
  filter: blur(10px);
  transform: translateZ(-28px);
  pointer-events: none;
}
.sy-model-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.4));
}
.sy-model-hero-fallback {
  display: none;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow:
    0 18px 32px rgba(0,0,0,.4),
    0 0 28px rgba(0,202,224,.22),
    inset 0 1px 10px rgba(255,255,255,.22);
}
.sy-model-hero-stage:not(:has(.sy-model-hero-img)) .sy-model-hero-fallback {
  display: block;
}
@keyframes sy-hero-float {
  0%, 100% { transform: translateY(0) rotateX(7deg) rotateY(-9deg); }
  50% { transform: translateY(-9px) rotateX(4deg) rotateY(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sy-model-hero-stage { animation: none; transform: translateY(0) rotateX(7deg) rotateY(-7deg); }
}

.model-intro {
  max-width: 34rem;
  border: 1px solid rgba(0,202,224,.28);
  background: rgba(18,20,26,.88);
  color: #d7dde3;
  font-size: .84rem;
  line-height: 1.7;
  border-radius: .9rem;
  text-align: left;
  padding: .95rem 1.15rem;
}
.chat-canvas.is-welcome .model-kicker,
.chat-canvas.is-welcome .example-row,
.chat-canvas.is-welcome .tag-row { display: none; }
.chat-canvas.is-thread .idle-hex-frame,
.chat-canvas.is-thread .sy-model-hero { display: none; }

.composer-wrap {
  width: min(860px, calc(100% - 7.5rem));
  display: flex;
  align-items: flex-end;
  gap: .55rem;
  left: 50%;
  transform: translateX(calc(-50% - .4rem));
}
.composer-gear {
  width: 2rem; height: 2rem; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: #1A1C22;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .15rem;
}
.composer-gear .icon { width: 1rem; height: 1rem; }
.composer {
  flex: 1; min-width: 0;
  background: #1A1B1F;
  border-radius: 1.2rem;
  padding: .75rem .85rem .6rem;
}
.attach-tile {
  width: 3.35rem; height: 3.55rem;
  border-radius: .7rem;
  border: 1px dashed rgba(255,255,255,.2);
  gap: .05rem;
  color: #9aa3ab;
}
.attach-plus { font-size: 1rem; line-height: 1; }
.attach-lab { font-size: .62rem; }
.attach-count { font-size: .58rem; color: rgba(255,255,255,.38); }
.composer-aside {
  display: flex; flex-direction: column; align-items: flex-end; gap: .35rem;
  flex-shrink: 0;
}
.price-hint {
  margin-left: 0;
  font-size: .68rem;
  color: var(--text-tertiary);
}
.asset-btn {
  width: 1.6rem; height: 1.6rem;
  color: var(--text-tertiary);
  display: flex; align-items: center; justify-content: center;
}
.asset-btn .icon { width: 1rem; height: 1rem; }
.tool-chip { background: #292B33; border-color: transparent; }
.composer-rail {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  flex-shrink: 0;
  position: relative;
}
.composer-rail .send-btn,
.send-btn {
  position: static;
  width: 2.15rem; height: 2.15rem;
  background: #00CAE0;
  color: #062026;
  border: 0;
  box-shadow: 0 0 .7rem rgba(0,202,224,.35);
}
.send-btn .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2.2; }
.composer-rail > button:not(.send-btn) {
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: #1A1C22;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.composer-rail > button .icon { width: .95rem; height: .95rem; }
.help-fab {
  position: absolute;
  right: -3.15rem; bottom: 0;
  width: 2.15rem; height: 2.15rem;
  border-color: rgba(0,202,224,.35);
  color: #7ee7ef;
  background: #14161C;
}

/* Light theme for the home workspace */
html[data-theme="light"] body.page-app,
html[data-theme="light"] .app-shell,
html[data-theme="light"] .app-main { background: #F1F3F8; color: #0F1419; }
html[data-theme="light"] .app-sidebar {
  background: #EEF1F7;
  border-right-color: rgba(15,20,25,.06);
}
html[data-theme="light"] .sb-logo::before {
  background: radial-gradient(circle at 35% 45%, rgba(0,161,194,.16), transparent 68%);
}
html[data-theme="light"] .page-app .sb-logo .brand-word { color: #E0A800; }
html[data-theme="light"] .page-app .sb-logo .sub { color: rgba(15,20,25,.4); }
html[data-theme="light"] .sb-nav a:hover { background: rgba(0,0,0,.04); color: #0F1419; }
html[data-theme="light"] .sb-nav a.is-active { background: rgba(0,161,194,.12); }
html[data-theme="light"] .sb-vendor,
html[data-theme="light"] .sb-search,
html[data-theme="light"] .tag-search-row input,
html[data-theme="light"] .tag-cloud button,
html[data-theme="light"] .tag-pill {
  background: #fff;
  border-color: rgba(15,20,25,.08);
  color: #5b6570;
}
html[data-theme="light"] .sb-search input { color: #0F1419; }
html[data-theme="light"] .model-row .name, html[data-theme="light"] .agent-row .name { color: #0F1419; }
html[data-theme="light"] .badge-wait {
  background: rgba(100,116,139,.14); color: #64748b;
}
html[data-theme="light"] .model-wait-note {
  color: #92400e;
  background: rgba(245,158,11,.1);
  border-color: rgba(180,83,9,.22);
}
html[data-theme="light"] .sb-ready-only { color: #5b6570; }
html[data-theme="light"] .model-row.is-active {
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,20,25,.08);
}
html[data-theme="light"] .model-row:hover { background: rgba(15,20,25,.04); }
html[data-theme="light"] .sb-account {
  border-color: rgba(91,89,236,.35);
  background: rgba(91,89,236,.06);
  color: #5B59EC;
}
html[data-theme="light"] .sb-account .t { color: #5B59EC; }
html[data-theme="light"] .sb-account .s, html[data-theme="light"] .sb-account .s b, html[data-theme="light"] .acct-bal { color: rgba(91,89,236,.7); }
html[data-theme="light"] .sb-account .av { background: rgba(91,89,236,.12); }
html[data-theme="light"] .collapse-btn {
  background: #fff;
  color: #5b6570;
  border-color: rgba(15,20,25,.1);
}
html[data-theme="light"] .model-center {
  background: #fff;
  border-color: rgba(15,20,25,.08);
  color: #5b6570;
}
html[data-theme="light"] .btn-login-gold {
  background: #5B59EC;
  color: #fff;
  border-color: transparent;
}
html[data-theme="light"] .btn-help-gold {
  background: #fff;
  color: #E0A800;
  border-color: rgba(224,168,0,.35);
}
html[data-theme="light"] .btn-gift {
  background: #fff;
  border-color: rgba(224,168,0,.35);
}
html[data-theme="light"] .btn-theme-grid { background: #fff; box-shadow: 0 0 0 1px rgba(15,20,25,.08); }
html[data-theme="light"] .hist-rail {
  background: #fff;
  color: #5b6570;
  border-color: rgba(15,20,25,.08);
}
html[data-theme="light"] .idle-hex-frame {
  width: 6.4rem; height: 6.4rem;
  border-radius: 1.35rem;
  background: #1A1C22;
}
html[data-theme="light"] .sy-model-hero {
  background: #1A1C22;
  border-radius: 1.75rem;
  padding: .85rem;
  box-sizing: border-box;
}
html[data-theme="light"] .model-intro {
  background: #fff;
  color: #3a434b;
  border-color: rgba(0,161,194,.2);
  box-shadow: 0 8px 24px rgba(15,20,25,.06);
}
html[data-theme="light"] .composer { background: #fff; border-color: rgba(15,20,25,.06); box-shadow: 0 10px 32px rgba(15,20,25,.08); }
html[data-theme="light"] .attach-tile { border-color: rgba(15,20,25,.2); color: #7a858e; background: #F7F8FA; }
html[data-theme="light"] .attach-count { color: rgba(15,20,25,.35); }
html[data-theme="light"] .tool-chip { background: #F3F4F6; color: #4b5563; border-color: transparent; }
html[data-theme="light"] .composer-gear,
html[data-theme="light"] .composer-rail > button:not(.send-btn),
html[data-theme="light"] .help-fab {
  background: #fff;
  border-color: rgba(15,20,25,.1);
  color: #5b6570;
}
html[data-theme="light"] .help-fab { color: #00A1C2; border-color: rgba(0,161,194,.3); }
html[data-theme="light"] .msg-ai .bubble, html[data-theme="light"] .ag-stream { color: #1f2933; }

.model-row .vicon.has-img, .agent-row .vicon.has-img { background: transparent !important; overflow: visible; }
.vicon.has-img { background: transparent !important; }
.vicon.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }

.agent-row .agent-logo, .ag-head .agent-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .05rem;
}
.ag-head .agent-logo { width: 40px; height: 40px; border-radius: 10px; }
.agent-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.agent-logo.is-fallback {
  background: #123;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

.agent-logo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-top: .05rem;
}
.agent-logo-wrap .agent-logo { width: 100%; height: 100%; margin-top: 0; }
.model-logo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-top: .1rem;
  overflow: visible;
}
.model-logo-wrap .vicon { width: 100%; height: 100%; margin-top: 0; background: transparent !important; }
.model-pin { left: -8px; top: -8px; }
.agent-pin, .model-pin {
  position: absolute;
  left: -5px;
  top: -5px;
  z-index: 3;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 24, 30, .94);
  color: #f3f6f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.agent-row:hover .agent-pin,
.agent-row:focus-within .agent-pin,
.agent-pin.is-on,
.agent-row.is-pinned .agent-pin,
.model-row:hover .model-pin,
.model-row:focus-within .model-pin,
.model-pin.is-on,
.model-row.is-pinned .model-pin {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: none) {
  .agent-pin, .model-pin { opacity: 1; pointer-events: auto; }
}
.agent-pin svg, .model-pin svg { display: block; flex-shrink: 0; }
.agent-pin.is-on, .model-pin.is-on { color: #FFD24A; }
.agent-pin-tip, .model-pin-tip {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: .68rem;
  line-height: 1.2;
  padding: .18rem .42rem .18rem 1.15rem;
  border-radius: 999px;
  background: rgba(20, 24, 30, .94);
  color: #f3f6f8;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.agent-logo-wrap:hover .agent-pin-tip,
.agent-pin:focus-visible .agent-pin-tip,
.model-logo-wrap:hover .model-pin-tip,
.model-pin:focus-visible .model-pin-tip { opacity: 1; }
html[data-theme="light"] .agent-pin,
html[data-theme="light"] .agent-pin-tip,
html[data-theme="light"] .model-pin,
html[data-theme="light"] .model-pin-tip {
  background: #fff;
  color: #1f2933;
  box-shadow: 0 1px 4px rgba(15,20,25,.16);
}
html[data-theme="light"] .agent-pin.is-on,
html[data-theme="light"] .model-pin.is-on { color: #c48a00; }



/* ===== Official right-side action menu ===== */
.app-top { overflow: visible; }
.top-right { position: relative; overflow: visible; }
.action-menu-wrap { position: relative; z-index: 40; }
.action-menu-panel {
  position: absolute;
  top: calc(100% + .75rem);
  right: 0;
  width: 24.5rem;
  padding: 1rem 1rem .875rem;
  border-radius: 1.125rem;
  background: radial-gradient(120% 80% at 100% 0%, rgba(0,202,224,.08), transparent 55%),
              radial-gradient(100% 80% at 0% 100%, rgba(168,85,247,.08), transparent 55%),
              linear-gradient(160deg, #1c1e26eb, #12141aeb);
  border: .0625rem solid rgba(255,255,255,.08);
  box-shadow: 0 1.5rem 3.75rem #0000008c, 0 0 0 .0625rem #ffffff0a, inset 0 .0625rem #ffffff0f;
  backdrop-filter: blur(1.5rem) saturate(1.6);
  -webkit-backdrop-filter: blur(1.5rem) saturate(1.6);
  overflow: visible;
  isolation: isolate;
  z-index: 50;
}
.action-menu-panel[hidden] { display: none; }
.action-menu-scroll {
  position: relative;
  z-index: 1;
  max-height: calc(100vh - 8.125rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -.4rem;
  padding-right: .35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.action-menu-scroll::-webkit-scrollbar { width: .375rem; }
.action-menu-scroll::-webkit-scrollbar-thumb { background: #ffffff2e; border-radius: 99px; }
.action-menu-section + .action-menu-section { margin-top: 1rem; }
.section-title { display: flex; align-items: center; gap: .4375rem; margin-bottom: .5625rem; padding: 0 .125rem; }
.section-title-bar { width: .1875rem; height: .75rem; border-radius: .125rem; box-shadow: 0 0 .4375rem currentColor; }
.section-title-text { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .02em; }
.section-title-sub { margin-left: auto; font-size: .5625rem; font-weight: 600; letter-spacing: .14em; color: #ffffff52; }
.section-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
.menu-action-item {
  position: relative;
  padding: .75rem;
  border: .0625rem solid rgba(255,255,255,.06);
  border-radius: .75rem;
  background: linear-gradient(155deg, #ffffff0b, #ffffff04);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5625rem;
  text-align: left;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s, background .3s, box-shadow .3s;
}
.menu-action-top-bar {
  position: absolute; top: 0; left: .5rem; right: .5rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, transparent), transparent);
  opacity: 0; transition: opacity .3s;
}
.menu-action-item:hover {
  transform: translateY(-.1875rem);
  border-color: var(--accent-border, rgba(255,255,255,.18));
  background: radial-gradient(120% 100% at 0% 0%, var(--accent-soft, transparent) 0%, transparent 60%), linear-gradient(155deg, #ffffff0f, #ffffff05);
  box-shadow: 0 .625rem 1.25rem #0000004d, 0 0 1.25rem var(--accent-glow, transparent);
}
.menu-action-item:hover .menu-action-top-bar { opacity: 1; }
.menu-action-icon-wrap {
  position: relative;
  width: 2.125rem; height: 2.125rem; flex: 0 0 2.125rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: .5625rem;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft, rgba(255,255,255,.08)) 0%, rgba(255,255,255,.02) 70%);
  border: 1px solid var(--accent-border, rgba(255,255,255,.08));
  transition: transform .3s;
}
.menu-action-icon-glow {
  position: absolute; inset: -.25rem; border-radius: .8125rem;
  background: var(--accent-glow, transparent); filter: blur(.5rem); opacity: 0; z-index: -1;
}
.menu-action-item:hover .menu-action-icon-wrap { transform: scale(1.08) rotate(-3deg); }
.menu-action-item:hover .menu-action-icon-glow { opacity: .7; }
.menu-action-icon { width: 1.25rem; height: 1.25rem; display: flex; }
.menu-action-icon svg { width: 100%; height: 100%; }
.menu-action-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.menu-action-label { font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.menu-action-desc { font-size: .6875rem; line-height: 1.35; color: #ffffff7a; }
.menu-action-chevron {
  position: absolute; top: .5rem; right: .4375rem;
  color: var(--accent, rgba(255,255,255,.4));
  opacity: 0; transform: translateX(-.25rem);
  transition: opacity .3s, transform .3s; pointer-events: none;
}
.menu-action-item:hover .menu-action-chevron,
.menu-action-chevron.is-on { opacity: .9; transform: none; }

.zhu-ti-xia-la {
  position: absolute;
  top: 5.4rem;
  right: calc(100% + .5rem);
  width: 16.5rem;
  z-index: 60;
}
.zhu-ti-xia-la[hidden] { display: none; }
.zhu-ti-xia-la-mian {
  display: flex; flex-direction: column; padding: .35rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #242630fa, #161820fa);
  color: rgba(255,255,255,.9);
  border: 1px solid #ffffff1a;
  box-shadow: 0 12px 36px #00000080, inset 0 1px #ffffff0f;
}
.zhu-ti-xia-la-xiang {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%; padding: .55rem .75rem; border: 0; border-radius: .75rem;
  background: transparent; color: inherit; font: inherit; font-size: .875rem; text-align: left; cursor: pointer;
}
.zhu-ti-xia-la-xiang:hover, .zhu-ti-xia-la-xiang[aria-selected="true"] { background: rgba(255,255,255,.06); }
.zhu-ti-xia-la-zuo { display: inline-flex; align-items: center; gap: .6rem; }
.zhu-ti-xia-la-se { flex-shrink: 0; width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.zhu-ti-xia-la-se.is-dark { background: #0f0f12; }
.zhu-ti-xia-la-se.is-light { background: #f8f9fa; }
.zhu-ti-xia-la-se.is-green { background: #d6ecdc; }
.zhu-ti-xia-la-se.is-blue { background: #d2e2f6; }
.zhu-ti-xia-la-se.is-system { background: linear-gradient(135deg, #f8f9fa 50%, #0f0f12 50%); }
.zhu-ti-xia-la-gou { color: #00CAE0; display: flex; }
.zhu-ti-xia-la-zi-ding-yi { margin-top: .3rem; padding: .6rem .75rem .5rem; border-top: 1px solid rgba(255,255,255,.08); }
.zhu-ti-xia-la-xiao-biao { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.65); }
.zhu-ti-xia-la-se-ban { display: grid; grid-template-columns: repeat(5, 1.75rem); justify-content: space-between; row-gap: .5rem; }
.zhu-ti-xia-la-se-kuai {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15); cursor: pointer;
}
.zhu-ti-xia-la-se-kuai:hover { transform: scale(1.08); }
.zhu-ti-xia-la-se-kuai.is-xuan { box-shadow: 0 0 0 2px #161820, 0 0 0 3.5px #00CAE0; }
.zhu-ti-xia-la-se-kuai.is-qu-se { border-style: dashed; overflow: hidden; background: rgba(255,255,255,.06); }
.zhu-ti-xia-la-qu-se { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.zhu-ti-xia-la-bei-jing {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  width: 100%; margin-top: .3rem; padding: .55rem .75rem;
  border: 0; border-top: 1px solid rgba(255,255,255,.08);
  background: transparent; color: inherit; font: inherit; font-size: .875rem; text-align: left; cursor: pointer;
}
.zhu-ti-xia-la-bei-jing:hover { background: rgba(255,255,255,.06); }
.zhu-ti-xia-la-bei-jing-tu { color: #00CAE0; width: 1.1rem; height: 1.1rem; display: flex; flex-shrink: 0; }
.zhu-ti-xia-la-bei-jing-tu svg { width: 100%; height: 100%; }
.zhu-ti-xia-la-bei-jing-wen { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.zhu-ti-xia-la-bei-jing-ci { font-size: .7rem; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

html[data-theme="light"] .action-menu-panel {
  background: radial-gradient(120% 80% at 100% 0%, rgba(0,202,224,.06), transparent 55%),
              radial-gradient(100% 80% at 0% 100%, rgba(168,85,247,.05), transparent 55%),
              linear-gradient(160deg, #fffffffa, #f7f9fcfa);
  border-color: #0000000f;
  box-shadow: 0 1.5rem 3rem #0f172a1f, 0 0 0 .0625rem #fff9, inset 0 .0625rem #fffc;
}
html[data-theme="light"] .section-title-text { color: #282d37; }
html[data-theme="light"] .section-title-sub { color: #0f172a59; }
html[data-theme="light"] .menu-action-item {
  border-color: #0f172a12;
  background: linear-gradient(155deg, #fffffff2, #f8fafcd9);
  color: #1e232d;
  box-shadow: 0 1px 2px #0f172a08;
}
html[data-theme="light"] .menu-action-item:hover {
  background: radial-gradient(120% 100% at 0% 0%, var(--accent-soft, transparent) 0%, transparent 60%), linear-gradient(155deg, #fff, #fcfdfef2);
  color: #0f141c;
}
html[data-theme="light"] .menu-action-desc { color: #0f172a7a; }
html[data-theme="light"] .zhu-ti-xia-la-mian {
  background: #fff;
  color: #1e232d;
  border-color: rgba(15,23,42,.1);
  box-shadow: 0 12px 36px rgba(15,23,42,.16);
}
html[data-theme="light"] .zhu-ti-xia-la-xiang:hover,
html[data-theme="light"] .zhu-ti-xia-la-xiang[aria-selected="true"],
html[data-theme="light"] .zhu-ti-xia-la-bei-jing:hover { background: rgba(15,23,42,.05); }
html[data-theme="light"] .zhu-ti-xia-la-xiao-biao,
html[data-theme="light"] .zhu-ti-xia-la-bei-jing-ci { color: rgba(15,23,42,.55); }
html[data-theme="light"] .zhu-ti-xia-la-zi-ding-yi,
html[data-theme="light"] .zhu-ti-xia-la-bei-jing { border-color: rgba(15,23,42,.1); }

/* tinted light themes */
html[data-tint="green"] body.page-app,
html[data-tint="green"] .app-shell,
html[data-tint="green"] .app-main { background: #d6ecdc !important; }
html[data-tint="blue"] body.page-app,
html[data-tint="blue"] .app-shell,
html[data-tint="blue"] .app-main { background: #d2e2f6 !important; }
html.has-custom-bg body.page-app,
html.has-custom-bg .app-shell,
html.has-custom-bg .app-main { background: var(--sy-custom-bg) !important; }

#sy-bg-layer {
  display: none;
  position: fixed; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}
#sy-bg-layer.is-on { display: block; }
#sy-bg-layer.is-on::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(8,10,14,.45);
}
html[data-theme="light"] #sy-bg-layer.is-on::after { background: rgba(255,255,255,.28); }
body.page-app, .app-shell { position: relative; z-index: 1; }

html[data-privacy="on"] .btn-login-gold,
html[data-privacy="on"] .sb-account .t,
html[data-privacy="on"] .sb-account .s,
html[data-privacy="on"] .price-hint {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.sy-sheet {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
}
.sy-sheet.is-open { display: flex; }
.sy-sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sy-sheet-card {
  position: relative; z-index: 1;
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  overflow: auto;
  padding: 1.25rem 1.3rem 1.2rem;
  border-radius: 1rem;
  background: #17181e;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.45);
  color: rgba(255,255,255,.9);
}
.sy-sheet-card h3 { margin: 0 1.5rem .75rem 0; font-size: 1.05rem; }
.sy-sheet-body p { margin: 0 0 .75rem; font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.72); }
.sy-sheet-links { margin: 0 0 .8rem; padding-left: 1.1rem; }
.sy-sheet-links a { color: #00CAE0; }
.sy-sheet-close {
  position: absolute; top: .7rem; right: .8rem;
  width: 1.8rem; height: 1.8rem; border: 0; border-radius: 50%;
  background: transparent; color: rgba(255,255,255,.6); font-size: 1.2rem; cursor: pointer;
}
.sy-sheet-row { display: flex; gap: .6rem; margin-bottom: .8rem; }
.sy-sheet-note { font-size: .75rem !important; color: rgba(255,255,255,.45) !important; }
html[data-theme="light"] .sy-sheet-card { background: #fff; color: #1e232d; border-color: rgba(15,23,42,.1); }
html[data-theme="light"] .sy-sheet-body p { color: rgba(15,23,42,.7); }
html[data-theme="light"] .sy-sheet-close { color: rgba(15,23,42,.5); }

@media (max-width: 900px) {
  .action-menu-panel { width: min(24.5rem, calc(100vw - 1.2rem)); right: 0; }
  .zhu-ti-xia-la { right: 0; top: auto; bottom: calc(100% + .4rem); }
}


/* ===== Official 邀请有礼 + 商务合作 top-right portals ===== */
.top-right { gap: .55rem; }
.yaoqing-trigger {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: .0625rem solid rgba(251,146,60,.42);
  background: radial-gradient(120% 120% at 30% 25%, #ffd69929, #fff0 65%), linear-gradient(155deg, #2e2216e6, #1c140ee6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(1.25rem) saturate(1.4);
  -webkit-backdrop-filter: blur(1.25rem) saturate(1.4);
  box-shadow: 0 .4rem 1.1rem #00000059, inset 0 .0625rem #ffffff1a;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease, box-shadow .3s ease;
  overflow: visible;
  padding: 0;
  flex: 0 0 2.25rem;
}
.yaoqing-halo {
  position: absolute;
  inset: -.5rem;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #fbbf2499, #f9731699, #f43f5e80, #fbbf2499);
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,.9) 45%, rgba(0,0,0,.4) 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, rgba(0,0,0,.9) 45%, rgba(0,0,0,.4) 72%, transparent 100%);
  opacity: .45;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  animation: triggerHaloSpin 9s linear infinite;
}
.yaoqing-trigger:hover {
  transform: translateY(-.1rem) scale(1.03);
  border-color: #fb923cbf;
  box-shadow: 0 .6rem 1.4rem #00000073, 0 0 1.2rem #f9731666, inset 0 .0625rem #ffffff24;
}
.yaoqing-trigger:hover .yaoqing-halo { opacity: .85; }
.yaoqing-trigger:active { transform: translateY(0) scale(.96); }
.yaoqing-icon-wrap {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.yaoqing-trigger:hover .yaoqing-icon-wrap { transform: scale(1.1) rotate(-8deg); }
.yaoqing-icon { width: 100%; height: 100%; filter: drop-shadow(0 0 .3rem rgba(251,146,60,.45)); }

.agent-portal-trigger {
  position: relative;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 62.5rem;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.agent-portal-trigger:active { transform: scale(.96); }
.agent-portal-halo {
  position: absolute;
  top: -.4rem;
  right: -.4rem;
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #10b98199, #0ea5e966, #f59e0b8c, #14b8a680, #10b98199);
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,.9) 45%, rgba(0,0,0,.4) 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, rgba(0,0,0,.9) 45%, rgba(0,0,0,.4) 72%, transparent 100%);
  opacity: .4;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  animation: agentPortalHaloSpin 7s linear infinite;
  transition: opacity .3s ease;
}
.agent-portal-trigger:hover .agent-portal-halo { opacity: .8; }
.agent-portal-core {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.25rem;
  border-radius: 62.5rem;
  border: .0625rem solid rgba(16,185,129,.35);
  background: radial-gradient(120% 120% at 70% 25%, #34d3991f, #fff0 65%), linear-gradient(155deg, #1e2028d9, #14161cd9);
  backdrop-filter: blur(1.25rem) saturate(1.4);
  -webkit-backdrop-filter: blur(1.25rem) saturate(1.4);
  box-shadow: 0 .4rem 1.1rem #00000059, 0 0 .7rem #10b9812e, inset 0 .0625rem #ffffff14;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.agent-portal-trigger:hover .agent-portal-core {
  border-color: #10b98199;
  box-shadow: 0 .55rem 1.4rem #00000073, 0 0 1.1rem #10b98159, inset 0 .0625rem #ffffff1f;
}
.agent-portal-label {
  max-width: 14rem;
  padding-left: .9rem;
  opacity: 1;
  transform: none;
  overflow: hidden;
  white-space: nowrap;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #ffffffeb;
}
.agent-portal-icon-wrap {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: agentPortalBeckon 5.5s ease-in-out infinite;
}
.agent-portal-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  filter: drop-shadow(0 0 .3rem rgba(16,185,129,.45));
}
.agent-portal-spark {
  fill: #fde68a;
  transform-origin: 19px 3.3px;
  animation: agentPortalSparkle 3.6s ease-in-out infinite;
}
.agent-portal-gold .agent-portal-spark { fill: #fff; }
.agent-portal-shine {
  position: absolute;
  top: 0; bottom: 0; left: -40%;
  width: 40%;
  background: linear-gradient(100deg, transparent 12%, rgba(255,255,255,.26) 50%, transparent 88%);
  transform: skew(-12deg) translate(-30%);
  pointer-events: none;
  animation: agentPortalShine 4.5s ease-in-out infinite;
}
.agent-portal-gold .agent-portal-halo {
  background: conic-gradient(from 0deg, #f59e0ba6, #fde68a66, #d9770699, #fbbf2480, #f59e0ba6);
}
.agent-portal-gold .agent-portal-core {
  border-color: #f59e0b66;
  background: radial-gradient(120% 120% at 70% 25%, #fbbf2424, #fff0 65%), linear-gradient(155deg, #221e16d9, #181510d9);
  box-shadow: 0 .4rem 1.1rem #00000059, 0 0 .7rem #f59e0b38, inset 0 .0625rem #ffffff14;
}
.agent-portal-gold:hover .agent-portal-core {
  border-color: #f59e0ba6;
  box-shadow: 0 .55rem 1.4rem #00000073, 0 0 1.1rem #f59e0b66, inset 0 .0625rem #ffffff1f;
}
.agent-portal-gold .agent-portal-icon { filter: drop-shadow(0 0 .3rem rgba(245,158,11,.5)); }
.agent-portal-gold .agent-portal-shine {
  background: linear-gradient(100deg, transparent 12%, rgba(255,244,214,.3) 50%, transparent 88%);
}

@keyframes agentPortalHaloSpin { to { transform: rotate(360deg); } }
@keyframes triggerHaloSpin { to { transform: rotate(360deg); } }
@keyframes agentPortalBeckon {
  0%, 72%, to { transform: none; }
  78% { transform: scale(1.14) rotate(-8deg); }
  84% { transform: scale(1.08) rotate(6deg); }
  90% { transform: scale(1.1) rotate(-3deg); }
  96% { transform: scale(1); }
}
@keyframes agentPortalSparkle {
  0%, 55%, to { opacity: 0; transform: scale(.4) rotate(0); }
  70% { opacity: 1; transform: scale(1.15) rotate(90deg); }
  85% { opacity: 0; transform: scale(.5) rotate(180deg); }
}
@keyframes agentPortalShine {
  0%, 58% { transform: skew(-12deg) translate(-30%); }
  to { transform: skew(-12deg) translate(400%); }
}
@media (prefers-reduced-motion: reduce) {
  .agent-portal-halo, .agent-portal-icon-wrap, .agent-portal-spark, .agent-portal-shine, .yaoqing-halo { animation: none; }
}
@media (max-width: 40rem) {
  .agent-portal-label { display: none; }
}

html[data-theme=light] .yaoqing-trigger {
  border-color: #d9770659;
  background: radial-gradient(120% 120% at 30% 25%, #ffffffe6, #fff0 65%), linear-gradient(155deg, #fff8edf2, #fef0dbf2);
  box-shadow: 0 .4rem 1.1rem #78350f1f, inset 0 .0625rem #ffffffe6;
}
html[data-theme=light] .yaoqing-icon-wrap { color: #d97706; }
html[data-theme=light] .yaoqing-trigger:hover {
  border-color: #d9770699;
  box-shadow: 0 .55rem 1.4rem #78350f2e, 0 0 1.1rem #f9731647, inset 0 .0625rem #fffffff2;
}
html[data-theme=light] .agent-portal-core {
  border-color: #05966959;
  background: radial-gradient(120% 120% at 70% 25%, rgba(16,185,129,.08), transparent 65%), linear-gradient(155deg, #fffffff5, #f5f7faf5);
  box-shadow: 0 .2rem .6rem #0f172a14, 0 0 .6rem #10b98124, inset 0 .0625rem #fffc;
}
html[data-theme=light] .agent-portal-halo { opacity: .2; }
html[data-theme=light] .agent-portal-label { color: #1e232d; }
html[data-theme=light] .agent-portal-icon { filter: drop-shadow(0 0 .2rem rgba(5,150,105,.3)); }
html[data-theme=light] .agent-portal-gold .agent-portal-core {
  border-color: #d9770666;
  background: radial-gradient(120% 120% at 70% 25%, rgba(245,158,11,.1), transparent 65%), linear-gradient(155deg, #fffdf8f5, #fcf8f0f5);
  box-shadow: 0 .2rem .6rem #0f172a14, 0 0 .6rem #f59e0b2e, inset 0 .0625rem #fffc;
}
html[data-theme=light] .agent-portal-gold:hover .agent-portal-core {
  border-color: #d9770699;
  box-shadow: 0 .4rem 1rem #0f172a1f, 0 0 1rem #f59e0b4d;
}
html[data-theme=light] .agent-portal-gold .agent-portal-halo { opacity: .25; }
html[data-theme=light] .agent-portal-gold .agent-portal-icon { filter: drop-shadow(0 0 .2rem rgba(217,119,6,.35)); }
html[data-theme=light] .agent-portal-gold .agent-portal-spark { fill: #b45309; }

#sy-partner-overlay { display: none !important; }
#sy-partner-overlay.is-open { display: flex !important; }

/* Official 商务合作 / 成为官方合作伙伴 modal */
#sy-partner-overlay {
  --premium-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);--tech-cyan: var(--color-primary);--premium-purple: #9333EA;--bg-deep: #050810;
  --w-20: rgba(255,255,255,.2);
  --w-30: rgba(255,255,255,.3);
  --w-70: rgba(255,255,255,.7);
  --b-30: rgba(0,0,0,.3);
  --c-primary-30: color-mix(in srgb, var(--color-primary, #00CAE0) 30%, transparent);
  --c-primary-50: color-mix(in srgb, var(--color-primary, #00CAE0) 50%, transparent);
}
#sy-partner-overlay{position:fixed;inset:0;background:#000000f2;display:flex;align-items:center;justify-content:center;z-index:10000;overflow:hidden}#sy-partner-overlay .particle-canvas{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:0}#sy-partner-overlay .star-canvas{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:5;border-radius:1.5rem}#sy-partner-overlay .agent-container{position:relative;width:92vw;max-width:1400px;height:85vh;max-height:none;background:linear-gradient(145deg,#050810fa,#080c18fa,#050810fa);border-radius:1.5rem;display:flex;flex-direction:column;overflow:hidden;z-index:2;opacity:0;transform:scale(.9) translateY(50px);transition:all .6s cubic-bezier(.34,1.56,.64,1)}#sy-partner-overlay .agent-container.show{opacity:1;transform:scale(1) translateY(0)}#sy-partner-overlay .glow-border{position:absolute;inset:-2px;border-radius:1.5rem;background:conic-gradient(from var(--border-angle, 0deg),transparent 0%,#FFD700 10%,var(--color-primary) 30%,#9333EA 50%,var(--color-primary) 70%,#FFD700 90%,transparent 100%);animation:rotateBorder-db3465b6 6s linear infinite;z-index:0;pointer-events:none;opacity:.8}#sy-partner-overlay .glow-border-inner{position:absolute;inset:0;border-radius:1.5rem;background:linear-gradient(145deg,#050810fc,#080c18fc,#050810fc);z-index:1;pointer-events:none}@property --border-angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}@keyframes rotateBorder-db3465b6{to{--border-angle: 360deg}}#sy-partner-overlay .agent-close{position:absolute;top:1.5rem;right:1.5rem;width:3rem;height:3rem;border-radius:50%;border:2px solid var(--w-20);background:var(--b-30);color:var(--w-70);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;z-index:100;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}#sy-partner-overlay .agent-close:hover{border-color:var(--color-primary);color:var(--color-primary);transform:rotate(90deg) scale(1.1);box-shadow:0 0 20px var(--c-primary-50)}#sy-partner-overlay .agent-content{flex:1;overflow-y:auto;overflow-x:hidden;padding:3rem 4rem 2rem;scrollbar-width:thin;scrollbar-color:var(--c-primary-30) transparent;position:relative;z-index:10}#sy-partner-overlay .agent-content::-webkit-scrollbar{width:6px}#sy-partner-overlay .agent-content::-webkit-scrollbar-track{background:transparent}#sy-partner-overlay .agent-content::-webkit-scrollbar-thumb{background:var(--c-primary-30);border-radius:3px}#sy-partner-overlay .agent-header{text-align:center;margin-bottom:2.5rem;position:relative;opacity:0;transform:translateY(-30px);transition:all .8s cubic-bezier(.34,1.56,.64,1);padding:1rem 0}#sy-partner-overlay .agent-header.animate{opacity:1;transform:translateY(0)}#sy-partner-overlay .title-group{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:1.25rem}#sy-partner-overlay .header-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:linear-gradient(135deg,#ffd70033,#ffa50026);border:1px solid rgba(255,215,0,.5);border-radius:2rem;position:relative;overflow:hidden;flex-shrink:0}#sy-partner-overlay .badge-glow{position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,215,0,.4),transparent);animation:badgeShine-db3465b6 2.5s ease-in-out infinite}@keyframes badgeShine-db3465b6{0%,to{left:-100%}50%{left:100%}}#sy-partner-overlay .badge-icon{width:1.25rem;height:1.25rem;display:flex;align-items:center;justify-content:center}#sy-partner-overlay .badge-icon svg{width:100%;height:100%}#sy-partner-overlay .badge-label{font-size:.85rem;font-weight:600;color:gold;letter-spacing:.1em}#sy-partner-overlay .partner-tag{display:inline-flex;align-items:center;padding:.4rem 1.2rem;border:2px solid rgba(255,165,0,.7);border-radius:.5rem;flex-shrink:0}#sy-partner-overlay .partner-tag-text{font-size:1rem;font-weight:600;color:orange;letter-spacing:.1em}#sy-partner-overlay .main-title{position:relative;display:inline-block;margin:0}#sy-partner-overlay .title-text{font-size:3rem;font-weight:800;letter-spacing:.08em;background:linear-gradient(135deg,gold,orange 30%,gold,#ffec8b 70%,gold);background-size:200% auto;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:titleGradient-db3465b6 4s ease-in-out infinite}@keyframes titleGradient-db3465b6{0%,to{background-position:0% center}50%{background-position:100% center}}#sy-partner-overlay .title-shine{display:none}#sy-partner-overlay .header-divider{display:flex;align-items:center;justify-content:center;gap:.75rem;margin-bottom:1rem}#sy-partner-overlay .divider-dot{width:6px;height:6px;border-radius:50%;background:linear-gradient(135deg,var(--color-primary),#9333EA);animation:dotPulse-db3465b6 2s ease-in-out infinite;box-shadow:0 0 8px var(--c-primary-60)}#sy-partner-overlay .divider-dot:last-child{animation-delay:1s}@keyframes dotPulse-db3465b6{0%,to{opacity:.5;transform:scale(1)}50%{opacity:1;transform:scale(1.3)}}#sy-partner-overlay .divider-line{width:80px;height:2px;background:linear-gradient(90deg,transparent,var(--c-primary-60),rgba(147,51,234,.6),transparent);border-radius:1px}#sy-partner-overlay .divider-diamond{font-size:.85rem;color:var(--color-primary);animation:diamondRotate-db3465b6 4s ease-in-out infinite;text-shadow:0 0 10px var(--c-primary-80)}@keyframes diamondRotate-db3465b6{0%,to{transform:rotate(0);opacity:.7}50%{transform:rotate(180deg);opacity:1}}#sy-partner-overlay .sub-title{display:flex;align-items:center;justify-content:center;gap:.75rem;margin:0}#sy-partner-overlay .sub-text{font-size:1.1rem;color:var(--w-75);font-weight:400;letter-spacing:.15em}#sy-partner-overlay .sub-separator{font-size:1.25rem;color:var(--color-primary);font-weight:300}#sy-partner-overlay .advantages-section{margin-bottom:2.5rem;overflow:visible;position:relative}#sy-partner-overlay .advantages-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}#sy-partner-overlay .advantage-card{position:relative;background:var(--w-3);border-radius:1.25rem;padding:2rem 1.5rem;cursor:pointer;transform-style:preserve-3d;transition:all .3s ease;opacity:0;transform:translateY(50px);overflow:hidden}#sy-partner-overlay .advantage-card.animate{animation:cardFlyIn-db3465b6 .6s ease forwards}@keyframes cardFlyIn-db3465b6{to{opacity:1;transform:translateY(0) perspective(1000px)}}#sy-partner-overlay .advantage-card:hover{z-index:10}#sy-partner-overlay .advantage-card:hover .card-glow,#sy-partner-overlay .advantage-card:hover .card-border{opacity:1}#sy-partner-overlay .advantage-card:hover .card-shine{animation:cardShine-db3465b6 .8s ease}#sy-partner-overlay .card-glow{position:absolute;inset:-1px;border-radius:1.25rem;background:linear-gradient(135deg,var(--c-primary-20),rgba(147,51,234,.2));filter:blur(15px);opacity:0;transition:opacity .3s ease;z-index:-1}#sy-partner-overlay .card-border{position:absolute;inset:0;border-radius:1.25rem;padding:2px;background:linear-gradient(135deg,var(--color-primary),#9333EA,#FFD700);-webkit-mask:linear-gradient(var(--w-100) 0 0) content-box,linear-gradient(var(--w-100) 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity .3s ease}#sy-partner-overlay .card-shine{position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,var(--w-10),transparent);border-radius:1.25rem}@keyframes cardShine-db3465b6{to{left:100%}}#sy-partner-overlay .card-content{position:relative;z-index:1}#sy-partner-overlay .card-icon{width:4rem;height:4rem;border-radius:1rem;display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;color:#fff;box-shadow:0 8px 25px var(--b-30);transition:all .3s ease}#sy-partner-overlay .advantage-card:hover .card-icon{transform:scale(1.1) rotate(5deg);box-shadow:0 12px 35px var(--b-40)}#sy-partner-overlay .card-icon svg{width:2rem;height:2rem}#sy-partner-overlay .card-title{font-size:1.125rem;font-weight:700;color:#fff;margin:0 0 .75rem;line-height:1.4}#sy-partner-overlay .card-desc{font-size:.9rem;color:var(--w-70);margin:0 0 .75rem;line-height:1.5}#sy-partner-overlay .card-highlight{font-size:.85rem;color:var(--color-primary);font-weight:600;padding:.5rem .75rem;background:var(--c-primary-10);border-radius:.5rem;border-left:3px solid var(--color-primary)}#sy-partner-overlay .stats-section{position:relative;margin-bottom:2rem;opacity:0;transform:translateY(30px);transition:all .8s ease .8s}#sy-partner-overlay .stats-section.animate{opacity:1;transform:translateY(0)}#sy-partner-overlay .stats-container{display:flex;justify-content:center;gap:4rem;padding:2rem 3rem;background:var(--w-3);border-radius:1.5rem;border:1px solid var(--w-10);position:relative;overflow:hidden}#sy-partner-overlay .stats-glow{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;background:radial-gradient(ellipse at center,var(--c-primary-10) 0%,transparent 70%);pointer-events:none}#sy-partner-overlay .stat-item{text-align:center;position:relative}#sy-partner-overlay .stat-item:after{content:"";position:absolute;right:-2rem;top:50%;transform:translateY(-50%);width:1px;height:50px;background:linear-gradient(to bottom,transparent,var(--w-20),transparent)}#sy-partner-overlay .stat-item:last-child:after{display:none}#sy-partner-overlay .stat-value{display:flex;align-items:baseline;justify-content:center;gap:.25rem}#sy-partner-overlay .stat-number{font-size:3rem;font-weight:800;background:linear-gradient(135deg,#FFD700 0%,var(--color-primary) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-family:Helvetica Neue,sans-serif}#sy-partner-overlay .stat-suffix{font-size:1.5rem;font-weight:700;color:var(--color-primary)}#sy-partner-overlay .stat-label{font-size:1rem;color:var(--w-70);margin-top:.5rem}#sy-partner-overlay .cta-section{text-align:center;opacity:0;transform:translateY(20px);transition:all .6s ease 1s}#sy-partner-overlay .cta-section.animate{opacity:1;transform:translateY(0)}#sy-partner-overlay .cta-badge{display:inline-flex;align-items:center;gap:.75rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#ff6b3533,#ff980033);border:1px solid rgba(255,107,53,.4);border-radius:2rem}#sy-partner-overlay .badge-dot{width:8px;height:8px;border-radius:50%;background:#ff6b35;animation:badgePulse-db3465b6 1.5s ease-in-out infinite;box-shadow:0 0 10px #ff6b35cc}@keyframes badgePulse-db3465b6{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:.7}}#sy-partner-overlay .badge-text{font-size:1rem;font-weight:600;color:#ff6b35;letter-spacing:.1em}#sy-partner-overlay .agent-footer{padding:1.5rem 4rem 2rem;display:flex;justify-content:center;gap:1.5rem;border-top:1px solid var(--w-10);background:linear-gradient(to top,var(--b-30),transparent);position:relative;z-index:10}#sy-partner-overlay .action-btn{position:relative;padding:1rem 2.5rem;border-radius:1rem;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease;overflow:hidden;border:none}#sy-partner-overlay .action-btn.secondary{background:var(--w-10);color:var(--w-80);border:2px solid var(--w-20)}#sy-partner-overlay .action-btn.secondary:hover{background:var(--w-15);border-color:var(--w-40);transform:translateY(-3px)}#sy-partner-overlay .action-btn.primary{background:linear-gradient(135deg,var(--color-primary) 0%,#9333EA 100%);color:#fff;min-width:280px}#sy-partner-overlay .action-btn.primary:hover{transform:translateY(-3px);box-shadow:0 15px 40px var(--c-primary-40)}#sy-partner-overlay .action-btn.primary:hover .btn-arrow{transform:translate(5px)}#sy-partner-overlay .btn-pulse{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;border-radius:1rem;background:var(--w-30);animation:btnPulse-db3465b6 2s ease-out infinite}#sy-partner-overlay .btn-pulse.delay{animation-delay:1s}@keyframes btnPulse-db3465b6{0%{transform:translate(-50%,-50%) scale(1);opacity:.5}to{transform:translate(-50%,-50%) scale(1.5);opacity:0}}#sy-partner-overlay .btn-content{position:relative;display:flex;align-items:center;gap:.75rem;z-index:1}#sy-partner-overlay .btn-icon{width:1.5rem;height:1.5rem}#sy-partner-overlay .btn-arrow{width:1.25rem;height:1.25rem;transition:transform .3s ease}#sy-partner-overlay .btn-shine{position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,var(--w-30),transparent);animation:btnShine-db3465b6 3s ease-in-out infinite}@keyframes btnShine-db3465b6{0%,to{left:-100%}50%{left:100%}}#sy-partner-overlay .agent-modal-enter-active{transition:opacity .4s ease}#sy-partner-overlay .agent-modal-leave-active{transition:opacity .3s ease}#sy-partner-overlay .agent-modal-enter-from,#sy-partner-overlay .agent-modal-leave-to{opacity:0}@media(max-width:1200px){#sy-partner-overlay .agent-container{width:95vw;height:92vh}#sy-partner-overlay .advantages-grid{grid-template-columns:repeat(2,1fr)}#sy-partner-overlay .title-text{font-size:2.5rem}#sy-partner-overlay .title-group{flex-wrap:wrap}#sy-partner-overlay .stats-container{gap:2rem;padding:1.5rem 2rem}#sy-partner-overlay .stat-number{font-size:2.5rem}}@media(max-width:768px){#sy-partner-overlay .agent-container{width:100vw;height:100vh;max-height:100vh;border-radius:0}#sy-partner-overlay .glow-border,#sy-partner-overlay .glow-border-inner,#sy-partner-overlay .star-canvas{border-radius:0}#sy-partner-overlay .agent-content{padding:2rem 1.5rem}#sy-partner-overlay .advantages-grid{grid-template-columns:1fr;gap:1rem}#sy-partner-overlay .advantage-card{padding:1.5rem}#sy-partner-overlay .title-text{font-size:1.8rem}#sy-partner-overlay .title-group{flex-direction:column;gap:.75rem}#sy-partner-overlay .sub-title{font-size:.9rem}#sy-partner-overlay .stats-container{flex-direction:column;gap:1.5rem;padding:1.5rem}#sy-partner-overlay .stat-item:after{display:none}#sy-partner-overlay .stat-number{font-size:2rem}#sy-partner-overlay .agent-footer{padding:1rem 1.5rem 1.5rem;flex-direction:column}#sy-partner-overlay .action-btn{width:100%;justify-content:center}#sy-partner-overlay .action-btn.primary{min-width:auto}}@media(max-width:480px){#sy-partner-overlay .card-icon{width:3rem;height:3rem}#sy-partner-overlay .card-icon svg{width:1.5rem;height:1.5rem}}html[data-theme=light] #sy-partner-overlay{background:#00000059}html[data-theme=light] #sy-partner-overlay .particle-canvas,html[data-theme=light] #sy-partner-overlay .star-canvas{opacity:0;pointer-events:none}html[data-theme=light] #sy-partner-overlay .agent-container{background:#fff;box-shadow:0 25px 80px #00000026}html[data-theme=light] #sy-partner-overlay .glow-border{opacity:.35}html[data-theme=light] #sy-partner-overlay .glow-border-inner{background:#fff}html[data-theme=light] #sy-partner-overlay .agent-close{background:#0000000a;border-color:#0000001a;color:#646e7d}html[data-theme=light] #sy-partner-overlay .agent-close:hover{background:#0000000f;border-color:var(--color-primary);color:var(--color-primary)}html[data-theme=light] #sy-partner-overlay .agent-content{scrollbar-color:rgba(0,0,0,.12) transparent}html[data-theme=light] #sy-partner-overlay .agent-content::-webkit-scrollbar-thumb{background:#0000001f}html[data-theme=light] #sy-partner-overlay .badge-label{color:#b48200}html[data-theme=light] #sy-partner-overlay .header-badge{background:linear-gradient(135deg,#ffd7001f,#ffa50014);border-color:#d2a00059}html[data-theme=light] #sy-partner-overlay .title-text{background:linear-gradient(135deg,#c88a00,#e09800 30%,#c88a00,#daa520 70%,#c88a00);background-size:200% auto;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}html[data-theme=light] #sy-partner-overlay .partner-tag{border-color:#c88c0080}html[data-theme=light] #sy-partner-overlay .partner-tag-text{color:#b47800}html[data-theme=light] #sy-partner-overlay .divider-line{background:linear-gradient(90deg,transparent,rgba(0,0,0,.1),transparent)}html[data-theme=light] #sy-partner-overlay .divider-dot{box-shadow:none}html[data-theme=light] #sy-partner-overlay .divider-diamond{text-shadow:none}html[data-theme=light] #sy-partner-overlay .sub-text{color:#646e7d}html[data-theme=light] #sy-partner-overlay .advantage-card{background:#f8f9fc;border:1px solid rgba(0,0,0,.06)}html[data-theme=light] #sy-partner-overlay .advantage-card:hover{box-shadow:0 8px 30px #00000014}html[data-theme=light] #sy-partner-overlay .card-glow,html[data-theme=light] #sy-partner-overlay .card-border{display:none}html[data-theme=light] #sy-partner-overlay .card-shine{background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent)}html[data-theme=light] #sy-partner-overlay .card-title{color:#1e2332}html[data-theme=light] #sy-partner-overlay .card-desc{color:#646e7d}html[data-theme=light] #sy-partner-overlay .card-highlight{background:rgba(var(--c-primary-rgb, 99, 102, 241),.06)}html[data-theme=light] #sy-partner-overlay .card-icon{box-shadow:0 4px 12px #0000001a}html[data-theme=light] #sy-partner-overlay .stats-container{background:#f8f9fc;border-color:#0000000f}html[data-theme=light] #sy-partner-overlay .stats-glow{display:none}html[data-theme=light] #sy-partner-overlay .stat-item:after{background:linear-gradient(to bottom,transparent,rgba(0,0,0,.1),transparent)}html[data-theme=light] #sy-partner-overlay .stat-label{color:#646e7d}html[data-theme=light] #sy-partner-overlay .cta-badge{background:linear-gradient(135deg,#ff6b3514,#ff980014);border-color:#ff6b3540}html[data-theme=light] #sy-partner-overlay .agent-footer{border-top-color:#0000000f;background:linear-gradient(to top,rgba(248,249,252,.8),transparent)}html[data-theme=light] #sy-partner-overlay .action-btn.secondary{background:#f3f4f8;color:#465064;border:1.5px solid rgba(0,0,0,.1)}html[data-theme=light] #sy-partner-overlay .action-btn.secondary:hover{background:#ebedf2;border-color:#0003}html[data-theme=light] #sy-partner-overlay .action-btn.primary{box-shadow:0 4px 16px #6366f140}html[data-theme=light] #sy-partner-overlay .action-btn.primary:hover{box-shadow:0 8px 30px #6366f159}html[data-theme=light] #sy-partner-overlay .btn-shine{background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent)}



/* Official left-bottom account + 充值 modal */
.user-section,
#sy-zhifu-overlay {
  --w-2: rgba(255,255,255,.02);
  --w-3: rgba(255,255,255,.03);
  --w-5: rgba(255,255,255,.05);
  --w-8: rgba(255,255,255,.08);
  --w-10: rgba(255,255,255,.10);
  --w-35: rgba(255,255,255,.35);
  --w-100: #fff;
  --c-primary: var(--color-primary, #00CAE0);
  --c-primary-30: color-mix(in srgb, var(--color-primary, #00CAE0) 30%, transparent);
  --c-primary-60: color-mix(in srgb, var(--color-primary, #00CAE0) 60%, transparent);
}

.user-section {
  border-top: .0625rem solid var(--w-8);
  padding: .75rem 0 .85rem;
  flex-shrink: 0;
  position: relative;
}
.user-section-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0 .75rem;
}

.user-profile-button {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: .625rem .75rem;
  border: .0625rem solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, #ffffff0b, #ffffff04), #ffffff05;
  cursor: pointer;
  border-radius: .75rem;
  min-height: 3rem;
  gap: .625rem;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-sizing: border-box;
  color: inherit;
}
.user-profile-button:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: .1875rem;
  height: 0;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--c-primary-60) 100%);
  border-radius: 0 .1875rem .1875rem 0;
  opacity: 0;
  transition: height .3s cubic-bezier(.4,0,.2,1), opacity .3s cubic-bezier(.4,0,.2,1);
}
.user-profile-button:hover:before { height: 70%; opacity: 1; }
.user-profile-button:hover:not(.user-profile-button-active) {
  background: linear-gradient(180deg, #ffffff12, #ffffff06), var(--w-3);
  border-color: #ffffff1a;
}
.user-profile-button:active { background: var(--w-5); }

.user-avatar-container {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: .625rem;
  background: var(--w-2);
  overflow: visible;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.user-profile-button:hover:not(.user-profile-button-active) .user-avatar-container {
  background: var(--w-5);
  transform: scale(1.05);
}
.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 .5rem var(--w-10));
}
.user-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00a8cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 .5rem var(--w-10));
  color: #062026;
  font-size: 1rem;
  font-weight: 700;
}
.user-avatar-placeholder .icon { width: 1.2rem; height: 1.2rem; stroke: #062026; }

.user-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: flex-start;
}
.user-display-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--w-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.user-status-wrapper {
  display: flex;
  align-items: center;
  gap: .375rem;
  max-width: 100%;
}
.user-balance-text {
  font-size: .75rem;
  color: #fbbf24;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.user-balance-text.is-hint {
  color: rgba(255,255,255,.45);
  font-weight: 400;
  white-space: normal;
  line-height: 1.3;
}
.user-profile-more {
  flex-shrink: 0;
  color: var(--w-35);
  transition: color .22s ease, transform .22s ease;
}
.user-profile-button:hover:not(.user-profile-button-active) .user-profile-more {
  color: var(--c-primary);
  transform: translate(.125rem);
}

.recharge-button {
  position: relative;
  flex-shrink: 0;
  padding: .5rem .75rem;
  border-radius: .625rem;
  border: .0625rem solid rgba(251,191,36,.5);
  background: linear-gradient(135deg, #fbbf2426, #f59e0b1a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.recharge-button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,.3), transparent);
  animation: recharge-shimmer-77768d20 2s infinite;
}
@keyframes recharge-shimmer-77768d20 {
  0% { left: -100%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .recharge-button-glow { animation: none; }
}
.recharge-button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  position: relative;
  z-index: 1;
}
.recharge-button-main { display: flex; align-items: center; gap: .25rem; }
.recharge-button-text {
  font-size: .8125rem;
  font-weight: 600;
  color: #fbbf24;
  white-space: nowrap;
}
.recharge-icon-usd { flex-shrink: 0; color: #fbbf24; }
.recharge-button:hover {
  background: linear-gradient(135deg, #fbbf2440, #f59e0b33);
  border-color: #fbbf24cc;
  transform: scale(1.05);
  box-shadow: 0 0 .75rem #fbbf2466;
}
.recharge-button:hover .recharge-button-text { text-shadow: 0 0 .5rem rgba(251,191,36,.6); }
.recharge-button:active { transform: scale(.95); }

html[data-theme="light"] .user-profile-button {
  border-color: #0f172a0f;
  background: linear-gradient(180deg, #ffffffe6, #f8fafcbf), #ffffffb8;
}
html[data-theme="light"] .user-profile-button:hover:not(.user-profile-button-active) {
  background: #6366f10f;
  border-color: #6366f124;
}
html[data-theme="light"] .user-display-name { color: #1e2332; }
html[data-theme="light"] .user-balance-text { color: #b45309; }
html[data-theme="light"] .user-balance-text.is-hint { color: #64748b; }
html[data-theme="light"] .user-profile-more { color: #0f172a57; }
html[data-theme="light"] .user-section { border-top-color: rgba(15,23,42,.08); }
html[data-theme="light"] .recharge-button {
  border-color: #6366f147;
  background: linear-gradient(135deg, #f8f7ff, #f0eeff);
  box-shadow: 0 1px 3px #6366f10f;
}
html[data-theme="light"] .recharge-button-text { color: #4f46e5; }
html[data-theme="light"] .recharge-button-glow { background: linear-gradient(90deg, transparent, rgba(99,102,241,.12), transparent); }
html[data-theme="light"] .recharge-button-main svg text { fill: #4338ca; }
html[data-theme="light"] .recharge-button-main svg circle[fill="#fbbf24"] { fill: #818cf8; }
html[data-theme="light"] .recharge-button:hover {
  background: linear-gradient(135deg, #f0eeff, #e8e5ff);
  border-color: #6366f180;
  box-shadow: 0 3px 10px #6366f124;
}
html[data-theme="light"] .recharge-button:hover .recharge-button-text { text-shadow: none; color: #4338ca; }

html[data-privacy="on"] .user-display-name,
html[data-privacy="on"] .user-balance-text {
  filter: blur(8px);
  user-select: none;
}

/* 充值弹窗 */
#sy-zhifu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.62);
  padding: 1.25rem;
}
#sy-zhifu-overlay.is-open { display: flex; }

.zhifu-container {
  position: relative;
  width: min(40rem, 100%);
  max-height: min(92vh, 44rem);
  overflow: auto;
  background: #1a1d24;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  color: #e8eaed;
  padding: 1.35rem 1.5rem 1.2rem;
}
.zhifu-close {
  position: absolute;
  top: .85rem;
  right: .9rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: .4rem;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.zhifu-close:hover { color: #fff; background: rgba(255,255,255,.06); }
.zhifu-header { margin-bottom: .85rem; padding-right: 1.5rem; }
.zhifu-title {
  margin: 0 0 .3rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.zhifu-subtitle {
  margin: 0;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.recharge-type-tabs {
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1rem;
}
.recharge-type-tab {
  position: relative;
  padding: .4rem 0 .65rem;
  background: none;
  border: 0;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  cursor: pointer;
}
.recharge-type-tab.active { color: #fff; font-weight: 600; }
.recharge-type-tab.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary, #00CAE0);
}

.section-label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .55rem;
}
.amount-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .6rem;
}
.amount-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: .7rem .65rem .6rem;
  border-radius: .7rem;
  border: 1px solid rgba(255,255,255,.08);
  background: #242830;
  cursor: pointer;
  color: inherit;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.amount-card .card-top {
  position: absolute;
  top: .35rem;
  left: .45rem;
  font-size: .7rem;
  color: rgba(255,255,255,.28);
  line-height: 1;
}
.amount-card .card-amount {
  display: flex;
  align-items: baseline;
  gap: .12rem;
  margin-top: .35rem;
  color: #34d399;
  font-weight: 700;
}
.amount-card .currency { font-size: .75rem; }
.amount-card .value { font-size: 1.25rem; letter-spacing: -.02em; }
.amount-card .card-bottom {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-size: .7rem;
}
.amount-card .card-meta-label { color: rgba(255,255,255,.45); }
.amount-card .card-meta-val { color: #f5b942; font-weight: 600; }
.amount-card .zhifu-bolt { display: block; }
.amount-card.selected,
.amount-card:hover {
  border-color: rgba(0,202,224,.7);
  box-shadow: 0 0 0 1px rgba(0,202,224,.25);
}
.amount-card.selected { background: #1f2a32; }

.payment-section { margin-top: 1.05rem; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.payment-method-btn[data-method="stripe"] { grid-column: 1 / -1; }
.payment-method-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .85rem;
  border-radius: .65rem;
  border: 1px solid rgba(255,255,255,.1);
  background: #242830;
  color: #e8eaed;
  cursor: pointer;
  text-align: left;
}
.payment-method-btn.active,
.payment-method-btn:hover { border-color: rgba(0,202,224,.65); }
.payment-icon-wrapper {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.payment-method-name { flex: 1; font-size: .88rem; font-weight: 500; }
.payment-radio {
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  flex-shrink: 0;
  position: relative;
}
.payment-radio.on {
  border-color: var(--color-primary, #00CAE0);
}
.payment-radio.on:after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--color-primary, #00CAE0);
}

.pay-agree-notice {
  margin: .9rem 0 0;
  font-size: .75rem;
  color: #34d399;
}
.pay-agree-notice a {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cardkey-section { margin-top: .2rem; }
.cardkey-input {
  width: 100%;
  box-sizing: border-box;
  padding: .7rem .8rem;
  border-radius: .6rem;
  border: 1px solid rgba(255,255,255,.12);
  background: #242830;
  color: #fff;
  font-size: .9rem;
  outline: none;
}
.cardkey-input:focus { border-color: var(--color-primary, #00CAE0); }
.cardkey-error {
  margin: .45rem 0 0;
  font-size: .78rem;
  color: #f87171;
}
.cardkey-tips {
  margin: .5rem 0 0;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}

.zhifu-notice {
  margin: .85rem 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: #fbbf24;
}
.zhifu-notice.is-ok { color: #34d399; }
.zhifu-notice.is-warn { color: #fbbf24; }
.zhifu-notice a { color: inherit; text-decoration: underline; }

.zhifu-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: 1.15rem;
}
.zhifu-action-btn {
  height: 2.65rem;
  border-radius: .6rem;
  border: 0;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
}
.zhifu-action-btn.cancel {
  background: #2a2e36;
  color: rgba(255,255,255,.8);
}
.zhifu-action-btn.cancel:hover { background: #333842; }
.zhifu-action-btn.primary {
  background: #16a34a;
  color: #fff;
}
.zhifu-action-btn.primary:hover { background: #15803d; }
.zhifu-action-btn.primary:disabled {
  opacity: .65;
  cursor: wait;
}

@media (max-width: 640px) {
  .amount-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payment-methods { grid-template-columns: 1fr; }
}

html[data-theme="light"] .zhifu-container {
  background: #fff;
  border-color: rgba(15,23,42,.08);
  color: #1e2332;
  box-shadow: 0 24px 80px rgba(15,23,42,.18);
}
html[data-theme="light"] .zhifu-title { color: #111827; }
html[data-theme="light"] .zhifu-subtitle,
html[data-theme="light"] .section-label,
html[data-theme="light"] .cardkey-tips,
html[data-theme="light"] .amount-card .card-meta-label,
html[data-theme="light"] .amount-card .card-top { color: #64748b; }
html[data-theme="light"] .zhifu-close { color: #64748b; }
html[data-theme="light"] .zhifu-close:hover { background: #f1f5f9; color: #111827; }
html[data-theme="light"] .recharge-type-tabs { border-bottom-color: #e5e7eb; }
html[data-theme="light"] .recharge-type-tab { color: #64748b; }
html[data-theme="light"] .recharge-type-tab.active { color: #111827; }
html[data-theme="light"] .amount-card,
html[data-theme="light"] .payment-method-btn,
html[data-theme="light"] .cardkey-input {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #1e2332;
}
html[data-theme="light"] .amount-card.selected { background: #eff6ff; }
html[data-theme="light"] .payment-method-name { color: #1e2332; }
html[data-theme="light"] .payment-radio { border-color: #cbd5e1; }
html[data-theme="light"] .zhifu-action-btn.cancel { background: #eef2f6; color: #334155; }
html[data-theme="light"] .pay-agree-notice,
html[data-theme="light"] .pay-agree-notice a { color: #059669; }


/* Official 邀请有礼 modal */
#sy-invite-overlay { display: none !important; }
#sy-invite-overlay.is-open { display: flex !important; }
#sy-invite-overlay .loading-spinner {
  width: 1.5rem; height: 1.5rem;
  border: 2px solid var(--yq-border);
  border-top-color: var(--yq-reward);
  border-radius: 50%;
  animation: yq-spin-f5b784f3 .8s linear infinite;
}
@keyframes yq-hook-shine-f5b784f3{0%{transform:translate(-160%) rotate(10deg)}48%,to{transform:translate(360%) rotate(10deg)}}
@keyframes yq-hook-glow-f5b784f3{0%,to{filter:brightness(1);transform:scale(1)}50%{filter:brightness(1.18);transform:scale(1.035)}}
@keyframes yq-spin-f5b784f3{to{transform:rotate(360deg)}}
@keyframes yq-rise-f5b784f3{0%{opacity:0;transform:translateY(.75rem)}to{opacity:1;transform:none}}
@keyframes yq-aurora-f5b784f3{0%{transform:translate3d(-6%,-4%,0) rotate(0)}50%{transform:translate3d(6%,5%,0) rotate(180deg)}to{transform:translate3d(-6%,-4%,0) rotate(360deg)}}
@keyframes yq-sweep-f5b784f3{0%{transform:translate(-140%) rotate(8deg)}55%,to{transform:translate(420%) rotate(8deg)}}
@keyframes yq-spark-f5b784f3{0%{transform:translateY(0) scale(.2);opacity:0}12%{opacity:1}75%{opacity:.85}to{transform:translateY(-7.5rem) scale(.35);opacity:0}}
@keyframes yq-pulse-f5b784f3{0%,to{transform:scale(1)}50%{transform:scale(1.14)}}
@keyframes yq-ring-f5b784f3{0%{transform:scale(.6);opacity:.5}70%{opacity:0}to{transform:scale(1.9);opacity:0}}
.loading-spinner{width:1.5rem;height:1.5rem;border:2px solid var(--yq-border);border-top-color:var(--yq-reward);border-radius:50%;animation:yq-spin-f5b784f3 .8s linear infinite}
.board-body{position:relative;flex:1;min-height:0}
.list-box{position:absolute;inset:0;overflow-y:auto;display:flex;flex-direction:column;gap:.125rem;scrollbar-width:thin;scrollbar-color:var(--yq-scroll-thumb) transparent}
.list-box::-webkit-scrollbar{width:5px}
.list-box::-webkit-scrollbar-track{background:transparent}
.list-box::-webkit-scrollbar-thumb{background:var(--yq-scroll-thumb);border-radius:2.5px}
.list-box::-webkit-scrollbar-thumb:hover{background:var(--yq-scroll-thumb-hover)}
.yaoqing-overlay{--yq-bg-overlay: rgba(0, 0, 0, .62);--yq-bg-container: #16181d;--yq-bg-elev-1: #1d2026;--yq-bg-elev-2: #21252c;--yq-bg-input: #1a1d23;--yq-border: #2a2e36;--yq-border-strong: #3a3f48;--yq-text-primary: #f5f6f8;--yq-text-secondary: #9aa0a8;--yq-text-muted: #6b7079;--yq-accent: #06b6d4;--yq-accent-hover: #22d3ee;--yq-accent-soft: rgba(6, 182, 212, .12);--yq-reward: #f59e0b;--yq-reward-hover: #fbbf24;--yq-reward-soft: rgba(245, 158, 11, .14);--yq-reward-ring: rgba(245, 158, 11, .3);--yq-stage-bg: radial-gradient(120% 140% at 15% 0%, #3a2a09 0%, #241b0b 42%, #17191e 100%);--yq-stage-border: rgba(245, 158, 11, .34);--yq-stage-text: #fde9c2;--yq-stage-number: #fcd34d;--yq-stage-chip-bg: rgba(0, 0, 0, .32);--yq-scroll-thumb: rgba(255, 255, 255, .1);--yq-scroll-thumb-hover: rgba(255, 255, 255, .2)}
html[data-theme=light] .yaoqing-overlay{--yq-bg-overlay: rgba(15, 23, 42, .44);--yq-bg-container: #ffffff;--yq-bg-elev-1: #f6f7f9;--yq-bg-elev-2: #eef0f3;--yq-bg-input: #ffffff;--yq-border: #d8dce3;--yq-border-strong: #a8b0bd;--yq-text-primary: #0f172a;--yq-text-secondary: #475569;--yq-text-muted: #64748b;--yq-accent: #0891b2;--yq-accent-hover: #0e7490;--yq-accent-soft: rgba(8, 145, 178, .1);--yq-reward: #d97706;--yq-reward-hover: #b45309;--yq-reward-soft: rgba(217, 119, 6, .1);--yq-reward-ring: rgba(217, 119, 6, .3);--yq-stage-bg: radial-gradient(120% 140% at 15% 0%, #fff2d0 0%, #ffe7b3 45%, #fff9ec 100%);--yq-stage-border: rgba(217, 119, 6, .34);--yq-stage-text: #7c4a03;--yq-stage-number: #b45309;--yq-stage-chip-bg: rgba(255, 255, 255, .72);--yq-scroll-thumb: rgba(15, 23, 42, .14);--yq-scroll-thumb-hover: rgba(15, 23, 42, .28)}
.yaoqing-overlay{position:fixed;inset:0;background:var(--yq-bg-overlay);-webkit-backdrop-filter:blur(.375rem);backdrop-filter:blur(.375rem);display:flex;align-items:center;justify-content:center;z-index:10000;padding:1.25rem}
.yaoqing-container{position:relative;background:var(--yq-bg-container);border:1px solid var(--yq-border);border-radius:1rem;box-shadow:0 32px 72px #0000008c;max-width:56rem;width:100%;max-height:min(50rem,92vh);display:flex;flex-direction:column;overflow:hidden}
html[data-theme=light] .yaoqing-container{box-shadow:0 1px 2px #0f172a0a,0 32px 64px -12px #0f172a42,0 0 0 1px #0f172a0a}
.yaoqing-close{position:absolute;top:.75rem;right:.75rem;width:2rem;height:2rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.14);background:#00000061;color:#f5f6f8;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease,border-color .15s ease,color .15s ease;z-index:10}
.yaoqing-close:hover{background:#0000008c;border-color:#ffffff47;color:#fff}
html[data-theme=light] .yaoqing-close{background:#ffffffb8;border-color:#0f172a1a;color:#0f172a}
html[data-theme=light] .yaoqing-close:hover{background:#fff;border-color:#0f172a2e}
.top-hook{position:relative;overflow:hidden;flex-shrink:0;padding:1.05rem 3.25rem 1.05rem 1.25rem;background:radial-gradient(80% 140% at 78% 50%,rgba(253,224,71,.42) 0%,transparent 58%),linear-gradient(105deg,#2a1a06,#6b3f08 38%,#c98912 54%,#6b3f08 72%,#1f1406);border-bottom:1px solid rgba(253,224,71,.28)}
html[data-theme=light] .top-hook{background:radial-gradient(80% 140% at 78% 50%,rgba(255,237,160,.85) 0%,transparent 58%),linear-gradient(105deg,#fff4d4,#f6c453 40%,#ffdf7a 54%,#f0b429 72%,#ffe9b0);border-bottom-color:#b4530938}
.top-hook-shine{position:absolute;inset:-20% auto -20% 0;width:38%;pointer-events:none;background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.08) 36%,rgba(255,255,255,.28) 50%,rgba(255,255,255,.08) 64%,transparent 100%);filter:blur(1.5rem);transform:translate(-160%) rotate(10deg);animation:yq-hook-shine-f5b784f3 4.8s ease-in-out infinite}
.top-hook-inner{position:relative;z-index:1;display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .85rem}
.top-hook-copy{display:inline-flex;align-items:center;gap:.5rem;line-height:1}
.top-hook-crown{flex-shrink:0;color:#fde68a}
.top-hook-lead{display:inline-flex;align-items:center;gap:.3125rem;font-size:.8125rem;font-weight:700;line-height:1;color:#fde68a;letter-spacing:.01em}
html[data-theme=light] .top-hook-lead{color:#7c4a03}
.top-hook-mid{font-size:.8125rem;font-weight:700;line-height:1;color:#fde9c2}
html[data-theme=light] .top-hook-mid{color:#92400e}
.top-hook-value{display:inline-flex;align-items:center;gap:.3rem}
.top-hook-num{font-size:2.125rem;font-weight:800;line-height:.95;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#fff7c2;text-shadow:0 0 .75rem rgba(253,224,71,.85),0 0 1.75rem rgba(251,191,36,.55);animation:yq-hook-glow-f5b784f3 2.2s ease-in-out infinite}
html[data-theme=light] .top-hook-num{color:#92400e;text-shadow:0 0 .6rem rgba(251,191,36,.55),0 0 1.25rem rgba(245,158,11,.35)}
.top-hook-unit{font-size:.8125rem;font-weight:800;color:#fde68a}
html[data-theme=light] .top-hook-unit{color:#b45309}
.yaoqing-header{display:flex;align-items:center;gap:.75rem;padding:.875rem 1.25rem .75rem;border-bottom:1px solid var(--yq-border);flex-shrink:0}
.yaoqing-icon-wrapper{flex-shrink:0;width:2.125rem;height:2.125rem;border-radius:.5rem;background:var(--yq-reward-soft);color:var(--yq-reward);display:flex;align-items:center;justify-content:center}
.yaoqing-header-text{min-width:0;flex:1}
.yaoqing-title{display:flex;align-items:center;flex-wrap:wrap;gap:.375rem;font-size:1.0625rem;font-weight:700;color:var(--yq-text-primary);margin:0 0 .1875rem;letter-spacing:-.01em;line-height:1.3}
.limited-badge{display:inline-flex;align-items:center;gap:.1875rem;padding:.125rem .4375rem;border-radius:62.5rem;border:1px solid var(--yq-reward-ring);background:var(--yq-reward-soft);color:var(--yq-reward);font-size:.625rem;font-weight:700;letter-spacing:0;white-space:nowrap}
.yaoqing-subtitle{font-size:.75rem;color:var(--yq-text-secondary);margin:0;line-height:1.5}
.yaoqing-body{padding:1rem 1.25rem 1.125rem;flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--yq-scroll-thumb) transparent}
.yaoqing-body::-webkit-scrollbar{width:6px}
.yaoqing-body::-webkit-scrollbar-track{background:transparent}
.yaoqing-body::-webkit-scrollbar-thumb{background:var(--yq-scroll-thumb);border-radius:3px}
.yaoqing-body::-webkit-scrollbar-thumb:hover{background:var(--yq-scroll-thumb-hover)}
.yaoqing-loading{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:4rem 0;color:var(--yq-text-secondary);font-size:.8125rem}
#sy-invite-overlay [hidden]{display:none!important}
.yaoqing-content{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(17.5rem,.92fr);grid-template-rows:minmax(12rem,1fr) auto;gap:.875rem}
.pane-main,.pane-board{min-height:0;display:flex;flex-direction:column;gap:.75rem}
.pane-main{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--yq-scroll-thumb) transparent}
.pane-main>*{flex-shrink:0}
.pane-main::-webkit-scrollbar{width:6px}
.pane-main::-webkit-scrollbar-track{background:transparent}
.pane-main::-webkit-scrollbar-thumb{background:var(--yq-scroll-thumb);border-radius:3px}
.pane-main::-webkit-scrollbar-thumb:hover{background:var(--yq-scroll-thumb-hover)}
.pane-board{background:var(--yq-bg-elev-1);border:1px solid var(--yq-border);border-radius:.75rem;padding:.25rem .5rem .5rem}
.rules-box{grid-column:1 / -1}
.pane-main{animation:yq-rise-f5b784f3 .44s cubic-bezier(.22,1,.36,1) both}
.pane-board{animation:yq-rise-f5b784f3 .44s cubic-bezier(.22,1,.36,1) .08s both}
.rules-box{animation:yq-rise-f5b784f3 .44s cubic-bezier(.22,1,.36,1) .16s both}
.hero-stage{position:relative;overflow:hidden;border-radius:.875rem;border:1px solid var(--yq-stage-border);background:var(--yq-stage-bg);padding:1.25rem 1.25rem 1.125rem;isolation:isolate}
.hero-aurora{position:absolute;inset:-40%;z-index:0;background:radial-gradient(28% 38% at 22% 30%,rgba(251,191,36,.4) 0%,transparent 70%),radial-gradient(24% 34% at 76% 62%,rgba(244,114,182,.26) 0%,transparent 70%),radial-gradient(30% 30% at 58% 16%,rgba(56,189,248,.2) 0%,transparent 72%);filter:blur(1.5rem);animation:yq-aurora-f5b784f3 14s ease-in-out infinite}
html[data-theme=light] .hero-aurora{background:radial-gradient(28% 38% at 22% 30%,rgba(251,191,36,.55) 0%,transparent 70%),radial-gradient(24% 34% at 76% 62%,rgba(251,146,60,.32) 0%,transparent 70%),radial-gradient(30% 30% at 58% 16%,rgba(250,204,21,.38) 0%,transparent 72%)}
.hero-sweep{position:absolute;top:-70%;bottom:-70%;left:0;width:58%;z-index:1;pointer-events:none;background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.04) 22%,rgba(255,255,255,.12) 42%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.12) 58%,rgba(255,255,255,.04) 78%,transparent 100%);filter:blur(2.25rem);transform:translate(-140%) rotate(8deg);animation:yq-sweep-f5b784f3 5.2s ease-in-out infinite}
html[data-theme=light] .hero-sweep{background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.18) 22%,rgba(255,255,255,.42) 42%,rgba(255,255,255,.58) 50%,rgba(255,255,255,.42) 58%,rgba(255,255,255,.18) 78%,transparent 100%)}
.hero-sparks{position:absolute;inset:0;z-index:1;pointer-events:none}
.hero-spark{position:absolute;bottom:.5rem;width:var(--yq-spark-size, 3px);height:var(--yq-spark-size, 3px);border-radius:50%;background:#fde68a;box-shadow:0 0 .5rem #fde68ae6;opacity:0;animation:yq-spark-f5b784f3 var(--yq-spark-dur, 4s) linear infinite;animation-delay:var(--yq-spark-delay, 0s)}
html[data-theme=light] .hero-spark{background:#f59e0b;box-shadow:0 0 .5rem #f59e0bbf}
.hero-inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}
.hero-eyebrow{display:inline-flex;align-items:center;gap:.25rem;padding:.1875rem .5rem;border-radius:62.5rem;background:var(--yq-stage-chip-bg);border:1px solid var(--yq-stage-border);color:var(--yq-stage-number);font-size:.6875rem;font-weight:700;letter-spacing:.02em}
.hero-label{font-size:.8125rem;color:var(--yq-stage-text);line-height:1.4}
.hero-value{display:inline-flex;align-items:center;gap:.5rem;color:var(--yq-stage-number)}
.hero-zap-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.hero-zap{position:relative;z-index:1;animation:yq-pulse-f5b784f3 2.4s ease-in-out infinite;filter:drop-shadow(0 0 .5rem rgba(252,211,77,.55))}
.hero-zap-ring{position:absolute;width:2.25rem;height:2.25rem;border-radius:50%;border:1px solid var(--yq-stage-number);opacity:0;animation:yq-ring-f5b784f3 2.4s ease-out infinite}
.hero-number{font-size:2.75rem;font-weight:800;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;text-shadow:0 .125rem 1.5rem rgba(252,211,77,.28)}
html[data-theme=light] .hero-number{text-shadow:none}
.hero-badge{display:inline-flex;align-items:center;gap:.3125rem;font-size:.6875rem;font-weight:700;color:var(--yq-stage-number);background:var(--yq-stage-chip-bg);border:1px solid var(--yq-stage-border);border-radius:62.5rem;padding:.25rem .625rem;line-height:1.4}
.hero-signup{margin-top:.25rem;width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding-top:.6875rem;border-top:1px dashed var(--yq-stage-border)}
.hero-signup-label{font-size:.75rem;color:var(--yq-stage-text)}
.hero-signup-value{display:inline-flex;align-items:center;gap:.1875rem;font-size:.9375rem;font-weight:800;color:var(--yq-stage-number);font-variant-numeric:tabular-nums}
.invite-link-section{display:flex;flex-direction:column;gap:.375rem}
.link-label{font-size:.75rem;font-weight:500;color:var(--yq-text-secondary)}
.link-input-wrapper{display:flex;gap:.375rem}
.link-input{flex:1;min-width:0;padding:.5625rem .6875rem;background:var(--yq-bg-input);border:1px solid var(--yq-border);border-radius:.5rem;color:var(--yq-text-primary);font-size:.75rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;outline:none;transition:border-color .15s ease}
.link-input:focus{border-color:var(--yq-reward)}
.copy-btn{flex-shrink:0;display:inline-flex;align-items:center;gap:.3125rem;padding:0 .9375rem;background:var(--yq-reward);border:none;border-radius:.5rem;color:#1a1205;font-size:.75rem;font-weight:700;cursor:pointer;transition:background .15s ease,transform .12s ease}
.copy-btn:hover{background:var(--yq-reward-hover)}
.copy-btn:active{transform:scale(.97)}
.copy-btn.is-copied{background:#10b981;color:#062b1f}
.invite-qr-row{display:flex;align-items:center;gap:.875rem;margin-top:.25rem}
.invite-qr-box{flex-shrink:0;width:148px;height:148px;padding:10px;background:#fff;border-radius:.625rem;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.invite-qr-box img,.invite-qr-box canvas,.invite-qr-box table{width:128px!important;height:128px!important;display:block}
.invite-qr-box.is-empty{background:var(--yq-bg-input);border:1px dashed var(--yq-border)}
.invite-qr-meta{min-width:0;display:flex;flex-direction:column;gap:.25rem}
.invite-qr-title{font-size:.8125rem;font-weight:700;color:var(--yq-text-primary)}
.invite-qr-tip{font-size:.6875rem;color:var(--yq-text-muted);line-height:1.5}
@media (max-width:640px){
  .invite-qr-row{flex-wrap:wrap}
}

.stats-row{display:flex;align-items:stretch;background:var(--yq-bg-elev-1);border:1px solid var(--yq-border);border-radius:.625rem;padding:.75rem 0}
.stat-item{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:.1875rem}
.stat-value{font-size:1.125rem;font-weight:800;color:var(--yq-text-primary);font-variant-numeric:tabular-nums;line-height:1.2}
.stat-reward{color:var(--yq-reward)}
.stat-label{font-size:.6875rem;color:var(--yq-text-muted)}
.stat-divider{width:1px;background:var(--yq-border);flex-shrink:0}
.tab-header{display:flex;gap:.25rem;flex-shrink:0;border-bottom:1px solid var(--yq-border)}
.tab-btn{display:inline-flex;align-items:center;gap:.3125rem;padding:.4375rem .625rem;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--yq-text-muted);font-size:.75rem;font-weight:500;cursor:pointer;transition:color .15s ease,border-color .15s ease;margin-bottom:-1px}
.tab-btn:hover{color:var(--yq-text-secondary)}
.tab-btn.active{color:var(--yq-text-primary);border-bottom-color:var(--yq-reward);font-weight:600}
.rank-row{display:flex;align-items:center;gap:.5rem;padding:.5rem;border-radius:.5rem;transition:background .15s ease}
.rank-row:hover{background:var(--yq-bg-elev-1)}
.rank-row.is-me{background:var(--yq-reward-soft);box-shadow:inset 0 0 0 1px var(--yq-reward-ring)}
.rank-no{flex-shrink:0;width:1.375rem;text-align:center;font-size:.75rem;font-weight:800;color:var(--yq-text-muted);font-variant-numeric:tabular-nums}
.rank-gold .rank-no{color:#f59e0b;text-shadow:0 0 .625rem rgba(245,158,11,.55)}
.rank-silver .rank-no{color:#94a3b8}
.rank-bronze .rank-no{color:#b45309}
.rank-avatar{flex-shrink:0;width:1.5rem;height:1.5rem;border-radius:50%;object-fit:cover;background:var(--yq-bg-elev-2)}
.rank-gold .rank-avatar{box-shadow:0 0 0 1.5px #f59e0b}
.rank-avatar-empty{display:inline-block}
.rank-name{flex:1;min-width:0;font-size:.75rem;color:var(--yq-text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-people{flex-shrink:0;font-size:.6875rem;color:var(--yq-text-muted);font-variant-numeric:tabular-nums}
.rank-reward{flex-shrink:0;min-width:3.75rem;display:inline-flex;align-items:center;justify-content:flex-end;gap:.125rem;font-size:.75rem;font-weight:800;color:var(--yq-reward);font-variant-numeric:tabular-nums}
.record-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem;border-bottom:1px solid var(--yq-border)}
.record-row:last-of-type{border-bottom:none}
.record-left{min-width:0;display:flex;flex-direction:column;gap:.0625rem}
.record-title{font-size:.75rem;color:var(--yq-text-primary)}
.record-time{font-size:.6875rem;color:var(--yq-text-muted);font-variant-numeric:tabular-nums}
.record-reward{flex-shrink:0;display:inline-flex;align-items:center;gap:.0625rem;font-size:.75rem;font-weight:800;color:var(--yq-reward);font-variant-numeric:tabular-nums}
.load-more-btn{margin-top:.375rem;padding:.4375rem;background:var(--yq-bg-elev-1);border:1px solid var(--yq-border);border-radius:.5rem;color:var(--yq-text-secondary);font-size:.75rem;cursor:pointer;transition:background .15s ease,color .15s ease}
.load-more-btn:hover:not(:disabled){background:var(--yq-bg-elev-2);color:var(--yq-text-primary)}
.load-more-btn:disabled{opacity:.5;cursor:not-allowed}
.rules-box{background:var(--yq-bg-elev-1);border:1px solid var(--yq-border);border-radius:.625rem;padding:.6875rem .875rem}
.rules-title{font-size:.6875rem;font-weight:700;color:var(--yq-text-secondary);margin-bottom:.375rem}
.rules-list{margin:0;padding-left:.875rem;display:flex;flex-direction:column;gap:.25rem}
.rules-list li{font-size:.6875rem;color:var(--yq-text-muted);line-height:1.55}
.rules-cap{color:var(--yq-reward);font-weight:800;font-variant-numeric:tabular-nums}
.rules-list li.rules-limited{color:var(--yq-text-secondary);font-weight:600}
.yaoqing-modal-fade-enter-active,.yaoqing-modal-fade-leave-active{transition:opacity .2s ease}
.yaoqing-modal-fade-enter-from,.yaoqing-modal-fade-leave-to{opacity:0}
.yaoqing-modal-fade-enter-active .yaoqing-container{transition:transform .34s cubic-bezier(.22,1,.36,1)}
.yaoqing-modal-fade-leave-active .yaoqing-container{transition:transform .2s ease}
.yaoqing-modal-fade-enter-from .yaoqing-container,.yaoqing-modal-fade-leave-to .yaoqing-container{transform:translateY(1rem) scale(.96)}
@media(min-width:48.0625rem){.yaoqing-container{min-height:min(36rem,92vh)}}
@media(max-width:48rem){.yaoqing-container{max-width:34rem}.yaoqing-body{overflow-y:auto}.yaoqing-content{display:flex;flex-direction:column;flex:none}.pane-main{overflow:visible}.pane-board{min-height:20rem}.empty-tip{flex:none;min-height:7rem}}
@media(max-width:30rem){.yaoqing-overlay{padding:.75rem}.yaoqing-header{padding:1rem 1rem .875rem}.yaoqing-body{padding:.875rem 1rem 1rem}.hero-stage{padding:1rem}.hero-number{font-size:2.25rem}.rank-people{display:none}.top-hook{padding:.95rem 3rem .95rem 1rem}.top-hook-num{font-size:1.75rem}}
@media(prefers-reduced-motion:reduce){.hero-aurora,.hero-sweep,.hero-spark,.hero-zap,.hero-zap-ring,.top-hook-shine,.top-hook-num,.pane-main,.pane-board,.rules-box{animation:none!important;opacity:1;transform:none}.hero-sweep,.hero-spark,.top-hook-shine{opacity:0}}


/* Unique generated account portraits */
.user-avatar-placeholder.has-photo,
.user-avatar-placeholder:has(.sy-user-avatar),
.user-avatar-placeholder:has(img.user-avatar) {
  background: transparent;
  color: transparent;
  padding: 0;
  overflow: hidden;
}
.user-avatar-placeholder .sy-user-avatar,
.user-avatar-placeholder img.user-avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
