.portal-body { min-height: 100vh; background: #eef3f8; }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(24px, calc((100vw - 1180px) / 2)); color: white; background: var(--navy); }
.portal-brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.portal-brand img { width: 48px; height: 48px; border: 2px solid white; border-radius: 50%; object-fit: cover; }
.portal-brand span, .portal-brand small { display: block; }
.portal-brand strong { font-size: 17px; }
.portal-brand small { margin-top: 2px; color: #b9d2f0; font-size: 12px; }
.back-to-training { color: #d7e8ff; font-size: 14px; font-weight: 750; text-decoration: none; }
.back-to-training:hover { color: white; text-decoration: underline; }
.portal-main { width: min(1180px, calc(100% - 32px)); margin: 32px auto 64px; }
.public-player-directory { padding: clamp(24px, 4vw, 46px); border: 1px solid #d7e0ea; border-radius: 24px; background: white; box-shadow: 0 18px 55px rgba(11, 31, 58, .1); }
.public-directory-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 25px; border-bottom: 1px solid #e1e7ee; }
.public-directory-hero h1 { margin: 0; color: var(--navy); font-size: clamp(36px, 6vw, 64px); line-height: .98; letter-spacing: -.045em; }
.public-directory-hero p:not(.portal-eyebrow) { max-width: 720px; margin: 13px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.public-directory-membership { display: inline-flex; min-height: 46px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; color: white; background: var(--red); font-size: 13px; font-weight: 900; text-decoration: none; }
.public-directory-membership:hover { background: var(--red-dark); }
.public-player-directory > .portal-status { margin-top: 18px; }
.public-player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.public-player-card { position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 15px; min-height: 126px; padding: 15px; overflow: hidden; border: 1px solid #d7e0ea; border-radius: 17px; color: inherit; background: linear-gradient(145deg, #fff, #f5f9fd); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.public-player-card:hover { border-color: #6f8dad; box-shadow: 0 12px 28px rgba(11, 31, 58, .12); transform: translateY(-2px); }
.public-player-card:focus-visible { outline: 3px solid rgba(43, 108, 176, .28); outline-offset: 3px; }
.public-player-photo { position: relative; display: grid; width: 82px; height: 94px; place-items: center; overflow: hidden; border: 3px solid white; border-radius: 13px; background: linear-gradient(145deg, #245483, #091b34); box-shadow: 0 7px 16px rgba(11, 31, 58, .22); }
.public-player-photo img, .public-player-photo-fallback { grid-area: 1 / 1; width: 100%; height: 100%; }
.public-player-photo img { object-fit: cover; object-position: center 20%; }
.public-player-photo-fallback { display: grid; place-items: center; color: white; font-size: 24px; font-weight: 900; }
.public-player-card-copy { min-width: 0; }
.public-player-card-copy strong, .public-player-card-copy small, .public-player-card-action { display: block; }
.public-player-card-copy strong { overflow: hidden; color: var(--navy); font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.public-player-card-copy small { min-height: 30px; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; }
.public-player-card-action { margin-top: 9px; color: #245a9a; font-size: 11px; font-weight: 850; }
.public-player-card > .card-status { position: absolute; top: 11px; right: 11px; }
.coach-access { width: min(520px, 100%); margin: 54px auto 0; color: var(--muted); }
.coach-access > summary { width: max-content; margin: 0 auto; padding: 8px 12px; cursor: pointer; color: #6b7787; font-size: 11px; font-weight: 800; list-style-position: inside; }
.coach-access > summary:hover { color: var(--navy); }
.coach-access[open] > summary { margin-bottom: 8px; }
.coach-access .login-card { width: 100%; margin: 0; padding: 28px; border-radius: 18px; box-shadow: 0 12px 35px rgba(11, 31, 58, .08); }
.login-card { width: min(520px, 100%); margin: 9vh auto 0; padding: 36px; border: 1px solid #d7e0ea; border-radius: 24px; background: white; box-shadow: 0 20px 60px rgba(11, 31, 58, .12); }
.portal-eyebrow { margin: 0 0 7px; color: #2c6b59; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.login-card h1, .login-card h2, .portal-toolbar h1 { margin: 0; color: var(--navy); font-size: clamp(30px, 5vw, 46px); line-height: 1.05; letter-spacing: -.035em; }
.login-card > p:not(.portal-eyebrow) { color: var(--muted); line-height: 1.6; }
.login-card form { display: grid; gap: 14px; margin-top: 24px; }
.login-card label, .form-grid label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 800; }
input, select, .form-grid textarea { width: 100%; padding: 12px 13px; border: 1px solid #b8c4d1; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
input:focus, select:focus, .form-grid textarea:focus { border-color: #2b6cb0; outline: 3px solid rgba(43, 108, 176, .16); }
.portal-primary, .portal-secondary, .danger-button, .text-button, .dialog-close { min-height: 42px; padding: 0 16px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 850; }
.portal-primary { color: white; border: 1px solid var(--navy); background: var(--navy); }
.portal-primary:hover { background: var(--navy-light); }
.portal-secondary { color: var(--navy); border: 1px solid #bbc7d5; background: white; }
.portal-secondary:hover { background: #f4f7fa; }
.danger-button { color: #9b1c1c; border: 1px solid #e6b5b5; background: #fff7f7; }
.danger-button:hover { background: #feecec; }
.portal-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.portal-status.is-error { color: #b42318; font-weight: 750; }
.portal-toolbar, .section-heading, .profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-toolbar { margin-bottom: 30px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#roster-view, #profile-view { padding: 28px; border: 1px solid #d7e0ea; border-radius: 22px; background: white; box-shadow: 0 16px 45px rgba(11, 31, 58, .08); }
.section-heading { padding-bottom: 18px; border-bottom: 1px solid #e4e9ef; }
.section-heading h2, .profile-hero h2 { margin: 0; color: var(--navy); font-size: 28px; letter-spacing: -.025em; }
.section-heading p, .profile-hero p { margin: 5px 0 0; color: var(--muted); }
.archive-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; }
.archive-toggle input { width: auto; }
.roster-controls { display: flex; align-items: center; gap: 14px; }
.roster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.player-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 16px; border: 1px solid #d9e1ea; border-radius: 15px; background: white; cursor: pointer; text-align: left; }
.player-card:hover { border-color: #7f9ab9; background: #f8fbff; transform: translateY(-1px); }
.player-card-initials, #profile-initials { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--navy-light), var(--navy)); font-size: 14px; font-weight: 900; }
.player-card strong, .player-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card strong { color: var(--navy); }
.player-card small { margin-top: 4px; color: var(--muted); }
.card-status { padding: 4px 7px; border-radius: 999px; color: #176044; background: #e6f5ee; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.card-status.archived { color: #667085; background: #eef1f4; }
.portal-empty { margin-top: 20px; padding: 44px 20px; border: 1px dashed #b9c6d4; border-radius: 15px; color: var(--muted); text-align: center; }
.portal-empty strong { color: var(--navy); font-size: 18px; }
.text-button { height: auto; min-height: 0; padding: 0; color: #245a9a; border: 0; background: transparent; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.player-baseball-card { position: relative; margin-top: 18px; padding: 14px; overflow: hidden; border: 1px solid #07182f; border-radius: 28px; color: white; background: radial-gradient(circle at 78% 18%, rgba(62, 133, 192, .42), transparent 28%), linear-gradient(135deg, #06172e 0%, #0d2f55 54%, #07182f 100%); box-shadow: 0 18px 45px rgba(7, 24, 47, .25), inset 0 0 0 4px rgba(255, 255, 255, .06); }
.player-baseball-card::before { position: absolute; inset: 8px; border: 2px dashed rgba(255, 255, 255, .24); border-radius: 21px; content: ""; pointer-events: none; }
.player-baseball-card::after { position: absolute; right: 6px; bottom: 6px; width: 108px; height: 108px; border: 10px double rgba(219, 49, 48, .24); border-radius: 50%; content: ""; pointer-events: none; }
.baseball-card-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 14px; padding: 7px 12px 11px; border-bottom: 3px solid #d73535; color: #d9e8f7; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.baseball-card-topline strong { color: #ffd268; }
.player-baseball-card .profile-hero { position: relative; z-index: 1; margin: 0; padding: 22px 12px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.profile-identity { display: flex; align-items: center; gap: 22px; min-width: 0; }
.player-photo-frame { position: relative; display: grid; flex: 0 0 154px; width: 154px; height: 184px; place-items: center; overflow: hidden; border: 4px solid #f7f1dd; border-radius: 17px; background: linear-gradient(145deg, #245483, #091b34); box-shadow: 0 11px 24px rgba(0, 0, 0, .34), 0 0 0 3px #c33336; }
#profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
#profile-initials { width: 100%; height: 100%; border-radius: 0; background: linear-gradient(145deg, #245483, #091b34); font-size: 42px; letter-spacing: -.04em; }
.player-photo-shine { position: absolute; inset: 0; background: linear-gradient(118deg, transparent 28%, rgba(255, 255, 255, .2) 43%, transparent 57%); transform: translateX(-85%); pointer-events: none; }
.player-baseball-card:hover .player-photo-shine { transform: translateX(85%); transition: transform .8s ease; }
.profile-card-copy { min-width: 0; }
.profile-card-copy .portal-eyebrow { color: #75d2b3; }
.player-baseball-card .profile-hero h2 { margin: 0; color: white; font-size: clamp(32px, 5vw, 52px); line-height: .98; letter-spacing: -.045em; text-shadow: 0 3px 12px rgba(0, 0, 0, .3); }
.player-baseball-card .profile-hero p:not(.portal-eyebrow) { margin: 9px 0 0; color: #c8daed; font-size: 14px; }
.profile-card-motto { display: block; margin-top: 17px; color: #ffd268; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.player-scout-summary-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.player-scout-summary-button, .player-scout-summary-voice { min-height: 40px; padding: 8px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 900; }
.player-scout-summary-button { color: #08203c; border: 1px solid #ffe59f; background: #ffd268; box-shadow: 0 5px 14px rgba(0, 0, 0, .22); }
.player-scout-summary-button:hover { background: #ffe198; }
.player-scout-summary-button:disabled { cursor: wait; opacity: .68; }
.player-scout-summary-voice { color: white; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); }
.player-scout-summary-button:focus-visible, .player-scout-summary-voice:focus-visible { outline: 3px solid #75d2b3; outline-offset: 2px; }
.player-scout-summary-result { position: relative; z-index: 1; margin: 12px 0 0; padding: 14px 16px; border: 1px solid rgba(255, 210, 104, .42); border-radius: 13px; background: rgba(2, 13, 27, .48); }
.player-scout-summary-result[hidden] { display: none; }
.player-scout-summary-result strong { color: #ffd268; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.player-scout-summary-result p { margin: 7px 0 0; color: #e8f2fb; font-size: 13px; line-height: 1.55; }
.player-scout-summary-status { position: relative; z-index: 1; min-height: 0; margin: 7px 3px 0; color: #bdd1e5; font-size: 11px; }
.player-scout-summary-status.is-error { color: #ffd0ca; font-weight: 800; }
.profile-card-actions { display: grid; flex: 0 0 150px; gap: 8px; }
.card-action-button { min-height: 40px; padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 10px; color: white; background: rgba(255, 255, 255, .1); cursor: pointer; font: inherit; font-size: 11px; font-weight: 850; backdrop-filter: blur(5px); }
#view-public-profile { display: grid; place-items: center; text-align: center; text-decoration: none; }
.card-action-button:hover { background: rgba(255, 255, 255, .2); }
.card-action-button.subtle { color: #cfe0f2; border-color: rgba(255, 255, 255, .22); background: transparent; }
.card-action-button.danger { color: #ffd1d1; border-color: rgba(255, 139, 139, .45); background: rgba(130, 19, 28, .22); }
.player-baseball-card .profile-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 0; }
.player-baseball-card .profile-facts div { padding: 13px 15px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .08); }
.player-baseball-card .profile-facts dt { color: #8eb4d5; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.player-baseball-card .profile-facts dd { margin: 5px 0 0; color: white; font-size: 16px; font-weight: 900; }
.player-card-highlights { position: relative; z-index: 1; margin-top: 12px; padding: 11px; border: 1px solid rgba(255, 210, 104, .32); border-radius: 14px; background: rgba(3, 15, 30, .34); }
.player-card-highlight-tabs { display: flex; gap: 6px; margin-bottom: 10px; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .2); }
.player-card-highlight-tab { flex: 1; min-height: 36px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; color: #9db8d1; background: transparent; cursor: pointer; font: inherit; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.player-card-highlight-tab:hover { color: white; background: rgba(255, 255, 255, .08); }
.player-card-highlight-tab.is-active { color: #08203c; border-color: rgba(255, 235, 177, .85); background: #ffd268; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.player-card-highlight-tab:focus-visible { outline: 3px solid #75d2b3; outline-offset: 2px; }
.player-card-highlight-panel[hidden] { display: none; }
.player-card-highlights-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.player-card-highlights-heading strong { color: #ffd268; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.player-card-highlights-heading span { color: #9db8d1; font-size: 9px; font-weight: 750; }
.player-card-highlight-grid { display: grid; grid-auto-columns: minmax(108px, 1fr); grid-auto-flow: column; gap: 7px; overflow-x: auto; scrollbar-color: rgba(255, 210, 104, .55) transparent; scrollbar-width: thin; }
.player-card-highlight { min-height: 54px; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(255, 255, 255, .08); }
.player-card-highlight strong, .player-card-highlight span { display: block; }
.player-card-highlight strong { color: white; font-size: 17px; line-height: 1; }
.player-card-highlight span { margin-top: 5px; color: #a9c3dc; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.baseball-card-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 6px 3px; color: #ffd268; font-size: 10px; letter-spacing: .18em; }
#player-photo-status { margin: 6px 4px 0; }
.profile-tools-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; margin: 18px 0; }
.progress-dashboard { min-width: 0; margin: 0; padding: 17px 18px; overflow: hidden; border: 1px solid #b9d9d0; border-radius: 16px; background: linear-gradient(145deg, #f0faf7, #f8fbff 58%, #fff); }
.progress-dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.progress-dashboard-heading h3 { margin: 0; color: var(--navy); font-size: 20px; letter-spacing: -.02em; }
.progress-dashboard-heading p:not(.portal-eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.progress-empty { display: flex; align-items: center; gap: 10px 18px; margin-top: 18px; padding: 17px; border: 1px dashed #9bbab2; border-radius: 12px; color: var(--muted); background: rgba(255, 255, 255, .75); font-size: 13px; }
.progress-empty strong { color: var(--navy); white-space: nowrap; }
.progress-chart-content { display: grid; grid-template-columns: minmax(210px, 1.2fr) minmax(390px, 2fr) auto; align-items: end; gap: 10px; margin-top: 12px; }
.profile-tools-grid .progress-chart-content { grid-template-columns: 1fr; align-items: stretch; }
.profile-tools-grid .progress-details-toggle { width: 100%; }
.progress-chart-content > label { display: grid; gap: 5px; color: #344054; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.progress-chart-content > label select { min-height: 42px; color: var(--navy); font-size: 12px; font-weight: 750; text-transform: none; }
.progress-snapshot-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0; }
.progress-snapshot-card { min-width: 0; padding: 9px 10px; border: 1px solid #d6e2e2; border-radius: 10px; background: rgba(255, 255, 255, .9); }
.progress-snapshot-card strong, .progress-snapshot-card span { display: block; }
.progress-snapshot-card strong { overflow: hidden; color: var(--navy); font-size: 18px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.progress-snapshot-card span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.progress-snapshot-card.improving { border-color: #93cdbb; background: #ebf8f3; }
.progress-snapshot-card.improving strong { color: #176044; }
.progress-snapshot-card.declining { border-color: #e3c8a4; background: #fff8ed; }
.progress-snapshot-card.declining strong { color: #8a4b08; }
.progress-details-toggle { min-height: 42px; padding: 0 13px; border: 1px solid #9bbab2; border-radius: 10px; color: #155846; background: white; cursor: pointer; font: inherit; font-size: 11px; font-weight: 850; white-space: nowrap; }
.progress-details-toggle:hover { background: #eef8f4; }
#progress-details { grid-column: 1 / -1; }
.progress-chart-frame { margin-top: 12px; padding: 8px 8px 0; border: 1px solid #d6e2e2; border-radius: 14px; background: white; }
#progress-chart { display: block; width: 100%; height: auto; min-height: 220px; overflow: visible; }
.progress-chart-grid line { stroke: #dfe8ec; stroke-width: 1; }
.progress-chart-grid text, .progress-chart-plot text { fill: #667085; font-size: 10px; font-weight: 700; }
.progress-chart-plot path { fill: none; stroke: #176b59; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.progress-chart-plot circle { fill: white; stroke: #176b59; stroke-width: 4; }
.progress-chart-note { margin: 10px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.profile-notes { padding: 16px; border-left: 4px solid #73cbb5; border-radius: 0 12px 12px 0; background: #effaf7; }
.profile-notes h3, .profile-notes p { margin: 0; }
.profile-notes p { margin-top: 7px; color: #425466; line-height: 1.5; white-space: pre-wrap; }
.player-coach { min-width: 0; margin: 0; padding: 20px; border: 1px solid #cbd6e5; border-radius: 18px; background: linear-gradient(145deg, #f7faff, #fff); }
.player-coach-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.player-coach-heading h3 { margin: 0; color: var(--navy); font-size: 22px; }
.player-coach-heading p:not(.portal-eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.player-coach-metric-focus { display: grid; grid-template-columns: minmax(0, .75fr) minmax(180px, 1.25fr); align-items: center; gap: 10px; margin-top: 13px; padding: 11px 12px; border: 1px solid #9fc8bc; border-radius: 11px; color: #174f40; background: #eaf8f3; font-size: 11px; font-weight: 850; }
.player-coach-metric-focus[hidden] { display: none; }
.player-coach-metric-focus span, .player-coach-metric-focus small { display: block; }
.player-coach-metric-focus small { margin-top: 2px; color: #477569; font-size: 9px; font-weight: 700; }
.player-coach-metric-focus select { min-height: 42px; border-color: #77ae9f; }
.player-coach-privacy { margin: 13px 0 0; padding: 10px 12px; border-radius: 9px; color: #536579; background: #eef3f8; font-size: 11px; line-height: 1.45; }
.player-coach-messages { display: grid; gap: 9px; max-height: 420px; margin-top: 14px; overflow: auto; }
.player-coach-messages:empty { display: none; }
.player-coach-message { max-width: 88%; padding: 11px 13px; border-radius: 13px; background: #eaf1f8; }
.player-coach-message.assistant { justify-self: start; border-left: 4px solid #2c7a5d; background: #eef8f4; }
.player-coach-message.user { justify-self: end; background: #e9eff8; }
.player-coach-message strong { color: var(--navy); font-size: 10px; text-transform: uppercase; }
.player-coach-message p { margin: 4px 0 0; color: #344054; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.player-coach-voice-controls { display: flex; margin-top: 9px; }
.player-coach-voice-button { min-height: 34px; padding: 0 11px; border: 1px solid #91b8ad; border-radius: 999px; color: #155846; background: white; cursor: pointer; font: inherit; font-size: 10px; font-weight: 850; }
.player-coach-voice-button:hover { background: #e4f4ee; }
.player-coach-voice-button:focus-visible { outline: 3px solid rgba(43, 108, 176, .2); outline-offset: 2px; }
.player-coach-form { margin-top: 14px; }
.player-coach-form > label { color: #344054; font-size: 11px; font-weight: 850; }
.player-coach-form > div { display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 9px; margin-top: 6px; }
.player-coach-composer-actions { display: flex; flex-direction: column; gap: 8px; }
.player-coach-record-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 13px; touch-action: none; user-select: none; border: 1px solid #e8b8b1; border-radius: 10px; color: #8f2f24; background: #fff0ed; cursor: pointer; font: inherit; font-size: 11px; font-weight: 850; }
.player-coach-record-button:hover { background: #ffe5df; }
.player-coach-record-button.is-recording { color: white; border-color: var(--red); background: var(--red); animation: record-pulse 1.2s ease-in-out infinite; }
.player-coach-record-button .mic-icon { flex: 0 0 auto; }
.player-coach-form textarea { width: 100%; min-height: 56px; padding: 11px 12px; resize: vertical; border: 1px solid #b8c4d1; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.player-coach-form textarea:focus { border-color: #2b6cb0; outline: 3px solid rgba(43, 108, 176, .16); }
.player-coach-form button { min-width: 112px; }
.player-coach-form .portal-status { margin-top: 7px; }
.career-stats { margin-top: 24px; padding: 22px; border: 1px solid #ccd9e6; border-radius: 18px; background: linear-gradient(180deg, #f8fbff, #fff); }
.pocket-radar-stats { margin-top: 24px; padding: 22px; border: 1px solid #d7d1e8; border-radius: 18px; background: linear-gradient(180deg, #fbf9ff, #fff); }
.blast-stats { margin-top: 24px; padding: 22px; border: 1px solid #bfdcd4; border-radius: 18px; background: linear-gradient(180deg, #f3fbf8, #fff); }
.blast-latest-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.blast-metric-card { padding: 13px; border: 1px solid #cfe2dc; border-radius: 12px; background: white; }
.blast-metric-card strong, .blast-metric-card span { display: block; }
.blast-metric-card strong { color: var(--navy); font-size: 20px; }
.blast-metric-card span { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.career-heading h3, .timeline-heading h3 { margin: 0; color: var(--navy); font-size: 22px; }
.career-heading p:not(.portal-eyebrow), .timeline-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.career-highlight-groups { display: grid; gap: 14px; margin-top: 16px; }
.career-stat-group { padding: 16px; border: 1px solid #d9e3ed; border-radius: 15px; background: #f8fafc; }
.career-stat-group.hitting { border-left: 5px solid #2b6cb0; }
.career-stat-group.pitching { border-left: 5px solid #8b5d20; }
.career-stat-group.fielding { border-left: 5px solid #2c7a5d; }
.career-stat-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.career-stat-group-heading h4 { margin: 0; color: var(--navy); font-size: 17px; }
.career-stat-group-heading span { color: var(--muted); font-size: 11px; }
.career-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.career-stat-empty { margin: 0; padding: 10px; color: var(--muted); font-size: 13px; }
.career-highlight { padding: 14px; border: 1px solid #dbe4ed; border-radius: 13px; background: white; }
.career-highlight strong, .career-highlight span { display: block; }
.career-highlight strong { color: var(--navy); font-size: 24px; letter-spacing: -.025em; }
.career-highlight span { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.timeline-heading { margin-top: 24px; padding-top: 20px; border-top: 1px solid #dce4ec; }
.gamechanger-timeline { display: grid; gap: 10px; margin-top: 13px; }
.timeline-card { padding: 14px; border: 1px solid #dce4ec; border-radius: 13px; background: white; }
.timeline-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.timeline-card-header strong, .timeline-card-header small { display: block; }
.timeline-card-header strong { color: var(--navy); }
.timeline-card-header small { margin-top: 3px; color: var(--muted); }
.career-badge { padding: 4px 7px; border-radius: 999px; color: #176044; background: #e6f5ee; font-size: 9px; font-weight: 850; text-transform: uppercase; white-space: nowrap; }
.career-badge.earlier { color: #667085; background: #eef1f4; }
.timeline-stat-groups { display: grid; gap: 7px; margin-top: 11px; }
.timeline-stat-line { display: flex; flex-wrap: wrap; gap: 7px 12px; color: #425466; font-size: 12px; }
.timeline-stat-line b { color: var(--navy); }
.timeline-card-actions { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf0f3; }
.timeline-remove-button { min-height: 38px; padding: 0 12px; border: 1px solid #dfaaaa; border-radius: 9px; color: #9b1c1c; background: #fffafa; cursor: pointer; font: inherit; font-size: 11px; font-weight: 850; }
.timeline-remove-button:hover { background: #fff0f0; }
.timeline-remove-button:disabled { cursor: wait; opacity: .55; }
.radar-activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.radar-activity-card { padding: 16px; border: 1px solid #ddd7ec; border-top: 5px solid #7356a5; border-radius: 14px; background: white; }
.radar-activity-card.pitching { border-top-color: #8b5d20; }
.radar-activity-card.throwing { border-top-color: #2c7a5d; }
.radar-activity-card h4 { margin: 0; color: var(--navy); font-size: 16px; }
.radar-activity-card > p { margin: 4px 0 13px; color: var(--muted); font-size: 11px; }
.radar-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.radar-metric { padding: 9px; border-radius: 9px; background: #f6f3fb; }
.radar-metric strong, .radar-metric span { display: block; }
.radar-metric strong { color: var(--navy); font-size: 18px; }
.radar-metric span { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.radar-trend { margin-top: 10px; color: #39705f; font-size: 11px; font-weight: 800; }
.radar-session-preview { display: grid; gap: 9px; max-height: min(40vh, 420px); overflow: auto; }
.radar-preview-card { display: grid; grid-template-columns: minmax(130px, 1fr) auto; gap: 12px; padding: 12px; border: 1px solid #ddd7ec; border-radius: 11px; }
.radar-preview-card strong, .radar-preview-card small { display: block; }
.radar-preview-card small { margin-top: 3px; color: var(--muted); }
.radar-preview-metrics { color: #513b79; font-size: 12px; font-weight: 800; text-align: right; }
.development-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.development-grid article { padding: 20px; border: 1px solid #dce3eb; border-radius: 16px; }
.development-grid article > span { color: #2c6b59; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.development-grid h3 { margin: 7px 0; color: var(--navy); }
.development-grid p { min-height: 48px; margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.development-grid button { min-height: 42px; padding: 9px 12px; border: 1px solid #b9c8d8; border-radius: 9px; color: var(--navy); background: #f4f8fc; cursor: pointer; font-size: 12px; font-weight: 850; }
.development-grid button:hover { border-color: #6f8dad; background: #e9f2fa; }
dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 20px; box-shadow: 0 28px 90px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(5, 18, 35, .66); }
#player-form { padding: 26px; }
#import-form { padding: 26px; }
#blast-form { padding: 26px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { margin: 0; color: var(--navy); font-size: 28px; }
.dialog-close { width: 38px; min-height: 38px; padding: 0; border: 1px solid #d5dde6; background: white; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.form-grid .wide, .form-grid fieldset { grid-column: 1 / -1; }
.form-grid small { color: var(--muted); font-weight: 500; }
.form-grid fieldset { padding: 14px; border: 1px solid #c8d2dd; border-radius: 12px; }
.form-grid legend { padding: 0 6px; color: #344054; font-size: 13px; font-weight: 800; }
.position-options { display: flex; flex-wrap: wrap; gap: 8px; }
.position-options label { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #d2dae4; border-radius: 8px; cursor: pointer; }
.position-options input { width: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.import-description { margin: 12px 0 18px; color: var(--muted); line-height: 1.5; }
.file-picker { display: grid; min-height: 132px; place-content: center; gap: 7px; padding: 20px; border: 2px dashed #8ba3bd; border-radius: 16px; color: var(--navy); background: #f7fbff; cursor: pointer; text-align: center; }
.file-picker:focus-within { border-color: #2b6cb0; outline: 3px solid rgba(43, 108, 176, .16); }
.file-picker strong { font-size: 18px; }
.file-picker span { color: var(--muted); font-size: 13px; font-weight: 600; }
.file-picker input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.import-privacy, .import-next-step { color: var(--muted); font-size: 12px; line-height: 1.45; }
.import-success { padding: 30px 20px; border: 1px solid #b9dfcf; border-radius: 16px; background: #eefaf5; text-align: center; }
.import-success > span { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: white; background: #24745b; font-size: 28px; font-weight: 900; }
.import-success h3 { margin: 0; color: var(--navy); font-size: 24px; }
.import-success p { margin: 8px 0 18px; color: #39705f; line-height: 1.5; }
.import-preview { margin-top: 20px; }
.import-summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 10px; color: #165b43; background: #e9f8f2; }
.import-summary span { color: #39705f; font-size: 12px; }
.import-warnings { display: grid; gap: 6px; margin-top: 10px; color: #8a4b08; font-size: 12px; }
.preview-table-wrap { margin-top: 12px; overflow: auto; border: 1px solid #d7e0ea; border-radius: 10px; }
#import-preview-table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
#import-preview-table th, #import-preview-table td { max-width: 220px; padding: 8px 10px; overflow: hidden; border-bottom: 1px solid #e7ecf1; text-align: left; text-overflow: ellipsis; }
#import-preview-table th { position: sticky; top: 0; color: var(--navy); background: #eef4fa; }
.gamechanger-import-options { margin-top: 20px; }
.import-metadata { margin: 0 0 22px; padding: 16px; border-radius: 12px; background: #f5f8fb; }
.mapping-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.mapping-heading h3, .mapping-heading p { margin: 0; }
.mapping-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.mapping-heading > strong { color: #2c6b59; font-size: 12px; }
.mapping-bulk-actions { display: flex; align-items: center; gap: 10px 14px; margin: 0 0 11px; padding: 10px; border: 1px solid #c8d7e6; border-radius: 11px; background: #f7faff; }
.mapping-bulk-actions span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.player-mappings { display: grid; gap: 9px; max-height: min(45vh, 480px); overflow: auto; }
.player-mapping { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(170px, 1fr) auto; align-items: center; gap: 12px; padding: 11px; border: 1px solid #d8e1ea; border-radius: 11px; }
.player-mapping strong, .player-mapping small { display: block; }
.player-mapping small { margin-top: 3px; color: var(--muted); }
.match-badge { padding: 5px 7px; border-radius: 999px; color: #176044; background: #e6f5ee; font-size: 10px; font-weight: 850; text-align: center; }
.match-badge.needs-review { color: #8a4b08; background: #fff2d9; }
.blast-review { display: grid; gap: 18px; margin-top: 18px; }
#blast-video { display: block; width: 100%; max-height: 52vh; border-radius: 14px; background: #06111f; }
.blast-bat-fields { padding: 16px; border: 1px solid #d6c48b; border-radius: 13px; background: #fffcf2; }
.blast-bat-fields legend { padding: 0 7px; color: var(--navy); font-size: 15px; font-weight: 850; }
.blast-bat-fields > p { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.blast-bat-fields label span { color: var(--muted); font-size: 10px; font-weight: 700; }
.blast-bat-details { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.blast-bat-details span { padding: 5px 8px; border: 1px solid #d6c48b; border-radius: 999px; color: #594500; background: #fffcf2; font-size: 11px; font-weight: 800; }
.blast-session-video { display: block; width: 100%; max-height: 440px; margin-top: 14px; border-radius: 13px; background: #06111f; }
.radar-session-video { display: block; width: 100%; max-height: 440px; margin-top: 14px; border-radius: 13px; background: #06111f; }
.blast-video-note { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.timeline-edit-button { min-height: 38px; padding: 7px 12px; border: 1px solid #9db2c7; border-radius: 9px; color: var(--navy); background: white; font-weight: 800; cursor: pointer; }
.blast-metric-fields { padding: 16px; border: 1px solid #c8d8d3; border-radius: 13px; }
.blast-metric-fields legend { padding: 0 7px; color: var(--navy); font-size: 15px; font-weight: 850; }
.blast-metric-fields > p { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.blast-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.blast-metric-grid label { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 8px; color: #344054; font-size: 11px; font-weight: 850; }
.blast-metric-grid label span { color: var(--muted); font-size: 9px; font-weight: 700; }
.blast-metric-grid input { grid-column: 1 / -1; min-height: 44px; }
.public-player-view .portal-main { margin-top: 22px; }
.public-player-view .portal-toolbar,
.public-player-view #back-to-roster,
.public-player-view .profile-card-actions,
.public-player-view .profile-notes,
.public-player-view .development-grid,
.public-player-view #player-coach-record,
.public-player-view #edit-gamechanger-roster { display: none !important; }
.public-player-view #profile-view { padding-top: 18px; }
.public-player-view .timeline-card-actions { display: none; }
.membership-dialog { width: min(500px, calc(100% - 28px)); }
.membership-dialog[open] { position: fixed; inset: 50% auto auto 50%; z-index: 1000; margin: 0; transform: translate(-50%, -50%); }
.membership-card { position: relative; padding: 32px; color: #344054; background: linear-gradient(155deg, #f0faf7, #fff 52%, #eef4fb); }
.membership-card > .dialog-close { position: absolute; top: 16px; right: 16px; }
.membership-card h2 { max-width: 380px; margin: 0; color: var(--navy); font-size: clamp(28px, 6vw, 38px); line-height: 1.05; letter-spacing: -.035em; }
.membership-card > p:not(.portal-eyebrow) { margin: 14px 0; color: var(--muted); line-height: 1.55; }
.membership-price { display: flex; align-items: baseline; gap: 7px; margin: 18px 0 12px; color: var(--navy); }
.membership-price strong { font-size: 46px; letter-spacing: -.05em; }
.membership-price span { color: var(--muted); font-weight: 750; }
.membership-card ul { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 20px; font-size: 13px; }
.membership-billing-note { margin: 0 0 14px !important; padding: 11px 12px; border: 1px solid #c7d8e8; border-radius: 10px; color: #425466 !important; background: #f5f9fd; font-size: 12px; line-height: 1.45 !important; }
.membership-billing-note strong { color: var(--navy); }
.membership-payment-panel { display: grid; min-height: 52px; place-items: center; padding: 12px; border: 1px solid #d8e1ea; border-radius: 13px; background: white; }
.membership-subscribe-link { display: inline-flex; width: min(100%, 320px); min-height: 48px; align-items: center; justify-content: center; border-radius: 999px; color: white; background: var(--red); font-size: 15px; font-weight: 900; text-decoration: none; }
.membership-subscribe-link:hover { background: var(--red-dark); }
.membership-subscribe-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.membership-account-link { display: block; margin: 10px 0 14px; color: #174f8b; font-size: 13px; font-weight: 850; text-align: center; }
.membership-card > .portal-secondary { width: 100%; margin-top: 9px; }
@media (max-width: 980px) { .career-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .profile-tools-grid { grid-template-columns: 1fr; } .progress-chart-content { grid-template-columns: 1fr; align-items: stretch; } .progress-details-toggle { width: 100%; } }
@media (max-width: 820px) { .public-player-grid, .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-facts, .radar-activity-grid { grid-template-columns: repeat(2, 1fr); } .blast-latest-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .portal-header, .portal-toolbar, .section-heading, .profile-hero, .player-coach-heading, .public-directory-hero { align-items: stretch; flex-direction: column; } .portal-main { margin-top: 18px; } .public-player-directory, .login-card, #roster-view, #profile-view { padding: 21px; } .public-directory-membership { width: 100%; min-height: 48px; } .public-player-grid, .roster-grid, .development-grid, .form-grid, .radar-activity-grid, .blast-metric-grid { grid-template-columns: 1fr; } .public-player-card { min-height: 118px; } .roster-grid { gap: 10px; } .form-grid .wide, .form-grid fieldset { grid-column: auto; } .toolbar-actions { width: 100%; } .toolbar-actions > * { flex: 1; } .back-to-training { font-size: 12px; } .development-grid button { width: 100%; min-height: 48px; } #import-form, #blast-form { padding: 20px; } .file-picker { min-height: 148px; } .import-summary, .mapping-heading, .progress-empty { align-items: flex-start; flex-direction: column; } .roster-controls { align-items: stretch; flex-direction: column; } .player-mapping, .radar-preview-card { grid-template-columns: 1fr; } .player-mapping select { min-height: 48px; } .career-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .career-stat-group { padding: 13px; } .radar-preview-metrics { text-align: left; } .progress-dashboard { margin: 14px 0; padding: 14px; } .progress-dashboard-heading h3 { font-size: 18px; } .progress-snapshot-card { padding: 8px 6px; text-align: center; } .progress-snapshot-card strong { font-size: 15px; } #progress-chart { min-height: 180px; } .player-coach { padding: 16px; } .player-coach-heading .portal-primary { width: 100%; } .player-coach-message { max-width: 94%; } .player-coach-form > div { grid-template-columns: 1fr; } .player-coach-form button { min-height: 48px; } .timeline-remove-button { min-height: 44px; } .player-baseball-card { padding: 10px; border-radius: 22px; } .baseball-card-topline { align-items: flex-start; flex-direction: column; gap: 4px; } .player-baseball-card .profile-hero { gap: 14px; padding: 16px 8px; } .profile-identity { gap: 14px; } .player-photo-frame { flex-basis: 108px; width: 108px; height: 138px; } #profile-initials { font-size: 30px; } .player-baseball-card .profile-hero h2 { font-size: clamp(28px, 9vw, 38px); } .profile-card-motto { margin-top: 11px; font-size: 8px; } .profile-card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-action-button { min-height: 44px; } .player-baseball-card .profile-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .membership-card { padding: 28px 22px 22px; } }
@media (max-width: 620px) { .mapping-bulk-actions { align-items: stretch; flex-direction: column; } .mapping-bulk-actions button { width: 100%; min-height: 48px; } }
@media (max-width: 620px) { .player-coach-metric-focus { grid-template-columns: 1fr; } .player-card-highlight-grid { grid-auto-columns: minmax(102px, 40%); } }
