/* Prediction-market ledger: neutral terminal chrome with compact market rows. */
#polymarket-odds { border:1px solid #303030; border-radius:0; background:#0d0d0d; box-shadow:none; container-type:inline-size; }
#polymarket-odds .widget-header { min-height:28px; margin:0; padding:5px 8px; background:#181818; border-bottom:1px solid #303030; flex-shrink:0; }
#polymarket-odds .widget-header h2 { margin:0; color:#ddd; font:600 11px/1.4 'JetBrains Mono',monospace; letter-spacing:0; text-shadow:none; }
#polymarket-odds .decoration-line { display:none; }
#polymarket-odds .status-text { color:#929292; font:9px 'JetBrains Mono',monospace; letter-spacing:0; text-shadow:none; }
#polymarket-container { padding:0; min-height:0; overflow:auto; scrollbar-width:thin; scrollbar-color:#444 #111; font:11px 'JetBrains Mono',monospace; }
#polymarket-odds .poly-board-head { position:sticky; top:0; z-index:3; display:flex; justify-content:space-between; padding:4px 8px; background:#202020; border-bottom:1px solid #353535; color:#999; font-size:10px; }
#polymarket-odds .polymarket-item { padding:6px 8px 5px; gap:3px; background:#0d0d0d; border-bottom:1px solid #272727; transition:background 100ms; box-shadow:none; }
#polymarket-odds .polymarket-item:nth-child(odd) { background:#141414; }
#polymarket-odds .polymarket-item:hover, #polymarket-odds .polymarket-item.is-expanded { background:#202020; box-shadow:none; }
#polymarket-odds .polymarket-item.is-expanded::before { display:none; }
#polymarket-odds .polymarket-header { display:flex; gap:5px; align-items:baseline; margin:0; }
#polymarket-odds .polymarket-event { min-width:0; margin:0; color:#d9d9d9; font:500 11px/1.5 'JetBrains Mono',monospace; letter-spacing:0; text-shadow:none; white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
#polymarket-odds .polymarket-event:hover { animation:none; color:#eee; text-decoration:underline; overflow:hidden; }
#polymarket-odds .polymarket-reason { margin:0; font:9px/1.4 'JetBrains Mono',monospace; color:#858585; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#polymarket-odds .polymarket-odds-row { display:flex; gap:6px; flex-wrap:wrap; margin:0; }
#polymarket-odds .polymarket-odds-text { font:600 11px/1.5 'JetBrains Mono',monospace; color:#d5d5d5; letter-spacing:0; text-shadow:none; font-variant-numeric:tabular-nums; }
#polymarket-odds .polymarket-odds { min-width:0; gap:5px; }
#polymarket-odds .delta-up { color:#66b494; margin-left:5px; font-size:10px; text-shadow:none; }
#polymarket-odds .delta-down { color:#d36a78; margin-left:5px; font-size:10px; text-shadow:none; }
#polymarket-odds .poly-stats-mini { margin-left:auto; gap:4px; font:9px 'JetBrains Mono',monospace; color:#8a8a8a; white-space:nowrap; }
#polymarket-odds .polymarket-bar-row { margin:0; }
#polymarket-odds .polymarket-laser-gauge { height:2px; margin:0; border:0; border-radius:0; background:#292929; box-shadow:none; }
#polymarket-odds .polymarket-yes-segment { background:#64d9a4; box-shadow:none; }
#polymarket-odds .polymarket-no-segment { background:#ef7185; box-shadow:none; }
#polymarket-odds .poly-depth-line { stroke-width:1.5; }
#polymarket-odds .poly-depth-line.bid { stroke:#64e5a4; }
#polymarket-odds .poly-depth-line.ask { stroke:#ff829c; }
#polymarket-odds .polymarket-expand-label { display:block; margin:0; padding:0; border:0; background:transparent; text-align:left; color:#ac8c55; font:9px/1.4 'JetBrains Mono',monospace; letter-spacing:0; cursor:pointer; }
#polymarket-odds .polymarket-probability-badge { flex-shrink:0; padding:0; margin:0; border:0; background:transparent; color:#b89a65; font-size:8px; border-radius:0; }
#polymarket-odds .polymarket-detail-panel { margin:3px 0 0; padding:6px 0; background:#111; border:0; border-top:1px solid #383838; border-radius:0; box-shadow:none; }
#polymarket-odds .poly-book-terminal { padding:6px; background:#101010; border:1px solid #292929; border-radius:0; box-shadow:none; }
#polymarket-odds .poly-book-toggle { padding:3px 5px; border:0; border-radius:0; background:#202020; color:#aaa; font:10px 'JetBrains Mono',monospace; }
#polymarket-odds .poly-book-toggle.is-active { background:#303030; color:#ddd; box-shadow:none; }
#polymarket-odds .poly-terminal-value { font-size:19px; text-shadow:none; }
#polymarket-odds .poly-depth-stage::after { display:none; }
#polymarket-odds .polymarket-detail-title, #polymarket-odds .poly-terminal-label, #polymarket-odds .poly-depth-caption { color:#929292; font:9px 'JetBrains Mono',monospace; letter-spacing:0; }
#polymarket-odds .poly-board-footer { padding:5px 8px; border-top:1px solid #303030; color:#888; background:#181818; font-size:9px; }
#polymarket-odds .flash-row, #polymarket-odds.polymarket-glitch { animation:none; }
#polymarket-odds :focus-visible { outline:1px solid #b38f55; outline-offset:1px; }
@container (min-width:650px) {
    #polymarket-odds .polymarket-item { display:grid; grid-template-columns:minmax(0,1fr) 245px; gap:3px 14px; }
    #polymarket-odds .polymarket-header, #polymarket-odds .polymarket-reason { grid-column:1; }
    #polymarket-odds .polymarket-odds-row { grid-column:2; grid-row:1/3; align-self:center; }
    #polymarket-odds .polymarket-expand-label { grid-column:2; grid-row:3; text-align:right; }
    #polymarket-odds .polymarket-bar-row { grid-column:1; grid-row:3; align-self:center; }
    #polymarket-odds .polymarket-detail-panel { grid-column:1/-1; }
}
@media(prefers-reduced-motion:reduce) { #polymarket-odds .prob-flash-up, #polymarket-odds .prob-flash-down { animation:none; } }

/* Opens the deeper Polymarket Monitor terminal. */
#polymarket-odds .widget-header h2 { white-space:nowrap; }
/* Polymarket's logo in Poly Blue with a quiet label, matching GLOBE. */
#polymarket-odds .widget-header h2.polymarket-title { display:flex; align-items:center; gap:7px; color:#777; font:600 9px/1 'JetBrains Mono',monospace; letter-spacing:.12em; }
#polymarket-odds .polymarket-title img { display:block; height:13px; width:auto; }
#polymarket-odds .polymarket-monitor-open { white-space:nowrap; flex-shrink:0; margin-left:auto; margin-right:6px; border:0; background:none; color:#c79143; font:9px 'JetBrains Mono',monospace; letter-spacing:.06em; cursor:pointer; padding:2px 4px; }
#polymarket-odds .polymarket-monitor-open:hover { color:#ffb24d; }
/* The status keeps its place at the right; the button sits just before it rather than splitting the free space. */
#polymarket-odds .widget-header .polymarket-monitor-open + .status-container { margin-left:0; }
html.terminal-embed #polymarket-odds .polymarket-monitor-open { display:none; }
/* The depth chart fits inside the widget with its price axis and caption visible. */
#polymarket-odds .poly-depth-stage { height:132px; }
