html.captured-prices-open { overflow: hidden; }
dialog.captured-prices { width: min(1080px, calc(100vw - 48px)); max-width: none; max-height: min(960px, calc(100dvh - 48px)); padding: 0; border: 1px solid #425970; border-radius: 16px; background: #0d1829; color: #eaf2ff; box-shadow: 0 24px 100px #0009; font: 16px/1.5 system-ui, sans-serif; overflow: hidden; }
dialog.captured-prices[open] { display: flex; flex-direction: column; }
.captured-prices::backdrop { background: #030811d9; }
.captured-prices [hidden] { display: none !important; }
.captured-prices *, .captured-prices *::before, .captured-prices *::after { box-sizing: border-box; }
.captured-prices h2, .captured-prices h3, .captured-prices h4, .captured-prices p { margin-top: 0; }
.cp-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px 20px; background: linear-gradient(130deg, #1a2e46, #101c2d); border-bottom: 1px solid #30445d; }
.cp-title-area { min-width: 0; }
.cp-eyebrow { margin-bottom: 8px; color: #8be3c0; font-size: 14px; font-weight: 750; letter-spacing: .07em; }
.captured-prices .cp-header h2 { margin: 0 0 8px; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.3; overflow-wrap: anywhere; }
.cp-fixture-meta { margin: 0; color: #b7cce2; font-size: 14px; }
.captured-prices button { min-height: 44px; width: auto; border-radius: 8px; padding: 10px 16px; font: 650 14px/1.3 system-ui, sans-serif; color: #dceaff; border: 1px solid #405871; background: #20334a; cursor: pointer; }
.captured-prices button:hover { background: #2d4765; }
.captured-prices button:disabled { opacity: .65; cursor: wait; }
.captured-prices .cp-close { flex: 0 0 auto; }
.cp-toolbar { display: flex; flex-wrap: wrap; flex: 0 0 auto; gap: 12px 18px; align-items: center; padding: 14px 28px; border-bottom: 1px solid #30445d; background: #111f32; }
.cp-status { flex: 1 1 240px; margin: 0; color: #b7cee3; font-size: 14px; }
.cp-body { min-height: 0; min-width: 0; padding: 22px 28px 28px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
.cp-description { margin-bottom: 18px; color: #bdccdf; font-size: 16px; }
.cp-content { min-width: 0; }
.captured-prices .cp-content > section { margin: 0 0 26px; min-width: 0; }
.captured-prices .cp-content > section:last-child { margin-bottom: 0; }
.captured-prices h3 { margin-bottom: 8px; font-size: 20px; line-height: 1.35; }
.cp-section-note { margin-bottom: 16px; color: #b6c9de; font-size: 16px; }
.cp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px 20px; margin: 0; padding: 16px 18px; border: 1px solid #344d65; border-radius: 10px; background: #14253a; }
.cp-facts > div { min-width: 0; }
.cp-facts dt { margin: 0 0 5px; color: #adc2da; font-size: 14px; }
.cp-facts dd { margin: 0; color: #e0edf9; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cp-snapshot-notes { margin-top: 12px; padding: 13px 16px; border: 1px solid #705d37; border-radius: 8px; background: #30281d; color: #efd9ac; font-size: 14px; }
.cp-snapshot-notes p { margin-bottom: 9px; }
.cp-snapshot-notes p:last-child { margin-bottom: 0; }
.cp-context-note { margin: 0 0 14px; color: #c2d7e9; font-size: 14px; }
.cp-quotes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cp-quote { min-width: 0; padding: 16px 13px; border: 1px solid #344d65; border-radius: 10px; background: #13263a; }
.cp-quote-context { border-color: #6dbfa8; box-shadow: inset 0 0 0 1px #6dbfa830; }
.captured-prices .cp-market-label { margin: 0 0 10px; color: #d4e5f5; font-size: 14px; font-weight: 700; line-height: 1.4; }
.cp-selected-market { display: block; width: fit-content; max-width: 100%; margin-bottom: 8px; padding: 3px 7px; border-radius: 5px; background: #244f45; color: #b4eedb; font-size: 14px; }
.cp-price { display: block; margin-bottom: 7px; color: #8ae4c1; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.3; }
.cp-price-missing { color: #9aafc6; }
.cp-bookmaker { margin: 0 0 12px; color: #d0e2f2; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cp-quote-time { margin: 0 0 8px; color: #b3c8df; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cp-quote-time:last-child { margin-bottom: 0; }
.cp-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid #344d65; border-radius: 10px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.captured-prices .cp-comparison { width: 100%; min-width: 980px; margin: 0; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.cp-table-caption { padding: 14px 16px; color: #c0d4e7; background: #152940; text-align: left; font-size: 14px; }
.captured-prices .cp-comparison th, .captured-prices .cp-comparison td { padding: 14px 13px; border-bottom: 1px solid #2e435a; background: transparent; position: static; text-transform: none; letter-spacing: normal; text-align: left; vertical-align: top; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.captured-prices .cp-comparison thead th { background: #1b3048; color: #deebf8; font-weight: 700; }
.captured-prices .cp-comparison th[scope="row"] { color: #d4e4f3; font-weight: 650; }
.captured-prices .cp-comparison tbody tr:nth-child(even) { background: #14263b; }
.captured-prices .cp-comparison tr:last-child > * { border-bottom: 0; }
.cp-table-price { display: block; margin-bottom: 8px; color: #a5e6cf; font-size: 18px; font-variant-numeric: tabular-nums; }
.cp-table-time { display: block; margin-top: 8px; color: #b3c7dc; font-size: 14px; }
.cp-scroll-hint { margin: 10px 0 0; color: #abc1d8; font-size: 14px; }
.cp-loading, .cp-empty, .cp-error { padding: 20px; border: 1px solid #344d65; border-radius: 10px; background: #14253a; font-size: 16px; color: #c8dbec; }
.cp-empty p:last-child, .cp-error p:last-child { margin-bottom: 0; }
.captured-prices :is(button, [tabindex="0"]):focus-visible { outline: 2px solid #8ae4c1; outline-offset: 4px; }
@media (max-width: 900px) { .cp-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  dialog.captured-prices { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .cp-header { padding: 18px 16px 16px; gap: 12px; }
  .cp-eyebrow { letter-spacing: .035em; }
  .captured-prices .cp-header h2 { font-size: 20px; }
  .captured-prices .cp-close { padding: 10px 12px; }
  .cp-toolbar { padding: 12px 16px; gap: 10px 12px; }
  .cp-body { padding: 18px 16px 22px; }
  .cp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 13px; }
  .cp-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-quote { padding: 14px 12px; }
  .cp-quote:last-child { grid-column: span 2; }
  .cp-loading, .cp-empty, .cp-error { padding: 16px; }
}
@media (max-width: 350px) { .cp-facts, .cp-quotes { grid-template-columns: minmax(0, 1fr); } .cp-quote:last-child { grid-column: auto; } }
