/* Market Place (marketplace.js) — katalóg kancelárií, moje zdieľané, správy a dohody, partneri, nastavenia.
   Farby z premenných CRM (--paper, --ink, --line, --muted, --brand), aby fungovali svetlé aj tmavé schémy vzhľadu. */
.mp2 { min-width: 0; }
.mp2 h3 { margin: 18px 0 8px; font-size: 16px; }
.mp2-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 6px; }
.mp2-chip, .mp2-chip:not(.secondary):not(.danger-soft) { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px;
  background: var(--paper, #fff); color: var(--ink, #15263a); text-align: left; font-weight: 600; min-height: 0; box-shadow: none; }
.mp2-chip:hover, .mp2-chip:not(.secondary):not(.danger-soft):hover { background: var(--paper, #fff); border-color: var(--brand, #247a60); }
.mp2-chip strong { font-size: 22px; line-height: 1; min-width: 26px; color: var(--muted, #6b7b8c); }
.mp2-chip span { font-size: 13px; line-height: 1.25; }
.mp2-chip.is-hot strong { color: var(--brand, #247a60); }
.mp2-chip.is-hot { border-color: color-mix(in srgb, var(--brand, #247a60) 45%, var(--line, #dfe4e0)); }
.mp2-plan { margin: 4px 0 14px; font-size: 13px; }
.mp2-tabs { margin-top: 4px; }
.mp2-tabs .mp2-count, .mp2-nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand, #247a60);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.mp2-nav-badge { margin-left: auto; float: right; }
.mp2-nav-badge[hidden] { display: none; }
.mp2-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.mp2-toolbar .mp2-tabs { flex: 1 1 320px; }
.mp2-toolbar > p { flex: 1 1 320px; margin: 0 0 8px; }
.mp2-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mp2-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; margin: 6px 0 16px; padding: 12px;
  border: 1px solid var(--line, #dfe4e0); border-radius: 12px; background: var(--paper, #fff); }
.mp2-filters label { font-size: 13px; }
.mp2-filters .mp2-wide { grid-column: span 2; }
.mp2-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mp2-check input, .mp2-radio input { width: auto; min-height: 0; margin: 0; }
.mp2-radio { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 4px 0; }
.mp2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mp2-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line, #dfe4e0); border-radius: 14px; background: var(--paper, #fff); overflow: hidden; }
.mp2-card--demand { border-top: 4px solid color-mix(in srgb, var(--brand, #247a60) 60%, transparent); }
.mp2-card-photo { position: relative; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--line, #dfe4e0) 55%, transparent); }
.mp2-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mp2-img-empty, .mp2-gallery-img.mp2-img-empty { display: grid; place-items: center; font-size: 40px; color: var(--muted, #6b7b8c); }
.mp2-score, .mp2-trade { position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.mp2-score { left: 10px; background: var(--brand, #247a60); color: #fff; }
.mp2-trade { right: 10px; background: #fffffff0; color: #15263a; }
.mp2-score-inline { color: var(--brand, #247a60); font-weight: 700; }
.mp2-card-body { flex: 1; padding: 12px 14px 4px; min-width: 0; }
.mp2-card-body h3 { margin: 2px 0 4px; font-size: 16px; overflow-wrap: anywhere; }
.mp2-card-body p { margin: 3px 0; }
.mp2-price { font-size: 17px; font-weight: 750; }
.mp2-split { color: var(--brand-dark, #14513f); font-weight: 650; font-size: 13.5px; }
.mp2-agency { margin-top: 8px !important; font-size: 13px; line-height: 1.4; }
.mp2-eyebrow { margin: 0; color: var(--muted, #6b7b8c); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.mp2-quote { margin: 6px 0 !important; padding: 6px 10px; border-left: 3px solid var(--line, #dfe4e0); font-size: 13.5px; overflow-wrap: anywhere; }
.mp2-small-text { font-size: 12.5px; }
.mp2-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; }
.mp2-card-actions button, .mp2-row-actions button, .mp2-small { min-height: 0; padding: 7px 12px; font-size: 13.5px; }
.mp2-empty { padding: 26px 20px; border: 1px dashed var(--line, #dfe4e0); border-radius: 14px; background: var(--paper, #fff); text-align: center; grid-column: 1 / -1; }
.mp2-empty p { margin: 6px auto 0; max-width: 560px; }
.mp2-note { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #f4c95d 22%, var(--paper, #fff)); font-size: 13.5px; }
.mp2-list { display: grid; gap: 10px; }
.mp2-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px; background: var(--paper, #fff); }
.mp2-row:not(:has(.mp2-row-photo)):not(:has(.mp2-row-score)) { grid-template-columns: minmax(0, 1fr) auto; }
.mp2-row.is-new { border-left: 4px solid var(--brand, #247a60); }
.mp2-row h3 { margin: 4px 0; font-size: 15.5px; overflow-wrap: anywhere; }
.mp2-row p { margin: 2px 0; }
.mp2-row-photo { width: 120px; height: 86px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--line, #dfe4e0) 55%, transparent); }
.mp2-row-score { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 12px; background: color-mix(in srgb, var(--brand, #247a60) 12%, var(--paper, #fff)); }
.mp2-row-score strong { font-size: 20px; color: var(--brand, #247a60); line-height: 1; }
.mp2-row-score span { font-size: 11px; color: var(--muted, #6b7b8c); }
.mp2-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 340px; }
.mp2-info { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px; background: var(--paper, #fff); }
.mp2-info summary { cursor: pointer; font-weight: 650; }
.mp2-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.mp2-info ul { margin: 4px 0 0; padding-left: 18px; }
/* dialógy */
.mp2-dialog .mp2-dialog-card { width: min(94vw, 860px); max-height: 92dvh; overflow: auto; display: grid; gap: 12px; }
.mp2-dialog .editor-heading h2 { margin: 2px 0 0; overflow-wrap: anywhere; }
.mp2-dialog textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; padding: 9px 11px; border: 1px solid var(--line, #bfcbd5); border-radius: 8px; }
.mp2-dialog .editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mp2-fieldset { margin: 0; padding: 10px 14px 12px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px; display: grid; gap: 8px; min-width: 0; }
.mp2-fieldset legend { padding: 0 6px; font-weight: 700; }
.mp2-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 46%); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.mp2-gallery-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; scroll-snap-align: start; }
.mp2-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.mp2-detail-grid h3 { margin-top: 0; }
.mp2-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.mp2-facts dt { color: var(--muted, #6b7b8c); }
.mp2-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mp2-description { white-space: pre-line; overflow-wrap: anywhere; }
.mp2-preview { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--brand, #247a60) 8%, var(--paper, #fff)); }
.mp2-preview h3 { margin: 4px 0; }
.mp2-photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mp2-photo-option { position: relative; display: block; cursor: pointer; }
.mp2-photo-option input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; min-height: 0; z-index: 1; }
.mp2-pick-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 2px solid transparent; }
.mp2-photo-option input:checked + .mp2-pick-img { border-color: var(--brand, #247a60); }
.mp2-photo-option input:not(:checked) + .mp2-pick-img { opacity: .45; }
.mp2-code { display: grid; gap: 4px; padding: 16px; border-radius: 12px; text-align: center; background: color-mix(in srgb, var(--brand, #247a60) 9%, var(--paper, #fff)); }
.mp2-code strong { font-size: 18px; overflow-wrap: anywhere; color: var(--brand, #247a60); }
/* správy */
.mp2-inbox { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
.mp2-threads { display: grid; gap: 6px; max-height: 72vh; overflow: auto; }
.mp2-thread-item, .mp2-thread-item:not(.secondary):not(.danger-soft) { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px; background: var(--paper, #fff);
  color: var(--ink, #15263a); text-align: left; font-weight: 500; min-height: 0; box-shadow: none; }
.mp2-thread-item:hover, .mp2-thread-item:not(.secondary):not(.danger-soft):hover { background: var(--paper, #fff); border-color: var(--brand, #247a60); }
.mp2-thread-item.active { border-color: var(--brand, #247a60); box-shadow: inset 3px 0 0 var(--brand, #247a60); }
.mp2-thread-item.is-unread .mp2-thread-subject { font-weight: 750; }
.mp2-thread-item.is-unread .mp2-thread-top strong::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--brand, #247a60); vertical-align: middle; }
.mp2-thread-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mp2-thread-subject, .mp2-thread-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp2-thread-last { font-size: 12.5px; }
.mp2-thread-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mp2-thread { min-width: 0; padding: 14px; border: 1px solid var(--line, #dfe4e0); border-radius: 14px; background: var(--paper, #fff); display: grid; gap: 12px; }
.mp2-thread:empty { display: none; }
.mp2-thread-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mp2-thread-head > div { flex: 1 1 260px; min-width: 0; }
.mp2-thread-head h2 { margin: 2px 0; font-size: 18px; overflow-wrap: anywhere; }
.mp2-back { display: none; }
.mp2-messages { display: grid; gap: 8px; max-height: 50vh; overflow: auto; padding: 4px; }
.mp2-msg { max-width: min(560px, 92%); padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--line, #dfe4e0) 45%, var(--paper, #fff)); justify-self: start; }
.mp2-msg.mine { justify-self: end; background: color-mix(in srgb, var(--brand, #247a60) 13%, var(--paper, #fff)); }
.mp2-msg.contact { border: 1px solid var(--brand, #247a60); }
.mp2-msg-meta { font-size: 12px; margin-bottom: 2px; }
.mp2-msg-body { white-space: pre-line; overflow-wrap: anywhere; }
.mp2-msg-consent { margin-top: 4px; font-size: 12px; }
.mp2-event { justify-self: center; text-align: center; font-size: 12.5px; color: var(--muted, #6b7b8c); max-width: 92%; }
.mp2-event span { display: block; font-weight: 650; color: var(--ink, #15263a); }
.mp2-agreements { display: grid; gap: 8px; }
.mp2-agreement { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px;
  background: color-mix(in srgb, var(--brand, #247a60) 6%, var(--paper, #fff)); }
.mp2-agreement p { margin: 2px 0; }
.mp2-agreement h3 { margin: 0 0 4px; }
.mp2-composer { display: grid; gap: 8px; }
.mp2-composer textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; padding: 9px 11px; border: 1px solid var(--line, #bfcbd5); border-radius: 10px; }
.mp2-composer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mp2-composer p { margin: 0; }
/* partneri */
.mp2-agencies { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.mp2-agency-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px; background: var(--paper, #fff); }
.mp2-agency-card .mp2-row-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
.mp2-agency-main h3 { margin: 0 0 2px; font-size: 15px; overflow-wrap: anywhere; }
.mp2-agency-main p { margin: 2px 0; }
.mp2-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--brand, #247a60) 15%, var(--paper, #fff));
  color: var(--brand, #247a60); font-weight: 800; font-size: 18px; }
.mp2-settings { display: grid; gap: 12px; max-width: 900px; margin-bottom: 14px; }
.mp2-settings .editor-actions { display: flex; justify-content: flex-end; }
@media (max-width: 900px) {
  .mp2-inbox { grid-template-columns: minmax(0, 1fr); }
  .mp2-inbox.has-thread .mp2-threads { display: none; }
  .mp2-inbox:not(.has-thread) .mp2-thread { display: none; }
  .mp2-back { display: inline-block; }
  .mp2-detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mp2-row, .mp2-row:not(:has(.mp2-row-photo)):not(:has(.mp2-row-score)) { grid-template-columns: minmax(0, 1fr); }
  .mp2-row-photo { width: 100%; height: 160px; }
  .mp2-row-score { width: auto; height: auto; padding: 8px; display: flex; gap: 6px; justify-content: flex-start; }
  .mp2-row-actions { justify-content: flex-start; max-width: none; }
  .mp2-filters .mp2-wide { grid-column: 1 / -1; }
  .mp2-agencies, .mp2-grid { grid-template-columns: minmax(0, 1fr); }
  .mp2-agreement { grid-template-columns: minmax(0, 1fr); }
  .mp2-gallery { grid-auto-columns: 85%; }
}
.mp2-filter-box { margin: 6px 0 16px; }
.mp2-filter-box > summary { cursor: pointer; font-weight: 700; padding: 6px 2px; }
.mp2-filter-box .mp2-filters { margin-top: 4px; }
@media (max-width: 640px) {
  .mp2-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mp2-chip, .mp2-chip:not(.secondary):not(.danger-soft) { padding: 8px 10px; gap: 8px; }
  .mp2-chip strong { font-size: 18px; min-width: 18px; }
  .mp2-chip span { font-size: 12px; }
}
.mp2-places { display: grid; gap: 6px; min-width: 0; }
.mp2-places[hidden] { display: none; }
.mp2-places-label { font-weight: 650; }
.mp2-filters .loc-suggest { position: relative; }
/* Podrobný dopyt kancelárie a zhoda v % (od 22. 10. 2026) — štítky požiadaviek a lokalít, rozpis ✓ ~ ✗ ?, panel Najlepšie zhody, formulár povinné/vítané. */
.mp2-lead { margin: 4px 0 10px; font-size: 13.5px; }
.mp2-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mp2-score-pill { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: var(--brand, #247a60); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: 0; }
.mp2-crit { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 !important; font-size: 12.5px; }
.mp2-crit span { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--line, #dfe4e0) 50%, var(--paper, #fff)); }
.mp2-crit span.is-must { background: color-mix(in srgb, var(--brand, #247a60) 15%, var(--paper, #fff)); color: var(--brand-dark, #14513f); font-weight: 650; }
.mp2-crit span.is-must::after { content: ' *'; }
.mp2-place-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; min-width: 0; }
.mp2-place { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 9px; border: 1px solid color-mix(in srgb, var(--brand, #247a60) 40%, var(--line, #dfe4e0));
  border-radius: 999px; background: var(--paper, #fff); font-size: 12.5px; overflow-wrap: anywhere; }
.mp2-place.is-text { border-style: dashed; color: var(--muted, #6b7b8c); }
.mp2-place button, .mp2-place button:not(.secondary):not(.danger-soft) { min-height: 0; padding: 0 2px; border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; box-shadow: none; cursor: pointer; }
.mp2-filter-map { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mp2-filter-map .mp2-place-chips { margin: 0; }
.mp2-legend { margin: 2px 0 8px !important; font-size: 12px; }
.mp2-reasons { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.mp2-reasons li { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--line, #dfe4e0) 50%, var(--paper, #fff)); color: var(--muted, #6b7b8c); }
.mp2-reasons li.is-ok { background: color-mix(in srgb, #2e9d63 15%, var(--paper, #fff)); color: #1d6b43; }
.mp2-reasons li.is-partial { background: color-mix(in srgb, #e2a93b 20%, var(--paper, #fff)); color: #7d5200; }
.mp2-reasons li.is-no { background: color-mix(in srgb, #d4583f 16%, var(--paper, #fff)); color: #9c2f1c; }
.mp2-reasons li sup { font-size: 10px; }
.mp2-reasons .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mp2-best { grid-column: 1 / -1; padding-top: 10px; border-top: 1px dashed var(--line, #dfe4e0); min-width: 0; }
.mp2-best[hidden] { display: none; }
.mp2-best-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.mp2-cands { display: grid; gap: 8px; }
.mp2-cand { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px; background: var(--paper, #fff); }
.mp2-cand-score { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%;
  background: conic-gradient(var(--brand, #247a60) calc(var(--score, 0) * 1%), color-mix(in srgb, var(--line, #dfe4e0) 70%, var(--paper, #fff)) 0); }
.mp2-cand-score::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--paper, #fff); }
.mp2-cand-score > * { position: relative; }
.mp2-cand-score strong { font-size: 15px; line-height: 1; color: var(--brand, #247a60); }
.mp2-cand-score span { font-size: 10px; color: var(--muted, #6b7b8c); }
.mp2-cand-main { min-width: 0; }
.mp2-cand-main h4 { margin: 2px 0; font-size: 15px; overflow-wrap: anywhere; }
.mp2-cand-main p { margin: 2px 0; }
.mp2-cand-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 260px; }
.mp2-cand-actions button { min-height: 0; padding: 6px 10px; font-size: 13px; }
.mp2-fit { display: grid; gap: 6px; }
.mp2-fit[hidden] { display: none; }
.mp2-fit h3 { margin: 6px 0 0; }
.mp2-req { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mp2-req th { padding: 5px 10px 5px 0; color: var(--muted, #6b7b8c); font-weight: 600; text-align: left; vertical-align: top; white-space: nowrap; }
.mp2-req td { padding: 5px 0; vertical-align: top; overflow-wrap: anywhere; }
.mp2-req td:last-child { padding-left: 8px; text-align: right; white-space: nowrap; }
.mp2-req .mp2-place-chips { margin: 0; }
.mp2-mn-tag { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--line, #dfe4e0) 50%, var(--paper, #fff)); color: var(--muted, #6b7b8c); font-size: 11.5px; }
.mp2-mn-tag.is-must { background: color-mix(in srgb, var(--brand, #247a60) 16%, var(--paper, #fff)); color: var(--brand-dark, #14513f); font-weight: 700; }
.mp2-empty--inline { padding: 14px; text-align: left; }
/* formulár dopytu */
.mp2-help { margin: 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--brand, #247a60) 7%, var(--paper, #fff)); font-size: 13.5px; }
.mp2-crit-grid { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(80px, 150px) minmax(80px, 150px) auto; gap: 8px 10px; align-items: center; }
.mp2-crit-line { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; }
.mp2-crit-line[hidden] { display: none; }
.mp2-crit-line--wide { grid-template-columns: minmax(0, 1fr) auto; }
.mp2-crit-name { font-size: 13.5px; font-weight: 650; }
.mp2-crit-name small { font-weight: 500; }
.mp2-picks { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.mp2-picks select { width: auto; max-width: 100%; }
.mp2-pick { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border: 1px solid var(--line, #dfe4e0); border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; }
.mp2-pick input { width: auto; min-height: 0; margin: 0; }
.mp2-pick:has(input:checked) { border-color: var(--brand, #247a60); background: color-mix(in srgb, var(--brand, #247a60) 10%, var(--paper, #fff)); }
.mp2-mn { display: inline-flex; border: 1px solid var(--line, #dfe4e0); border-radius: 999px; overflow: hidden; font-size: 12px; white-space: nowrap; }
.mp2-mn label { display: inline-flex; margin: 0; cursor: pointer; }
.mp2-mn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mp2-mn span { padding: 4px 10px; color: var(--muted, #6b7b8c); font-weight: 650; }
.mp2-mn input[value="must"]:checked + span { background: var(--brand, #247a60); color: #fff; }
.mp2-mn input[value="nice"]:checked + span { background: color-mix(in srgb, var(--brand, #247a60) 16%, var(--paper, #fff)); color: var(--brand-dark, #14513f); }
.mp2-mn label:has(input:focus-visible) span { outline: 2px solid var(--brand, #247a60); outline-offset: -2px; }
.mp2-place-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mp2-place-actions input { flex: 1 1 240px; }
@media (max-width: 640px) {
  .mp2-crit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mp2-crit-grid .mp2-crit-name { grid-column: 1 / -1; margin-top: 4px; }
  .mp2-crit-grid .mp2-mn { grid-column: 1 / -1; justify-self: start; }
  .mp2-crit-line { grid-template-columns: minmax(0, 1fr); }
  .mp2-crit-line .mp2-mn { justify-self: start; }
  .mp2-cand { grid-template-columns: auto minmax(0, 1fr); }
  .mp2-cand-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .mp2-req th { white-space: normal; }
}
