/* Tablet operations: readable status, large touch targets, scrollable field tables. */
.launch-card{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:25px;margin:0 0 24px;background:linear-gradient(120deg,#fff,#fff0f6)}
.launch-card h2{margin:12px 0 8px}.launch-card p{max-width:630px;font-size:13px;line-height:1.65;color:#62586e}.launch-card .actions{flex-wrap:wrap;min-width:190px}
.station-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}.compact-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.compact-stats strong{font-size:26px}.compact-stats p{font-size:12px;color:#635a71}
.coverage-table{min-width:760px}.coverage-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:82px;min-height:66px;width:100%;border:1px solid #ddd5e2;border-radius:8px;background:#fff;color:#6e617b}.coverage-cell strong{font-size:18px}.coverage-cell small{font-size:11px;text-transform:capitalize}.coverage-cell.saved{background:#e7f6ef;color:#196847;border-color:#a8d9bf}.coverage-cell.review{background:#fff3d9;color:#825414;border-color:#ebca83}.coverage-cell.my-station{outline:2px solid #e92e7f;outline-offset:2px}
.alliance-brief{padding:22px;border-radius:10px;background:#f7f6fb}.alliance-brief.red{background:#fff0f3;border-left:4px solid #c64966}.alliance-brief.blue{background:#edf4ff;border-left:4px solid #4d7fbf}.alliance-brief p{font-size:19px;font-weight:700}.alliance-brief strong{font-size:28px}.alliance-brief small{display:block;margin-top:8px;color:#655a6d}.match-strip{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.rebuilt-fields{margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--line)}
#transfer-text-form textarea,textarea[aria-label="Exported transfer text"]{width:100%;font-family:ui-monospace,monospace;font-size:11px}details{margin:16px 0}summary{cursor:pointer;font-size:13px;font-weight:650;padding:8px 0}input[type="file"]{font-size:12px;padding:12px;border:1px dashed #b39bbd;border-radius:8px;max-width:100%}.panel-body .guide ol,.guide ol{line-height:1.8}.sample{display:block;margin-top:5px}
#sidebar{overflow-y:auto}.sidebar-bottom{position:static;margin-top:25px}.nav-item{min-height:43px}.settings-text,.notice,.help-box{color:#695872}.panel-head p{line-height:1.5}.toolbar .field{min-width:110px}.toolbar{flex-wrap:wrap}.panel-body .actions{flex-wrap:wrap}.sync-grid>.panel{min-width:0}.sync-grid>.panel+.panel{margin-top:0}
.table-wrap td{font-size:13px}.table-wrap td .sample{display:block;font-size:11px;margin-top:5px}.table-wrap th{font-size:10px}.table-wrap .btn.tiny{font-size:12px}.panel-body .stats{margin-top:4px}
@media(max-width:1050px){.launch-card{align-items:flex-start;flex-direction:column}.station-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){#sidebar{transform:translateX(-100%);width:234px;box-shadow:10px 0 70px #382b4022}body.menu-open #sidebar{transform:translateX(0)}.workspace{margin-left:0}.icon-btn.mobile-menu{display:inline-flex}#main{padding:24px 17px}#topbar{padding:0 17px;gap:9px}.event-control{min-width:0}.event-control select{max-width:260px}.season-chip{display:none}.compare-dock{left:50%}}
@media(max-width:760px){.page-heading .actions .btn:not(.primary){display:inline-flex}.launch-card{padding:20px}.coverage-table th,.coverage-table td{padding:9px}.panel-head{flex-wrap:wrap}.panel-head select{max-width:100%}.toolbar input{max-width:150px}.nav-item{min-height:46px}.btn{min-height:42px}.btn.tiny{min-height:38px}.station-grid{gap:12px}.settings-text,.notice,.help-box{font-size:13px}.sync-grid{grid-template-columns:1fr}.compact-stats strong{font-size:23px}}
@media print{#sidebar,#topbar,footer,.actions,form,button,.notice,#toast{display:none!important}.workspace{margin:0}#main{padding:0}.panel{break-inside:avoid;box-shadow:none}.table-wrap{overflow:visible}.page-heading{margin-top:0}}
/* A match becomes a six-station card on phones, retaining the same scout buttons. */
@media(max-width:760px){
 .coverage-table{min-width:0;display:block;white-space:normal}
 .coverage-table thead{display:none}
 .coverage-table tbody{display:grid;gap:12px;padding:12px}
 .coverage-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px}
 .coverage-table th,.coverage-table td{display:block;padding:0;border:0;min-width:0}
 .coverage-table td:first-child{grid-column:1/-1;padding-bottom:4px}
 .coverage-table td[data-station]::before{content:attr(data-station) ' · ' attr(data-scout);display:block;font-size:10px;line-height:1.4;margin-bottom:6px;overflow-wrap:anywhere;color:#a12648}
 .coverage-table td[data-station^="B"]::before{color:#215796}
 .coverage-table .coverage-cell{min-width:0;min-height:64px}
 #coverage-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 #coverage-filter .field{min-width:0}
 #coverage-filter input,#coverage-filter select{max-width:100%;width:100%}
}
/* Phone feed: match/time and score above two full-width alliance rows. */
@media(max-width:760px){
 .live-matches{display:block;min-width:0;width:100%;white-space:normal}
 .live-matches thead{display:none}
 .live-matches tbody{display:grid;gap:12px;padding:12px}
 .live-matches tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px;border:1px solid var(--line);border-radius:10px}
 .live-matches td{display:block;border:0;padding:0;min-width:0}
 .live-matches td:first-child{grid-column:1;grid-row:1}
 .live-matches td:last-child{grid-column:2;grid-row:1;text-align:right}
 .live-matches td:last-child strong{font-size:18px}
 .live-matches .alliance{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;white-space:normal}
 .live-matches .alliance::before{grid-column:1/-1;font-size:11px;font-weight:650}
 .live-matches .alliance.red::before{content:'Red alliance';color:#a12648}
 .live-matches .alliance.blue::before{content:'Blue alliance';color:#215796}
 .live-matches .alliance .btn{min-width:0;min-height:44px;margin:0;padding:8px 4px;font-size:14px}
 body[data-page="live"] .sync-grid>*{min-width:0}
 body[data-page="live"] .panel-head h2{overflow-wrap:anywhere}
 body[data-page="live"] .panel-body>.actions{flex-wrap:wrap}
}
/* Record cards retain every configured metric, note and correction action. */
@media(max-width:760px){
 body[data-page="records"] .records-table{display:block;min-width:0;width:100%;white-space:normal}
 body[data-page="records"] .records-table thead{display:none}
 body[data-page="records"] .records-table tbody{display:grid;gap:12px;padding:12px}
 body[data-page="records"] .records-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;position:relative;padding:14px;border:1px solid var(--line);border-radius:10px}
 body[data-page="records"] .records-table td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere}
 body[data-page="records"] .records-table td:first-child{grid-column:1/-1;padding-right:48px}
 body[data-page="records"] .records-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:650;color:var(--muted);margin-bottom:6px;line-height:1.4}
 body[data-page="records"] .records-table .record-notes{grid-column:1/-1;min-width:0;max-width:none;white-space:normal;border-top:1px solid var(--line);padding-top:12px}
 body[data-page="records"] .records-table td:last-child{position:absolute;right:12px;top:12px}
 body[data-page="records"] .records-table .icon-btn,body[data-page="records"] .record-match-link{min-width:44px;min-height:44px}
 body[data-page="records"] .filters{flex-wrap:wrap;min-width:0;width:100%}
 body[data-page="records"] .filters select{flex:1;min-width:0;max-width:100%}
 body[data-page="records"] .review-launch{flex-wrap:wrap}
}
@media(max-width:760px){
 body[data-page="intel"] #official-search{width:100%;min-width:0}
 body[data-page="intel"] #official-search input{min-width:0;flex:1;width:100%}
 body[data-page="intel"] .compare-grid,body[data-page="intel"] .sync-grid{grid-template-columns:minmax(0,1fr)}
 body[data-page="intel"] .compare-card,body[data-page="intel"] .alliance-brief{min-width:0;overflow-wrap:anywhere}
 body[data-page="intel"] .compare-card h2{font-size:22px}
}

/* Compact lists: wrap names and headings rather than expanding into cards. */
@media(max-width:760px){
 .intel-table,.shortlist-table{table-layout:fixed;width:100%;min-width:0;white-space:normal}
 .intel-table th,.intel-table td,.shortlist-table th,.shortlist-table td{padding:10px 4px;overflow-wrap:anywhere;vertical-align:middle;font-size:11px}
 .intel-table th,.shortlist-table th{font-size:9px;letter-spacing:0;line-height:1.4}
 .intel-table .sample,.shortlist-table .sample{white-space:normal;overflow-wrap:anywhere;line-height:1.4;font-size:10px}
 .intel-table th:first-child{width:28px;font-size:0}
 .intel-table th:first-child::after{content:'✓';font-size:12px}
 .intel-table th:nth-child(2){width:25%}
 .intel-table th:nth-child(3){width:34px}
 .intel-table th:last-child{width:42px}
 .intel-table input[type="checkbox"]{width:20px;height:20px;min-height:20px;accent-color:var(--pink)}
 .intel-table .btn.tiny,.shortlist-table .btn.tiny{padding:4px;min-height:44px;width:100%;font-size:10px;white-space:normal}
 .intel-table td:nth-child(2) a,.shortlist-table td:first-child a{display:inline-flex;align-items:center;min-height:44px}
 .shortlist-table th:first-child{width:28%}
 .shortlist-table th:last-child{width:52px}
 body[data-page="strategy"] .panel-head{align-items:flex-start}
}

.evidence-short{display:none}
@media(max-width:760px){.shortlist-table .evidence-full{display:none}.shortlist-table .evidence-short{display:inline}}
