/* Tennis Player OS v0.26.0 — Opponents */
.opp-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:14px}.opp-head h2{margin:4px 0 5px}.opp-head p{margin:0;color:var(--muted);max-width:760px}.opp-athlete-context{display:grid;gap:2px;text-align:right;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:#fff}.opp-athlete-context span{font-size:.66rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:850}.opp-athlete-context strong{font-size:.82rem}.opp-section-switch{display:flex;gap:5px;padding:4px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;background:#eef2f7;width:max-content;max-width:100%;overflow:auto}.opp-section-button{border:0;background:transparent;color:#647188;border-radius:9px;padding:8px 13px;font-size:.78rem;font-weight:850;white-space:nowrap}.opp-section-button.active{background:#fff;color:var(--navy-900);box-shadow:0 2px 8px rgba(11,31,58,.08)}
.opp-toolbar{padding:13px 14px;display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:14px}.opp-filter-grid{display:flex;gap:10px;flex-wrap:wrap}.opp-filter-grid label{display:grid;gap:4px}.opp-filter-grid label span{font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.opp-filter-grid select,.opp-matchup-select{border:1px solid #d7dfeb;background:#fff;border-radius:9px;padding:8px 10px;color:var(--text);font-weight:700}
.opp-panel-header-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.opp-snapshot-count,.opp-watch-count{font-size:.72rem;font-weight:850;color:#51627a;padding:7px 10px;background:#eef3f8;border-radius:999px}.opp-table-scroll{overflow:auto}.opp-table{width:100%;border-collapse:collapse;min-width:720px}.opp-table th,.opp-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:.75rem}.opp-table th{font-size:.62rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:#f8fafc}.opp-table tbody tr:last-child td{border-bottom:0}.opp-rank-number{font-weight:950;color:var(--navy-900);font-size:.88rem!important}.opp-table-action{text-align:right!important}.opp-small-button{padding:6px 9px!important;font-size:.67rem!important}.opp-external-dot{margin-left:6px;color:#4f87bb;font-size:.45rem;vertical-align:middle}
.opp-empty{padding:34px;text-align:center}.opp-empty-icon{width:50px;height:50px;border-radius:15px;background:#edf2f8;display:grid;place-items:center;margin:0 auto 10px;font-weight:950;color:#61728b}.opp-empty h3{margin:0 0 6px}.opp-empty p{margin:0 auto 14px;max-width:620px;color:var(--muted);line-height:1.45}.opp-subhead{margin-bottom:14px}.opp-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.opp-profile-card{overflow:hidden}.opp-profile-main{width:100%;border:0;background:transparent;padding:15px;display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;text-align:left;color:inherit}.opp-profile-main:hover{background:#fafbfd}.opp-profile-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#e8eef6;color:#354b68;font-weight:950}.opp-profile-avatar.large{width:64px;height:64px;font-size:1.25rem}.opp-profile-copy{min-width:0;display:grid;gap:3px}.opp-card-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.opp-card-title-row strong{font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.opp-card-title-row span{color:#c08a1b}.opp-profile-copy>span{font-size:.69rem;color:#5f6e83;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.opp-profile-copy small{font-size:.62rem;color:#8a96a8}.opp-profile-card-footer{padding:8px 12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;align-items:center;color:var(--muted);font-size:.62rem}.opp-source-badge{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eaf1fb;color:#4c6e99;font-weight:850}.opp-source-badge.manual{background:#f1f3f6;color:#758196}
.opp-detail-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.opp-detail-actions{display:flex;gap:8px}.opp-profile-hero{padding:18px;display:flex;align-items:center;gap:16px;margin-bottom:14px}.opp-profile-titleline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.opp-profile-titleline h2{margin:0}.opp-profile-hero p{margin:5px 0 7px;color:var(--muted)}.opp-chip-row{display:flex;gap:6px;flex-wrap:wrap}.opp-chip-row span{font-size:.65rem;padding:5px 8px;border-radius:999px;background:#f0f3f7;color:#5d6b80;font-weight:750}.opp-detail-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.opp-rank-history{display:grid}.opp-rank-history>div{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);align-items:center}.opp-rank-history>div:last-child{border-bottom:0}.opp-rank-history span,.opp-rank-history small{font-size:.67rem;color:var(--muted)}.opp-rank-history strong{font-size:.84rem}.opp-inline-empty{color:var(--muted);font-size:.74rem}.opp-inline-empty.padded{padding:22px}.opp-delete-link{border:0;background:transparent;color:#a45a63;font-size:.67rem;font-weight:800}.opp-match-history-panel{margin-bottom:14px}.opp-match-history-title{display:flex;align-items:center;gap:8px}.opp-match-history-title h3{margin:0}.opp-history-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#eef3f8;color:#53657d;font-size:.64rem;font-weight:900}.opp-history-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.opp-history-toggle{display:inline-flex!important;align-items:center;gap:6px}.opp-history-toggle span{font-size:.72rem}.opp-match-history-scroll{max-height:min(46vh,460px);overflow:auto;border-top:1px solid var(--line)}.opp-match-history-scroll .opp-table thead th{position:sticky;top:0;z-index:2;background:#f8fafc}.opp-match-history-collapsed{padding:11px 16px;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fbfcfe;color:#647188}.opp-match-history-collapsed span{font-size:.72rem;font-weight:850}.opp-match-history-collapsed small{font-size:.67rem;color:var(--muted)}.opp-text-summary{display:grid;gap:12px}.opp-text-summary>div{display:grid;gap:3px}.opp-text-summary span,.opp-plan-summary span{font-size:.61rem;text-transform:uppercase;letter-spacing:.06em;font-weight:850;color:var(--muted)}.opp-text-summary p,.opp-plan-summary p{margin:0;white-space:pre-wrap;line-height:1.45;font-size:.75rem}.opp-plan-summary{display:grid;gap:12px}.opp-plan-summary>div{display:grid;gap:4px}.opp-match-row{display:grid;grid-template-columns:90px 1fr auto;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);align-items:center}.opp-match-row:last-child{border-bottom:0}.opp-match-row span,.opp-match-row small{font-size:.67rem;color:var(--muted)}
.opp-matchup-hero{padding:18px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}.opp-matchup-hero h3{margin:3px 0 4px}.opp-matchup-hero p{margin:0;color:var(--muted)}.opp-h2h-score{display:flex;align-items:center;gap:10px;font-size:1.7rem}.opp-h2h-score strong{min-width:34px;text-align:center}.opp-h2h-score span{color:#9aa5b5}.opp-common-placeholder{padding:14px 16px}.opp-common-placeholder>div{display:grid;gap:4px}.opp-common-placeholder strong{font-size:.8rem}.opp-common-placeholder span{font-size:.7rem;color:var(--muted);line-height:1.4}
.opp-dialog{width:min(920px,calc(100% - 26px));max-height:92vh}.opp-profile-form-body{display:grid;gap:18px}.opp-form-section{display:grid;gap:9px}.opp-form-section h4{margin:0;padding-bottom:7px;border-bottom:1px solid var(--line);font-size:.78rem;color:#35465e}.opp-form-section textarea{min-height:86px}.opp-dialog textarea[name="rows"]{font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;min-height:230px}

.opp-integration-card{margin-bottom:14px;padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fbfdff 0%,#f5f9fd 100%)}
.opp-integration-main{display:flex;align-items:center;gap:12px;min-width:0}.opp-integration-main h3{margin:2px 0 3px;font-size:.9rem}.opp-integration-main p{margin:0;color:var(--muted);font-size:.71rem;line-height:1.4;max-width:620px}.opp-integration-logo{width:42px;height:42px;flex:0 0 auto;border-radius:13px;display:grid;place-items:center;background:#163a61;color:#fff;font-size:.75rem;font-weight:950;letter-spacing:.04em}.opp-integration-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.opp-integration-status{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;font-size:.65rem;font-weight:850;white-space:nowrap}.opp-integration-status i{display:block;width:7px;height:7px;border-radius:50%;background:currentColor}.opp-integration-status.connected{background:#e8f5ee;color:#2d7455}.opp-integration-status.warning{background:#fff5df;color:#966b1f}.opp-integration-status.offline{background:#eef1f5;color:#778497}
@media(max-width:1000px){.opp-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.opp-detail-columns{grid-template-columns:1fr}}@media(max-width:700px){.opp-head,.opp-toolbar,.opp-detail-top,.opp-panel-header-row,.opp-matchup-hero,.opp-integration-card{flex-direction:column;align-items:stretch}.opp-athlete-context{text-align:left}.opp-integration-actions{justify-content:flex-start;width:100%}.opp-history-actions{width:100%;justify-content:flex-start}.opp-section-switch{width:100%}.opp-profile-grid{grid-template-columns:1fr}.opp-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.opp-filter-grid label:last-child{grid-column:1/-1}.opp-table{min-width:640px}.opp-matchup-select{width:100%}.opp-detail-actions{flex-wrap:wrap}.opp-h2h-score{justify-content:flex-start}}
