/* Shared proof UI: no layout expansion until requested. Portal lives outside clipping parents. */
button.yra-proof-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;padding:0!important;margin:0 0 0 2px!important;min-width:16px!important;width:16px!important;min-height:16px!important;height:16px!important;line-height:1!important;border:0!important;border-radius:50%!important;background:transparent!important;color:inherit!important;font:11px/1 Arial,sans-serif!important;box-shadow:none!important;cursor:pointer!important;transform:none!important;text-decoration:none!important;filter:grayscale(1)!important;opacity:.72!important;}
button.yra-proof-trigger:hover{opacity:1!important}
button.yra-proof-trigger:focus-visible{outline:2px solid currentColor!important;outline-offset:1px!important;opacity:1!important}
button.yra-proof-rank{position:absolute!important;right:4px!important;top:4px!important;z-index:35!important;margin:0!important}
.yra-proof-weekly-wrap{position:relative;min-width:0}
button.yra-proof-weekly{position:absolute!important;right:5px!important;top:5px!important;z-index:35!important;margin:0!important}
#yra-proof-panel{position:fixed!important;z-index:2147483000!important;box-sizing:border-box!important;max-width:calc(100vw - 16px);width:300px!important;max-height:calc(100dvh - 16px);overflow:auto!important;overscroll-behavior:contain!important;white-space:normal!important;background:#17212b!important;color:#f5f7fa!important;border:1px solid #77899b!important;border-radius:7px!important;padding:9px!important;box-shadow:0 5px 22px #0007!important;font:13px/1.35 system-ui,sans-serif!important;text-align:left!important;overflow-wrap:anywhere!important;}
#yra-proof-panel[hidden]{display:none!important}
#yra-proof-panel *{box-sizing:border-box!important;font-family:inherit!important;letter-spacing:normal!important;text-transform:none!important;line-height:1.35!important;}
#yra-proof-panel .yra-proof-head{display:flex;align-items:start;gap:6px;margin:0 0 4px;font-weight:650;color:#fff}
#yra-proof-panel .yra-proof-head span{flex:1;min-width:0;font-size:13px}
#yra-proof-panel button{font:inherit!important;min-height:24px!important;cursor:pointer!important;border:1px solid #7890a5!important;background:#253b50!important;color:#fff!important;border-radius:3px!important;padding:3px 6px!important;box-shadow:none!important;transform:none!important;margin:0!important}
#yra-proof-panel .yra-proof-close{flex:none;min-width:24px!important;padding:0!important}
#yra-proof-panel .yra-proof-line{margin:2px 0;color:#f5f7fa;font-size:12px;white-space:normal}
#yra-proof-panel .yra-proof-meta{margin-top:5px;color:#cbd5e1;font-size:11px}
#yra-proof-panel .yra-proof-window{border-top:1px solid #46596b;padding-top:4px;margin-top:4px}
#yra-proof-panel .yra-proof-rows-btn{width:100%;margin:5px 0 0!important;text-align:center}
#yra-proof-panel table{width:100%!important;border-collapse:collapse!important;table-layout:auto!important;min-width:0!important;margin:4px 0 0!important;font-size:12px!important;color:#fff!important;background:transparent!important}
#yra-proof-panel th,#yra-proof-panel td{padding:3px 2px!important;border:0!important;border-bottom:1px solid #46596b!important;background:transparent!important;color:inherit!important;text-align:left!important;white-space:nowrap!important}
#yra-proof-panel th:last-child,#yra-proof-panel td:last-child{text-align:right!important}
#yra-proof-panel .yra-proof-rows{max-height:150px;overflow:auto;overscroll-behavior:contain}
#generated-avg-table td .yra-proof-inline{vertical-align:middle!important}
@media(pointer:coarse){button.yra-proof-trigger{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important}}

/* Readable compact labels without expanding the ranking cards. */
#yra-proof-panel .yra-proof-period{color:#c6d6e6;font-weight:650;font-size:12px;margin:3px 0 4px}
#yra-proof-panel .yra-proof-metric{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:5px;align-items:baseline;margin:3px 0;font-size:12px}
#yra-proof-panel .yra-proof-label{color:#c6d6e6;min-width:0}
#yra-proof-panel .yra-proof-value{text-align:right;font-variant-numeric:tabular-nums;min-width:0;color:#f5f7fa;overflow-wrap:anywhere}
#yra-proof-panel .yra-proof-primary .yra-proof-value{font-size:15px;font-weight:700;color:#ffda65}
#yra-proof-panel .yra-proof-footer{border-top:1px solid #46596b;padding-top:4px;text-align:right}
#yra-proof-panel .yra-proof-rows-btn{min-height:30px!important}
#yra-proof-panel .yra-proof-rows th{position:sticky;top:0;background:#253b50!important}
@media(pointer:coarse){#yra-proof-panel .yra-proof-rows-btn{min-height:36px!important}}

/* Keep controls readable and accessible in narrow viewports. */
#yra-proof-panel button:focus-visible{outline:2px solid #b5d8ff!important;outline-offset:1px!important}
#yra-proof-panel .yra-proof-rows{max-width:100%}
#yra-proof-panel .yra-proof-rows th,#yra-proof-panel .yra-proof-rows td{white-space:normal!important;overflow-wrap:anywhere!important}

/* Overall ranking: preserve the centered rank badge and score; keep the proof control out of normal flow. */
.yra-overall-ranking-row > .yra-overall-ranking-grade,
.yra-pro-rankings-table td.is-overall{position:relative}
.yra-overall-ranking-row > .yra-overall-ranking-grade > button.yra-proof-trigger,
.yra-pro-rankings-table td.is-overall > button.yra-proof-trigger{position:absolute!important;top:1px!important;right:1px!important;margin:0!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;font-size:11px!important;z-index:1!important}
@media(pointer:coarse){.yra-overall-ranking-row > .yra-overall-ranking-grade > button.yra-proof-trigger,.yra-pro-rankings-table td.is-overall > button.yra-proof-trigger{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;font-size:11px!important}}

/* Overall PRO acquisition-rate explanation: use intrinsic label/value widths.
   At very narrow widths the value moves as a whole to the next line. */
#yra-proof-panel .yra-proof-overall-rate{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 5px}
#yra-proof-panel .yra-proof-overall-rate .yra-proof-label{flex:0 0 auto;max-width:100%}
#yra-proof-panel .yra-proof-overall-rate .yra-proof-value{flex:1 1 auto;min-width:0;max-width:100%}

/* Touch-capable desktop layout inside a narrow iframe: retain the corner
   without overlapping the unchanged 42px rank badge. The transparent
   pseudo-element extends the 18px visible control to a 22px hit area. */
@media(pointer:coarse) and (max-width:700px){
html.yra-pro-layout-desktop .yra-pro-rankings-table td.is-overall > button.yra-proof-trigger{top:0!important;right:0!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;font-size:11px!important}
html.yra-pro-layout-desktop .yra-pro-rankings-table td.is-overall > button.yra-proof-trigger::after{content:"";position:absolute;inset:0 0 -4px -4px}
html.yra-pro-layout-desktop .yra-pro-rankings-table td.is-overall > button.yra-proof-trigger:focus-visible{outline-offset:-2px!important}
}
