.compare-interactive { margin-block: .65rem 1rem; }
.compare-slots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.compare-slot { display:flex; flex-direction:column; align-items:flex-start; gap:.25rem; background:var(--surface); border:1px solid var(--line); border-radius:.65rem; padding:.65rem; overflow-wrap:break-word; }
.compare-slot p { margin:0; }
.compare-slot-name { font-weight:750; }
.compare-club,.compare-slot-score,.compare-feedback { font-size:.875rem; }
.compare-slot .button { margin-block-start:auto; min-height:44px; text-align:center; }
.compare-person-editor { margin-block-start:.55rem; padding:.65rem; background:var(--surface); border:1px solid var(--line); border-radius:.65rem; }
.compare-person-editor label { display:block; font-weight:700; margin-block-end:.35rem; }
.compare-editor-controls { display:flex; gap:.5rem; flex-wrap:wrap; }
.compare-editor-controls input { flex:1 1 11rem; min-width:0; min-height:44px; font-size:1rem; }
.compare-editor-controls button { min-height:44px; }
.compare-feedback { margin:.3rem 0; }
.compare-feedback:empty { margin:0; }
#compare-person-options { display:grid; gap:.25rem; padding:0; list-style:none; margin:.45rem 0 0; }
.compare-option { display:grid; min-height:44px; align-content:center; gap:.1rem; padding:.35rem .55rem; border:1px solid var(--line); border-radius:.4rem; cursor:pointer; overflow-wrap:break-word; }
.compare-option:is(:hover,[aria-selected="true"]) { outline:2px solid currentColor; outline-offset:-2px; }
.compare-actions { margin-block:0 .6rem; }
.comparison-table.compare-votes { width:100%; border-collapse:separate; border-spacing:.2rem; table-layout:fixed; }
.compare-votes caption { text-align:start; font-weight:750; font-size:1.15rem; margin-block-end:.35rem; }
.compare-votes :is(th,td) { padding:.5rem; vertical-align:top; overflow-wrap:break-word; }
.compare-votes thead th { text-align:start; width:auto; }
.compare-votes thead th:first-child { width:42%; }
.compare-votes tbody th { text-align:start; font-weight:700; background:var(--surface); }
.compare-votes .vote-choice { font-size:1rem; }
.compare-votes .vote-relation { font-size:.875rem; display:block; margin-block-start:.15rem; }
.compare-topic details { font-weight:400; font-size:.875rem; margin-block-start:.25rem; }
.compare-topic summary { cursor:pointer; }
.compare-topic details p { margin:.25rem 0 0; }
.sejm-menu-main:has(a[href="/sejm/porownaj"]) ul { grid-template-columns:repeat(4,minmax(0,1fr)); }
.home-sejm-results { grid-column:1 / -1; }
.profile-compare-entry { margin:.45rem 0; }
.profile-compare-entry .button,.vote-named-shortcut .button { min-height:44px; }
@media (max-width:720px) {
  .sejm-menu-main:has(a[href="/sejm/porownaj"]) ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sejm-menu-main:has(a[href="/sejm/porownaj"]) li:last-child { grid-column:auto; }
  .comparison-table.compare-votes { display:block; }
  .compare-votes caption { display:block; }
  .compare-votes thead { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .compare-votes tbody { display:grid; gap:.65rem; }
  .compare-votes tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.2rem; }
  .compare-votes tbody th { grid-column:1 / -1; }
  .compare-votes .comparison-vote { min-width:0; }
}
@media (max-width:390px) {
  .compare-slot { padding:.5rem; }
  .compare-edit-button { padding-inline:.45rem; }
}
