/* Targeted layout refresh: compare values remain a semantic table, with repeated visual labels. */
main .records-workbench[data-records-workbench="compare"] .rm-distributions{max-height:none;overflow:visible}
main .records-workbench[data-records-workbench="compare"] .rm-distributions table{display:block;white-space:normal;min-width:0;width:100%;max-width:100%;table-layout:auto}
main .records-workbench[data-records-workbench="compare"] .rm-distributions thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
main .records-workbench[data-records-workbench="compare"] .rm-distributions tbody{display:grid;min-width:0;width:100%;max-width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
main .records-workbench[data-records-workbench="compare"] .rm-distributions tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;border:1px solid var(--cr-line,var(--line));border-radius:6px;overflow:visible}
main .records-workbench[data-records-workbench="compare"] .rm-distributions td{display:block;min-width:0;padding:6px;border-bottom:0;text-align:center;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
main .records-workbench[data-records-workbench="compare"] .rm-distributions td:first-child,main .records-workbench[data-records-workbench="compare"] .rm-distributions td:last-child{grid-column:1/-1}
main .records-workbench[data-records-workbench="compare"] .rm-distributions td:first-child{padding-bottom:0}
main .records-workbench[data-records-workbench="compare"] .rm-distributions td button{min-height:40px;width:100%;padding:4px}
main .records-workbench[data-records-workbench="compare"] .rm-distributions td::before{display:block;font-size:11px;line-height:1.5;font-weight:600}
main .records-workbench[data-records-workbench="compare"] .rm-distributions td:nth-child(2)::before{content:"A 次数 / 占比"}
main .records-workbench[data-records-workbench="compare"] .rm-distributions td:nth-child(3)::before{content:"B 次数 / 占比"}
main .records-workbench[data-records-workbench="compare"] .rm-distributions td:nth-child(4)::before{content:"A−B 百分点"}
main .missing-board{min-height:0;align-content:start}
main .missing-board>.omission{min-height:0;min-width:0;padding:10px}
main .missing-board>.omission p{overflow-wrap:anywhere}
main section.module-content[data-module-content]{min-height:0}
@media(min-width:1100px){main .records-workbench[data-records-workbench="compare"] .rm-distributions tbody{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:600px){main .records-workbench[data-records-workbench="compare"] .rm-distributions tbody{grid-template-columns:repeat(2,minmax(0,1fr))}main .missing-board{grid-template-columns:repeat(3,minmax(0,1fr))}main .missing-board>.omission{padding:8px}}

/* Narrow comparison: four concise rows per sum, with all counts, shares and delta units. */
@media(max-width:600px){
 main .records-workbench[data-records-workbench="compare"] .rm-distributions tbody{gap:6px}
 main .records-workbench[data-records-workbench="compare"] .rm-distributions tr{display:block;padding:2px}
 main .records-workbench[data-records-workbench="compare"] .rm-distributions td{padding:1px;text-align:center;line-height:1.5}
 main .records-workbench[data-records-workbench="compare"] .rm-distributions td:first-child{padding:0}
 main .records-workbench[data-records-workbench="compare"] .rm-distributions td::before{display:inline;font-size:inherit;line-height:inherit}
 main .records-workbench[data-records-workbench="compare"] .rm-distributions td:nth-child(2)::before{content:"A "}
 main .records-workbench[data-records-workbench="compare"] .rm-distributions td:nth-child(3)::before{content:"B "}
 main .records-workbench[data-records-workbench="compare"] .rm-distributions td:nth-child(4)::before{content:"差 "}
 main .records-workbench[data-records-workbench="compare"] .rm-distributions td:nth-child(4)::after{content:" 百分点"}
}
@media(min-width:361px) and (max-width:600px){main .records-workbench[data-records-workbench="compare"] .rm-distributions tbody{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Clear inherited fixed table-cell height only for this finite comparison. */
main .records-workbench[data-records-workbench="compare"] .rm-distributions td{height:auto!important;line-height:18px}
@media(max-width:600px){main .records-workbench[data-records-workbench="compare"] .rm-distributions td{font-size:13px;line-height:18px!important}}
