/* Polymarket 套利计算器扩展 */

.poly-page {
  max-width: 900px;
}

.poly-nav-links {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.poly-nav-links a {
  color: var(--brand);
  text-decoration: none;
}

.poly-nav-links a:hover {
  text-decoration: underline;
}

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

/* 统一页里场景已上移，子状态仍用两列 */
.poly-page .arb-tabs {
  margin-bottom: 1rem;
}

.poly-sub-tabs {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
  padding: 0.28rem;
}

.poly-side-block {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
}

.poly-side-title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.poly-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .poly-dual-grid {
    grid-template-columns: 1fr;
  }
}

.arb-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-2);
}

.poly-implied {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-3);
}

.poly-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-2);
  cursor: pointer;
}

.arb-lead code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface-2));
}

.poly-foot a {
  color: var(--brand);
}

.arb-profit-hero .value.neg {
  color: var(--neg, #ef4444);
}

/* PM 下注本金 / 手续费 — 红色强调 */
.poly-pm-stake,
.poly-pm-fee {
  color: #dc2626 !important;
  font-weight: 700;
}

[data-theme="stake"] .poly-pm-stake,
[data-theme="stake"] .poly-pm-fee {
  color: #f87171 !important;
}

.poly-pm-hero {
  margin-bottom: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, #dc2626 35%, var(--line));
  background: color-mix(in srgb, #dc2626 6%, var(--surface));
}

.poly-pm-hero .label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}

.poly-pm-hero .value {
  display: block;
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.poly-pm-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.poly-pm-split-inline {
  margin: -0.35rem 0 1rem;
  padding: 0 0.2rem;
}

.poly-pm-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-3);
}

.poly-pm-row-total strong {
  font-weight: 700;
}
