/* Market page, Polymarket-style layout. Loaded after theme.css on market.html. */
.detail.pm { max-width: 1180px; gap: 32px; padding-top: 4px; }
.pm .detail-back { display: inline-block; margin-bottom: 4px; color: #9899a3; font-weight: 500; }
.pm .detail-back:hover { color: #f7f7f7; }

.pm-head { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.pm-head > img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.pm-head-text { flex: 1; min-width: 0; }
.pm-head h1 { font-size: 24px; line-height: 1.25; font-weight: 600; color: #f7f7f7; letter-spacing: -0.01em; }
.pm-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; color: #9899a3; font-size: 14px; }
.pm-icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: #9899a3; cursor: pointer; }
.pm-icon:hover { background: #1a1925; color: #f7f7f7; }

.pm-chance { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; }
.pm-chance b { font-size: 28px; font-weight: 600; color: #516af6; font-variant-numeric: tabular-nums; }
.pm-delta { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pm-delta.is-up { color: #21c95e; }
.pm-delta.is-down { color: #ff622e; }
.pm-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.pm-key { display: inline-flex; align-items: center; gap: 8px; color: #c9cad1; font-size: 13px; }
.pm-key i { width: 8px; height: 8px; border-radius: 50%; }
.pm-key b { color: #f7f7f7; font-weight: 600; font-variant-numeric: tabular-nums; }

.pm-chart { height: 300px; margin-top: 12px; }
.pm-chart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-bottom: 12px; border-bottom: 1px solid #1f1e2b; font-size: 13px; color: #9899a3; }
.pm-ranges { display: flex; gap: 2px; }
.pm-range { border: 0; background: transparent; color: #9899a3; font: inherit; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.pm-range:hover { color: #f7f7f7; }
.pm-range.is-on { background: #1f1e2b; color: #f7f7f7; }

.pm-outcomes { margin-top: 20px; }
.pm-outcomes-head, .pm-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 280px; align-items: center; gap: 16px; }
.pm-outcomes-head { padding: 0 12px 8px; color: #6b6f7b; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.pm-row { padding: 14px 12px; border-top: 1px solid #1f1e2b; }
.pm-row.is-on { background: #12111a; }
.pm-row-name { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 16px; font-weight: 600; color: #f7f7f7; }
.pm-row-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-row-name img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.pm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin: 0 15px; }
.pm-row-pct { display: flex; align-items: baseline; gap: 8px; }
.pm-row-pct b { font-size: 24px; font-weight: 600; color: #f7f7f7; font-variant-numeric: tabular-nums; }
.pm-row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pm-yes, .pm-no { border: 0; border-radius: 8px; min-height: 44px; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.12s, color 0.12s; }
.pm-yes { background: rgba(33, 201, 94, 0.14); color: #21c95e; }
.pm-no { background: rgba(255, 98, 46, 0.14); color: #ff622e; }
.pm-yes:hover:not(:disabled), .pm-yes.is-on { background: #21c95e; color: #060510; }
.pm-no:hover:not(:disabled), .pm-no.is-on { background: #ff622e; color: #060510; }
.pm-yes:disabled, .pm-no:disabled { opacity: 0.45; cursor: not-allowed; }
.pm-yes:focus-visible, .pm-no:focus-visible, .pm-range:focus-visible, .pm-tab:focus-visible { outline: 2px solid #9eb0ff; outline-offset: 2px; }
