:root {
  --bg: #07080c;
  --bg2: #0c0e16;
  --bg3: #12151f;
  --bg4: #181b28;
  --bg5: #1e2133;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #edf0ff;
  --muted: #8892b8;
  --faint: #4a5278;
  --blue: #4f6eff;
  --blue2: #7a93ff;
  --green: #2ecc8a;
  --orange: #f5a520;
  --red: #ff4b6e;
  --gold: #f5c840;
  --purple: #9466ff;
  --radius: 12px;
  --radius2: 18px;
  --font: "Sora", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.app-body {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  display: flex;
  height: 100vh;
}

.admin-shell {
  min-height: 100vh;
}

.admin-content {
  max-width: 1180px;
}

.sidebar {
  width: 232px;
  flex: 0 0 232px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: var(--bg2);
}

.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  padding: 0 8px 22px;
}

.brand strong,
.login-brand strong {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.logo-gem {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 28px rgba(79, 110, 255, 0.28);
}

.nav-label {
  margin: 12px 8px 5px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s ease;
  text-align: left;
}

/* display:flex 会覆盖部分环境下 [hidden] 的默认 display:none */
.nav-item[hidden],
.nav-count[hidden] {
  display: none !important;
}

.nav-item:hover {
  color: var(--text);
  background: var(--bg4);
}

.nav-item.active {
  color: var(--blue2);
  background: rgba(79, 110, 255, 0.14);
}

.nav-icon {
  width: 16px;
  color: currentColor;
  text-align: center;
}

.nav-count {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
}

.sidebar-bottom {
  margin-top: auto;
}

.user-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.user-pill strong {
  display: block;
  font-size: 12px;
}

.user-pill small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #38c4f5, var(--purple));
}

.avatar.large {
  width: 66px;
  height: 66px;
  font-size: 24px;
}

.main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(79, 110, 255, 0.11), transparent 28rem),
    var(--bg);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.topbar {
  min-height: 58px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.88);
  backdrop-filter: blur(16px);
}

.topbar h1 {
  margin: 0;
  font-size: 15px;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.topbar-title {
  flex: 1;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-pill,
.ai-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(79, 110, 255, 0.24);
  color: var(--blue2);
  background: rgba(79, 110, 255, 0.09);
}

.ai-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
}

.ai-pill i,
.ai-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.content {
  max-width: 1120px;
  padding: 26px 28px 40px;
}

.hero-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background:
    linear-gradient(150deg, rgba(79, 110, 255, 0.16), rgba(148, 102, 255, 0.06) 56%, rgba(18, 21, 31, 0.92)),
    var(--bg3);
}

.eyebrow {
  color: var(--blue2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.hero-compact h2 {
  max-width: 640px;
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-compact p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.system-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.system-cards article,
.stat-strip article,
.level-grid article,
.side-card,
.source-box,
.participation-panel,
.discussion-item {
  border: 1px solid var(--line);
  background: var(--bg3);
}

.system-cards article {
  min-height: 136px;
  padding: 16px;
  border-radius: var(--radius);
}

.system-cards span,
.source-box > span,
.section-label {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-cards strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 32px;
}

.system-cards small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.tab {
  height: 34px;
  padding: 0 15px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tab:hover,
.tab.active {
  color: var(--blue2);
  background: rgba(79, 110, 255, 0.13);
  border-color: rgba(79, 110, 255, 0.28);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.task-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: var(--bg3);
  cursor: pointer;
  transition: 0.18s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 110, 255, 0.42);
  box-shadow: 0 12px 36px rgba(79, 110, 255, 0.11);
}

.task-top,
.task-bottom,
.discussion-top,
.source-meta,
.detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-top {
  justify-content: space-between;
}

.task-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.48;
}

.task-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.task-source {
  color: var(--faint);
  font-size: 10.5px;
}

.countdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--faint);
  margin-bottom: 4px;
}

.countdown-row .bar-warn { color: var(--orange); }
.countdown-row .bar-urgent { color: var(--red); }

.progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg5);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 0.6s ease, background 0.4s ease;
}

.progress span.bar-warn {
  background: linear-gradient(90deg, var(--orange), #f97316);
}

.progress span.bar-urgent {
  background: linear-gradient(90deg, var(--red), #ef4444);
}

.task-bottom {
  margin-top: auto;
  color: var(--faint);
  font-size: 10.5px;
}

.reward {
  color: var(--orange);
  font-weight: 800;
}

/* Participated page */
.participated-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.participated-card[data-participation-id] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: 0.18s ease;
}

.participated-card[data-participation-id]:hover {
  border-color: rgba(79, 110, 255, 0.42);
  box-shadow: 0 8px 24px rgba(79, 110, 255, 0.08);
}

.redemption-proof-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.redemption-proof-label {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.redemption-proof-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.redemption-proof-thumb {
  display: block;
  width: 88px;
  height: 88px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg4);
  cursor: zoom-in;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.redemption-proof-thumb:hover {
  border-color: rgba(79, 110, 255, 0.5);
  transform: translateY(-1px);
}

.redemption-proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.redemption-proof-empty {
  margin: 0;
  font-size: 12px;
}

body.proof-lightbox-open {
  overflow: hidden;
}

.proof-lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.proof-lightbox.open {
  display: flex;
}

.proof-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 12, 0.88);
  backdrop-filter: blur(8px);
}

.proof-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.proof-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.proof-lightbox-body {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 960px);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.proof-lightbox-body img {
  max-width: 100%;
  max-height: calc(88vh - 40px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.proof-lightbox-body figcaption {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.participated-settlement {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  display: inline-block;
  width: fit-content;
}

.participated-settlement.due {
  color: var(--orange);
  background: rgba(255, 159, 28, 0.1);
}

.participated-settlement.settled {
  color: var(--green, #22c55e);
  background: rgba(34, 197, 94, 0.1);
}

.participated-reward {
  font-size: 12.5px;
  color: var(--muted);
}

.participated-reward strong {
  color: var(--orange);
}

.muted-p {
  font-size: 12px;
  color: var(--faint);
  margin: 0;
}

.muted {
  color: var(--faint);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--blue2);
  background: rgba(79, 110, 255, 0.14);
  font-size: 10px;
  font-weight: 800;
}

.badge.prediction {
  color: #b494ff;
  background: rgba(148, 102, 255, 0.15);
}

.badge.challenge {
  color: var(--blue2);
  background: rgba(79, 110, 255, 0.14);
}

.badge.fire {
  color: var(--orange);
  border: 1px solid rgba(245, 165, 32, 0.24);
  background: rgba(245, 165, 32, 0.1);
}

.badge.stage {
  color: var(--gold);
  background: rgba(245, 200, 64, 0.12);
}

.detail-wrap {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  padding: 26px 28px 44px;
}

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-head h2 {
  margin: 12px 0 8px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.source-box,
.participation-panel,
.side-card {
  padding: 18px;
  border-radius: var(--radius);
}

.source-box h3 {
  margin: 8px 0;
  font-size: 14px;
}

.source-box p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.source-meta {
  color: var(--faint);
  font-size: 10.5px;
}

.source-link {
  margin-top: 13px;
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--blue2);
  border: 1px solid rgba(79, 110, 255, 0.24);
  background: rgba(79, 110, 255, 0.08);
  cursor: pointer;
}

.option-list,
.discussion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg4);
  cursor: pointer;
}

.option.active {
  border-color: var(--blue);
  background: rgba(79, 110, 255, 0.1);
}

.option input {
  accent-color: var(--blue);
}

.pool-hint {
  margin-top: 10px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.pool-hint strong {
  color: var(--blue);
}

.stake-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg4);
}

.stake-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.stake-chip {
  height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--muted);
  border: 1px solid var(--line2);
  background: var(--bg3);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.stake-chip.active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.text-area {
  width: 100%;
  min-height: 96px;
  margin-top: 12px;
  padding: 13px;
  resize: vertical;
  border: 1px solid var(--line2);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--bg4);
}

.text-area:focus {
  border-color: var(--blue);
}

.section-label {
  margin-bottom: 10px;
}

.discussion-item {
  padding: 15px 17px;
  border-radius: var(--radius);
}

.discussion-item.highlight {
  border-color: rgba(46, 204, 138, 0.3);
  background: rgba(46, 204, 138, 0.04);
}

.discussion-top {
  margin-bottom: 8px;
}

.discussion-top strong {
  font-size: 12.5px;
}

.discussion-top small {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.discussion-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.ai-note {
  padding: 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
}

.side-card h3 {
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 11.5px;
}

/* 运营结算面板 */
.resolve-panel {
  border: 1px solid color-mix(in srgb, var(--yellow, #f59e0b) 30%, transparent);
}

.resolve-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.resolve-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resolve-option-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.resolve-option-btn:hover:not(:disabled) {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
}

.resolve-option-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.resolve-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.resolve-desc {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.resolve-stat {
  font-size: 11px;
  color: var(--muted);
}

.resolve-task-id {
  margin: 10px 0 0;
  font-size: 10px;
  color: var(--faint);
}

.resolve-locked {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  font-size: 12px;
  color: var(--muted);
}

.resolve-locked strong {
  color: var(--text);
  font-size: 13px;
}

.resolve-confirm {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--yellow, #f59e0b) 40%, transparent);
  background: color-mix(in srgb, var(--yellow, #f59e0b) 6%, var(--surface));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resolve-confirm-label {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.resolve-confirm-option {
  font-size: 14px;
  color: var(--text);
}

.resolve-confirm-warn {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.resolve-confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* 结算页 tab 切换 */
.settle-tab-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.settle-tab {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border, #333);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.settle-tab:hover {
  border-color: var(--blue);
  color: var(--text);
}

.settle-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* 观点拆解评级 */
.challenge-settle-body {
  margin-top: 12px;
}

.challenge-loading,
.challenge-error,
.challenge-empty,
.challenge-hint {
  margin: 6px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.challenge-error {
  color: var(--red, #f87171);
}

.challenge-grade-header {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.challenge-comment-card {
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--surface-alt, var(--surface));
}

.challenge-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.challenge-comment-user {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.challenge-comment-time {
  font-size: 11px;
  color: var(--faint);
}

.challenge-comment-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.challenge-grade-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.grade-btn {
  padding: 4px 10px;
  font-size: 12px;
  border-color: var(--border, #333);
  color: var(--muted);
}

.grade-btn .grade-pts {
  opacity: 0.65;
  font-size: 10.5px;
  margin-left: 2px;
}

.grade-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--text);
}

.grade-btn--active {
  background: color-mix(in srgb, var(--blue) 15%, var(--surface));
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

.grade-btn--active .grade-pts {
  opacity: 1;
}

.challenge-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #333);
}

.challenge-submit-hint {
  font-size: 11.5px;
  color: var(--faint);
}

/* 结算页 */
.settle-section-label {
  padding: 6px 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settle-section-label--done {
  margin-top: 20px;
  color: var(--faint);
}

.settle-card {
  border-left: 3px solid var(--blue);
}

.settle-card--done {
  border-left-color: var(--faint);
  opacity: 0.7;
}

.settle-card--muted {
  border-left-color: var(--faint);
  opacity: 0.88;
}

.settle-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.settle-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.settle-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--surface);
  font-size: 12.5px;
}

.settle-opt-key {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settle-opt-label {
  flex: 1;
  color: var(--text);
}

.settle-opt-stat {
  font-size: 11px;
  color: var(--muted);
}

.settle-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin: 4px 0 10px;
}

.settle-result {
  font-size: 13px;
  color: var(--text);
  margin: 6px 0 4px;
}

.settle-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settle-confirm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--yellow, #f59e0b) 40%, transparent);
  background: color-mix(in srgb, var(--yellow, #f59e0b) 6%, var(--surface));
  font-size: 13px;
  color: var(--text);
}

.settle-confirm-row {
  display: flex;
  gap: 8px;
}

/* 算力申请兑换 toggle */
.redeem-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.redeem-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.redeem-toggle-track {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--line2);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.redeem-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.redeem-toggle-input:checked + .redeem-toggle-track {
  background: var(--green, #22c55e);
}

.redeem-toggle-input:checked + .redeem-toggle-track::after {
  transform: translateX(16px);
}

.redeem-toggle-label {
  font-size: 13px;
  color: var(--muted);
}

.redeem-toggle-input:checked ~ .redeem-toggle-label {
  color: var(--green, #22c55e);
  font-weight: 600;
}

.side-row strong {
  color: var(--text);
  font-family: var(--mono);
}

.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.16s ease;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.btn.primary:hover {
  box-shadow: 0 0 28px rgba(79, 110, 255, 0.28);
}

.btn.ghost,
.btn.outline {
  color: var(--muted);
  border: 1px solid var(--line2);
  background: transparent;
}

.btn.outline.danger {
  color: #ff9aad;
  border-color: rgba(255, 75, 110, 0.3);
}

.btn.ghost:hover,
.btn.outline:hover {
  color: var(--text);
  border-color: var(--blue);
  background: rgba(79, 110, 255, 0.08);
}

.btn.full {
  width: 100%;
  min-height: 44px;
}

.stat-strip,
.level-grid {
  display: grid;
  gap: 12px;
}

.stat-strip {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
}

.stat-strip article,
.level-grid article {
  padding: 18px;
  border-radius: var(--radius);
}

.stat-strip strong {
  display: block;
  color: var(--blue2);
  font-family: var(--mono);
  font-size: 25px;
}

.stat-strip span,
.level-grid p {
  color: var(--faint);
  font-size: 11px;
}

.rep-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(79, 110, 255, 0.16), rgba(148, 102, 255, 0.06), transparent);
}

.rep-hero h2 {
  margin: 0 0 6px;
}

.rep-hero p {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0;
}

.rep-bar {
  width: min(460px, 72vw);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg4);
}

.rep-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transition: width 0.6s ease;
}

/* Wallet cards on user center page */
.wallet-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 28px 4px;
}

.wallet-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg3);
}

.wallet-card span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wallet-card strong {
  font-family: var(--mono);
  font-size: 32px;
  color: var(--orange);
  line-height: 1;
}

.wallet-card.rep-card strong {
  color: var(--blue2);
}

.wallet-card small {
  color: var(--muted);
  font-size: 11px;
}

.rep-bar-section {
  padding: 10px 28px 4px;
}

.wallet-update-time {
  padding: 0 28px 10px;
  color: var(--faint);
  font-size: 11px;
  margin: 0;
}

.wallet-ledger-section {
  padding: 0 28px 16px;
}

.level-grid {
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 28px 40px;
}

.level-grid span {
  color: var(--blue2);
  font-family: var(--mono);
  font-size: 11px;
}

.level-grid strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 14px;
}

.review-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
}

.review-toolbar label,
.review-actions label {
  display: grid;
  gap: 6px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-toolbar select,
.review-actions select,
.review-actions input,
.review-manual input {
  min-height: 34px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg4);
}

.review-toolbar select,
.review-actions select {
  min-width: 150px;
  padding: 0 10px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg3);
}

.review-head,
.review-meta,
.review-actions,
.review-manual {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-head {
  justify-content: space-between;
}

.review-head small,
.review-meta span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.review-card h3 {
  margin: 12px 0 7px;
  font-size: 14px;
  line-height: 1.45;
}

.review-card p,
.review-comment p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.review-meta {
  margin: 12px 0;
}

.review-comment {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg4);
}

.review-comment strong {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-manual {
  margin: 12px 0;
}

.review-manual input {
  flex: 1 1 220px;
  padding: 0 11px;
}

.review-actions {
  margin-top: 12px;
}

.review-actions input {
  flex: 1 1 260px;
  padding: 0 11px;
}

.launch-page {
  max-width: 1180px;
  padding: 26px 28px 46px;
}

.launch-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background:
    linear-gradient(145deg, rgba(79, 110, 255, 0.24), rgba(46, 204, 138, 0.08) 48%, rgba(18, 21, 31, 0.96)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1400&q=80") center/cover;
  background-blend-mode: overlay;
}

.launch-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.launch-copy h2 {
  max-width: 780px;
  margin: 14px 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.launch-copy p {
  max-width: 660px;
  margin: 0;
  color: #c3c9e3;
  font-size: 15px;
  line-height: 1.9;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.launch-actions .btn {
  min-height: 42px;
}

.launch-meter {
  display: grid;
  gap: 12px;
  align-content: center;
}

.launch-meter article,
.journey-grid article,
.reward-list article,
.launch-side,
.code-grid article {
  border: 1px solid var(--line);
  background: rgba(18, 21, 31, 0.88);
}

.launch-meter article {
  min-height: 114px;
  padding: 18px;
  border-radius: var(--radius);
}

.launch-meter span,
.launch-meter small {
  color: #aeb6d4;
  font-size: 11px;
}

.launch-meter span {
  font-weight: 800;
}

.launch-meter strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 36px;
}

.launch-section {
  margin-top: 24px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h3,
.launch-side h3 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: 0;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 10px;
}

.journey-grid article {
  min-height: 172px;
  padding: 15px;
  border-radius: var(--radius);
}

.journey-grid span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.journey-grid strong {
  display: block;
  margin: 10px 0 7px;
  font-size: 13px;
}

.journey-grid p,
.reward-list span,
.launch-side p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.launch-section.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.reward-list,
.asset-list {
  display: grid;
  gap: 10px;
}

.reward-list article {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
}

.reward-list strong {
  color: var(--text);
  font-size: 13px;
}

.redemption-panel {
  scroll-margin-top: 22px;
}

.redemption-panel > .launch-side {
  margin-top: 74px;
}

.redemption-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 21, 31, 0.88);
}

.redemption-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.redemption-form label.wide,
.redemption-form .form-actions {
  grid-column: 1 / -1;
}

.redemption-form span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
}

.redemption-form input,
.redemption-form select,
.redemption-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--text);
  background: var(--bg4);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.redemption-form input:not(.visually-hidden-file),
.redemption-form select,
.file-upload-control {
  height: 42px;
  min-height: 42px;
}

.redemption-form .field-hint {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.redemption-form .field-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.redemption-form .field-title-line .field-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-form .field-link {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-form .field-link:hover {
  color: var(--blue2);
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.file-upload-control {
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--muted);
  background: var(--bg4);
  font: inherit;
  font-size: 13px;
  display: flex;
  align-items: center;
  align-self: start;
  gap: 10px;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.file-upload-control:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(79, 110, 255, 0.14);
  outline: none;
}

.file-upload-control .file-upload-action {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  color: var(--text);
  background: var(--bg3);
  font-size: 11px;
  font-weight: 800;
  line-height: 24px;
}

.file-upload-control .file-upload-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-form textarea {
  min-height: 86px;
  padding-top: 11px;
  resize: vertical;
}

.redemption-form input:focus,
.redemption-form select:focus,
.redemption-form textarea:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(79, 110, 255, 0.14);
}

.redemption-success-detail {
  margin-top: 10px;
}

.redemption-success-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.redemption-success-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.redemption-success-list li span {
  color: var(--faint);
  flex-shrink: 0;
}

.redemption-success-list li strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.redemption-proof-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue2);
  cursor: pointer;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.redemption-proof-link:hover {
  color: var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.form-output {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(46, 204, 138, 0.25);
  border-radius: var(--radius);
  background: rgba(46, 204, 138, 0.08);
}

.form-output strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 13px;
}

.form-output p {
  margin: 0 0 10px;
  color: #c3c9e3;
  font-size: 12px;
  line-height: 1.7;
}

.form-output pre {
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  color: #dce3ff;
  background: #090b12;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
}

.launch-side {
  padding: 18px;
  border-radius: var(--radius);
}

.ops-checklist {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.ops-checklist span {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--bg4);
  font-size: 11px;
  font-weight: 800;
}

.metric-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.metric-stack div {
  min-height: 78px;
  padding: 13px;
  border-radius: 10px;
  background: var(--bg4);
}

.metric-stack strong {
  display: block;
  color: var(--blue2);
  font-family: var(--mono);
  font-size: 26px;
}

.metric-stack span {
  color: var(--faint);
  font-size: 11px;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.code-grid article {
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius);
}

.code-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
}

.code-grid pre {
  min-height: 250px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  color: #dce3ff;
  background: #090b12;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
}

.asset-list a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue2);
  background: var(--bg3);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.asset-list a:hover {
  border-color: var(--blue);
  background: rgba(79, 110, 255, 0.09);
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 12, 0.8);
  backdrop-filter: blur(14px);
}

.login-screen.open {
  display: flex;
}

.login-box {
  position: relative;
  width: min(390px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px;
  border: 1px solid var(--line2);
  border-radius: 22px;
  background: var(--bg2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.close-text {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--faint);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.login-box h1 {
  margin: 10px 0 0;
  font-size: 20px;
}

.login-box p,
.login-box small {
  color: var(--muted);
  line-height: 1.7;
  font-size: 12px;
}

.login-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--bg3);
}

.login-tabs--triple {
  grid-template-columns: 1fr 1fr 1fr;
}

.auth-sms-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.auth-sms-code {
  min-width: 0;
}

.auth-step-hint {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.auth-step-hint.ok {
  color: var(--green, #4ade80);
}

.register-step-label {
  margin: 0 0 12px;
  color: var(--blue2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.register-step[hidden] {
  display: none !important;
}

.login-tab {
  min-height: 34px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.login-tab.active {
  color: var(--text);
  background: var(--bg4);
}

.auth-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.auth-panel.active {
  display: flex;
}

.login-box input,
.login-box textarea {
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--bg3);
  text-transform: none;
}

.login-box input {
  height: 42px;
}

.login-box textarea {
  min-height: 112px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.5;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

.captcha-image {
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--muted);
  background: var(--bg3);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.captcha-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-box input:focus,
.login-box textarea:focus {
  border-color: var(--blue);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  max-width: 340px;
  padding: 13px 16px;
  border: 1px solid var(--line2);
  border-radius: 13px;
  color: var(--text);
  background: var(--bg3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  transform: translateX(calc(100% + 30px));
  transition: 0.28s ease;
  font-size: 12.5px;
}

.toast.show {
  transform: translateX(0);
}

@media (max-width: 900px) {
  .app-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shell {
    min-height: 100dvh;
    height: auto;
    display: block;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .brand,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }

  .nav-item {
    width: auto;
    white-space: nowrap;
  }

  .main {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .login-screen {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px 0;
    -webkit-overflow-scrolling: touch;
  }

  .login-box {
    margin: 0 0 16px;
    padding: 24px;
  }

  .hero-compact,
  .launch-hero,
  .launch-section.split,
  .journey-grid,
  .code-grid,
  .redemption-form,
  .detail-wrap,
  .stat-strip,
  .level-grid {
    grid-template-columns: 1fr;
  }

  .wallet-cards {
    grid-template-columns: 1fr 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    margin-left: 0;
  }
}

/* QR code download widget — side tab + expandable panel */
.qr-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
}

.qr-trigger {
  background: var(--orange, #f97316);
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  padding: 14px 7px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  writing-mode: vertical-rl;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transition: background 0.15s;
  flex-shrink: 0;
}

.qr-trigger:hover {
  background: #ea6c0a;
}

.qr-trigger svg {
  writing-mode: horizontal-tb;
  flex-shrink: 0;
}

.qr-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: -4px 2px 16px rgba(0, 0, 0, 0.12);
  width: 128px;
  overflow: hidden;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  transition: max-width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  pointer-events: none;
}

.qr-widget.open .qr-panel {
  max-width: 160px;
  padding: 14px 12px;
  opacity: 1;
  pointer-events: auto;
}

.qr-panel-img {
  width: 104px;
  height: 104px;
  display: block;
  flex-shrink: 0;
}

.qr-panel-text {
  font-size: 11px;
  text-align: center;
  color: #374151;
  line-height: 1.5;
  margin: 0;
  white-space: nowrap;
}
