/* Cricpedia — Playing 11 / Squads paper-design box (STAGED).
 * One contained panel: the toggle bar and both two-column views
 * live inside it. Class prefix cp11- matches playing11.js output.
 * The box is placed BEFORE the innings details by the host page
 * (see INTEGRATION-PATCH.md); this stylesheet only styles the box. */
.cp11-box{border:1.5px solid #0c5a36;border-radius:12px;overflow:hidden;background:#fff;margin:0 0 16px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.cp11-bar{display:grid;grid-template-columns:1fr 1fr;border-bottom:1.5px solid #0c5a36}
.cp11-bar-btn{appearance:none;border:0;background:#fff;padding:12px 8px;font-size:16px;font-weight:700;color:#1c2733;cursor:pointer}
.cp11-bar-btn:first-child{border-right:1.5px solid #0c5a36}
.cp11-bar-btn.cp11-bar-on{background:#0c5a36;color:#fff}
.cp11-view{padding:4px 0 12px}
.cp11-cols{display:grid;grid-template-columns:1fr 1fr}
.cp11-col{min-width:0}
.cp11-col + .cp11-col{border-left:1px solid #dbe3e8}
.cp11-colhead{margin:0;padding:10px 14px;border-bottom:1px solid #dbe3e8;font-size:15px}
.cp11-names{list-style:none;margin:0;padding:8px 6px}
.cp11-names li{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:8px}
.cp11-names li:nth-child(odd){background:#f2f5f7}
.cp11-name{overflow-wrap:anywhere}
    /* [THEME FIX 2026-11-20] Squad rows are always light, so their text
       is always dark — in dark theme the inherited near-white --text-main
       measured 1.05:1 (invisible) on these rows. */
    .cp11-names li{color:#0F172A}
    .cp11-name{color:#0F172A}
    .cp11-dnb{color:#5A6F64}
    .cp-squads-col{color:#0F172A}
.cp11-avatar{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;object-fit:cover}
.cp11-mono{background:hsl(var(--cp11-h),45%,30%);color:#fff;font-weight:700;font-size:.8em}
.cp11-src{color:#5a6b7a;font-size:.85em;margin:8px 14px 0}
.cp11-gap{border:1px solid #e0b4b4;background:#fdf2f2;border-radius:10px;padding:12px 16px;margin:12px 14px}
.cp11-gap p{margin:0 0 6px}
.cp11-gap p:last-child{margin-bottom:0}
