/* History Explorer: dark data panel, light controls, keyboard and reduced-motion aware. */
.olp-x { display: flex; flex-direction: column; gap: 1rem; }
.olp-x__controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem 1rem; align-items: end; background: var(--wp--preset--color--surface, #fff); border: 1px solid var(--wp--preset--color--line, #E4E7EF); border-radius: 14px; padding: 1rem; }
.olp-x__controls label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 500; color: var(--wp--preset--color--ink-soft, #3D4660); }
.olp-x__controls select, .olp-x__controls input { font: inherit; padding: .55rem .7rem; border: 1px solid #C9CFDD; border-radius: 10px; background: #fff; color: var(--wp--preset--color--ink, #0B0F1A); min-height: 44px; }
.olp-x__controls input:disabled { background: #F2F4F8; color: #7D879C; }
.olp-x__kinds { display: flex; gap: .5rem; flex-wrap: wrap; }
.olp-x__kinds button, .olp-x__run, .olp-x__toggle { font: inherit; font-weight: 700; min-height: 44px; padding: .55rem 1rem; border-radius: 10px; border: 1px solid #C9CFDD; background: #fff; color: var(--wp--preset--color--ink, #0B0F1A); cursor: pointer; transition: background .18s, color .18s; }
.olp-x__kinds button[aria-pressed="true"] { background: var(--wp--preset--color--ink, #0B0F1A); color: var(--wp--preset--color--lime, #C6FF4A); border-color: var(--wp--preset--color--ink, #0B0F1A); }
.olp-x__run { background: var(--wp--preset--color--ink, #0B0F1A); color: var(--wp--preset--color--lime, #C6FF4A); border-color: var(--wp--preset--color--ink, #0B0F1A); }
.olp-x__run:disabled { opacity: .6; cursor: wait; }
.olp-x__controls *:focus-visible, .olp-x__panel *:focus-visible { outline: 3px solid var(--wp--preset--color--green, #0F6B3F); outline-offset: 2px; }
.olp-x__panel { background: var(--wp--preset--color--ink, #0B0F1A); color: #F3F5F9; border-radius: 22px; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.olp-x__meta { font-size: .9rem; color: var(--wp--preset--color--panel-text, #A9B3C9); }
.olp-x__bar { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: center; }
.olp-x__toggle { background: #121829; color: #F3F5F9; border-color: #1F2840; }
.olp-x-status { min-height: 1.4em; font-size: .9rem; color: var(--wp--preset--color--panel-text, #A9B3C9); }
.olp-x-status--error { color: #FFD166; }
.olp-x-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
.olp-x-svg { width: 100%; min-width: 1240px; height: auto; display: block; font-family: var(--wp--preset--font-family--body, system-ui); }
.olp-x-svg--pairs { min-width: 0; max-width: 560px; }
.olp-x-bar { fill: #5F7F2E; transition: fill .18s; }
.olp-x-bar--hi { fill: var(--wp--preset--color--lime, #C6FF4A); }
.olp-x-bar:hover, .olp-x-bar:focus { fill: #d9ff7a; }
.olp-x-tick { fill: #A9B3C9; font-size: 13px; }
.olp-x-val { fill: #F3F5F9; font-size: 11px; }
.olp-x-expected { stroke: #FFD166; stroke-dasharray: 4 4; stroke-width: 1.5; }
.olp-x-expected-label { fill: #FFD166; font-size: 13px; }
.olp-x-svg--pairs .olp-x-tick, .olp-x-svg--pairs .olp-x-val { font-size: 12px; }
.olp-x-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.olp-x-tbl caption { text-align: left; color: #A9B3C9; padding: .25rem 0 .5rem; }
.olp-x-tbl th, .olp-x-tbl td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid #1F2840; }
.olp-x-tbl th[scope="row"] { font-family: var(--wp--preset--font-family--display, inherit); }
.olp-x-tbl tr.olp-x-hit { background: #1F2840; }
.olp-x-tbl tr.olp-x-hit th { color: var(--wp--preset--color--lime, #C6FF4A); }
.olp-x-svg text.olp-x-hit { fill: var(--wp--preset--color--lime, #C6FF4A); font-weight: 700; }
.olp-x__method { font-size: .8rem; color: #7D879C; }
/* Linked views (5B): number strip, timeline, windowed grid. Static SVG, no animation. */
.olp-x-linked { border-top: 1px solid #1F2840; padding-top: .9rem; display: flex; flex-direction: column; gap: .75rem; }
.olp-x-linked__h { font-size: 1rem; margin: 0; color: #F3F5F9; }
.olp-x-linked__sel { margin: 0; font-size: .9rem; color: var(--wp--preset--color--panel-text, #A9B3C9); min-height: 1.4em; }
.olp-x-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; }
.olp-x-numbers button { font: inherit; font-size: .85rem; font-weight: 700; min-height: 38px; border-radius: 8px; border: 1px solid #3A4663; background: #121829; color: #F3F5F9; cursor: pointer; padding: 0; }
.olp-x-numbers button[aria-pressed="true"] { background: var(--wp--preset--color--lime, #C6FF4A); color: #0B0F1A; border-color: var(--wp--preset--color--lime, #C6FF4A); }
.olp-x-numbers button.olp-x-draw-hit { box-shadow: inset 0 0 0 2px #FFD166; }
.olp-x-tl-svg { width: 100%; height: 40px; display: block; }
.olp-x-tl-labels { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: #F3F5F9; flex-wrap: wrap; }
.olp-x-tl-labels span:nth-child(2) { color: var(--wp--preset--color--panel-text, #A9B3C9); text-align: center; flex: 1 1 100%; order: 3; }
.olp-x-tl-note { margin: .25rem 0 0; font-size: .8rem; color: #7D879C; }
@media (min-width: 700px) { .olp-x-tl-labels span:nth-child(2) { flex: 1 1 auto; order: 0; } }
.olp-x-tl-track { fill: #121829; stroke: #1F2840; }
.olp-x-tl-hit rect { fill: var(--wp--preset--color--lime, #C6FF4A); }
.olp-x-tl-hit:focus { outline: none; } .olp-x-tl-hit:focus rect, .olp-x-tl-hit:hover rect { fill: #fff; }
.olp-x-tl-mark { stroke: #FFD166; stroke-width: 3; }
.olp-x-pager { display: flex; gap: .5rem; }
.olp-x-heat-svg { width: 100%; min-width: 1080px; height: auto; display: block; font-family: var(--wp--preset--font-family--body, system-ui); }
.olp-x-heat-colhead { fill: #A9B3C9; font-size: 10px; }
.olp-x-heat-grid { stroke: #1F2840; stroke-width: 1; }
.olp-x-heat-col { fill: rgba(198, 255, 74, .16); }
.olp-x-heat-row { fill: rgba(255, 209, 102, .14); }
.olp-x-heat-hit { fill: #5F7F2E; cursor: pointer; }
.olp-x-heat-hit--sel { fill: var(--wp--preset--color--lime, #C6FF4A); }
.olp-x-heat-hit:hover { fill: #d9ff7a; }
.olp-x-heat-datebg { fill: #121829; cursor: pointer; }
.olp-x-heat-datetxt { fill: #F3F5F9; font-size: 11px; pointer-events: none; }
.olp-x-heat-date--sel .olp-x-heat-datebg { fill: #FFD166; } .olp-x-heat-date--sel .olp-x-heat-datetxt { fill: #0B0F1A; }
.olp-x-heat-date:focus { outline: none; } .olp-x-heat-date:focus .olp-x-heat-datebg { stroke: var(--wp--preset--color--lime, #C6FF4A); stroke-width: 2; }
.olp-x-linkbtn { font: inherit; background: none; border: 0; color: #F3F5F9; text-decoration: underline; cursor: pointer; padding: 0; }
.olp-x-mark { background: var(--wp--preset--color--lime, #C6FF4A); color: #0B0F1A; border-radius: 4px; padding: 0 .25rem; font-weight: 700; }
.olp-x-bar.olp-x-draw-hit { stroke: #FFD166; stroke-width: 2; }
.olp-x-tbl tr.olp-x-draw-hit td, .olp-x-tbl tr.olp-x-draw-hit th { color: #FFD166; }
.olp-x-bar { cursor: pointer; }
/* 5C profile card */
.olp-x-profile:empty { display: none; }
.olp-x-profile { background: #121829; border: 1px solid #1F2840; border-radius: 14px; padding: 1rem 1.1rem; font-size: .92rem; line-height: 1.55; }
.olp-x-profile h4 { margin: 0 0 .25rem; font-size: 1.05rem; color: #F3F5F9; }
.olp-x-profile__scope { margin: 0 0 .6rem; font-size: .82rem; color: var(--wp--preset--color--panel-text, #A9B3C9); }
.olp-x-profile__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem 1rem; margin: 0 0 .6rem; }
.olp-x-profile__facts div { display: flex; flex-direction: column; gap: .1rem; }
.olp-x-profile__facts dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--panel-text, #A9B3C9); }
.olp-x-profile__facts dd { margin: 0; color: #F3F5F9; font-weight: 600; }
.olp-x-profile__note { font-size: .82rem; color: var(--wp--preset--color--panel-text, #A9B3C9); font-weight: 400; }
.olp-x-profile__list { margin: .25rem 0 .5rem; padding-left: 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .2rem .75rem; }
.olp-x-profile__nums { font-family: var(--wp--preset--font-family--display, inherit); font-weight: 700; color: #F3F5F9; }
.olp-x-profile__sp { color: var(--wp--preset--color--lime, #C6FF4A); }
.olp-x-profile__all { margin-bottom: .5rem; }
/* 5D filter lab and 5F reality check */
.olp-x-lab__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem .9rem; align-items: end; }
.olp-x-lab__form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--wp--preset--color--panel-text, #A9B3C9); }
.olp-x-lab__form select, .olp-x-lab__form input { font: inherit; min-height: 44px; padding: .5rem .7rem; border-radius: 10px; border: 1px solid #3A4663; background: #121829; color: #F3F5F9; }
.olp-x-lab__logic { border: 1px solid #1F2840; border-radius: 10px; padding: .4rem .7rem; color: #F3F5F9; font-size: .85rem; grid-column: 1 / -1; display: flex; gap: 1rem; flex-wrap: wrap; }
.olp-x-lab__logic legend { color: var(--wp--preset--color--panel-text, #A9B3C9); padding: 0 .3rem; }
.olp-x-lab__rules { margin: 0; padding-left: 1.2rem; color: #F3F5F9; font-size: .92rem; }
.olp-x-lab__rules li { margin: .15rem 0; }
.olp-x-pager { flex-wrap: wrap; max-width: 100%; }
.olp-x-lab__save { display: flex; flex-direction: column; gap: .4rem; }
.olp-x-lab__save label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--wp--preset--color--panel-text, #A9B3C9); max-width: 420px; }
.olp-x-lab__save input { font: inherit; min-height: 44px; padding: .5rem .7rem; border-radius: 10px; border: 1px solid #3A4663; background: #121829; color: #F3F5F9; }
.olp-x-lab__save > button { align-self: flex-start; }
.olp-x-lab__saved { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: #F3F5F9; }
.olp-x-profile__scope a, .olp-x-profile__note a { color: var(--wp--preset--color--lime, #C6FF4A); }
.olp-x-rc__cell { display: inline-block; min-width: 2.2em; text-align: right; margin-right: .25em; font-variant-numeric: tabular-nums; }
.olp-x-rc__exp td, .olp-x-rc__exp th { color: #FFD166; }
.olp-x__toggle:disabled { opacity: .5; cursor: default; }
.olp-x__method a { color: #A9B3C9; }
.olp-x__coverage { font-size: .85rem; color: var(--wp--preset--color--panel-text, #A9B3C9); margin: 0; }
.olp-x__coverage--warn { color: #FFD166; font-weight: 600; }
/* Data-quality panel ([olp_data_quality]): light surface cards, semantic tables, works without JS. */
.olp-dq { display: flex; flex-direction: column; gap: 1.5rem; }
.olp-dq__game, .olp-dq__notes { background: var(--wp--preset--color--surface, #fff); border: 1px solid var(--wp--preset--color--line, #E4E7EF); border-radius: 14px; padding: 1.25rem 1.4rem; }
.olp-dq__game h2, .olp-dq__notes h2 { margin-top: 0; }
.olp-dq__game h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.olp-dq__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem 1rem; margin: 0 0 .75rem; }
.olp-dq__facts div { display: flex; flex-direction: column; gap: .15rem; }
.olp-dq__facts dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--ink-muted, #7D879C); }
.olp-dq__facts dd { margin: 0; font-family: var(--wp--preset--font-family--display, inherit); font-weight: 700; }
.olp-dq__tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.olp-dq__tbl th, .olp-dq__tbl td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--wp--preset--color--line, #E4E7EF); vertical-align: top; }
.olp-dq__checks, .olp-dq__corr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.olp-dq__check { padding-left: .5rem; border-left: 4px solid #C9CFDD; }
.olp-dq__check--pass { border-left-color: var(--wp--preset--color--green, #0F6B3F); }
.olp-dq__check--fail { border-left-color: #E63946; }
.olp-dq__check--review { border-left-color: #F4B400; }
.olp-dq__check--not_performed { border-left-color: #7D879C; }
.olp-dq__result { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 6px; background: var(--wp--preset--color--line, #E4E7EF); color: var(--wp--preset--color--ink, #0B0F1A); margin-right: .35rem; }
.olp-dq .olp-badge { display: inline-block; margin: 0 0 .75rem; }
@media (max-width: 600px) { .olp-dq__tbl { font-size: .8rem; } .olp-dq__tbl th, .olp-dq__tbl td { padding: .35rem .3rem; } }
.olp-x-explain { border-top: 1px solid #1F2840; padding-top: .9rem; display: flex; flex-direction: column; gap: .75rem; }
.olp-x-explain__bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.olp-x-explain__bar label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--wp--preset--color--panel-text, #A9B3C9); }
.olp-x-explain__bar label { min-width: 0; max-width: 100%; }
.olp-x-explain__bar select { min-width: 0; max-width: 100%; width: 100%; }
.olp-x-explain__bar select { font: inherit; min-height: 44px; padding: .5rem .7rem; border-radius: 10px; border: 1px solid #3A4663; background: #121829; color: #F3F5F9; }
.olp-x-explain__out p { margin: 0 0 .5rem; }
.olp-x-explain__head { font-size: .85rem; color: var(--wp--preset--color--panel-text, #A9B3C9); }
.olp-x-explain__det { color: #F3F5F9; line-height: 1.55; }
.olp-x-explain__ai p { background: #121829; border-left: 3px solid var(--wp--preset--color--lime, #C6FF4A); padding: .6rem .8rem; border-radius: 8px; line-height: 1.55; }
.olp-x-explain__pending { color: var(--wp--preset--color--panel-text, #A9B3C9); font-size: .9rem; }
.olp-x-explain__meta { font-size: .78rem; color: #7D879C; }
.olp-x-explain__meta a { color: #A9B3C9; }
.olp-x__disclosure { font-size: .85rem; color: var(--wp--preset--color--panel-text, #A9B3C9); }
.olp-x__disclosure strong { color: #F3F5F9; }
.olp-x-reduced * { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .olp-x * { transition: none !important; animation: none !important; } }
@media (max-width: 600px) { .olp-x__panel { padding: 1rem; border-radius: 16px; } .olp-x-tbl { font-size: .8rem; } }
