/* Content only: no shell selectors or global theme variables. */
.cc .pt-identities, .campaign-shell .pt-identities, .campaign-wizard .pt-identities, .pt-identities { display:inline-flex; align-items:center; flex-wrap:wrap; gap:4px; vertical-align:middle; }
.pt-identities .pt-party { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; padding:3px; border:1px solid #dfe4eb; border-radius:6px; background:#fff; flex-shrink:0; overflow:hidden; }
.pt-identities .pt-party img { display:block; width:100%; height:100%; object-fit:contain; }
.pt-identities .pt-party-wide { width:64px; }
.pt-identities .pt-party-fallback { min-width:34px; width:auto; max-width:110px; padding-inline:5px; background:var(--surface-subtle); color:var(--ink-soft); font-size:10px; font-weight:700; overflow-wrap:anywhere; }
.cc-meter.pt-tone-coalition .fill { fill:var(--muted); }
.cc-meter.pt-tone-pan .fill { fill:#005ca8; }
.cc-meter.pt-tone-pri .fill { fill:#d2222b; }
.cc-meter.pt-tone-prd .fill { fill:#d1a400; }
.cc-meter.pt-tone-pt .fill { fill:#d21f2c; }
.cc-meter.pt-tone-pvem .fill { fill:#5b9f38; }
.cc-meter.pt-tone-mc .fill { fill:#ed7102; }
.cc-meter.pt-tone-morena .fill { fill:#a13a47; }
.cc-meter.pt-tone-na .fill { fill:#219da2; }
.cc-meter.pt-tone-pes .fill, .cc-meter.pt-tone-pes-2021 .fill { fill:#82628d; }
.cc-meter.pt-tone-rsp .fill { fill:#d6394a; }
.cc-reading { display:flex; align-items:flex-start; gap:.7rem; padding:.85rem 1rem; border-left:3px solid var(--brand); background:var(--tint); color:var(--ink); border-radius:0 .6rem .6rem 0; margin-bottom:1rem; }
.cc-reading p { margin:.25rem 0 0; color:var(--muted); font-size:.8rem; line-height:1.5; }
.cc-reading b { font-size:.88rem; font-weight:650; }
.cc-reading-icon { font-size:1rem; color:var(--brand); }
.cc-context-bar { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem 1rem; padding:.75rem 1rem; background:var(--surface); border:1px solid var(--line); border-radius:.7rem; }
.cc-context-bar p { flex:1 1 15rem; margin:0; font-size:.84rem; font-weight:600; }
.cc-context-bar button { white-space:nowrap; }
.cc-context-bar[hidden] { display:none; }
.cc .cc-scope[hidden] { display:none; }
.cc .cc-head .cc-lead { max-width:50rem; font-size:.84rem; }
.cc .cc-head h1 { font-size:clamp(1.5rem,2.4vw,2rem); }
.cc .cc-welcome { padding:.65rem 1rem; }
.cc .cc-welcome > p { font-size:.8rem; }
.cc-actor-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.7rem; margin-block:1rem; }
.cc-actor-tools label { display:inline-flex; align-items:center; gap:.5rem; margin:0; font-size:.8rem; color:var(--muted); }
.cc-actor-tools label[hidden] { display:none; }
.cc-actor-tools select, .cc-actor-tools input { width:auto; min-height:2.4rem; padding:.4rem .6rem; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:.5rem; font:inherit; }
.cc-actor-tools input { min-width:12rem; max-width:100%; }
.cc-actor-tools input { flex:1 1 15rem; }
.cc-actor-list { display:grid; gap:1.05rem; }
.cc-actor-row { display:block; width:100%; padding:0; border:0; border-radius:0; background:transparent; text-align:left; color:var(--ink); cursor:pointer; }
.cc-actor-row:hover { background:transparent; color:var(--ink); }
.cc-actor-row:hover .cc-actor-name b { color:var(--brand); }
.cc-actor-top { display:flex; align-items:center; flex-wrap:wrap; gap:.7rem; margin-bottom:.45rem; }
.cc-actor-name { min-width:0; flex:1; }
.cc-actor-name b { display:block; font-size:.84rem; font-weight:650; overflow-wrap:anywhere; }
.cc-actor-name small { display:block; margin-top:.15rem; color:var(--muted); font-size:.72rem; }
.cc-actor-value { margin-left:auto; text-align:right; font-variant-numeric:tabular-nums; }
.cc-actor-value b { display:block; font-size:.9rem; }
.cc-actor-value small { display:block; color:var(--muted); font-size:.74rem; }
.cc-actor-axis { margin:.85rem 0 0 !important; color:var(--muted); font-size:.74rem; line-height:1.5; }
.cc-actor-detail { margin-top:1rem; padding:1rem; border:1px solid var(--line); border-radius:.75rem; background:var(--surface-subtle); }
.cc-actor-detail header { display:flex; justify-content:space-between; align-items:center; gap:.8rem; margin-bottom:.7rem; }
.cc-actor-detail p { margin:.6rem 0 0; color:var(--muted); font-size:.82rem; line-height:1.6; }
.cc-actor-label { display:flex; align-items:center; gap:.7rem; }
.cc .cc-delta.up, .cc .cc-delta.down { color:var(--muted); }
.cc-number-note { font-size:.74rem; color:var(--muted); }
.cc-explainer summary { cursor:pointer; font-size:.8rem; font-weight:600; }
.cc-explainer p { margin:.6rem 0 0; font-size:.8rem; color:var(--muted); line-height:1.6; }
.campaign-shell .compete-year .cand { align-items:start; }
.campaign-shell .cand > .pt-identities { grid-column:1 / -1; margin-bottom:.25rem; }
.campaign-wizard .chip .pt-identities { margin-inline:.2rem; }
.campaign-wizard .chip .pt-party { width:29px; height:29px; }
.campaign-wizard .chip .pt-party-wide { width:56px; }
.pt-bloc-comparison { display:grid; gap:.6rem; margin-block:.85rem 1rem; }
.pt-bloc-line { display:grid; grid-template-columns:5.6rem minmax(0,1fr) 6rem; align-items:center; gap:.6rem; font-size:.8rem; }
.pt-bloc-line .pt-bloc-meter { width:100%; height:.6rem; display:block; }
.pt-bloc-line .pt-bloc-meter .track { fill:var(--surface-subtle); }
.pt-bloc-line .pt-bloc-meter .fill { fill:var(--own,var(--brand)); }
.pt-bloc-line.rival .pt-bloc-meter .fill { fill:var(--rival); }
.pt-bloc-line.other .pt-bloc-meter .fill { fill:var(--muted); }
.pt-bloc-number { text-align:right; font-variant-numeric:tabular-nums; }
.pt-bloc-gap { margin:0 0 1rem !important; font-size:.8rem !important; color:var(--muted); line-height:1.6; }
.pt-section-reason { display:block; max-width:19rem; margin-top:.3rem; color:var(--muted); font-size:.72rem; line-height:1.5; }
.pt-context-note { font-size:.75rem; color:var(--muted); line-height:1.6; }
.cc-panel[aria-busy="true"] { min-height:16rem; }
@media (max-width:600px) {
 .cc .cc-scope { display:grid; grid-template-columns:minmax(0,1fr); }
 .cc .cc-scope select { width:100%; min-width:0; min-height:44px; font-size:16px; }
 .cc-context-bar { gap:.6rem; }
 .cc-context-bar p { flex-basis:100%; }
 .cc-actor-tools { align-items:stretch; }
 .cc-actor-tools input { width:100%; min-width:0; }
 .cc-actor-tools select { min-height:44px; font-size:16px; }
 .cc-actor-top > .pt-identities { flex-basis:100%; }
 .cc-actor-name b { font-size:.8rem; }
 .cc-actor-label { flex-wrap:wrap; }
 .cc-actor-label .pt-identities { flex-basis:100%; }
 .pt-bloc-line { grid-template-columns:minmax(0,1fr) auto; gap:.25rem .4rem; font-size:.74rem; }
 .pt-bloc-line .pt-bloc-meter { grid-row:2; grid-column:1 / -1; }
 .pt-bloc-line .pt-bloc-number { grid-row:1; grid-column:2; }
}
@media (pointer:coarse) { .cc .cc-btn, .cc .cc-tab, .cc .cc-actor-row { min-height:44px; } }
