.i18n-pending body {
  visibility: hidden;
}

.yuce-shell {
  background: #000;
  min-height: 100vh;
}

.yuce-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(242, 184, 75, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(37, 214, 149, 0.04), transparent),
    #000;
  pointer-events: none;
}

.yuce-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
}

.yuce-nav .ankh-wordmark {
  font-size: 48px;
}

.yuce-nav .nav-links > a {
  padding: 10px 0;
  color: rgba(244, 240, 223, 0.78);
  text-transform: uppercase;
  letter-spacing: 0;
  transition: color 180ms ease;
}

.yuce-nav .nav-links > a:hover,
.yuce-nav .nav-links > a.nav-active {
  color: var(--gold);
}

.yuce-auth-button {
  margin-left: auto;
  max-width: 210px;
  min-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(242, 184, 75, 0.36);
  border-radius: 6px;
  background: rgba(242, 184, 75, 0.08);
  color: #fff08a;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}
.yuce-auth-button.signed-in { border-color: rgba(37, 214, 149, 0.4); color: var(--green); }

.yuce-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.8);
}
.yuce-auth-modal[hidden] { display: none; }
.yuce-auth-window {
  width: min(420px, calc(100vw - 24px));
  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: 8px;
  background: #050606;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.74);
  color: var(--text);
}
.yuce-auth-window header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(242, 184, 75, 0.14);
}
.yuce-auth-window header strong { color: #fff08a; font-size: 14px; }
.yuce-auth-window button,
.yuce-auth-window input {
  min-height: 38px;
  border: 1px solid rgba(244, 240, 223, 0.14);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.045);
  color: var(--text);
  padding: 0 11px;
}
#yuceCloseAuth { width: 34px; min-height: 34px; padding: 0; font-size: 20px; }
.yuce-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 12px 12px 0; }
.yuce-auth-tabs button.active,
.yuce-auth-primary {
  border-color: rgba(255, 240, 138, 0.7) !important;
  background: linear-gradient(135deg, #fff08a, #f6c75a 54%, #75f0a4) !important;
  color: #080908 !important;
  font-weight: 900;
}
#yuceAuthForm { display: grid; gap: 7px; padding: 12px; }
#yuceAuthForm label { color: var(--muted); font-size: 12px; }
#yuceAuthForm input:focus { border-color: rgba(255, 240, 138, 0.65); outline: 2px solid rgba(242, 184, 75, 0.12); }
#yuceAuthSubmit { margin-top: 5px; }
/* 中文注释：F-021 邮箱行 + 一键分配 / 密钥恢复按钮，不改主视觉风格 */
.yuce-auth-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.yuce-auth-email-row input { min-width: 0; width: 100%; }
.yuce-auth-secondary.yuce-auth-inline {
  margin: 0;
  white-space: nowrap;
  padding: 0 12px;
  font-size: 12px;
}
#yuceAuthRestoreKey { margin: 0; width: 100%; }
#yuceAuthKeyFile {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.yuce-auth-rule { margin: 0; padding: 0 12px 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.yuce-auth-current { margin: 0; padding: 16px 12px 8px; color: var(--muted); }
.yuce-auth-current strong { display: block; margin-top: 5px; color: var(--green); overflow-wrap: anywhere; }
.yuce-auth-secondary { margin: 0 12px 12px; }
#yuceAuthDownloadKey { margin: 0 12px 8px; width: calc(100% - 24px); }
.yuce-auth-status { min-height: 18px; margin: 0; padding: 0 12px 12px; color: var(--muted); font-size: 12px; }
.yuce-auth-status.error { color: var(--red); }
.yuce-auth-status.success { color: var(--green); }
.yuce-auth-status.pending { color: var(--gold); }

.yuce-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 56px;
  align-items: center;
  padding: 72px 6vw 48px; /* 首屏整体上移约150px级 */
  border-bottom: 1px solid var(--line);
}

.yuce-hero-copy {
  max-width: 720px;
}

.yuce-title {
  margin: 12px 0 0;
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(180deg, #ffe7a3 0%, #f2b84b 46%, #a86a17 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 26px rgba(242, 184, 75, 0.15), 0 0 56px rgba(242, 184, 75, 0.06);
}

.yuce-subtitle {
  margin: 18px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.55;
}

.yuce-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat-card {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid rgba(242, 184, 75, 0.14);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.66);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.hero-stat-value {
  color: var(--gold);
  font-size: 32px;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(242, 184, 75, 0.18);
}

.hero-stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.yuce-content {
  padding: 0 6vw 72px;
}

.community-section {
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--line);
}

.community-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.community-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.community-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.community-create-button,
.community-submit-button {
  min-height: 38px;
  border: 1px solid rgba(242, 184, 75, 0.54);
  border-radius: 5px;
  background: #f2b84b;
  color: #080908;
  padding: 0 15px;
  font-weight: 900;
  cursor: pointer;
}

.community-create-button:hover,
.community-submit-button:hover { background: #ffe08a; }
.community-create-button:disabled,
.community-submit-button:disabled { cursor: wait; opacity: 0.55; }

.community-status,
.community-create-status {
  min-height: 18px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.community-status.success,
.community-create-status.success { color: var(--green); }
.community-status.error,
.community-create-status.error { color: var(--red); }

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.community-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(244, 240, 223, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: #050606;
}

.community-card.status-published { border-left-color: var(--green); }
.community-card.status-rejected,
.community-card.status-closed { border-left-color: var(--red); }

.community-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.community-card > header b { color: var(--gold); }
.community-card.status-published > header b { color: var(--green); }
.community-card.status-rejected > header b,
.community-card.status-closed > header b { color: var(--red); }

.community-card h3 {
  min-height: 42px;
  margin: 12px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.community-outcome-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.community-outcome-pair span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(244, 240, 223, 0.08);
  border-radius: 4px;
  color: rgba(244, 240, 223, 0.82);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.community-card > p,
.community-card > time {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.community-vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}

.community-vote-actions button,
.community-open-market,
.community-login-prompt {
  min-height: 34px;
  border: 1px solid rgba(244, 240, 223, 0.14);
  border-radius: 4px;
  background: rgba(244, 240, 223, 0.04);
  color: var(--text);
  padding: 0 10px;
  font-weight: 800;
  cursor: pointer;
}

.community-vote-actions button:first-child { border-color: rgba(117, 240, 164, 0.35); color: var(--green); }
.community-vote-actions button:last-child { border-color: rgba(255, 92, 138, 0.35); color: var(--red); }
.community-vote-actions button:disabled { cursor: wait; opacity: 0.5; }
.community-open-market { width: 100%; margin-top: 12px; border-color: rgba(117, 240, 164, 0.35); color: var(--green); }
.community-login-prompt { width: min(320px, 100%); border-color: rgba(242, 184, 75, 0.35); color: var(--gold); }
.community-empty { margin: 0; color: var(--muted); font-size: 12px; }

.community-create-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.82);
}

.community-create-modal[hidden] { display: none; }

.community-create-window {
  display: grid;
  gap: 10px;
  width: min(620px, calc(100vw - 24px));
  max-height: min(75vh, 720px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(242, 184, 75, 0.3);
  border-radius: 8px;
  background: #050606;
  color: var(--text);
}

.community-create-window header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(242, 184, 75, 0.14);
}

.community-create-window header strong { color: #fff08a; font-size: 14px; }
.community-create-window header button { width: 34px; min-height: 34px; padding: 0; font-size: 20px; }
.community-create-window label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.community-create-window input,
.community-create-window textarea,
.community-create-window header button {
  border: 1px solid rgba(244, 240, 223, 0.14);
  border-radius: 5px;
  background: rgba(244, 240, 223, 0.045);
  color: var(--text);
}
.community-create-window input { min-height: 38px; padding: 0 10px; }
.community-create-window textarea { min-height: 108px; resize: vertical; padding: 10px; line-height: 1.45; }
.community-create-window input:focus,
.community-create-window textarea:focus { outline: 2px solid rgba(242, 184, 75, 0.16); border-color: rgba(242, 184, 75, 0.6); }
.community-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.yuce-panel {
  min-height: 400px;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 16px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-left h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.toolbar-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(242, 184, 75, 0.22);
  border-radius: 999px;
  background: rgba(242, 184, 75, 0.08);
  color: var(--gold);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 4px;
}

.filter-chip {
  min-height: 32px;
  border: 1px solid rgba(244, 240, 223, 0.08);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.035);
  color: var(--muted);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: all 140ms ease;
}

.filter-chip:hover {
  color: var(--text);
  background: rgba(244, 240, 223, 0.06);
}

.filter-chip.active {
  color: var(--ink);
  border-color: rgba(246, 199, 90, 0.6);
  background: linear-gradient(135deg, rgba(255, 240, 138, 0.8), rgba(246, 199, 90, 0.7));
}

.search-box input {
  height: 32px;
  width: 200px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 160ms ease;
}

.search-box input:focus {
  border-color: rgba(242, 184, 75, 0.5);
}

.search-box input::placeholder {
  color: var(--muted);
}

.refresh-btn {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.035);
  color: var(--muted);
  font-size: 18px;
  transition: all 140ms ease;
}

.refresh-btn:hover {
  color: var(--gold);
  border-color: rgba(242, 184, 75, 0.3);
  background: rgba(242, 184, 75, 0.08);
}

.refresh-btn.spinning {
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.poly-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.poly-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  contain: layout paint;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.poly-card:hover {
  border-color: rgba(242, 184, 75, 0.3);
  background: rgba(242, 184, 75, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.poly-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.poly-card-image-slot {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
}

.poly-card-image-placeholder[hidden],
.poly-card-image[hidden] {
  display: none;
}

.poly-card-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(242, 184, 75, 0.06);
}

.poly-card-image-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(242, 184, 75, 0.14);
  background: linear-gradient(135deg, rgba(242, 184, 75, 0.12), rgba(37, 214, 149, 0.08));
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}

.poly-card-question {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poly-card-outcomes {
  display: grid;
  gap: 6px;
}

.poly-outcome-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.poly-outcome-bar-wrap {
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.poly-outcome-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 220ms ease-out;
}

.poly-outcome-bar-fill.yes {
  background: linear-gradient(90deg, rgba(117, 240, 164, 0.6), rgba(117, 240, 164, 0.25));
}

.poly-outcome-bar-fill.no {
  background: linear-gradient(90deg, rgba(255, 92, 138, 0.5), rgba(255, 92, 138, 0.2));
}

.poly-outcome-label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  z-index: 1;
}

/* 中文注释：阿拉伯语只翻转文字与布局顺序；价格、百分比、K线相关数字仍保持从左到右，避免金融数值错读。 */
html[dir="rtl"] .yuce-shell {
  direction: rtl;
}

html[dir="rtl"] .yuce-auth-button {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .poly-outcome-label {
  left: auto;
  right: 10px;
}

html[dir="rtl"] .poly-outcome-price,
html[dir="rtl"] .detail-outcome-pct,
html[dir="rtl"] .detail-trade-balance,
html[dir="rtl"] .position-metrics-grid b,
html[dir="rtl"] .detail-margin-preview b,
html[dir="rtl"] .detail-withdrawal-eligibility b,
html[dir="rtl"] input[type="number"] {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .poly-outcome-price,
html[dir="rtl"] .detail-outcome-pct {
  text-align: left;
}

html[dir="rtl"] .pos-status {
  margin-left: 0;
  margin-right: auto;
}

.poly-outcome-price {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  width: 92px;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.poly-outcome-price.yes-price {
  color: var(--green);
}

.poly-outcome-price.no-price {
  color: var(--red);
}

.poly-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 240, 223, 0.06);
}

.poly-card-meta {
  color: var(--muted);
  font-size: 12px;
}

.poly-card-volume {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.poly-card-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid rgba(242, 184, 75, 0.16);
  border-radius: 999px;
  background: rgba(242, 184, 75, 0.06);
  color: rgba(255, 219, 129, 0.88);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.poly-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 28px 0 0;
}

.poly-pagination button {
  min-height: 34px;
  min-width: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.035);
  color: var(--muted);
  padding: 0 6px;
  font-weight: 800;
  font-size: 13px;
  transition: all 140ms ease;
}

.poly-pagination button:hover {
  color: var(--text);
  background: rgba(244, 240, 223, 0.06);
}

.poly-pagination button.active {
  color: var(--ink);
  border-color: rgba(246, 199, 90, 0.6);
  background: linear-gradient(135deg, rgba(255, 240, 138, 0.8), rgba(246, 199, 90, 0.7));
}

.yuce-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--muted);
  font-size: 14px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(242, 184, 75, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.yuce-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.yuce-error-icon {
  font-size: 36px;
  color: var(--red);
}

.yuce-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
}

.market-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
}

.market-detail-modal[hidden] {
  display: none;
}

.market-detail-window {
  width: min(860px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(242, 184, 75, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.market-detail-window header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(242, 184, 75, 0.14);
}

.market-detail-window header strong {
  color: #fff08a;
  font-size: 16px;
}

.market-detail-window header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 240, 223, 0.12);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.04);
  color: var(--text);
  font-size: 20px;
}

.market-detail-body {
  padding: 18px;
}

.detail-outcomes {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.detail-outcome-row {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: 10px;
  align-items: center;
}

.detail-outcome-name {
  font-weight: 800;
  font-size: 14px;
}

.detail-outcome-name.yes-name {
  color: var(--green);
}

.detail-outcome-name.no-name {
  color: var(--red);
}

.detail-outcome-bar {
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.detail-outcome-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 400ms ease;
}

.detail-outcome-fill.yes {
  background: linear-gradient(90deg, rgba(117, 240, 164, 0.7), rgba(117, 240, 164, 0.3));
}

.detail-outcome-fill.no {
  background: linear-gradient(90deg, rgba(255, 92, 138, 0.6), rgba(255, 92, 138, 0.25));
}

.detail-outcome-pct {
  font-weight: 900;
  font-size: 16px;
  text-align: right;
  min-width: 96px;
  overflow-wrap: anywhere;
}

.indicative-odds .poly-outcome-price,
.indicative-odds .detail-outcome-pct {
  color: #ffcf79;
  font-size: 11px;
}

.detail-outcome-pct.yes-pct {
  color: var(--green);
}

.detail-outcome-pct.no-pct {
  color: var(--red);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.detail-meta-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.025);
}

.detail-meta-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.detail-meta-item b {
  color: var(--gold);
  font-size: 18px;
}

.detail-description {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.02);
  color: rgba(244, 240, 223, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .yuce-nav { gap: 12px; padding: 0 16px; }
  .yuce-nav .ankh-wordmark { font-size: 38px; }
  .yuce-auth-button { max-width: 126px; padding: 0 8px; }
  .yuce-hero {
    grid-template-columns: 1fr;
    padding: 100px 18px 48px;
  }

  .yuce-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yuce-content {
    padding: 0 18px 48px;
  }

  .community-heading { align-items: stretch; flex-direction: column; }
  .community-create-button { width: 100%; }
  .community-grid { grid-template-columns: 1fr; }
  .community-outcomes { grid-template-columns: 1fr; }

  .panel-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-right {
    width: 100%;
    overflow-x: auto;
  }

  .poly-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

.detail-orderbook-section {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.02);
}

.detail-orderbook-label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-orderbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-orderbook-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(244, 240, 223, 0.06);
  margin-bottom: 4px;
}

.detail-orderbook-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 12px;
  padding: 2px 0;
  position: relative;
  color: rgba(244, 240, 223, 0.82);
  font-weight: 700;
}

.yes-price { color: var(--green); }
.no-price { color: var(--red); }

.obook-bar {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border-radius: 2px;
  opacity: 0.15;
  z-index: 0;
}

.bid-bar { background: var(--green); }
.ask-bar { background: var(--red); }

.detail-orderbook-row > * {
  position: relative;
  z-index: 1;
}

.detail-trade-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(242, 184, 75, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 184, 75, 0.06), rgba(37, 214, 149, 0.03));
  display: grid;
  gap: 10px;
}

.detail-trade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-trade-balance {
  color: var(--gold);
  font-weight: 900;
  font-size: 14px;
}

.detail-trade-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  align-items: center;
}

.detail-trade-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-trade-row select,
.detail-trade-row input[type="number"] {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  width: 100%;
}

.detail-trade-row select:focus,
.detail-trade-row input[type="number"]:focus {
  border-color: rgba(242, 184, 75, 0.5);
}

.detail-trade-row select option {
  background: #0a0a0a;
  color: var(--text);
}

.detail-side-toggle {
  display: flex;
  gap: 4px;
}

.side-btn {
  flex: 1;
  min-height: 36px;
  border: 1px solid rgba(244, 240, 223, 0.08);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.035);
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
  transition: all 140ms ease;
}

.side-btn:hover {
  color: var(--text);
  background: rgba(244, 240, 223, 0.06);
}

.side-btn.active[data-side="long"] {
  color: var(--ink);
  border-color: rgba(117, 240, 164, 0.5);
  background: linear-gradient(135deg, rgba(117, 240, 164, 0.3), rgba(117, 240, 164, 0.15));
}

.side-btn.active[data-side="short"] {
  color: var(--ink);
  border-color: rgba(255, 92, 138, 0.5);
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.3), rgba(255, 92, 138, 0.15));
}

.detail-place-order-btn {
  min-height: 42px;
  border: 1px solid rgba(242, 184, 75, 0.4);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 240, 138, 0.2), rgba(246, 199, 90, 0.12));
  color: #fff08a;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 140ms ease;
  cursor: pointer;
}

.detail-place-order-btn:hover {
  background: linear-gradient(135deg, rgba(255, 240, 138, 0.3), rgba(246, 199, 90, 0.2));
  box-shadow: 0 0 16px rgba(242, 184, 75, 0.15);
}

.detail-place-order-btn:disabled,
.pos-close-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.detail-margin-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(244, 240, 223, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.detail-withdrawal-eligibility {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(248, 183, 77, 0.24);
  border-radius: 6px;
  background: rgba(248, 183, 77, 0.05);
  font-size: 11px;
  color: var(--muted);
}

.detail-withdrawal-eligibility span { display: flex; justify-content: space-between; gap: 8px; }
.detail-withdrawal-eligibility b { color: var(--text); text-align: right; }
.detail-withdrawal-eligibility.unlocked { border-color: rgba(42, 214, 144, 0.42); background: rgba(42, 214, 144, 0.07); }

.detail-margin-preview span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.detail-margin-preview b {
  color: var(--text);
  text-align: right;
}

.detail-trade-message {
  font-size: 13px;
  font-weight: 800;
  min-height: 18px;
}

.detail-trade-message.success {
  color: var(--green);
}

.detail-trade-message.error {
  color: var(--red);
}

.detail-cancel-pending {
  min-height: 30px;
  margin-inline-start: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 207, 121, 0.42);
  border-radius: 5px;
  background: rgba(255, 207, 121, 0.08);
  color: #ffcf79;
  font-weight: 850;
  cursor: pointer;
}

.detail-cancel-pending:disabled { cursor: not-allowed; opacity: 0.5; }

.detail-positions-section {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 240, 223, 0.02);
}

.detail-positions-label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-position-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(244, 240, 223, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.detail-position-row:last-child {
  border-bottom: none;
}

.detail-position-row.positive .pos-pnl {
  color: var(--green);
}

.detail-position-row.negative .pos-pnl {
  color: var(--red);
}

.detail-position-empty {
  padding: 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-position-card {
  display: grid;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 240, 223, 0.06);
}

.detail-position-card:last-child {
  border-bottom: 0;
}

.position-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.position-card-head strong {
  color: var(--text);
}

.pos-side.long { color: var(--green); }
.pos-side.short { color: var(--red); }

.pos-status {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid rgba(244, 240, 223, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.pos-status.liquidated,
.pos-status.settled_loss { color: var(--red); border-color: rgba(255, 92, 138, 0.28); }
.pos-status.settled_win { color: var(--green); border-color: rgba(117, 240, 164, 0.28); }

.position-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.position-metrics-grid span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.position-metrics-grid b {
  color: var(--text);
  text-align: right;
}

.detail-position-card.positive .pos-pnl { color: var(--green); }
.detail-position-card.negative .pos-pnl { color: var(--red); }

.position-source-warning {
  color: var(--gold);
  font-size: 11px;
  line-height: 1.45;
}

.pos-outcome {
  color: var(--text);
  min-width: 40px;
}

.pos-side {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.pos-qty {
  color: var(--text);
}

.pos-entry {
  color: var(--muted);
  font-size: 12px;
}

.pos-pnl {
  margin-left: auto;
  font-weight: 900;
}

.pos-close-btn {
  min-height: 26px;
  border: 1px solid rgba(255, 92, 138, 0.3);
  border-radius: 4px;
  background: rgba(255, 92, 138, 0.08);
  color: var(--red);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transition: all 140ms ease;
  cursor: pointer;
}

@media (max-width: 620px) {
  .detail-trade-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .detail-margin-preview,
  .position-metrics-grid {
    grid-template-columns: 1fr;
  }

  .pos-status {
    margin-left: 0;
  }
}

.pos-close-btn:hover {
  background: rgba(255, 92, 138, 0.18);
  border-color: rgba(255, 92, 138, 0.5);
}

.poly-card.has-position {
  border-color: rgba(242, 184, 75, 0.3);
  background: rgba(242, 184, 75, 0.04);
}

.poly-card-position-badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border: 1px solid rgba(37, 214, 149, 0.3);
  border-radius: 999px;
  background: rgba(37, 214, 149, 0.1);
  color: var(--green);
  padding: 0 6px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.community-section { display: none !important; } /* standalone only */
.yuce-hero-community {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 240, 223, 0.10);
}
.yuce-auth-tabs { display: none !important; }
@media (max-width: 1200px) {
  .poly-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 720px) {
  .poly-grid { grid-template-columns: 1fr !important; }
}

.poly-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

/* yuce-hero-up-20260724 */
.yuce-hero { padding-top: 54px !important; padding-bottom: 32px !important; }
.yuce-hero-community {
  grid-column: 1 / -1 !important;
  margin-top: 4px !important;
  padding-top: 10px !important;
  position: relative;
  overflow: hidden;
}
.yuce-hero-community::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28%;
  height: 1px;
  background: #25d695;
  transform-origin: left center;
  animation: yuce-probability-pulse 4.8s ease-in-out infinite alternate;
}
.poly-card {
  animation: yuce-market-arrival 420ms ease-out both;
}
.poly-card:nth-child(5n + 2) { animation-delay: 45ms; }
.poly-card:nth-child(5n + 3) { animation-delay: 90ms; }
.poly-card:nth-child(5n + 4) { animation-delay: 135ms; }
.poly-card:nth-child(5n) { animation-delay: 180ms; }
@keyframes yuce-probability-pulse {
  0% { transform: scaleX(0.42); opacity: 0.52; }
  100% { transform: scaleX(1); opacity: 1; }
}
@keyframes yuce-market-arrival {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .yuce-hero-community::before,
  .poly-card { animation: none !important; }
}
.poly-grid, .market-grid, .yuce-markets-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
@media (max-width: 1200px) {
  .poly-grid, .market-grid, .yuce-markets-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 720px) {
  .poly-grid, .market-grid, .yuce-markets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .yuce-hero { padding-top: 28px !important; padding-bottom: 24px !important; grid-template-columns: 1fr !important; gap: 22px !important; }
  .yuce-title { font-size: clamp(56px, 22vw, 88px) !important; }
  .yuce-subtitle { margin-top: 10px !important; }
  .yuce-hero-stats .hero-stat-card { padding: 14px !important; }
}
