/* Everything is scoped to Team Cards; calendar and theme selectors are untouched. */
.s365pc,.s365pc-dialog{--tc-ink:#173f77;--tc-blue:#086cff;--tc-line:#d9e7fb;--tc-muted:#667f9b;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--tc-ink);box-sizing:border-box}
.s365pc *,.s365pc-dialog *{box-sizing:border-box}
.s365pc{max-width:1160px;margin:0 auto;padding:20px 8px;background:#fff}
.s365pc .s365pc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.s365pc .s365pc-toolbar h2{font:800 clamp(25px,4vw,38px)/1.15 Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.035em;color:var(--tc-ink);margin:0}
.s365pc .s365pc-toolbar label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
.s365pc .s365pc-season{font:inherit;color:var(--tc-ink);background:#fff;border:1px solid #bad3f5;border-radius:8px;padding:9px 8px;min-height:42px;max-width:140px}
.s365pc .s365pc-intro{font-size:14px;color:var(--tc-muted);margin:12px 0 26px}
.s365pc .s365pc-conferences{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.s365pc .s365pc-conference{min-width:0}
.s365pc .s365pc-conference h3{font:800 clamp(15px,2.5vw,24px)/1.2 Inter,"Segoe UI",Arial,sans-serif;color:var(--tc-ink);letter-spacing:-.025em;margin:0 0 16px}
.s365pc .s365pc-list{display:grid;gap:14px}
.s365pc .s365pc-card{appearance:none;display:flex;flex-direction:column;align-items:center;width:100%;min-width:0;min-height:226px;margin:0;padding:18px 12px 10px;background:#fff;color:var(--tc-ink);border:1px solid var(--tc-line);border-radius:14px;cursor:pointer;text-align:center;box-shadow:0 3px 10px #143f7605;white-space:normal;font:inherit;transition:border-color .15s,box-shadow .15s}
.s365pc .s365pc-card:hover{background:#fbfdff;border-color:#82b5fb;box-shadow:0 5px 16px #1a61b810}
.s365pc .s365pc-card img{display:block;width:84px;height:84px;object-fit:contain;margin:0 0 12px;max-width:100%}
.s365pc .s365pc-card strong{font-size:18px;line-height:1.2;font-weight:800;letter-spacing:-.02em;margin:0 0 5px;overflow-wrap:anywhere}
.s365pc .s365pc-card small{font-size:12px;line-height:1.4;color:var(--tc-muted);margin-bottom:14px}
.s365pc .s365pc-action{display:flex;justify-content:center;align-items:center;gap:10px;background:#eaf3ff;color:#075dcf;border-radius:7px;width:100%;padding:9px 5px;margin-top:auto;font-size:13px;line-height:1.25;font-weight:700}
.s365pc .s365pc-card:focus-visible,.s365pc .s365pc-season:focus-visible,.s365pc-dialog button:focus-visible{outline:3px solid var(--tc-blue);outline-offset:3px}
.s365pc-dialog{width:calc(100% - 28px);max-width:640px;max-height:88vh;max-height:88dvh;margin:auto;padding:0;border:1px solid var(--tc-line);border-radius:18px;background:#fff;box-shadow:0 20px 80px #102b5140;overflow-y:auto;overscroll-behavior:contain}
.s365pc-dialog::backdrop{background:#0a1e3d70}
.s365pc-dialog .s365pc-bar{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid var(--tc-line);padding:10px 16px;font-size:12px;letter-spacing:.08em;font-weight:800}
.s365pc-dialog .s365pc-close{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;background:#edf5ff;color:#173f77;border:0;border-radius:9px;font-size:30px;line-height:1;cursor:pointer}
.s365pc-dialog .s365pc-content{padding:24px 20px;text-align:center}
.s365pc-dialog .s365pc-content>img{display:block;width:90px;height:90px;object-fit:contain;margin:0 auto 12px}
.s365pc-dialog h2{font:800 clamp(24px,5vw,32px)/1.2 Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.03em;color:var(--tc-ink);margin:0 0 8px}
.s365pc-dialog .s365pc-meta,.s365pc-dialog .s365pc-summary{font-size:14px;color:var(--tc-muted);margin:0 0 18px}
.s365pc-dialog .s365pc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}
.s365pc-dialog .s365pc-stat{background:#f2f7ff;border:1px solid #e0ecfb;border-radius:10px;padding:14px 5px}
.s365pc-dialog dt{font-size:12px;font-weight:800;color:#57749a}
.s365pc-dialog dd{font-size:27px;font-weight:800;color:var(--tc-ink);line-height:1.4;margin:0}
.s365pc-dialog .s365pc-stat>span{display:block;font-size:10px;color:#57749a;line-height:1.3}
.s365pc-dialog .s365pc-message{background:#f2f7ff;border-radius:10px;color:#536e90;padding:20px 12px;font-size:15px;line-height:1.5;margin:20px 0 0}
.s365pc-dialog .s365pc-source{font-size:11px;line-height:1.5;color:#667f9b;margin:20px 0 0}
.s365pc-dialog .s365pc-source a{color:#075dcf;text-decoration:underline}
@media(max-width:600px){.s365pc{padding:12px 0}.s365pc .s365pc-conferences{gap:10px}.s365pc .s365pc-conference h3{font-size:16px;min-height:38px;margin-bottom:10px}.s365pc .s365pc-list{gap:10px}.s365pc .s365pc-card{min-height:218px;padding:16px 8px 8px;border-radius:12px}.s365pc .s365pc-card img{width:72px;height:72px;margin-bottom:12px}.s365pc .s365pc-card strong{font-size:15px;min-height:36px;display:flex;align-items:center;justify-content:center}.s365pc .s365pc-card small{font-size:11px}.s365pc .s365pc-action{font-size:12px}.s365pc-dialog .s365pc-content{padding:20px 12px}.s365pc-dialog dd{font-size:23px}}
@media(prefers-reduced-motion:reduce){.s365pc .s365pc-card{transition:none}}

.s365pc img[hidden],.s365pc-dialog img[hidden]{display:none}

.s365pc .s365pc-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.s365pc .s365pc-filter{font:inherit;color:var(--tc-ink);background:#fff;border:1px solid #bad3f5;border-radius:8px;padding:9px 8px;min-height:42px;max-width:220px}
.s365pc .s365pc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.s365pc .s365pc-card img{width:130px;height:90px;object-fit:contain}
.s365pc-dialog .s365pc-content>img{width:150px;height:110px;object-fit:contain}
.s365pc .s365pc-roster-message{padding:20px;background:#f2f7ff;border-radius:10px;grid-column:1/-1;color:#536e90}
.s365pc-dialog .s365pc-split-title{font-size:17px;font-weight:800;color:#173f77;margin:24px 0 6px}
.s365pc-dialog .s365pc-stats{margin-top:12px}
.s365pc .s365pc-retry{display:block;margin-top:12px;background:#eaf3ff;color:#075dcf;border:1px solid #bad3f5;border-radius:7px;padding:10px;cursor:pointer}
@media(max-width:600px){.s365pc .s365pc-grid{gap:10px}.s365pc .s365pc-filter{max-width:190px}.s365pc .s365pc-card img{width:110px;height:80px}}
