/* WORKSPACE_POLISH_20261014: presentation only. Quote eligibility stays in app.js. */
:root[data-theme] { --text-3:#607187; --pm-sidebar-width:560px; --pm-alert-row-height:32px; }
/* Stacked names free outcome columns; the shared height metric keeps spacers aligned. */
:root[data-density="compact"] { --pm-event-min-h:76px; }
#pmEvents .pm-matrix-wrap { --pm-context-width:150px; }
.pm-matrix tbody.pm-event .pm-context { height:var(--pm-event-min-h); padding:5px 8px; }
.pm-matrix tbody.pm-event .pm-event-title { white-space:normal; line-height:16px; }
.pm-matrix .pm-event-team { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pm-matrix tbody.pm-event .pm-event-empty { margin-top:2px; line-height:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media(max-width:520px) { #pmEvents .pm-matrix-wrap { --pm-context-width:120px; } }
.pm-heading { gap:8px; flex-wrap:wrap; }
.pm-heading-actions { flex-wrap:wrap; }
.pm-layout-control:focus-visible,#pmSidebarResize:focus-visible { outline:2px solid #326bbb; outline-offset:2px; }
#pmFilters.pm-filters { display:block; position:relative; overflow:visible; padding:0; }
#pmFilters.pm-filters>.pm-primary-filters { display:flex; flex-wrap:wrap; gap:3px; align-items:center; padding:5px 8px; }
#pmFilters.pm-filters>.pm-primary-filters>label,#pmFilters.pm-filters>.pm-primary-filters>details { order:0; width:auto; max-width:100%; }
#pmFilters.pm-filters>.pm-primary-filters .pm-sport-filter { flex:0 1 110px; }
#pmFilters.pm-filters>.pm-primary-filters .pm-search { flex:0 1 120px; min-width:120px; max-width:128px; }
#pmFilters.pm-filters>.pm-primary-filters .pm-reference-filter { flex:0 1 110px; }
#pmFilters.pm-filters>.pm-primary-filters .pm-side-filter { flex:0 0 60px; }
#pmFilters.pm-filters>.pm-primary-filters .pm-window-filter { flex:0 1 80px; }
#pmFilters.pm-filters>.pm-primary-filters .pm-country-filter { flex:0 1 96px; min-width:96px; }
#pmFilters.pm-filters>.pm-primary-filters .pm-league-filter { flex:0 1 116px; min-width:108px; max-width:120px; }
#pmFilters.pm-filters>.pm-one-line>label:not(.pm-search) { height:28px; }
#pmFilters.pm-filters>.pm-one-line>label:not(.pm-search) select { height:26px; font-size:11.5px; width:auto; flex:1 1 auto; }
#pmFilters.pm-filters .pm-search input,#pmFilters.pm-filters .pm-dropdown>summary { height:28px; font-size:11.5px; }
#pmFilters.pm-filters #pmBookPicker,#pmFilters.pm-filters #pmMarketPicker { order:0; }
#pmFilters.pm-filters>.pm-options { display:flex; flex-wrap:wrap; gap:4px; padding:5px 42px 5px 8px; }
#pmFilters.pm-filters>.pm-options>label,#pmFilters.pm-filters>.pm-options>details { order:0; width:auto; flex:0 1 auto; }
#pmFilters.pm-filters>.pm-options>.pm-scope-choice { min-width:120px; }
#pmFilters.pm-filters>.pm-options[hidden] { display:none!important; }
.pm-layout-control { min-height:28px; padding:4px 9px; border:1px solid #cdd8e8; border-radius:5px; background:#fff; color:#355581; font:inherit; font-size:11.5px; cursor:pointer; white-space:nowrap; }
#pmAdvancedToggle { position:absolute; right:6px; bottom:5px; display:flex; align-items:center; justify-content:center; width:28px; height:28px; min-height:28px; margin:0; padding:0; border:0; background:transparent; color:#355581; }
#pmAdvancedToggle:hover,#pmAdvancedToggle:focus-visible { background:#e8f0fc; }
#pmAdvancedToggle .pm-layout-chevron { margin:0; }
#pmFilters:has(>.pm-options[hidden])>.pm-primary-filters { padding-right:42px; }
/* Two grouped rows share a compact search; narrow columns wrap safely. */
.pm-filter-break { display:none; }
.pm-layout-chevron { display:inline-block; margin-left:6px; }
[aria-expanded="false"]>.pm-layout-chevron { transform:rotate(180deg); }
.pm-matrix .pm-price { font-variant-numeric:tabular-nums; }
#pmUpdated,.pm-summary #pmLoaded,.pm-matrix .pm-context time { color:#607187; }
.pm-workspace { position:relative; }
@media(min-width:1000px) {
  .pm-shell:has(#pmWorkspace[data-mode="sharp"]) { padding-right:18px; }
  .pm-workspace[data-mode="sharp"] { display:grid; grid-template-columns:minmax(0,1fr) var(--pm-sidebar-width,420px); gap:12px; }
  .pm-workspace[data-mode="sharp"]>.pm-grid-pane { grid-column:1; grid-row:1; }
  .pm-workspace[data-mode="sharp"][data-signals-open="false"] { grid-template-columns:minmax(0,1fr); }
  .pm-workspace[data-mode="sharp"][data-signals-open="false"]>.pm-grid-pane { grid-column:1; }
  #pmSidebarResize { position:absolute; top:4px; left:auto; right:calc(var(--pm-sidebar-width,420px) + 1px); bottom:8px; z-index:5; width:10px; border:0; padding:0; border-radius:5px; background:transparent; color:#647b98; cursor:col-resize; touch-action:none; }
  #pmSidebarResize::after { content:""; display:block; width:3px; height:36px; margin:auto; background:#bac9dc; border-radius:3px; }
  #pmSidebarResize:hover,#pmSidebarResize:focus-visible { background:#e7eef8; }
  .pm-workspace[data-mode]:not([data-mode="sharp"]) #pmSidebarResize,.pm-workspace[data-signals-open="false"] #pmSidebarResize { display:none; }
}
#pmSignals.pm-signals { display:flex; flex-direction:column; position:sticky; top:var(--pm-signals-top,8px); left:auto; right:auto; width:auto; grid-column:2; grid-row:1; margin-top:0; height:var(--pm-signals-height,calc(100vh - 140px)); max-height:var(--pm-signals-height,calc(100vh - 140px)); min-height:220px; overflow:hidden; border:1px solid #cbd7e7; border-radius:9px; background:#fff; }
#pmSignals[hidden] { display:none!important; }
#pmSignals .pm-signals-heading { flex-shrink:0; flex-wrap:nowrap; align-items:center; padding:5px 8px; background:#fff; border-bottom:1px solid #dce4ef; gap:4px; }
.pm-center-title { display:flex; align-items:center; gap:4px; flex:0 0 auto; min-width:0; }
.pm-center-title h2 { display:block; font-size:14px; line-height:1.35; white-space:nowrap; }
.pm-center-title small { display:none; }
#pmSignalCount { border-radius:4px; background:#edf2fb; color:#385d93; }
/* State counts stay together in the filters, without duplicate header counters. */
#pmSignals .pm-center-active-label,#pmSignals #pmSignalPending { display:none; }
.pm-signal-section { display:flex; flex-direction:column; min-height:0; }
#pmSignalListSection { flex:1 1 0; }
#pmSignalDetailSection { flex:0 1 auto; max-height:48%; margin:4px; margin-top:auto; border:1px solid #8aa9d2; border-left:3px solid #537cba; border-radius:6px; background:#fff; }
.pm-signal-section[data-collapsed="true"] { flex:0 0 39px!important; }
#pmSignalListSection[data-collapsed="true"] { flex-basis:0!important; }
#pmSignalDetailSection[data-collapsed="true"] { flex-basis:34px!important; }
.pm-signal-section-heading { display:flex; align-items:center; gap:7px; width:100%; min-height:39px; padding:0 13px; border:0; background:#fff; color:#283f60; text-align:left; font:inherit; font-size:12px; cursor:pointer; flex-shrink:0; }
.pm-signal-section-heading:hover { background:#f5f8fc; }
.pm-signal-section-heading:focus-visible { outline:2px solid #326bbb; outline-offset:-3px; }
.pm-signal-section-heading .pm-section-number { font-size:9px; color:#607187; }
.pm-signal-section-heading .pm-layout-chevron { margin-left:auto; }
#pmSignals .pm-signals-heading>.pm-signal-sound,#pmSignals .pm-signals-heading>.pm-signal-archive,#pmSignals .pm-signals-heading>#pmSignalClose { flex-shrink:0; }
#pmSignals .pm-signals-heading>.pm-signal-sound { width:28px; }
.pm-signal-section-content { display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }
.pm-signal-section-content[hidden] { display:none!important; }
/* A single fixed-height toolbar; arrivals have a reserved slot and never push the search. */
#pmAlertToolbar { position:relative; display:flex; flex-wrap:nowrap; align-items:center; gap:2px; box-sizing:border-box; width:100%; min-width:0; height:36px; flex-shrink:0; padding:4px; border-bottom:1px solid #e0e7f0; background:#fff; }
#pmAlertToolbar .pm-signal-search { position:relative; display:flex; align-items:center; flex:1 1 60px; min-width:56px; max-width:96px; margin-right:auto; padding:0; }
#pmSignalSearch { box-sizing:border-box; width:100%; min-width:0; height:28px; padding:3px 4px 3px 19px; background:#f8fafd; color:#1b2d47; border:1px solid #d6e0ee; border-radius:4px; font:inherit; font-size:10px; }
.pm-toolbar-search-icon { position:absolute; left:5px; color:#607187; pointer-events:none; }
#pmSignalSearch:focus-visible { outline:2px solid #326bbb; outline-offset:1px; }
#pmSignals #pmAlertToolbar .pm-signal-filters { display:flex; flex-wrap:nowrap; align-items:center; flex:0 0 auto; padding:0; gap:2px; border:0; background:transparent; }
#pmSignals #pmAlertToolbar .pm-signal-filters button { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:2px; flex:0 0 auto; width:auto; height:28px; min-height:28px; padding:0 3px; font-size:9.5px; line-height:14px; border-radius:4px; font-variant-numeric:tabular-nums; }
#pmSignals #pmAlertToolbar .pm-signal-filters button>span:first-child { font-size:11px; }
#pmSignalProgressWrap { flex:1 1 auto; min-width:0; margin-left:auto; font-size:9.5px; font-weight:400; color:#607187; white-space:nowrap; text-align:right; }
#pmSignalProgress { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; }
#pmSignalArrival { display:contents; }
/* ALERT_MUTES_20261018: hide alerts per event / sign; toolbar list of hidden ones. */
.pm-alert-mutes { position:static; flex:0 0 auto; }
.pm-alert-mutes[hidden] { display:none!important; }
.pm-alert-mutes>summary { box-sizing:border-box; position:relative; display:flex; align-items:center; justify-content:center; width:26px; height:28px; padding:0; border:1px solid #d5dfec; border-radius:4px; background:#fff; color:#365982; cursor:pointer; list-style:none; }
.pm-alert-mutes>summary::-webkit-details-marker { display:none; }
.pm-alert-mutes[open]>summary { background:#e8f0fc; }
.pm-alert-mute-count { position:absolute; top:-3px; right:-3px; min-width:11px; height:12px; padding:0 2px; border:1px solid #fff; border-radius:4px; background:#315c9b; color:#fff; font-size:8px; line-height:11px; text-align:center; }
.pm-alert-mute-menu { position:absolute; top:calc(100% + 4px); left:4px; right:4px; z-index:20; display:flex; flex-direction:column; gap:4px; max-height:260px; overflow:auto; padding:8px; border:1px solid #cbd7e7; border-radius:6px; background:#fff; box-shadow:0 5px 16px #24334724; font-size:11px; color:#233c5b; }
.pm-alert-mute-item { display:flex; align-items:center; gap:6px; min-height:26px; }
.pm-alert-mute-item>span { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pm-alert-mute-menu button, .pm-alert-mute-options button { flex:0 0 auto; min-height:24px; padding:2px 6px; border:1px solid #d5dfec; border-radius:4px; background:#fff; color:#285caa; font:inherit; font-size:11px; cursor:pointer; }
.pm-alert-mute-menu .pm-alert-mute-all { align-self:flex-end; border:0; background:transparent; }
.pm-alert-mute { position:relative; }
.pm-alert-mute>summary { display:inline-flex; align-items:center; min-height:20px; padding:1px 5px; border:1px solid #d5dfec; border-radius:4px; background:#fff; color:#365982; font-size:10px; font-weight:600; cursor:pointer; list-style:none; white-space:nowrap; }
.pm-alert-mute>summary::-webkit-details-marker { display:none; }
.pm-alert-mute-options { position:absolute; top:calc(100% + 4px); right:0; z-index:20; display:flex; flex-direction:column; gap:4px; width:max-content; max-width:240px; padding:7px; border:1px solid #cbd7e7; border-radius:6px; background:#fff; box-shadow:0 5px 16px #24334724; }
.pm-alert-mute-options button { text-align:left; white-space:normal; }
:is(.pm-alert-mutes>summary,.pm-alert-mute>summary,.pm-alert-mute-menu button,.pm-alert-mute-options button):focus-visible { outline:2px solid #326bbb; outline-offset:1px; }
.pm-alert-sort { position:relative; display:flex; align-items:center; justify-content:center; width:26px; height:28px; flex:0 0 26px; margin:0; }
.pm-toolbar-sort-icon { position:absolute; pointer-events:none; color:#365982; }
.pm-grid-pane { container-type:inline-size; }
.pm-grid-pane>.pm-heading { margin:0 0 6px; min-height:39px; }
.pm-grid-pane .pm-heading-actions { min-width:0; max-width:100%; flex-shrink:1; }
.pm-grid-pane .pm-summary>div:first-child { min-width:0; flex-wrap:wrap; }
.pm-grid-pane>#pmFilters { margin-bottom:9px; }
@container (max-width:600px) {
  #pmFilters { position:relative; }
  #pmFilters :is(#pmBookPicker,#pmMarketPicker) { position:static; }
  #pmFilters :is(#pmBookPicker,#pmMarketPicker)>.pm-dropdown-menu { left:auto; right:8px; max-width:calc(100% - 16px); }
}
#pmSignalSort { box-sizing:border-box; position:relative; z-index:1; width:26px; height:28px; padding:0; border:1px solid #d5dfec; border-radius:4px; appearance:none; background:transparent; color:transparent; font:inherit; font-size:0; cursor:pointer; }
#pmSignalSort option { color:#233c5b; background:#fff; font-size:12px; }
.pm-alert-sort:has(#pmSignalSort[data-sort-active="true"]) { background:#e8f0fc; border-radius:4px; }
#pmSignalSort[data-sort-active="true"] { border-color:#9ab7df; }
#pmSignalSort:focus-visible { outline:2px solid #326bbb; outline-offset:1px; }
#pmSignalArrivalActions { display:flex; align-items:center; justify-content:center; flex:0 0 32px; width:32px; min-width:32px; height:28px; }
#pmSignalShowNew { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:1px; flex:0 0 32px; width:32px; height:28px; min-height:28px; padding:0; border:1px solid #cbdaf0; border-radius:4px; background:#edf4ff; color:#285caa; font:inherit; font-size:9px; line-height:14px; font-weight:650; font-variant-numeric:tabular-nums; cursor:pointer; }
#pmSignalShowNew[hidden] { display:none; }
#pmSignalShowNew:focus-visible { outline:2px solid #326bbb; outline-offset:1px; }
#pmSignals #pmSignalList { flex:1; min-height:60px; overflow-y:auto; overflow-x:auto; overflow-anchor:none; scrollbar-gutter:stable; padding:0; scroll-padding-top:0; }
#pmSignalRows { display:block; min-width:408px; padding:0; }
#pmSignalColumnsViewport { flex-shrink:0; max-width:100%; overflow:hidden; background:#f1f5fb; border-bottom:1px solid #dce4ef; }
.pm-alert-columns,.pm-alert-row { --pm-alert-cols:28px minmax(76px,1fr) 44px 44px 64px 48px 64px 16px; }
.pm-alert-columns { display:grid; grid-template-columns:var(--pm-alert-cols); align-items:center; gap:2px; box-sizing:border-box; min-width:408px; height:23px; padding:0 6px 0 4px; color:#526784; font-size:9.5px; line-height:14px; font-weight:650; background:#f1f5fb; }
.pm-alert-row { --pm-alert-row-bg:#fff; display:grid; grid-template-columns:var(--pm-alert-cols); align-items:center; gap:2px; box-sizing:border-box; width:100%; height:var(--pm-alert-row-height,32px); min-height:var(--pm-alert-row-height,32px); margin:0; padding:0 6px 0 4px; border:0; border-bottom:1px solid #e4eaf3; border-radius:0; background:#fff; color:#1b2d47; text-align:left; font:inherit; cursor:pointer; overflow:visible; }
.pm-alert-row:hover { --pm-alert-row-bg:#f6f9fe; background:#f6f9fe; }
.pm-alert-row[aria-pressed="true"],.pm-alert-row[data-selected="true"] { --pm-alert-row-bg:#f3f6ff; background:#f3f6ff; box-shadow:inset 3px 0 0 #3565b3; }
.pm-alert-row:focus-visible { outline:2px solid #3565b3; outline-offset:-3px; }
.pm-alert-row-top { display:contents; }
.pm-alert-row-time { grid-column:1; grid-row:1; color:#53657e; font-size:10px; line-height:14px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.pm-alert-row-state { grid-column:8; grid-row:1; display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; padding:0; border-radius:4px; color:#17663d; background:#e9f6ef; font-size:0; line-height:16px; font-weight:650; white-space:nowrap; }
.pm-alert-row-state::before { content:"✓"; font-size:11px; }
.pm-alert-row[data-state="pending"] .pm-alert-row-state::before { content:"!"; }
.pm-alert-row[data-state="inactive"] .pm-alert-row-state::before { content:"–"; }
.pm-alert-row[data-state="pending"] .pm-alert-row-state { color:#805308; background:#fff3d4; }
.pm-alert-row[data-state="inactive"] .pm-alert-row-state { color:#54677d; background:#edf1f6; }
.pm-alert-row-title { grid-column:2; grid-row:1; display:flex; align-items:center; gap:3px; min-width:0; overflow:hidden; white-space:nowrap; font-size:11px; font-weight:650; line-height:17px; }
.pm-alert-row-home,.pm-alert-row-away { flex:0 1 auto; min-width:0; max-width:60%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pm-alert-row-title>span:not(.pm-alert-row-home):not(.pm-alert-row-away) { flex-shrink:0; }
.pm-alert-row-meta,.pm-alert-row-market { display:contents; }
.pm-alert-row-book { grid-column:3; grid-row:1; }
.pm-alert-row-family { grid-column:4; grid-row:1; }
.pm-alert-row-choice { grid-column:5; grid-row:1; }
.pm-alert-row-choice,#pmSignalColumns>span:nth-child(5) { text-align:center; padding:0; }
.pm-alert-row-book,.pm-alert-row-family,.pm-alert-row-choice { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#536780; font-size:9.5px; line-height:14px; }
.pm-alert-row-choice { font-size:10.5px; font-weight:550; font-variant-numeric:tabular-nums; }
.pm-alert-row-book,.pm-alert-row-family,#pmSignalColumns>span:nth-child(3),#pmSignalColumns>span:nth-child(4) { text-align:center; }
.pm-alert-row-quote { grid-column:6; grid-row:1; color:#243d5c; font-size:11px; line-height:16px; font-weight:700; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.pm-alert-col-quote,.pm-alert-row-quote { text-align:center; }
.pm-alert-col-edge { text-align:right; }
.pm-alert-col-state { font-size:8px; text-align:center; }
.pm-alert-row-choice,#pmSignalColumns>span:nth-child(5),.pm-alert-row-quote,.pm-alert-row-edge,.pm-alert-row-state,.pm-alert-col-quote,.pm-alert-col-edge,.pm-alert-col-state { position:sticky; z-index:2; }
/* display:contents wrappers have no paint: freeze the numeric strip with explicit row colors. */
.pm-alert-row-choice,.pm-alert-row-quote,.pm-alert-row-edge { background:var(--pm-alert-row-bg); box-shadow:2px 0 0 var(--pm-alert-row-bg),-2px 0 0 var(--pm-alert-row-bg); }
.pm-alert-row-state { box-shadow:2px 0 0 var(--pm-alert-row-bg),-2px 0 0 var(--pm-alert-row-bg); }
.pm-alert-col-quote,.pm-alert-col-edge,.pm-alert-col-state { background:#f1f5fb; box-shadow:2px 0 0 #f1f5fb,-2px 0 0 #f1f5fb; }
#pmSignalColumns>span:nth-child(5) { right:140px; background:#f1f5fb; box-shadow:2px 0 0 #f1f5fb,-2px 0 0 #f1f5fb; }
.pm-alert-row-choice { right:calc(140px + var(--pm-alert-gutter,0px)); }
.pm-alert-col-quote { right:90px; }
.pm-alert-col-edge { right:24px; }
.pm-alert-row-edge { right:calc(24px + var(--pm-alert-gutter,0px)); }
.pm-alert-col-state { right:6px; }
.pm-alert-row-state { right:calc(6px + var(--pm-alert-gutter,0px)); }
.pm-alert-row-quote { right:calc(90px + var(--pm-alert-gutter,0px)); }
.pm-alert-row-edge { grid-column:7; grid-row:1; margin:0; color:#2c5d97; font-size:10.5px; line-height:14px; font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
.pm-alert-row[data-state="inactive"] .pm-alert-row-edge { color:#607187; }
.pm-alert-row-top .pm-alert-row-edge { margin-left:0; }
.pm-alert-row-state { background:#e9f6ef; }
.pm-alert-load-older { min-height:28px; padding:4px 10px; border:0; border-top:1px solid #e3eaf4; background:#f7faff; color:#355c94; font:inherit; font-size:11px; cursor:pointer; }
.pm-alert-load-older[hidden] { display:none!important; }
.pm-alert-history-status { margin:0; padding:4px 11px; font-size:10px; line-height:14px; color:#607187; }
#pmSignalRows [data-signal-spacer] { flex-shrink:0; }
#pmSignalEmpty { padding:16px 12px; margin:0; font-size:11.5px; color:#607187; }
#pmSignalDetailContent { overflow:auto; scrollbar-gutter:stable; }
#pmSignalDetail { flex:0 0 auto; min-height:0; max-height:none; overflow:visible; margin:0; padding:4px 11px 6px; border:0; background:#fff; }
#pmSignalDetail>strong { font-size:16px; line-height:1.3; margin-bottom:4px; }
.pm-detail-placeholder { padding:6px 0; margin:0; font-size:11.5px; color:#607187; line-height:1.5; }
#pmSignalDetail .pm-alert-quote-card { background:#edf5ff; border-color:#b6d1ee; }
#pmSignalDetail .pm-alert-quote-card.pm-lay { background:#fbd0da; border-color:#ec8aa2; }
.pm-alert-detail { min-width:0; font-size:12px; line-height:1.45; }
.pm-alert-detail-heading { float:right; display:flex; align-items:center; gap:8px; margin:0 0 3px 7px; }
.pm-alert-detail-heading>.pm-alert-detail-edge { margin:0; }
.pm-alert-detail-state { display:inline-flex; padding:2px 5px; border-radius:4px; background:#e9f6ef; color:#17663d; font-size:10px; font-weight:650; line-height:14px; white-space:nowrap; }
.pm-alert-detail[data-state="pending"] .pm-alert-detail-state { background:#fff3d4; color:#805308; }
.pm-alert-detail[data-state="inactive"] .pm-alert-detail-state { background:#edf1f6; color:#54677d; }
.pm-alert-detail-arrival { font-size:10px; color:#607187; line-height:14px; }
.pm-alert-detail-title { margin:0 0 3px; font-size:14px; line-height:18px; color:#1b2d47; }
.pm-alert-detail-context { clear:both; margin:0 0 4px; font-size:10.5px; line-height:14px; color:#607187; }
.pm-alert-detail-quotes { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px; margin:4px 0; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:5px; min-height:40px; padding:4px 7px; }
.pm-alert-detail-quotes .pm-alert-quote-card>span { font-size:10.5px; line-height:14px; color:#47617f; overflow-wrap:anywhere; }
.pm-alert-detail-quotes .pm-alert-quote-card>strong { flex-shrink:0; font-variant-numeric:tabular-nums; }
.pm-alert-source-clocks { margin:5px 0; }
.pm-alert-source-clocks p { margin:2px 0; color:#607187; font-size:10px; line-height:14px; overflow-wrap:anywhere; }
.pm-alert-detail-liquidity,.pm-alert-detail-reason { margin:4px 0; color:#536984; font-size:10.5px; line-height:14px; }
.pm-alert-detail-liquidity { flex-shrink:0; margin:0; font-size:10px; white-space:nowrap; }
.pm-alert-detail-context>.pm-alert-detail-liquidity:not([hidden]) { margin-left:8px; }
.pm-alert-detail-reason:empty { display:none; }
.pm-alert-detail-edge { margin-left:auto; flex-shrink:0; font-size:11px; font-weight:650; white-space:nowrap; color:#345c91; }
#pmSignalDetail { container-type:inline-size; }
.pm-alert-book-short { display:none; }
@container (max-width:350px) { .pm-alert-book-full { display:none; } .pm-alert-book-short { display:inline; } }
@media (max-width:499px) { .pm-alert-book-full { display:none; } .pm-alert-book-short { display:inline; } }
.pm-alert-detail-market-label { flex:1 1 180px; min-width:0; }
#pmSignalDetail .pm-alert-detail>.pm-alert-market { display:grid; grid-template-columns:minmax(0,1fr) minmax(160px,min(56%,224px)); align-items:center; gap:6px; padding:4px 6px; }
#pmSignalDetail .pm-alert-detail>.pm-alert-market>.pm-alert-detail-market-label { min-width:0; font-size:12px; line-height:16px; overflow-wrap:anywhere; }
#pmSignalDetail .pm-alert-market>.pm-alert-detail-quotes { min-width:0; margin:0; gap:4px; }
#pmSignalDetail .pm-alert-market .pm-alert-quote-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:0 3px; min-height:40px; margin:0; padding:3px 5px; }
#pmSignalDetail .pm-alert-market .pm-alert-quote-card>.pm-alert-quote-label { grid-column:1 / -1; display:flex; align-items:center; gap:3px; min-width:0; font-size:10px; line-height:14px; overflow:hidden; }
.pm-alert-quote-side { flex:0 0 auto; font-weight:650; }
.pm-alert-quote-book { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#pmSignalDetail .pm-alert-market .pm-alert-quote-card>strong { margin:0; font-size:17px; line-height:20px; }
#pmSignalDetail .pm-alert-market .pm-alert-quote-card.pm-alert-quote-long>strong { font-size:14px; }
#pmSignalDetail .pm-alert-market .pm-alert-quote-card>.pm-quote-history-icon { font-size:11px; }
.pm-alert-detail[data-state="pending"] .pm-alert-detail-reason { color:#805308; }
.pm-alert-detail-actions.pm-signal-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin:4px 0; padding-top:0; }
.pm-alert-detail-actions>button,.pm-alert-detail-actions>a { box-sizing:border-box; display:flex; align-items:center; justify-content:center; min-width:0; min-height:30px; padding:4px 5px; border:1px solid #cdd8e8; border-radius:5px; background:#fff; color:#365a8e; text-decoration:none; font:inherit; font-size:10.5px; line-height:14px; }
.pm-alert-detail-actions>button:disabled { color:#6b7d93; background:#f4f6f9; cursor:default; }
.pm-alert-detail-actions>[data-signal-action="book"]:not(:disabled) { background:#3563b0; color:#fff; border-color:#3563b0; }
.pm-alert-historical { margin-top:7px; padding-top:5px; border-top:1px solid #e4eaf3; color:#607187; font-size:10px; line-height:14px; }
.pm-alert-historical>summary { min-height:24px; cursor:pointer; }
.pm-alert-historical>p { margin:4px 0; }
.pm-alert-diagnostics { margin-top:4px; border-top:1px solid #e4eaf3; color:#607187; font-size:10px; line-height:14px; }
.pm-alert-diagnostics>summary { min-height:24px; display:list-item; align-content:center; cursor:pointer; }
.pm-alert-diagnostics>summary:focus-visible { outline:2px solid #326bbb; outline-offset:1px; }
.pm-alert-liquidity-diagnostics { margin:4px 0; }
#pmSignalDetail .pm-alert-quote-card strong { font-size:21px; }
.pm-quote-history-trigger { font:inherit; text-align:left; cursor:pointer; color:inherit; }
.pm-quote-history-trigger:focus-visible { outline:2px solid #3563b0; outline-offset:2px; }
.pm-quote-history-trigger:hover { filter:brightness(.97); }
.pm-alert-detail-quotes .pm-quote-history-trigger>strong { margin-left:auto; }
.pm-alert-detail-quotes .pm-quote-history-trigger>.pm-quote-history-icon { color:#3563b0; font-size:14px; flex-shrink:0; }
#pmSignalDetail .pm-alert-market { display:flex; flex-wrap:wrap; align-items:center; gap:3px 7px; padding:4px 6px; border:0; background:#f5f7fb; }
#pmSignalDetail .pm-alert-edge { color:#355f94; }
#pmSignalHistoryCount { min-width:22px; padding:2px 5px; border-radius:4px; font-size:10px; color:#42618f; background:#edf2fb; text-align:center; font-variant-numeric:tabular-nums; }
#pmSignalDetailSection .pm-signal-section-heading { min-height:32px; padding:0 11px; border-radius:4px 4px 0 0; background:#edf3fb; }
#pmSignalDetailSection .pm-signal-section-heading:hover { background:#e5eefb; }
#pmSignalDetailSection[data-collapsed="true"] .pm-signal-section-heading { border-radius:4px; }
#pmSignalDetailHeading .pm-section-number,#pmSignalDetailTime { color:#536780; }
#pmSignalDetailHeading strong { white-space:nowrap; }
.pm-alert-detail-time { margin-left:auto; flex:0 0 auto; color:#607187; font-size:10px; line-height:14px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.pm-alert-detail-time[hidden] { display:none!important; }
.pm-alert-detail-time:not([hidden])+.pm-layout-chevron { margin-left:0; }
.pm-update-dialog { box-sizing:border-box; width:min(430px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:24px; border:1px solid #cbd7e7; border-radius:12px; background:#fff; color:#243d5c; box-shadow:0 18px 70px #142b4c38; }
.pm-update-dialog:not([open]),.pm-update-dialog [hidden] { display:none!important; }
.pm-update-dialog::backdrop { background:#142b4c70; }
.pm-update-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.pm-update-symbol { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; color:#315da7; background:#edf3ff; font-size:28px; }
.pm-update-dialog .pm-update-close { width:32px; height:32px; padding:0; border:0; border-radius:5px; background:transparent; color:#607187; font-size:24px; line-height:1; }
.pm-update-dialog h2 { margin:0 0 10px; color:#183252; font-size:20px; line-height:26px; }
.pm-update-dialog p { margin:0 0 12px; font-size:13px; line-height:20px; }
.pm-update-dialog .pm-update-note { color:#607187; font-size:11px; line-height:17px; }
.pm-update-dialog .pm-update-warning { padding:10px 12px; border:1px solid #e6cc89; border-radius:6px; color:#775019; background:#fff8e8; font-size:12px; line-height:18px; }
.pm-update-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:22px; }
.pm-update-dialog .pm-update-actions button { min-height:36px; padding:8px 14px; border:1px solid #ccd8eb; border-radius:6px; background:#fff; color:#355983; font:inherit; font-size:12px; font-weight:600; }
.pm-update-dialog .pm-update-actions .pm-update-apply { border-color:#315da7; background:#315da7; color:#fff; }
.pm-update-dialog button:focus-visible { outline:2px solid #326bbb; outline-offset:3px; }
.pm-update-dialog button:disabled { opacity:.65; cursor:wait; }
.pm-center-foot { padding:6px 12px; flex-shrink:0; font-size:9.5px; color:#607187; background:#fff; border-top:1px solid #edf0f5; }
#pmSignals .pm-signal-archive,#pmSignals .pm-signal-sound,#pmSignals .pm-signal-settings-button { min-height:28px; }
#pmSignals .pm-signal-archive { display:inline-flex; align-items:center; }
#pmSignalClose { display:none; width:28px; padding:0; font-size:19px; line-height:1; }
#pmSignals .pm-signal-sort { flex-shrink:0; margin:0; padding:5px 11px; }
#pmSignals .pm-signal-settings { flex-shrink:0; }
#pmSignals .pm-signal-grouping-summary { flex-shrink:0; }
@media(max-width:999px) {
  #pmSidebarResize { display:none; }
  #pmSignalClose { display:inline-flex; align-items:center; justify-content:center; }
  #pmSignals.pm-signals { position:fixed; z-index:35; top:var(--pm-mobile-panel-top,64px); margin-top:0; right:8px; width:min(var(--pm-sidebar-width,420px),calc(100vw - 16px)); height:calc(100dvh - var(--pm-mobile-panel-top,64px) - 40px); max-height:calc(100dvh - var(--pm-mobile-panel-top,64px) - 40px); min-height:220px; box-shadow:0 5px 24px #192b4526; }
  .pm-heading h1 { font-size:14px; }
  .pm-heading-actions { margin-left:0; }
  #pmFilters.pm-filters>.pm-primary-filters .pm-search { flex:0 1 120px; }
}
@media(max-width:520px) {
  .pm-shell { padding-left:6px; padding-right:6px; }
  #pmFilters.pm-filters>.pm-primary-filters>label { flex:1 1 calc(50% - 6px); }
  #pmFilters.pm-filters>.pm-primary-filters .pm-search { flex:1 1 calc(50% - 4px); min-width:0; max-width:none; }
  #pmFilters.pm-filters>.pm-options>label,#pmFilters.pm-filters>.pm-options>details { min-width:0; max-width:100%; flex:1 1 calc(50% - 6px); }
  #pmFilters.pm-filters>.pm-options>.pm-tolerance-filter { flex-basis:100%; min-width:0; }
  #pmFilters.pm-filters>.pm-options>.pm-league-filter { max-width:none; }
  #pmSignals.pm-signals { left:6px; right:6px; width:auto; }
  #pmSignalListSection { flex:1 1 0; }
  .pm-center-title h2 { font-size:12.5px; }
  #pmSignals .pm-signal-filters { padding-top:2px; padding-bottom:2px; }
}
@media(prefers-reduced-motion:reduce) { .pm-layout-chevron { transition:none; } }

.pm-center-title h2 { margin:0; }
/* ALERT_DETAIL_LAYOUT_20261017: taller detail, one reading order: event, market,
   BACK | scarto | LAY, facts, verdict, actions. Frame and BACK/LAY colours as approved. */
#pmSignalDetailSection { max-height:64%; }
#pmSignalDetail { padding:8px 11px 9px; }
#pmSignalDetail .pm-alert-detail { font-size:12px; line-height:1.4; }
#pmSignalDetail .pm-alert-detail-top { display:flex; align-items:flex-start; gap:10px; margin:0 0 7px; }
#pmSignalDetail .pm-alert-detail-event { flex:1 1 auto; min-width:0; }
#pmSignalDetail .pm-alert-detail-top .pm-alert-detail-heading { float:none; flex:0 0 auto; margin:1px 0 0; }
#pmSignalDetail .pm-alert-detail-title { margin:0; font-size:15px; line-height:20px; color:#172a44; overflow-wrap:anywhere; }
#pmSignalDetail .pm-alert-detail-context { clear:none; margin:2px 0 0; font-size:11px; line-height:15px; color:#5d6f86; }
#pmSignalDetail .pm-alert-detail>.pm-alert-market { display:block; margin:0; padding:6px 9px; border-radius:5px; background:#f2f6fb; }
#pmSignalDetail .pm-alert-detail>.pm-alert-market>.pm-alert-detail-market-label { display:block; font-size:12px; line-height:16px; font-weight:600; color:#24405f; overflow-wrap:anywhere; }
#pmSignalDetail .pm-alert-detail>.pm-alert-detail-quotes { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; gap:6px; margin:8px 0; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"label icon" "price price" "meta meta"; align-items:center; gap:1px 4px; min-width:0; min-height:70px; margin:0; padding:6px 9px 7px; border:1px solid; border-radius:6px; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card>.pm-alert-quote-label { grid-area:label; display:flex; align-items:center; gap:4px; min-width:0; font-size:10.5px; line-height:14px; color:#47617f; overflow:hidden; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card>strong { grid-area:price; margin:0; font-size:23px; line-height:28px; font-weight:700; color:#132a46; font-variant-numeric:tabular-nums; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card.pm-alert-quote-long>strong { font-size:17px; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card>.pm-quote-history-icon { grid-area:icon; color:#3563b0; font-size:12px; line-height:14px; }
#pmSignalDetail .pm-alert-quote-meta { grid-area:meta; font-size:10px; line-height:13px; color:#44586f; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#pmSignalDetail .pm-alert-detail[data-state="pending"] .pm-alert-quote-meta { color:#44586f; }
#pmSignalDetail .pm-alert-quote-card.pm-lay>.pm-quote-history-icon { color:#6e1a35; }
#pmSignalDetail .pm-quote-history-trigger:hover { filter:none; box-shadow:0 0 0 1px #3563b0 inset; }
#pmSignalDetail .pm-quote-history-trigger.pm-lay:hover { box-shadow:0 0 0 1px #b0305a inset; }
#pmSignalDetail .pm-alert-bridge { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:56px; padding:0 1px; text-align:center; }
#pmSignalDetail .pm-alert-bridge>.pm-alert-detail-edge { margin:0; font-size:15px; line-height:19px; font-weight:700; color:#2f5a92; font-variant-numeric:tabular-nums; }
#pmSignalDetail .pm-alert-bridge-label { font-size:9.5px; line-height:12px; letter-spacing:.02em; color:#607187; text-transform:uppercase; }
#pmSignalDetail .pm-alert-detail-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(104px,1fr)); gap:5px 12px; margin:0 0 7px; padding:7px 2px 0; border-top:1px solid #e4eaf3; }
#pmSignalDetail .pm-alert-fact { min-width:0; }
#pmSignalDetail .pm-alert-fact>dt { font-size:10px; line-height:13px; color:#607187; }
#pmSignalDetail .pm-alert-fact>dd { margin:1px 0 0; font-size:12px; line-height:16px; font-weight:600; color:#203a5a; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#pmSignalDetail .pm-alert-detail-reason { margin:0 0 7px; padding:5px 8px; border-radius:4px; background:#fff6df; color:#7a4f08; font-size:11px; line-height:15px; }
#pmSignalDetail .pm-alert-detail[data-state="inactive"] .pm-alert-detail-reason { background:#f1f4f8; color:#54677d; }
#pmSignalDetail .pm-alert-detail-actions.pm-signal-actions { gap:6px; margin:0; }
#pmSignalDetail .pm-alert-detail-actions>button,#pmSignalDetail .pm-alert-detail-actions>a { min-height:34px; font-size:11px; }
/* QUOTE_TILES_CENTERED_20261018 (owner): label, price and state centred in each tile; the arrow keeps its corner. */
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card { grid-template-columns:14px minmax(0,1fr) 14px; grid-template-areas:". label icon" "price price price" "meta meta meta"; justify-items:center; text-align:center; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card>.pm-alert-quote-label { justify-content:center; max-width:100%; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card>.pm-quote-history-icon { justify-self:end; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card>strong,#pmSignalDetail .pm-alert-quote-meta { max-width:100%; text-align:center; }
@container (max-width:330px) {
  #pmSignalDetail .pm-alert-detail>.pm-alert-detail-quotes { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  #pmSignalDetail .pm-alert-bridge { grid-column:1 / -1; grid-row:2; flex-direction:row; gap:6px; min-width:0; }
  #pmSignalDetail .pm-alert-detail-actions.pm-signal-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* Phones: the list keeps room above the detail, which scrolls inside its frame. */
@media(max-width:520px) { #pmSignalDetailSection { max-height:55%; } }
/* ALERT_HISTORY_HOVER_20261017: small hover/focus chronology, non-modal. */
.pm-qh-pop { position:fixed; z-index:60; box-sizing:border-box; width:288px; max-width:calc(100vw - 16px); max-height:min(320px,calc(100vh - 16px)); overflow:auto; overscroll-behavior:contain; border:1px solid #c7d4e6; border-radius:8px; background:#fff; color:#1d3756; box-shadow:0 10px 28px #1322373d; font-size:11px; line-height:15px; }
.pm-qh-pop[hidden] { display:none!important; }
.pm-qh-pop { overflow-x:hidden; }
.pm-qh-pop-head { position:sticky; top:0; z-index:1; display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding:7px 10px 6px; border-bottom:1px solid #e1e8f2; background:#f6f9fd; }
.pm-qh-pop-head>b { color:#275f9d; font-size:12px; }
.pm-qh-pop[data-side="lay"] .pm-qh-pop-head { background:#fbd0da; border-bottom-color:#ec8aa2; }
.pm-qh-pop[data-side="lay"] .pm-qh-pop-head>b,.pm-qh-pop[data-side="lay"] .pm-qh-pop-head>span { color:#6e1a35; }
.pm-qh-pop-head>span { color:#607187; font-size:10px; white-space:nowrap; }
/* POPUP_COLUMNS_20261018: Data / Ora / Quota / Var. %, fixed widths, no horizontal scroll. */
.pm-qh-pop-table { width:100%; table-layout:fixed; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.pm-qh-pop-date { width:23%; } .pm-qh-pop-time { width:28%; } .pm-qh-pop-odds { width:21%; } .pm-qh-pop-move { width:28%; }
.pm-qh-pop-table th { position:sticky; top:30px; padding:3px 8px; background:#fff; color:#607187; font-size:9.5px; font-weight:600; text-align:left; border-bottom:1px solid #e8edf4; }
.pm-qh-pop-table td { padding:3px 8px; overflow:hidden; text-overflow:ellipsis; border-bottom:1px solid #f0f3f8; white-space:nowrap; }
.pm-qh-pop-table td:nth-child(n+3),.pm-qh-pop-table th:nth-child(n+3) { text-align:right; }
.pm-qh-pop-table td:nth-child(3) { font-weight:700; color:#132a46; }
.pm-qh-pop-table td:nth-child(1) { color:#5d6f86; }
.pm-qh-pop-table tr[data-move="drop"] td:nth-child(4) { color:#b42318; font-weight:600; }
.pm-qh-pop-table tr[data-move="rise"] td:nth-child(4) { color:#17663d; font-weight:600; }
.pm-qh-pop-table tr[data-move="flat"] td:nth-child(4) { color:#7a8aa0; }
.pm-qh-pop-status,.pm-qh-pop-foot { margin:0; padding:6px 10px; color:#607187; font-size:10.5px; }
.pm-qh-pop-foot { border-top:1px solid #e8edf4; background:#fbfcfe; }
/* BETFAIR_LAY_COLOURS_20261018: LAY chip text in the grid's Betfair LAY colours (#6e1a35 on #fbd0da). */
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card.pm-lay>.pm-alert-quote-label,#pmSignalDetail .pm-alert-quote-card.pm-lay>.pm-alert-quote-meta { color:#6e1a35; }

/* HISTORY_DESIGN_20261018: Andamento quota dialog - event block, price ticket, step chart, movement log (no tabs).
   Side colours reuse existing tokens: BACK #3567b4 / #275f9d / #edf5ff / #b6d1ee, Betfair LAY grid #b0305a / #6e1a35 / #fcf5f8 / #fbd0da / #ec8aa2. */
.pm-qh { --qh-side:#3567b4; --qh-ink:#275f9d; --qh-tint:#edf5ff; --qh-rule:#b6d1ee; --qh-area:#b6d1ee; --qh-area-o:.45;
  box-sizing:border-box; width:min(640px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:0; border:1px solid #cbd7e7; border-radius:8px;
  background:#fff; color:#193653; box-shadow:0 18px 48px #13223738; overflow:hidden; }
.pm-qh[data-side="lay"] { --qh-side:#b0305a; --qh-ink:#6e1a35; --qh-tint:#fcf5f8; --qh-rule:#ec8aa2; --qh-area:#fbd0da; --qh-area-o:.35; }
.pm-qh::backdrop { background:#101e35a6; }
.pm-qh[open] { display:flex; flex-direction:column; }
.pm-qh button { font:inherit; cursor:pointer; }
.pm-qh button:focus-visible,.pm-qh-table-wrap:focus-visible { outline:2px solid #3563b0; outline-offset:2px; }
.pm-qh-header { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; border-bottom:1px solid #dce4ef; background:#f6f9fd; }
.pm-qh-header h2 { margin:0; font-size:14px; line-height:20px; font-weight:700; color:#193653; }
.pm-qh-actions { display:flex; align-items:center; gap:6px; }
.pm-qh-update,.pm-qh-close { height:28px; border:1px solid #d5dfec; border-radius:5px; background:#fff; color:#2f5a92; }
.pm-qh-update { padding:0 10px; font-size:11.5px!important; }
.pm-qh-close { width:28px; padding:0; font-size:20px!important; line-height:1; color:#355983; }
.pm-qh-update:hover,.pm-qh-close:hover { background:#f6f9fd; border-color:#b6c7dd; }
.pm-qh-body { min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; display:flex; flex-direction:column; gap:12px; padding:14px 16px 16px; }
.pm-qh-body>* { flex-shrink:0; }
.pm-qh-event p { margin:0; overflow-wrap:anywhere; }
.pm-qh-event-name { font-size:16px; line-height:21px; font-weight:700; color:#132a46; }
.pm-qh-event .pm-qh-context { margin-top:2px; font-size:11.5px; line-height:16px; color:#526784; }
.pm-qh-event .pm-qh-market { margin-top:4px; font-size:12.5px; line-height:17px; font-weight:600; color:#2d4566; }
.pm-qh-ticket { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 24px; padding:9px 12px;
  border:1px solid var(--qh-rule); border-radius:6px; background:var(--qh-tint); }
.pm-qh-ticket p { margin:0; }
.pm-qh-ticket-side { display:flex; align-items:center; gap:8px; font-size:11.5px; line-height:16px; }
.pm-qh-ticket-side>b { color:var(--qh-ink); font-weight:700; }
.pm-qh-state { padding:1px 6px; border:1px solid #d8e1ec; border-radius:3px; background:#fff; color:#44586f; font-size:10.5px; line-height:14px; }
.pm-qh-state { display:inline-flex; align-items:center; gap:5px; }
.pm-qh-state::before { content:""; width:6px; height:6px; border-radius:50%; background:#8a9bb0; }
.pm-qh-state[data-state="active"]::before { background:#17663d; }
.pm-qh-state[data-state="pending"]::before { background:#b7791f; }
.pm-qh-ticket .pm-qh-ticket-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 10px; margin-top:1px; }
.pm-qh-ticket-price>strong { font-size:26px; line-height:32px; font-weight:700; color:#132a46; font-variant-numeric:tabular-nums; }
.pm-qh-change { font-size:12px; line-height:16px; font-weight:600; color:#526784; font-variant-numeric:tabular-nums; }
.pm-qh-change[data-trend="rise"] { color:#17663d; }
.pm-qh-change[data-trend="drop"] { color:#b42318; }
.pm-qh-facts { display:grid; grid-template-columns:auto auto; gap:1px 16px; margin:0; font-size:11.5px; line-height:17px; }
.pm-qh-facts>div { display:contents; }
.pm-qh-facts dt { color:#526784; }
.pm-qh-facts dd { margin:0; text-align:right; font-weight:600; color:#193653; font-variant-numeric:tabular-nums; }
.pm-qh-chart { display:block; width:100%; height:auto; }
.pm-qh-grid { stroke:#e3e9f1; stroke-width:1; stroke-dasharray:3 3; }
.pm-qh-baseline { stroke:#cfd9e6; stroke-width:1; }
.pm-qh-chart text { font-family:inherit; font-variant-numeric:tabular-nums; }
.pm-qh-axis { font-size:10.5px; fill:#5d6f86; }
.pm-qh-area { fill:var(--qh-area); opacity:var(--qh-area-o); stroke:none; }
.pm-qh-line { stroke:var(--qh-side); stroke-width:2; }
.pm-qh-step { fill:none; stroke-linejoin:round; stroke-linecap:round; }
.pm-qh-dot { fill:#fff; stroke:var(--qh-side); stroke-width:2; }
.pm-qh-dot-last { fill:var(--qh-side); stroke:#fff; stroke-width:1.5; }
.pm-qh-mark { font-size:11px; font-weight:700; fill:#132a46; }
.pm-qh-mark-time { font-size:10px; fill:#4a5a70; }
.pm-qh-mark,.pm-qh-mark-time { paint-order:stroke; stroke:#fff; stroke-width:3px; stroke-linejoin:round; }
.pm-qh-tag rect { fill:var(--qh-side); }
.pm-qh-tag text { font-size:11px; font-weight:700; fill:#fff; }
.pm-qh-log h3 { margin:0 0 6px; font-size:12px; line-height:16px; font-weight:700; color:#2d4566; }
.pm-qh-table-wrap { max-height:232px; overflow:auto; border:1px solid #dce4ef; border-radius:6px; }
.pm-qh-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:12px; font-variant-numeric:tabular-nums; }
.pm-qh-table th:nth-child(1) { width:96px; } .pm-qh-table th:nth-child(2) { width:120px; } .pm-qh-table th:nth-child(3) { width:72px; }
.pm-qh-table th { position:sticky; top:0; z-index:1; padding:6px 10px; border-bottom:1px solid #dce4ef; background:#f4f7fb; color:#526784; font-size:10.5px; font-weight:600; text-align:left; }
.pm-qh-table td { padding:6px 10px; border-bottom:1px solid #edf1f6; white-space:nowrap; }
.pm-qh-table tr:last-child td { border-bottom:0; }
.pm-qh-table th:nth-child(n+3),.pm-qh-table td:nth-child(n+3) { text-align:right; }
.pm-qh-table td:nth-child(1) { color:#526784; }
.pm-qh-table td:nth-child(2) { color:#44586f; font-weight:600; }
.pm-qh-table td:nth-child(3) { color:#132a46; font-weight:700; }
.pm-qh-table tr[data-move="rise"] td:nth-child(2),.pm-qh-table tr[data-move="rise"] td:nth-child(4) { color:#17663d; }
.pm-qh-table tr[data-move="drop"] td:nth-child(2),.pm-qh-table tr[data-move="drop"] td:nth-child(4) { color:#b42318; }
.pm-qh-table tr[data-move="open"] td { background:#f8fafd; }
.pm-qh-empty { margin:0; padding:20px 12px; border:1px dashed #d5dfec; border-radius:6px; background:#f8fafd; color:#526784; font-size:12px; text-align:center; }
.pm-qh-warning { margin:0; padding:6px 10px; border-radius:5px; background:#fff6df; color:#865500; font-size:11.5px; line-height:16px; }
@media(max-width:480px) {
  .pm-qh-header { padding:8px 12px; }
  .pm-qh-body { gap:10px; padding:12px; }
  .pm-qh-ticket { padding:8px 10px; }
  .pm-qh-facts { width:100%; grid-template-columns:auto 1fr; }
  .pm-qh-table th,.pm-qh-table td { padding:6px 7px; }
  .pm-qh-table-wrap { max-height:none; }
  .pm-qh-table th:nth-child(1) { width:22%; } .pm-qh-table th:nth-child(2) { width:24%; } .pm-qh-table th:nth-child(3) { width:17%; }
}
/* round 2 */
/* LAY_HISTORY_20261018: no-offer rows (no LAY price, suspended, closed) and the resumption after them. */
.pm-qh-table tr[data-move="gap"] td { color:#5d6f86; font-weight:400; }
.pm-qh-table tr[data-move="gap"] td:nth-child(2) { font-style:italic; }
.pm-qh-table tr[data-move="resume"] td:nth-child(2) { color:#2d4566; }
.pm-qh-pop-table tr[data-move="gap"] td { color:#5d6f86; }
/* ALERT_LEGIBLE_20261018 (owner: "back winnersport si legge a malappena ... non si vede il book").
   List: Book 64px minimum (longest name, Marathonbet, 63px at 10.5px/600) growing to 84px with the list width
   (container #pmSignalListContent, shared by header and rows); Merc. 44->40, Segno 64->56, % 64->56 keep the
   408px table minimum, so from a 420px panel every bookmaker name is whole. Quota/%/Stato stay frozen on the right
   (offsets follow the new widths: quote 24+56+2=82, segno 82+48+2=132). Tooltip with the full name unchanged.
   Detail tiles: side tag in the side colour + bookmaker name as the primary label, AA on #edf5ff / #fbd0da. */
#pmSignalListContent { container-type:inline-size; }
.pm-alert-columns,.pm-alert-row { --pm-alert-book-w:clamp(64px,calc((100cqw - 418px) * .25 + 64px),84px);
  --pm-alert-cols:28px minmax(76px,1fr) var(--pm-alert-book-w) 40px 56px 48px 56px 16px; }
#pmSignalColumns>span:nth-child(5) { right:132px; }
.pm-alert-row-choice { right:calc(132px + var(--pm-alert-gutter,0px)); }
.pm-alert-col-quote { right:82px; }
.pm-alert-row-quote { right:calc(82px + var(--pm-alert-gutter,0px)); }
.pm-alert-row-book { font-size:10.5px; font-weight:600; color:#2d4566; text-align:left; }
#pmSignalColumns>span:nth-child(3) { text-align:left; }
/* Two fixed lines: side tag, then the bookmaker name across the whole tile (the arrow sits beside the short tag). */
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card>.pm-alert-quote-label { grid-column:1 / -1; grid-row:1; flex-wrap:wrap; gap:0; width:100%; overflow:hidden; font-size:13px; line-height:17px; color:#132a46; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-side { font-size:10.5px; line-height:15px; font-weight:700; letter-spacing:.05em; color:#2c5ea8; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-book { flex:1 0 100%; max-width:100%; font-size:13px; line-height:17px; font-weight:700; color:#132a46; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card.pm-lay .pm-alert-quote-side { color:#a02b52; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card.pm-lay .pm-alert-quote-book { color:#6e1a35; }
#pmSignalDetail .pm-alert-detail-quotes .pm-alert-quote-card>.pm-quote-history-icon { align-self:start; margin-top:2px; }
/* GRID_SCROLLBAR_20261019 (owner: "la barra per scrollare falla piu larga"). CSS only, no new scroll listeners.
   Fixed dock at the bottom: 14px rail inside a 32px dock, wider arrow buttons; the table's own bar 12px;
   vertical bars of the alert list and the Surebet list 12px. Thumb #7a8ea8 on #dfe6ef, darker on hover.
   The shell keeps 52px at the bottom so the fixed dock never covers the last row. */
.pm-shell { padding-bottom:52px; }
.pm-scroll-dock { height:32px; gap:6px; padding:4px; }
.pm-scroll-dock button { width:30px; height:24px; font-size:11px; }
.pm-scroll-dock button:not(:disabled):hover { background:#dfe8f3; border-color:#9fb1c7; color:#163a63; }
.pm-scroll-track { height:14px; cursor:pointer; }
.pm-scroll-track::-webkit-scrollbar { height:14px; }
.pm-scroll-track::-webkit-scrollbar-track { background:#dfe6ef; border-radius:7px; }
.pm-scroll-track::-webkit-scrollbar-thumb { background:#7a8ea8; border:2px solid #dfe6ef; border-radius:7px; min-width:48px; }
.pm-scroll-track::-webkit-scrollbar-thumb:hover { background:#536b89; }
.pm-scroll-track::-webkit-scrollbar-thumb:active { background:#3f5675; }
#pmEvents .pm-matrix-wrap::-webkit-scrollbar { height:12px; }
#pmEvents .pm-matrix-wrap::-webkit-scrollbar-track { background:#e7edf4; }
#pmEvents .pm-matrix-wrap::-webkit-scrollbar-thumb { background:#8ea0b7; border:2px solid #e7edf4; border-radius:6px; }
#pmEvents .pm-matrix-wrap::-webkit-scrollbar-thumb:hover { background:#5f7694; }
#pmSignals #pmSignalList::-webkit-scrollbar,#pmTools .sb-list::-webkit-scrollbar { width:12px; height:12px; }
#pmSignals #pmSignalList::-webkit-scrollbar-track,#pmTools .sb-list::-webkit-scrollbar-track { background:#eef2f7; }
#pmSignals #pmSignalList::-webkit-scrollbar-thumb,#pmTools .sb-list::-webkit-scrollbar-thumb { background:#9aabbf; border:2px solid #eef2f7; border-radius:6px; min-height:32px; }
#pmSignals #pmSignalList::-webkit-scrollbar-thumb:hover,#pmTools .sb-list::-webkit-scrollbar-thumb:hover { background:#64799a; }
/* Browsers without ::-webkit-scrollbar (Firefox): standard properties only there, so Chromium keeps the rules above. */
@supports not selector(::-webkit-scrollbar) {
  .pm-scroll-track,#pmEvents .pm-matrix-wrap { scrollbar-width:auto; scrollbar-color:#7a8ea8 #dfe6ef; }
  #pmSignals #pmSignalList,#pmTools .sb-list { scrollbar-width:auto; scrollbar-color:#9aabbf #eef2f7; }
}
