.basket-card{display:block;background:white;border:1px solid #e0e6df;border-radius:8px;padding:18px;margin-bottom:12px;color:#182d27;text-decoration:none}.basket-card:hover{border-color:#1c8f67}.basket-card-meta{display:flex;flex-wrap:wrap;gap:10px;color:#74817b;font-size:12px}.basket-card-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center;padding:18px 0;font-size:18px;font-weight:700}.basket-card-teams>:last-child{text-align:right}.basket-card-teams small{display:block;font-size:10px;font-weight:400;color:#74817b}.basket-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#e0e6df;border:1px solid #e0e6df;border-radius:4px;overflow:hidden}.basket-model-cell{display:flex;flex-direction:column;gap:6px;padding:14px;background:#f6f8f4;min-width:0;overflow-wrap:anywhere}.basket-model-cell>span,.basket-model-cell small{font-size:11px;color:#74817b}.basket-model-cell strong{font-size:14px;color:#0f5b44}.basket-model-cell .basket-hit{color:#0f5b44;font-weight:700}.basket-card-footer{margin-top:12px;display:flex;justify-content:space-between;font-size:11px;color:#74817b}.basket-card-footer b{color:#0f5b44}.basket-message{padding:32px 20px;text-align:center;background:#fff;border:1px solid #e0e6df;border-radius:8px;color:#74817b}.basket-message button{margin-top:12px}.basket-detail-table{width:100%;border-collapse:collapse;font-size:13px}.basket-detail-table th,.basket-detail-table td{padding:12px 8px;text-align:left;border-bottom:1px solid #e0e6df;overflow-wrap:anywhere}.basket-detail-table th{color:#74817b;font-weight:500}.basket-table-scroll{overflow-x:auto}.basket-note{width:100%;min-height:180px;border:1px solid #e0e6df;border-radius:4px;padding:12px;resize:vertical}.basket-explanation{color:#74817b;font-size:12px;line-height:1.8;margin-top:14px}.basket-detail-status{margin-bottom:14px;color:#74817b;font-size:12px}.basket-summary{padding:16px;font-size:13px;color:#405e4d}.basket-summary strong{color:#0f5b44}.basket-ai-summary{padding:10px 12px;background:#eff7f1;color:#226547;font-size:12px;line-height:1.7;margin-top:10px;border-radius:4px}.basket-ai-summary a{text-decoration:underline}.basket-ai-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px}.basket-ai-toolbar small{color:#64748b}.calcbasket-page .option-btn{position:relative}.calcbasket-page .ai-badge{pointer-events:none}@media(max-width:600px){.basket-card{padding:12px}.basket-card-teams{font-size:15px;gap:8px}.basket-model-cell{padding:10px 7px}.basket-model-cell strong{font-size:12px}.basket-detail-table{font-size:12px}.basket-detail-table th,.basket-detail-table td{padding:10px 5px}}
.calcbasket-page .basket-ai-toolbar{padding-top:12px;border-top:1px solid rgba(255,255,255,.12);gap:10px}.calcbasket-page .basket-ai-toolbar .ai-switch{position:relative;color:#f1f5f9;cursor:pointer}.calcbasket-page .basket-ai-toolbar small{color:#cbd5e1;flex:1;min-width:130px}.calcbasket-page .ai-switch input[type="checkbox"]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0}.calcbasket-page .ai-switch input:focus-visible+i{outline:2px solid #f4cf87;outline-offset:3px}.calcbasket-page .basket-ai-toolbar .basketball-saved-link{padding:4px 0}
/* Keep the basketball probability row aligned with the football calculator. */
.calcbasket-page .basketball-row .option-btn.has-ai,
.calcbasket-page .basketball-margin-grid .option-btn.has-ai {
    min-height: 64px;
    padding: 8px 36px 22px 8px;
}
.calcbasket-page .option-btn.has-ai .ai-text { bottom: 16px; }
.calcbasket-page .option-btn.has-ai .ai-bar { bottom: 6px; }
.calcbasket-page .option-btn.has-ai .ai-badge { top: 5px; right: 6px; }
/* Native buttons retain keyboard behavior while using the shared date-tab typography. */
.sweep-research-page #tabs button.tab { color: #c4dbce; font: inherit; }
.sweep-research-page #tabs button.tab .d,
.sweep-research-page #tabs button.tab .s { display: block; }

/* Match the football sweep hit color without changing the detail-page theme. */
.sweep-research-page .basket-model-cell .basket-hit { color: #ad4b43; }
.sweep-research-page .basket-model-cell strong.basket-hit { padding: 2px 6px; border: 1px solid #ecd5cd; border-radius: 4px; background: #fcf2ee; }

/* Denser sweep cards; keep the shared match-detail panels unchanged. */
.sweep-research-page .basket-card {
    margin-bottom: 0;
    padding: 12px 14px;
    line-height: 1.4;
}
.sweep-research-page .basket-card-meta { gap: 8px; font-size: 11px; }
.sweep-research-page .basket-card-teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.sweep-research-page .basket-card-teams small { margin-top: 2px; line-height: 1.2; }
.sweep-research-page .basket-card .basket-model-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
}
.sweep-research-page .basket-card .basket-model-cell { gap: 3px; padding: 8px 10px; }
.sweep-research-page .basket-card .basket-model-cell strong { font-size: 13px; line-height: 1.4; }
.sweep-research-page .basket-card-footer { margin-top: 7px; gap: 8px; line-height: 1.4; }
@media (max-width: 600px) {
    .sweep-research-page .basket-card { padding: 10px; }
    .sweep-research-page .basket-card-teams { padding: 7px 0; font-size: 15px; }
    .sweep-research-page .basket-card .basket-model-cell { padding: 7px 6px; }
    .sweep-research-page .basket-card .basket-model-cell strong { font-size: 12px; }
}
/* Basketball detail: football research structure, navy and gold identity. */
body.basketball-research-page {
    --green: #244c7c; --green-mid: #4278ba; --green-light: #edf3fc;
    --ink: #1b2d44; --muted: #758399; --bg: #f1f4f8; --line: #dde4ee;
}
.basketball-research-page .match-hero { background: linear-gradient(115deg,#172a42,#29496d); border-color: #36567b; }
.basketball-research-page .teams-line { grid-template-columns: minmax(0,1fr) 160px minmax(0,1fr); }
.basketball-research-page .hero-team,
.basketball-research-page .hero-team > div { min-width: 0; }
.basketball-research-page .hero-team h2 { overflow-wrap: anywhere; }
.basketball-research-page .match-center-time { white-space: nowrap; letter-spacing: 0; font-size: 32px; }
@media (max-width: 620px) {
    .basketball-research-page .teams-line { grid-template-columns: minmax(0,1fr) 104px minmax(0,1fr); }
    .basketball-research-page .match-center-time { font-size: 24px; }
}
.basketball-research-page .hero-bottom { background: rgba(12,24,44,.2); }
.basketball-research-page .hero-eyebrow,
.basketball-research-page .team-role,
.basketball-research-page .team-en,
.basketball-research-page .match-status { color: #b9cbe1; }
.basketball-research-page .hero-bottom .main-tab { color: #c2d0e1; }
.basketball-research-page .hero-bottom .main-tab.active { color: #fff; }
.basketball-research-page .hero-favorite,
.basketball-research-page .score-toggle { color: #d5e0ee; }
.basketball-research-page .button-green:not(.research-tabbar-primary):hover { background: #305d91; border-color: #305d91; }
.basketball-research-page .crest-wrap {
    border-radius: 14%;
    background: #fff;
    border: 0;
    overflow: hidden;
}
.basketball-research-page .crest-wrap img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
}
.basketball-research-page .crest-placeholder.icon { color: #8da5c3; }
.basketball-research-page .crest-wrap [hidden] { display: none; }
.basketball-research-page .brief-panel { background: linear-gradient(120deg,#edf3fc,#fff 70%); border-color: #d4deec; }
.basketball-research-page .brief-kicker .eyebrow,
.basketball-research-page .brief-desc,
.basketball-research-page .evidence-target small { color: #708199; }
.basketball-research-page .evidence { grid-template-columns: 28px minmax(0,1fr) auto; border-color: #e1e7ef; }
.basketball-research-page .evidence-number { color: #8b9bb0; }
.basketball-research-page .evidence-target strong,
.basketball-research-page .basket-evidence-ratio { color: #244c7c; }
.basketball-research-page .basket-evidence-ratio { font-size: 13px; font-weight: 700; padding-top: 2px; }
.basketball-research-page .subtle-tag { color: #64748b; border-color: #d9e2ee; background: #f4f7fc; }
.basketball-research-page .basket-model-grid { border-color: #dde4ee; background: #dde4ee; }
.basketball-research-page .basket-model-cell { background: #f4f7fc; }
.basketball-research-page .basket-model-cell strong { color: #244c7c; }
.basketball-research-page .basket-model-cell .basket-hit { color: #ad4b43; }
.basketball-research-page .basket-explanation,
.basketball-research-page .basket-detail-table th,
.basketball-research-page .table-note { color: #758399; }
.basketball-research-page .model-footnote { border-color: #e1e7ef; color: #758399; }
.basketball-research-page .next-step button { background: #edf3fc; border-color: #d9e2ee; }
.basketball-research-page .next-step button:nth-child(2) { background: #faf6ec; }
.basketball-research-page .next-step strong { color: #244c7c; }
.basketball-research-page .next-step small { color: #758399; }
.basketball-research-page .research-tabbar-action { color: #647b98; }
.basket-probability-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.basket-probability { min-width: 0; padding: 14px; background: #f3f6fb; border: 1px solid #e1e7ef; border-radius: 6px; display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.basket-probability > strong { font-size: 30px; color: #244c7c; line-height: 1.2; }
.basket-probability strong small { font-size: 13px; margin-left: 2px; }
.basket-probability > span { font-size: 12px; }
.basket-probability-track { height: 5px; margin-top: auto; border-radius: 3px; background: #e1e7ef; overflow: hidden; }
.basket-probability-track i { display: block; height: 100%; background: #628bc0; }
.basketball-research-page .filter-bar { padding: 0 0 14px; flex-wrap: wrap; }
.basketball-research-page .filter-bar select { border-color: #d9e2ee; color: #244c7c; max-width: 100%; }
.basketball-research-page .segmented { border-color: #d9e2ee; background: #f3f6fb; }
.basketball-research-page .segmented button { color: #647b98; }
.basketball-research-page .segmented button.active { background: #244c7c; color: #fff; }
.basket-data-notice { padding: 16px 0; color: #758399; }
.basket-data-notice button { margin-left: 10px; }
.basket-recent-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.basket-recent-team { min-width: 0; }
.basket-recent-team h3 { font-size: 15px; padding: 10px 0; border-bottom: 1px solid #dde4ee; }
.basket-recent-team h3 small { font-size: 11px; color: #758399; font-weight: 400; margin-left: 8px; }
.basket-recent-row { display: grid; grid-template-columns: 76px minmax(0,1fr) auto 22px; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf0f5; font-size: 12px; }
.basket-recent-row time { color: #758399; font-size: 10px; }
.basket-recent-row time small { display: block; margin-top: 3px; }
.basket-recent-row > span { overflow-wrap: anywhere; }
.basket-recent-row strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.basket-venue { color: #758399; margin-right: 5px; }
.basket-result { text-align: center; color: #758399; background: #f0f3f7; border-radius: 3px; font-size: 11px; padding: 3px 0; }
.basket-result.is-win { color: #ad4b43; background: #fcf2ee; }
.basket-result.is-loss { color: #42628c; background: #edf3fc; }
.basket-tech-controls { display: inline-flex; flex-wrap: wrap; margin-bottom: 14px; }
.basketball-research-page .basket-detail-table td:first-child { color: #758399; }
.basketball-research-page .basket-detail-table { font-variant-numeric: tabular-nums; }
@media(max-width:800px) { .basket-recent-grid { grid-template-columns: 1fr; gap: 16px; } }
@media(max-width:600px) {
    .basket-probability-grid { gap: 6px; }
    .basket-probability { padding: 10px 8px; }
    .basket-probability > strong { font-size: 24px; }
}

/* Basketball uses the shared analysis drawer with its own navy palette. */
.basketball-research-page .wg-cr-root { --wgcr-green:#244c7c; --wgcr-line:#dde4ee; color:#1b2d44; }
.basketball-research-page .wg-cr-header { background:linear-gradient(135deg,#edf3fc,#fff); }
.basketball-research-page .wg-cr-header h2,
.basketball-research-page .wg-cr-reading-label > span,
.basketball-research-page .wg-cr-reading-section h3 { color:#244c7c; }
.basketball-research-page .wg-cr-header p,
.basketball-research-page .wg-cr-reading-section p { color:#64748b; }
.basketball-research-page .wg-cr-ai-wait { background:#f3f6fb; border-color:#dde4ee; color:#244c7c; }
.basketball-research-page .wg-cr-ai-wait i { border-color:#d9e2ee; border-top-color:#244c7c; }
.basketball-research-page .wg-cr-primary:hover { background:#305d91; }
.basketball-research-page .wg-cr-reading[data-ai-state="done"] .wg-cr-reading-label small { background:#edf3fc; border-color:#d9e2ee; color:#244c7c; }
