/* Market page part 2: rules, tabs, trade box. */
.pm-block { margin-top: 32px; }
.pm-block h2 { font-size: 18px; font-weight: 600; color: #f7f7f7; }
.pm-block > p { margin-top: 10px; color: #c9cad1; font-size: 14px; line-height: 1.6; }
.pm-more { margin-top: 8px; }
.pm-more summary { cursor: pointer; color: #9899a3; font-size: 14px; font-weight: 500; list-style: none; }
.pm-more summary::-webkit-details-marker { display: none; }
.pm-more[open] summary { display: none; }
.pm-more p { margin-top: 8px; font-size: 13px; line-height: 1.55; }
.pm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 16px; border: 1px solid #1f1e2b; border-radius: 12px; overflow: hidden; background: #1f1e2b; }
.pm-facts > div { background: #060510; padding: 12px 14px; }
.pm-facts dt { color: #6b6f7b; font-size: 12px; }
.pm-facts dd { margin: 4px 0 0; color: #f7f7f7; font-size: 14px; }
.pm-facts a { color: #6f85ff; }

.pm-tabs { display: flex; gap: 24px; margin-top: 32px; border-bottom: 1px solid #1f1e2b; }
.pm-tab { border: 0; background: none; padding: 10px 0; font: inherit; font-size: 15px; font-weight: 600; color: #9899a3; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.pm-tab span { color: #6b6f7b; font-weight: 500; margin-left: 4px; }
.pm-tab.is-on { color: #f7f7f7; box-shadow: inset 0 -2px 0 #f7f7f7; }
.pm-comment { display: flex; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 14px; border: 1px solid #2a2936; border-radius: 10px; background: #0d0c16; }
.pm-comment:focus-within { border-color: #474b52; }
.pm-comment textarea { flex: 1; resize: none; border: 0; background: transparent; color: #f7f7f7; font: inherit; font-size: 14px; padding: 8px 0; outline: none; }
.pm-comment button { border: 0; border-radius: 8px; padding: 0 16px; background: transparent; color: #6f85ff; font: inherit; font-weight: 600; cursor: pointer; }

.pm-trade { background: #0d0c16; border: 1px solid #2a2936; border-radius: 14px; padding: 16px; }
.pm-trade-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pm-trade-pick img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.pm-trade-pick strong { font-size: 16px; font-weight: 600; color: #f7f7f7; }
.pm-trade-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #1f1e2b; margin: 0 -16px 16px; padding: 0 16px; }
.pm-buysell span { display: inline-block; padding: 10px 0; font-size: 15px; font-weight: 600; color: #f7f7f7; box-shadow: inset 0 -2px 0 #f7f7f7; }
.pm-mode { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: #1a1925; }
.pm-mode button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 600; color: #9899a3; cursor: pointer; }
.pm-mode button[aria-pressed="true"] { background: #2a2936; color: #f7f7f7; }
.pm-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-side .pm-yes, .pm-side .pm-no { min-height: 48px; font-size: 16px; }
.pm-side .pm-yes:not(.is-on), .pm-side .pm-no:not(.is-on) { background: #1a1925; color: #9899a3; }
.pm-side .pm-yes:not(.is-on):hover:not(:disabled) { background: rgba(33, 201, 94, 0.14); color: #21c95e; }
.pm-side .pm-no:not(.is-on):hover:not(:disabled) { background: rgba(255, 98, 46, 0.14); color: #ff622e; }

.pm-amount { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.pm-amount > span { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; color: #f7f7f7; }
.pm-amount small { font-size: 12px; font-weight: 500; color: #6b6f7b; margin-top: 2px; }
.pm-amount input { width: 55%; min-width: 0; border: 0; background: transparent; text-align: right; outline: none; color: #f7f7f7; font: inherit; font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; color-scheme: dark; }
.pm-amount input::placeholder { color: #474b52; }
.pm-chips { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.pm-chips button { border: 1px solid #2a2936; background: transparent; color: #c9cad1; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pm-chips button:hover { background: #1a1925; color: #f7f7f7; }
.pm-towin { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid #1f1e2b; }
.pm-towin span { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; color: #f7f7f7; }
.pm-towin small { font-size: 12px; font-weight: 500; color: #6b6f7b; margin-top: 2px; }
.pm-towin b { font-size: 26px; font-weight: 600; color: #21c95e; font-variant-numeric: tabular-nums; }
.pm-buy { display: block; width: 100%; margin-top: 16px; min-height: 48px; border: 0; border-radius: 10px; background: #516af6; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.pm-buy:hover:not(:disabled) { background: #6f85ff; }
.pm-buy:disabled { background: #1f1e2b; color: #6b6f7b; cursor: not-allowed; }
.pm-fine { margin-top: 12px; color: #6b6f7b; font-size: 12px; line-height: 1.5; text-align: center; }
.pm-fine a { color: #9899a3; text-decoration: underline; }
.pm-trade .pts-panel { border-top-color: #1f1e2b; }

@media (min-width: 960px) { .pm .detail-trade { width: 360px; top: 16px; } }
@media (max-width: 720px) {
  .pm-head h1 { font-size: 20px; }
  .pm-outcomes-head { display: none; }
  .pm-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pm-row-btns { grid-column: 1 / -1; }
  .pm-facts { grid-template-columns: 1fr; }
}
