@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:dark;--bg:#07101f;--panel:#111e32;--panel2:#172741;--line:#293a52;--text:#f2f6ff;--muted:#9aacc5;--blue:#76b8ff;--teal:#6fe3d1;--navy:#242b70;--red:#f86d7e;--radius:19px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 65% -20%,#163f69 0%,transparent 55%),var(--bg);color:var(--text);font:15px/1.55 'DM Sans',system-ui,sans-serif;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--teal);outline-offset:3px}.shell{max-width:1260px;margin:auto;padding:0 20px}.topbar{position:sticky;top:0;z-index:20;background:#091526eb;backdrop-filter:blur(18px);border-bottom:1px solid #26354b}.topinner{height:75px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand img{width:49px;height:49px;object-fit:contain;background:white;border-radius:50%;padding:2px}.brand strong{display:block;font-family:Outfit;font-size:18px;line-height:1.1;letter-spacing:-.5px}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:1.5px;font-weight:800;margin-top:4px}.desktopnav{display:flex;gap:5px}.navlink{padding:10px 13px;color:var(--muted);border-radius:10px;font-weight:700;font-size:13px}.navlink.active,.navlink:hover{background:#1d3150;color:#fff}.topright{display:flex;align-items:center;gap:9px}.seasonpill{border:1px solid #36516f;border-radius:100px;padding:7px 12px;color:#b8d3f3;font-size:12px;font-weight:700}.main{padding-top:32px;padding-bottom:125px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-weight:900;color:var(--teal);font-size:11px}.pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:24px}.pagehead h1,.hero h1{font-family:Outfit;font-size:clamp(32px,5vw,52px);line-height:1.04;letter-spacing:-1.8px;margin:8px 0 12px}.pagehead p,.hero p{color:var(--muted);margin:0;max-width:650px}.hero{position:relative;overflow:hidden;border:1px solid #2c4668;border-radius:26px;padding:37px;background:linear-gradient(120deg,#142849 10%,#132b4b 60%,#0a4a61);margin-bottom:22px}.hero:after{content:'≈';position:absolute;font-family:Outfit;font-size:360px;color:#b1ecff0b;right:-35px;top:-150px;pointer-events:none}.hero>*{position:relative;z-index:1}.hero h1{max-width:660px}.hero p{max-width:560px}.heroactions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;border-radius:12px;border:1px solid #405773;background:#1b3455;color:#fff;font-weight:800;font-size:13px;min-height:44px}.btn.primary{background:#b5e9ff;color:#061a31;border-color:#b5e9ff}.btn:hover{filter:brightness(1.12)}.grid{display:grid;gap:16px}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.card{background:linear-gradient(155deg,#13223a,#101b2e);border:1px solid var(--line);border-radius:var(--radius);padding:21px;min-width:0}.metric .label{color:var(--muted);font-size:12px;font-weight:700}.metric .value{font:800 clamp(24px,3vw,34px)/1.2 Outfit;margin-top:9px;letter-spacing:-.6px}.metric .sub{font-size:11px;color:var(--teal);margin-top:8px}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:25px 0 12px}.sectionhead h2{font:800 22px Outfit;letter-spacing:-.5px;margin:0}.sectionhead a{font-size:12px;color:var(--blue);font-weight:800}.twocol{grid-template-columns:1.45fr 1fr}.card h2,.card h3{font:800 20px Outfit;margin:0 0 15px}.muted{color:var(--muted)}.small{font-size:12px}.controls{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.field{background:#12233b;border:1px solid #354861;border-radius:12px;color:white;padding:12px 14px;min-height:46px;max-width:100%;width:100%}.field::placeholder{color:#91a6c0}.control{flex:1 1 180px}.list{display:flex;flex-direction:column;gap:9px}.listitem{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#182940;border:1px solid #2a3e59;border-radius:13px;padding:14px}.listitem:hover{border-color:#6b9ad0}.listitem strong{font-size:14px}.listitem small{display:block;color:var(--muted);margin-top:3px}.avatar{width:38px;height:38px;border-radius:12px;background:#254568;display:grid;place-items:center;color:#cce9ff;font-weight:900;flex-shrink:0}.listleft{display:flex;align-items:center;gap:11px;min-width:0}.valuegood{color:var(--teal);font-weight:900}.tag{display:inline-block;background:#193d50;color:#8be4dc;border:1px solid #2d6a75;border-radius:99px;font-size:11px;font-weight:800;padding:4px 9px}.tag.gray{background:#24324a;border-color:#40516a;color:#b4c4dc}.empty{border:1px dashed #3c536e;background:#14223888;border-radius:15px;padding:30px 18px;text-align:center;color:var(--muted)}.empty strong{display:block;color:var(--text);font-size:17px;margin-bottom:7px}.chart{width:100%;height:auto;display:block;overflow:visible}.charttext{fill:#9eb0c9;font:11px 'DM Sans',sans-serif}.chartgrid{stroke:#31425b;stroke-width:1}.chartline{stroke:#70d9e4;stroke-width:3;fill:none;stroke-linejoin:round;stroke-linecap:round}.chartdot{fill:#b7f3fa;stroke:#163c58;stroke-width:2}.tablewrap{overflow-x:auto;max-width:100%;border-radius:12px;border:1px solid var(--line)}table{border-collapse:collapse;width:100%;min-width:570px;text-align:left}th{font-size:11px;color:#a3b5cf;text-transform:uppercase;letter-spacing:.7px;background:#1c2d45}td,th{padding:13px 15px;border-bottom:1px solid #2a3a52}td{font-size:13px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#1b2e48}.profilebanner{display:flex;align-items:center;gap:17px}.profilebanner .avatar{width:62px;height:62px;font-size:25px}.tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px}.tab{white-space:nowrap;border:1px solid #35506c;border-radius:99px;padding:9px 14px;color:#c4d6ee;background:#172942;font-size:12px;font-weight:800}.tab.active{background:#c5ecff;color:#081b30}.foot{border-top:1px solid var(--line);padding:22px 0 110px;color:var(--muted);font-size:12px}.footinner{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.bottomnav{display:none}.notice{border:1px solid #43637b;background:#12334a;padding:13px 15px;border-radius:13px;color:#c4e6f6;font-size:12px;margin-bottom:20px}.notice b{color:white}.chartlegend{display:flex;gap:16px;color:var(--muted);font-size:12px;margin-top:9px}.dot{width:9px;height:9px;border-radius:50%;background:var(--teal);display:inline-block;margin-right:6px}.accent{color:var(--teal)}.splitstats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.statline{border-top:1px solid var(--line);padding-top:12px}.statline b{display:block;font:800 24px Outfit}.statline span{font-size:12px;color:var(--muted)}.detail{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.logo-watermark{width:85px;height:85px;background:white;object-fit:contain;border-radius:50%;padding:3px}.sr-only{position:absolute;left:-9999px}.minilabel{font-size:11px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.8px}.count{font-weight:900;color:var(--teal)}@media(max-width:980px){.desktopnav{display:none}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.twocol{grid-template-columns:1fr}.seasonpill{display:none}}@media(max-width:640px){.shell{padding:0 15px}.topinner{height:64px}.brand img{width:43px;height:43px}.brand strong{font-size:16px}.brand small{font-size:9px}.main{padding-top:20px}.hero{padding:26px 20px;border-radius:20px}.hero h1{font-size:37px}.hero p{font-size:13px}.pagehead{align-items:flex-start}.pagehead h1{font-size:34px}.metrics{gap:10px}.card{padding:16px;border-radius:16px}.metric .value{font-size:28px}.metric .label{font-size:11px}.metric .sub{font-size:10px}.sectionhead h2{font-size:19px}.bottomnav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:30;bottom:0;left:0;right:0;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#0a1729f5;backdrop-filter:blur(18px);border-top:1px solid #34445c}.bottomnav a{display:flex;flex-direction:column;align-items:center;gap:3px;color:#8da4bf;font-size:10px;font-weight:800;border-radius:10px;padding:6px 2px}.bottomnav a.active{color:#b3ebff;background:#1c3450}.bottomnav svg{width:21px;height:21px}.foot{padding-bottom:115px}.controls{gap:8px}.control{flex:1 1 100%}.splitstats{gap:8px}.statline b{font-size:21px}.listitem{padding:12px}.profilebanner .avatar{width:48px;height:48px;font-size:19px}.logo-watermark{width:65px;height:65px}}@media(prefers-reduced-motion:no-preference){.btn,.listitem,.navlink{transition:background .15s,border-color .15s,filter .15s}}

/* v0.1.0 mobile refinements */
@media(max-width:640px){
 .shell{padding-left:14px;padding-right:14px}
 .main{padding-bottom:105px}
 .hero{padding:25px 19px;margin-bottom:17px}
 .hero h1{font-size:clamp(30px,9vw,39px);letter-spacing:-1.3px}
 .metrics{gap:9px}.metric{padding:14px 12px}.metric .value{font-size:clamp(22px,7vw,29px)}
 .card{min-width:0}.listitem{min-width:0}.listleft{overflow:hidden}.listleft>span:last-child{min-width:0}.listitem strong{overflow-wrap:anywhere}
 .tablewrap{margin:0 -5px}.tablewrap table{min-width:520px}
 .bottomnav a{min-height:48px;justify-content:center}
 .footinner{display:block}.footinner span{display:block;margin-bottom:5px}
 .pagehead p{font-size:13px}.sectionhead{gap:8px}
}

/* Compact cards and resilient mobile grid — v0.1.0 */
.metrics{gap:12px}.metric{padding:17px;min-height:112px}.metric .value{font-size:clamp(23px,2.6vw,32px)}
.listitem{min-height:62px}.listitem .listleft{flex:1;min-width:0}.listitem strong{line-height:1.3;overflow-wrap:anywhere}
@media(max-width:640px){.metrics{gap:9px}.metric{min-height:100px;padding:13px 11px}.metric .value{font-size:clamp(22px,6.8vw,28px)}.metric .sub{line-height:1.35}.card{padding:15px}.listitem{min-height:57px;padding:11px}.listitem strong{font-size:13px}.sectionhead{margin-top:20px}}
@media(max-width:360px){.metric{padding:11px 9px}.metric .label{font-size:10px}.metric .value{font-size:22px}.listleft{gap:8px}}

/* Swimmer directory — v0.1.0 clean card layout */
.swimmer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.swimmer-card{display:flex;align-items:center;gap:12px;min-width:0;min-height:94px;padding:17px 16px;transition:border-color .15s,background .15s,transform .15s}
.swimmer-card:hover{border-color:#5f9dbb;background:#172b45;transform:translateY(-1px)}
.swimmer-avatar{width:42px;height:42px;border-radius:12px;font-size:16px}
.swimmer-info{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}
.swimmer-name{display:block;font:700 15px/1.25 'DM Sans',sans-serif;overflow-wrap:anywhere}
.swimmer-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;color:var(--muted);font-size:11px;line-height:1.3}
.swimmer-group{font-size:10px;font-weight:800;letter-spacing:.3px;color:var(--teal);background:#173b49;border:1px solid #285968;border-radius:6px;padding:3px 6px}
.swimmer-chevron{color:#83b5d7;font-size:26px;font-weight:300;line-height:1;flex-shrink:0}
@media(max-width:1050px){.swimmer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.swimmer-grid{grid-template-columns:1fr;gap:9px}.swimmer-card{min-height:76px;padding:12px 14px;gap:12px}.swimmer-avatar{width:40px;height:40px}.swimmer-name{font-size:14px}.swimmer-info{gap:5px}.swimmer-meta{font-size:11px}.swimmer-chevron{font-size:23px}}

/* v0.1.0 design polish — shared across all pages */
:root{--radius:17px}
body{background:radial-gradient(ellipse at 72% -10%,#153a5a 0%,transparent 52%),radial-gradient(ellipse at 0% 55%,#0b1b34 0%,transparent 42%),var(--bg)}
.card{box-shadow:0 10px 30px #030b170d}
.card,.listitem,.swimmer-info,.listleft>span:last-child{min-width:0}
.listleft>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.listleft strong,.swimmer-name{display:block;overflow-wrap:break-word;word-break:normal}
.listleft small,.swimmer-meta{display:block;line-height:1.45;color:var(--muted)}
.listitem .valuegood{flex:0 0 auto;text-align:right;white-space:nowrap}
.featured-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.featured-grid .swimmer-card{min-height:96px}
.heading-sparkle{color:var(--teal);font-size:.7em;vertical-align:middle}
.swimmer-card{overflow:hidden}
.swimmer-info{gap:7px}
.swimmer-name{font-weight:800;line-height:1.35}
.swimmer-meta{display:flex;gap:6px 9px;align-items:center;flex-wrap:wrap}
.swimmer-meta>span:last-child{white-space:normal}
.swimmer-chevron{margin-left:auto}
.hero{display:flex;align-items:center;min-height:325px;isolation:isolate;background:linear-gradient(110deg,#162e54 0%,#102a48 60%,#0a5260 100%)}
.hero:after{content:none}
.hero-inner{position:relative;z-index:2;max-width:70%}
.hero h1{font-size:clamp(36px,5vw,64px);line-height:1.02;letter-spacing:-2px}
.hero-art{position:absolute;right:5%;top:50%;transform:translateY(-50%);width:240px;height:240px;display:grid;place-items:center;pointer-events:none;opacity:.95}
.pool-orbit{height:220px;width:220px;border:2px solid #9af2e55e;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(circle,#5bd8c52b,#133f62aa 67%,transparent 69%);box-shadow:0 0 0 18px #9af2e50b,0 0 0 37px #9af2e507;transform:rotate(-9deg)}
.pool-wave{font-size:96px;color:#8df3e3;line-height:1;font-weight:800;letter-spacing:-8px}
.pool-number{font:900 38px/1 Outfit;color:#fff;letter-spacing:4px}
.pool-caption{font-size:8px;letter-spacing:2px;color:#a8f5e9;font-weight:900;margin-top:12px}
.hero-bubbles{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.hero-bubbles span{position:absolute;border:1px solid #80e5dc33;border-radius:50%;width:32px;height:32px;left:65%;top:15%}
.hero-bubbles span:nth-child(2){width:15px;height:15px;left:88%;top:76%}
.hero-bubbles span:nth-child(3){width:50px;height:50px;left:48%;top:85%}
.pagehead{padding:22px 0 8px;border-bottom:1px solid #ffffff12;margin-bottom:24px}
.pagehead h1{font-size:clamp(36px,5vw,58px)}
.pagehead .eyebrow:before{content:'✦';margin-right:8px}
.metric{position:relative;overflow:hidden}
.metric:after{content:'';position:absolute;right:-27px;top:-28px;width:78px;height:78px;border-radius:50%;border:13px solid #79e5d10b;pointer-events:none}
.metric .value{font-variant-numeric:tabular-nums}
.empty{line-height:1.55}
.empty strong{margin-bottom:7px}
@media(max-width:1050px){.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{right:1%;opacity:.55}}
@media(max-width:640px){.featured-grid{grid-template-columns:1fr;gap:9px}.featured-grid .swimmer-card{min-height:76px}.hero{min-height:300px;align-items:flex-start;padding:29px 20px}.hero-inner{max-width:100%}.hero h1{font-size:clamp(35px,9vw,47px);max-width:360px}.hero p{max-width:300px;position:relative;z-index:3}.hero-art{width:160px;height:160px;right:-50px;top:23%;opacity:.24}.pool-orbit{width:150px;height:150px}.pool-wave{font-size:60px}.pool-number{font-size:25px}.pool-caption{font-size:5px}.heroactions{gap:8px}.heroactions .btn{padding:11px 12px;font-size:12px}.pagehead{padding-top:5px}.pagehead h1{font-size:37px}.listitem .valuegood{font-size:12px}.featured-grid .swimmer-card{padding:13px}.sectionhead h2{font-size:20px}}
@media(max-width:380px){.hero h1{font-size:33px}.brand small{letter-spacing:.8px}.swimmer-meta{gap:4px 7px}}

.archive-details{margin-top:18px}.archive-details summary{cursor:pointer;color:#77e3d4;font-weight:700;padding:12px 0}.archive-details .tablewrap{max-height:440px;overflow:auto}.archive-overview{margin-top:22px}.archive-overview h2{margin-top:0}.archive-link{color:#8bdcf4;font-weight:700}

/* OSHAC Analytics v0.1.0 — comprehensive visual refresh */
:root{--bg:#061325;--panel:#10233b;--panel2:#183654;--line:#29435d;--text:#f3f9ff;--muted:#a6bed0;--blue:#80c7ff;--teal:#66ead3;--radius:20px}
body{background:radial-gradient(ellipse at 95% 0%,#123a58 0%,transparent 48%),radial-gradient(ellipse at 0% 75%,#0d2b47 0%,transparent 40%),#061325}
.topbar{background:#081b2df0;border-color:#24425a}.topinner{height:72px}.brand strong{font-size:20px;letter-spacing:-.8px}.brand small{letter-spacing:1.2px;font-size:9px}.brand img{box-shadow:0 0 0 2px #a9e9ff33}
.navlink{border-radius:12px}.navlink.active,.navlink:hover{background:#234a65}.seasonpill{border-color:#39647c;color:#bce9f5;background:#102a42}
.main{padding-top:29px}.hero{min-height:350px;padding:44px;border:1px solid #38627b;background:linear-gradient(118deg,#123251 0%,#124460 54%,#08767c 110%);box-shadow:0 25px 80px #0003;border-radius:30px}
.hero:before{content:'';position:absolute;inset:auto -30px -90px 25%;height:170px;border:2px solid #b8ffff12;border-radius:50%;transform:rotate(-12deg);pointer-events:none}
.hero h1{font-size:clamp(37px,5.6vw,72px);letter-spacing:-2.5px;max-width:760px}.hero .accent{color:#8cf6df}.hero p{font-size:15px;max-width:490px}.hero .eyebrow{color:#adffef}.hero-art{right:5%}.pool-orbit{border-color:#a6ffeb77;box-shadow:0 0 0 18px #9af2e510,0 0 0 36px #9af2e508;background:radial-gradient(circle,#55f1db29,#0c5467b8 67%,transparent 69%)}
.btn{border-radius:14px}.btn.primary{background:#b6f9ec;border-color:#b6f9ec}.btn:hover{transform:translateY(-1px)}
.card{background:linear-gradient(150deg,#152e49,#0d2036);border-color:#2b4962;border-radius:20px;box-shadow:0 12px 40px #00000015}.card:hover{border-color:#3b6783}
.metric{min-height:122px;padding:19px 20px}.metric .value{font-size:clamp(27px,3vw,39px);letter-spacing:-1.4px}.metric .label{font-size:12px}.metric .sub{color:#79e7d4}
.sectionhead h2,.card h2{letter-spacing:-.7px}.sectionhead a{color:#99e5ff}.listitem{background:#1a3550;border-color:#31536b;border-radius:14px;min-width:0}.listleft>span:last-child{min-width:0;overflow:hidden}.listleft strong{overflow-wrap:break-word}.listleft small{line-height:1.45}.valuegood{color:#80f1da}
.swimmer-card{background:linear-gradient(140deg,#142e47,#10253c);min-height:92px;gap:13px}.swimmer-name{font-size:15px;line-height:1.3}.swimmer-meta{display:flex;flex-wrap:wrap;gap:7px;line-height:1.3}.swimmer-avatar{background:#27516d;color:#dbfaff}.swimmer-group{background:#174c51;color:#9af6e1;border-color:#337f80}.swimmer-chevron{color:#9bd6eb}
.field{background:#132b45;border-color:#3b5d77}.field:focus{border-color:#72e5d7}.tablewrap{border-color:#33546b}th{background:#1b3953}td,th{border-color:#294a62}tbody tr:hover{background:#183e54}.empty{background:#122c4080;border-color:#41677e}
.chartline{stroke:#7bf4d9}.chartdot{fill:#dcfff5}.chartgrid{stroke:#36566a}.bottomnav{background:#0a2134f5;border-top-color:#2e536c}.bottomnav a.active{background:#1a4a5d;color:#9bffea}
@media(max-width:1050px){.hero-art{right:2%;opacity:.55}.hero-inner{max-width:78%}}
@media(max-width:720px){.hero{min-height:0;padding:31px 22px 34px;border-radius:24px}.hero-inner{max-width:100%}.hero-art{opacity:.13;right:-75px;top:55%}.hero h1{font-size:clamp(37px,9vw,55px);letter-spacing:-1.7px}.hero p{font-size:14px}.heroactions{margin-top:22px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-height:105px;padding:15px}.metric .value{font-size:30px}.metric .sub{font-size:10px}.twocol{grid-template-columns:1fr}.pagehead h1{font-size:clamp(33px,9vw,48px)}.topinner{height:66px}.brand img{width:43px;height:43px}.brand strong{font-size:17px}.brand small{font-size:8px}.seasonpill{font-size:10px;padding:6px 8px}.featured-grid{grid-template-columns:1fr}.swimmer-card{min-height:76px;padding:13px}.sectionhead h2{font-size:20px}.main{padding-top:20px}}
@media(max-width:390px){.brand small{letter-spacing:.7px}.brand strong{font-size:15px}.seasonpill{font-size:9px}.metric .value{font-size:26px}.hero h1{font-size:36px}.heroactions .btn{font-size:12px;padding:11px 12px}}

/* v0.1.0 profile chart range control */
.chart-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.chart-heading h2{margin:0 0 4px}
.chart-heading p{margin:0}
.chart-toggle{display:inline-flex;gap:3px;padding:4px;background:#0b1a2d;border:1px solid rgba(142,187,218,.24);border-radius:13px}
.chart-toggle-btn{appearance:none;border:0;border-radius:9px;background:transparent;color:#b3c9df;font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:9px 13px;min-height:38px}
.chart-toggle-btn.active{background:#6ce4d2;color:#082235}
.chart-toggle-btn:focus-visible{outline:2px solid #a3efff;outline-offset:2px}
@media(max-width:520px){.chart-heading{align-items:flex-start;flex-direction:column}.chart-toggle{width:100%}.chart-toggle-btn{flex:1}}

/* Calendar refresh: independent, mobile-first, no fabricated schedule */
.calendar-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:center;margin:30px 0 35px;padding:32px;border:1px solid #347087;border-radius:26px;background:linear-gradient(125deg,#103b56,#112842 58%,#0c4752);overflow:hidden}
.calendar-feature h2,.calendar-intro h1{font-family:Outfit,system-ui,sans-serif;font-size:clamp(29px,4.5vw,52px);letter-spacing:-1.8px;line-height:1.08;margin:12px 0}.calendar-feature h2 em{font-style:normal;color:#7bf4d9}.calendar-feature p,.calendar-intro p{color:#b5cce0;line-height:1.65;max-width:530px}.calendar-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.calendar-feature-list{display:grid;gap:10px}.schedule-event{display:flex;align-items:flex-start;gap:15px;border:1px solid #31516a;background:#12273e;border-radius:18px;padding:17px;min-width:0}.schedule-date{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 57px;min-height:63px;border-radius:13px;background:#1d4b60;color:#a3fff0}.schedule-date span{font-size:11px;letter-spacing:1.5px;font-weight:800}.schedule-date strong{font-size:27px;line-height:1.2}.schedule-event-main{min-width:0;flex:1}.schedule-event-main h3{font-size:17px;line-height:1.3;margin:7px 0 4px;overflow-wrap:anywhere}.schedule-event-main p{font-size:12px;color:#b7c9dc;margin:0;line-height:1.6}.schedule-event-main .schedule-description{margin-top:8px}.schedule-tags{display:flex;gap:7px;flex-wrap:wrap}.schedule-tags span{font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:800;color:#8debd8;background:#18424e;border-radius:7px;padding:4px 7px}.schedule-empty{border:1px dashed #47708a;background:#132b4080;border-radius:18px;padding:26px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px;color:#bbd0e3}.schedule-empty strong{color:#eff9ff;font-size:17px}.schedule-empty p{font-size:13px;max-width:390px;margin:0}.schedule-empty a,.calendar-note a{color:#86f1e0;font-weight:800;font-size:13px}.schedule-empty-icon{font-size:35px;color:#7bf4d9}.calendar-intro{padding:42px 35px;border-radius:25px;background:radial-gradient(circle at 95% 0%,#11687588,transparent 50%),linear-gradient(125deg,#17385b,#0c1d35);border:1px solid #345a73}.calendar-intro h1{font-size:clamp(38px,6vw,68px)}.calendar-intro .btn{margin-top:15px}.calendar-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:35px 0 20px}.calendar-toolbar h2{margin:0;font-family:Outfit,system-ui;font-size:25px}.calendar-toolbar p{margin:5px 0 0}.calendar-filters .field{min-width:180px}.calendar-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.calendar-events>.schedule-empty{grid-column:1/-1}.calendar-note{margin-top:30px;padding:24px;border-radius:19px;background:#122a40;border:1px solid #31516a}.calendar-note p{color:#b7c9dc;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px){.calendar-feature{grid-template-columns:1fr;padding:25px}.calendar-events{grid-template-columns:1fr}}
@media(max-width:600px){.calendar-intro{padding:27px 20px}.calendar-toolbar{align-items:stretch;flex-direction:column}.calendar-filters .field{width:100%}.calendar-feature{margin-top:22px;padding:21px;border-radius:21px}.calendar-feature h2{font-size:32px}.calendar-actions .btn{flex:1;text-align:center;font-size:12px}.schedule-event{padding:13px;gap:12px}.schedule-date{flex-basis:52px}.schedule-event-main h3{font-size:15px}.schedule-empty{padding:23px 16px}.bottomnav a{min-width:0;padding-left:2px;padding-right:2px}.bottomnav a span{font-size:10px}}


/* OSHAC Analytics v0.1.0 — mobile density and consistent sizing */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
button,input,select{font:inherit}
.main,.shell{min-width:0}
.card,.metric,.listitem,.swimmer-card{min-width:0}
@media(max-width:720px){
  .main{padding-top:16px;padding-bottom:110px}
  .hero{padding:24px 20px 25px;min-height:0;border-radius:22px}
  .hero h1{font-size:clamp(31px,8.2vw,42px);line-height:1.08;letter-spacing:-1.35px}
  .hero p{font-size:13px;line-height:1.5;margin-top:12px;max-width:100%}
  .hero .eyebrow{font-size:10px;letter-spacing:1.35px}
  .heroactions{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}
  .heroactions .btn{font-size:12px;min-height:42px;padding:10px 12px;white-space:normal}
  .hero-art{opacity:.09;right:-70px;top:50%}
  .metrics{gap:10px}
  .metric{padding:13px 14px;min-height:94px;border-radius:16px}
  .metric .label{font-size:11px;line-height:1.3}
  .metric .value{font-size:clamp(26px,7vw,33px);line-height:1.1;margin:8px 0}
  .metric .sub{font-size:10px;line-height:1.4}
  .metric:after{transform:scale(.75);transform-origin:top right}
  .sectionhead{gap:8px;align-items:center}
  .sectionhead h2,.card h2{font-size:clamp(19px,5.2vw,23px);line-height:1.2}
  .card{border-radius:18px}
  .pagehead{margin-bottom:15px}
  .pagehead h1{font-size:clamp(31px,8vw,42px)}
  .field{width:100%;min-width:0;font-size:14px}
  .swimmer-card{padding:12px;min-height:72px;gap:10px}
  .swimmer-name{font-size:14px;overflow-wrap:anywhere}
  .swimmer-meta{font-size:11px}
  .listitem{padding:11px 12px}
  .chart-heading{gap:8px}
  .chart-toggle-btn{min-height:38px}
  .bottomnav{padding-bottom:max(4px,env(safe-area-inset-bottom))}
}
@media(max-width:380px){
  .hero h1{font-size:30px}
  .heroactions .btn{font-size:11px;padding:10px}
  .metric{padding:11px}
  .metric .value{font-size:25px}
}

/* v0.2.0 Swimmer Event Explorer */
@media(max-width:640px){.bottomnav{grid-template-columns:repeat(5,minmax(0,1fr))}.bottomnav a span{font-size:9px}.bottomnav a{min-width:0}}
#profileMetrics>.empty{grid-column:1/-1}
#profileEvent{border-color:#69cdbf;background:#153a4d}
#profileEvent:focus-visible{outline:3px solid #8bf4e3}
#profileHistory .tablewrap{max-width:100%}
#profileHistory table{font-variant-numeric:tabular-nums}


/* v0.2.0 — compact swimmer profile: preserve the current theme */
body[data-page="profile"] .main { padding-top: 16px; }
body[data-page="profile"] .main > div:first-child { margin-bottom: 10px !important; }
body[data-page="profile"] #profileHeader { padding: 16px 20px; }
body[data-page="profile"] #profileHeader .profilebanner .avatar { width: 48px; height: 48px; font-size: 18px; }
body[data-page="profile"] #profileHeader .profilebanner { gap: 12px; }
body[data-page="profile"] #profileHeader h1 { font-size: clamp(23px,3.3vw,32px) !important; }
body[data-page="profile"] .sectionhead { margin: 15px 0 8px; }
body[data-page="profile"] .sectionhead h2 { font-size: 21px; }
body[data-page="profile"] .controls:has(#profileEvent) { display:grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr); gap: 8px; margin-bottom: 12px; }
body[data-page="profile"] .controls:has(#profileEvent) .control { min-width: 0; width:100%; height: 42px; min-height:42px; padding: 7px 10px; font-size:13px; border-radius:10px; }
body[data-page="profile"] #profileMetrics { gap: 9px; margin-bottom: 12px; }
body[data-page="profile"] #profileMetrics .metric { min-height: 90px; padding: 12px 14px; }
body[data-page="profile"] #profileMetrics .metric .value { font-size: clamp(23px,2.6vw,31px); margin: 5px 0; }
body[data-page="profile"] #profileMetrics .metric .sub { margin-top: 4px; }
body[data-page="profile"] .twocol { gap: 12px; }
body[data-page="profile"] .twocol > .card { padding: 15px; }
body[data-page="profile"] .chart-heading { gap: 8px; margin-bottom: 5px; }
body[data-page="profile"] .chart-heading h2 { font-size: 20px; margin-bottom: 1px; }
body[data-page="profile"] .chart-toggle { padding: 3px; }
body[data-page="profile"] .chart-toggle-btn { min-height: 31px; padding: 5px 11px; font-size: 12px; }
body[data-page="profile"] #profileChart .chart { width:100%; max-height: 195px; }
body[data-page="profile"] #profileChart .chartlegend { margin-top: 0; font-size: 11px; }
@media(max-width:720px) {
 body[data-page="profile"] .main { padding-top: 10px; }
 body[data-page="profile"] #profileHeader { padding: 13px; border-radius: 16px; }
 body[data-page="profile"] .controls:has(#profileEvent) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
 body[data-page="profile"] #profileEvent { grid-column: 1 / -1; }
 body[data-page="profile"] .controls:has(#profileEvent) .control { height: 38px; min-height:38px; font-size:12px; padding: 6px 9px; }
 body[data-page="profile"] .sectionhead { margin: 13px 0 7px; }
 body[data-page="profile"] .sectionhead h2 { font-size: 19px; }
 body[data-page="profile"] #profileMetrics { gap: 8px; margin-bottom: 10px; }
 body[data-page="profile"] #profileMetrics .metric { min-height: 84px; padding: 11px; }
 body[data-page="profile"] #profileMetrics .metric .value { font-size: clamp(22px,5.5vw,29px); }
 body[data-page="profile"] #profileMetrics .metric .sub { font-size: 10px; line-height: 1.3; }
 body[data-page="profile"] .twocol > .card { padding: 12px; }
 body[data-page="profile"] .chart-heading { flex-direction: row; align-items:center; flex-wrap:wrap; }
 body[data-page="profile"] .chart-heading h2 { font-size: 19px; }
 body[data-page="profile"] .chart-toggle { width: auto; margin-left:auto; }
 body[data-page="profile"] .chart-toggle-btn { flex: initial; padding: 5px 9px; }
 body[data-page="profile"] #profileChart .chart { max-height: 180px; }
}
@media(max-width:380px) {
 body[data-page="profile"] .chart-heading { flex-direction:column; align-items:stretch; }
 body[data-page="profile"] .chart-toggle { width:100%; }
 body[data-page="profile"] .chart-toggle-btn { flex:1; }
}


/* v0.2.0 — compact swimmer meet explorer */
.swimmer-meets-section{scroll-margin-top:88px;margin-top:20px}
.compact-meets-card{padding:13px}
.swimmer-meet-list{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 2px 10px;scrollbar-width:thin}
.swimmer-meet-option{flex:0 0 190px;min-width:0;text-align:left;border:1px solid #365a73;background:#112b43;color:#f2f9ff;border-radius:10px;padding:10px 11px;min-height:58px}
.swimmer-meet-option.active{background:#164b59;border-color:#6be4d3}
.meet-option-name{display:block;font-weight:800;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meet-option-meta{display:block;color:#acc6d7;font-size:10px;margin-top:3px}
.swimmer-meet-results{margin-top:8px}
.meet-results-heading{display:flex;justify-content:space-between;gap:10px;padding:9px 3px 11px}
.meet-results-heading strong{display:block;font-size:14px}
.meet-results-heading small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.meet-results-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px}
.meet-mini-table{min-width:0;width:100%;table-layout:fixed}
.meet-mini-table th,.meet-mini-table td{padding:9px 10px;font-size:12px}
.meet-mini-table th:nth-child(1){width:53%}
.meet-mini-table th:nth-child(2){width:19%}
.meet-mini-table th:nth-child(3){width:28%;text-align:right}
.meet-mini-table td:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.meet-history-link{background:none;border:0;color:#a4e9f4;font-size:inherit;font-weight:700;padding:0;text-align:left;text-decoration:underline;text-decoration-color:#a4e9f455;text-underline-offset:3px}
.meet-history-link:hover{color:#75f1da}
@media(max-width:640px){.swimmer-meets-section{scroll-margin-top:70px;margin-top:14px}.compact-meets-card{padding:10px}.swimmer-meet-option{flex-basis:160px;padding:9px}.meet-mini-table th,.meet-mini-table td{padding:8px 7px;font-size:11px}}

/* v0.2.0 — single dropdown for swimmer meets; no horizontal carousel */
body[data-page="profile"] .swimmer-meet-select{width:100%;min-height:42px;height:42px;padding:7px 12px;font-size:13px;border-radius:10px;margin:6px 0 4px}
body[data-page="profile"] .swimmer-meets-section{margin-top:14px}
body[data-page="profile"] .compact-meets-card{padding:12px}
body[data-page="profile"] .swimmer-meet-results{margin-top:6px}
@media(max-width:640px){body[data-page="profile"] .swimmer-meet-select{height:38px;min-height:38px;font-size:12px}body[data-page="profile"] .meet-results-heading{padding:7px 2px}}

/* Historical meet record highlights — lifetime PB wins over season PB */
body[data-page="profile"] .meet-mini-table .meet-pb-lifetime{color:#f7c85a;font-weight:900;white-space:nowrap}
body[data-page="profile"] .meet-mini-table .meet-pb-season{color:#ff8fc4;font-weight:900;white-space:nowrap}

/* v0.2.0 — compact meet-result colour guide */
.meet-legend{display:flex;flex-wrap:wrap;align-items:center;gap:5px 15px;margin-top:12px;font-size:11px;line-height:1.45;color:var(--muted)}
.meet-legend-title{flex:0 0 100%;font-size:10px;font-weight:800;letter-spacing:.7px;color:var(--muted)}
.meet-legend .meet-pb-lifetime{color:#f2c45c}
.meet-legend .meet-pb-season{color:#ff8cba}
.meet-legend-regular{color:var(--text);font-weight:700}
@media(max-width:640px){.meet-legend{gap:4px 10px;font-size:10px;margin-top:10px}}

/* v0.2.0 — swimmer name + training group */
.profile-name{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:3px 0;font:800 clamp(24px,4vw,38px)/1.15 Outfit,sans-serif}
.profile-group{display:inline-flex;align-items:center;padding:4px 9px;border:1px solid #337f80;border-radius:7px;background:#174c51;color:#9af6e1;font:800 11px 'DM Sans',sans-serif;letter-spacing:.5px;white-space:nowrap}
@media(max-width:640px){.profile-name{gap:7px;font-size:clamp(23px,6vw,32px)}.profile-group{font-size:10px;padding:3px 7px}}

/* v0.2.0 — simplified Overview and three-tab navigation */
.home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 35px}
.home-shortcut{display:flex;align-items:center;gap:17px;min-width:0;padding:27px 25px;border:1px solid #38627b;border-radius:20px;background:linear-gradient(135deg,#173a54,#0e253d);transition:border-color .15s,transform .15s}
.home-shortcut:hover,.home-shortcut:focus-visible{border-color:#66ead3;transform:translateY(-2px)}
.home-shortcut-icon{display:grid;place-items:center;width:54px;height:54px;flex:none;border-radius:15px;background:#1a5361;color:#85f6e5;font-size:32px}
.home-shortcut-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.home-shortcut-copy strong{font:800 clamp(21px,3vw,30px) Outfit,sans-serif}.home-shortcut-copy small{font-size:12px;color:#b2c7d9;line-height:1.4}.home-shortcut-arrow{margin-left:auto;color:#9be9ed;font-size:25px}
@media(max-width:640px){.bottomnav{grid-template-columns:repeat(3,minmax(0,1fr))}.home-shortcuts{gap:10px;margin-top:14px}.home-shortcut{padding:18px 12px;gap:9px;flex-direction:column;text-align:center}.home-shortcut-icon{width:43px;height:43px;font-size:26px}.home-shortcut-copy strong{font-size:19px}.home-shortcut-copy small{font-size:11px}.home-shortcut-arrow{display:none}}

/* v0.2.0 — Meet → swimmer explorer */
body[data-page="meets"] .meet-explorer-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 20px}
body[data-page="meets"] .meet-explorer-controls label{display:block;font-size:11px;font-weight:800;color:var(--muted);margin-bottom:5px}
body[data-page="meets"] .meet-explorer-controls .field{height:43px;min-height:43px;padding:8px 11px;font-size:13px}
body[data-page="meets"] .meet-explorer-controls .field:disabled{opacity:.5;cursor:not-allowed}
body[data-page="meets"] .meet-results-card{padding:15px}
body[data-page="meets"] #meetSelectedSummary{font-size:15px;margin-bottom:10px}
body[data-page="meets"] #meetSelectedSummary:empty{display:none}
body[data-page="meets"] .meet-profile-link{display:inline-block;color:var(--teal);font-size:12px;font-weight:800;margin-top:5px}
body[data-page="meets"] .meet-results-scroll{overflow-x:auto}
body[data-page="meets"] .meet-mini-table{min-width:0;width:100%;table-layout:auto}
body[data-page="meets"] .meet-mini-table td,body[data-page="meets"] .meet-mini-table th{padding:10px 9px}
body[data-page="meets"] .meet-mini-table td:last-child,body[data-page="meets"] .meet-mini-table th:last-child{text-align:right;white-space:nowrap}
body[data-page="meets"] .meet-pb-lifetime{color:#f2c45c}
body[data-page="meets"] .meet-pb-season{color:#ff8cba}
@media(max-width:700px){body[data-page="meets"] .meet-explorer-controls{grid-template-columns:1fr 1fr;gap:9px}body[data-page="meets"] .meet-explorer-controls>div:nth-child(2){grid-column:1/-1;grid-row:2}body[data-page="meets"] .meet-explorer-controls>div:nth-child(3){grid-column:1/-1;grid-row:3}body[data-page="meets"] .meet-explorer-controls>div:first-child{grid-column:1/-1}body[data-page="meets"] .meet-mini-table td,body[data-page="meets"] .meet-mini-table th{padding:9px 6px;font-size:12px}}

/* v0.2.0 — Compact Meets view and export */
.meet-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.meet-export-btn{min-height:36px;padding:7px 12px;font-size:12px;border-color:#4a958f;background:#164d53;color:#a9fff0}
.meet-export-btn[hidden]{display:none!important}
.meet-explorer-controls{gap:10px!important;margin-bottom:13px!important}
.meet-explorer-controls label{display:block;margin-bottom:4px!important;font-size:12px!important;line-height:1.3}
.meet-explorer-controls .field{height:43px!important;min-height:43px!important;padding:8px 12px!important;font-size:14px!important;border-radius:11px!important}
.meet-results-heading-bar{margin:14px 0 9px!important}
.meet-results-card{padding:15px!important}
.meet-results-card #meetSelectedSummary{margin-bottom:12px!important}
.meet-results-card #meetSelectedSummary strong{font-size:18px!important}
.meet-results-card .meet-mini-table{min-width:0!important;width:100%;table-layout:fixed}
.meet-results-card .meet-mini-table th,.meet-results-card .meet-mini-table td{padding:10px 10px!important;font-size:13px!important;line-height:1.3!important;overflow-wrap:anywhere}
.meet-results-card .meet-mini-table th{font-size:10px!important}
.meet-results-card .meet-mini-table th:first-child{width:54%}
.meet-results-card .meet-mini-table th:nth-child(2){width:15%}
.meet-results-card .meet-mini-table th:last-child{width:31%;text-align:right}
.meet-results-card .meet-mini-table td:last-child{text-align:right;white-space:nowrap}
.meet-results-card .meet-results-scroll{overflow-x:visible!important}
.meet-results-card .meet-legend{margin-top:10px!important;gap:5px 12px!important;font-size:11px!important}
@media(max-width:640px){
 .meet-explorer-controls{gap:7px!important}
 .meet-explorer-controls .field{height:38px!important;min-height:38px!important;padding:6px 10px!important;font-size:12px!important}
 .meet-explorer-controls label{font-size:11px!important;margin-bottom:3px!important}
 .meet-results-card{padding:10px!important;border-radius:16px!important}
 .meet-results-card .meet-mini-table th,.meet-results-card .meet-mini-table td{padding:9px 6px!important;font-size:11px!important}
 .meet-results-card .meet-mini-table th{font-size:9px!important;letter-spacing:0!important}
 .meet-results-card .meet-mini-table th:first-child{width:53%}
 .meet-results-card .meet-mini-table th:nth-child(2){width:14%}
 .meet-results-card .meet-mini-table th:last-child{width:33%}
 .meet-results-card .meet-mini-table td:last-child{font-size:12px!important}
 .meet-results-heading-bar h2{font-size:21px!important}
 .meet-heading-actions{gap:7px}
 .meet-export-btn{min-height:34px;padding:6px 9px;font-size:11px}
 .meet-results-card #meetSelectedSummary strong{font-size:16px!important}
}

/* v0.2.0 — compact, grouped, clickable meet swimmer directory */
.meet-swimmer-list{display:grid;gap:10px;margin-top:3px}
.meet-swimmer-group{min-width:0}
.meet-swimmer-group-label{display:flex;align-items:center;gap:7px;color:#9feadd;font-size:11px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;margin:0 0 6px}
.meet-swimmer-group-label span{color:#a6bed0;font-size:10px}
.meet-swimmer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.meet-swimmer-choice{min-width:0;min-height:38px;text-align:left;padding:7px 11px;border:1px solid #35556d;border-radius:9px;background:#142b43;color:#f3f9ff;font-size:12px;font-weight:700;line-height:1.25;overflow-wrap:anywhere;transition:background .12s,border-color .12s}
.meet-swimmer-choice:hover{background:#1b4258;border-color:#65b5b8}
.meet-swimmer-choice.active{background:#16505b;border-color:#6ce4d2;color:#c7fff4;box-shadow:inset 0 0 0 1px #6ce4d2}
.meet-swimmer-choice:focus-visible{outline:2px solid #6ce4d2;outline-offset:2px}
.meet-swimmer-placeholder{font-size:12px;color:#a6bed0;padding:10px 0}
@media(max-width:800px){.meet-swimmer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.meet-swimmer-choice{font-size:11px;min-height:36px;padding:7px 8px}.meet-swimmer-grid{gap:5px}}

/* v0.2.0 — focused swimmer selection on Meets */
.meet-swimmer-focused{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;padding:7px 9px;border:1px solid #6ce4d2;border-radius:10px;background:#143a4b}
.meet-swimmer-selected{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.meet-swimmer-selected-name{font-size:13px;font-weight:800;color:#f3f9ff;overflow-wrap:anywhere}
.meet-swimmer-clear{flex:0 0 auto;min-height:34px;padding:6px 11px;border:1px solid #52768c;border-radius:8px;background:#0b2237;color:#baf9ed;font-size:12px;font-weight:800}
.meet-swimmer-clear:hover{background:#1d4558;border-color:#6ce4d2}
.meet-swimmer-clear:focus-visible{outline:2px solid #6ce4d2;outline-offset:2px}
@media(max-width:420px){.meet-swimmer-focused{padding:6px 8px}.meet-swimmer-selected-name{font-size:12px}.meet-swimmer-clear{font-size:11px;padding:5px 9px}}

/* v0.1.0 — colourful grouped event picker */
.stroke-picker{position:relative;flex:1 1 100%;width:100%;min-width:0;z-index:12}
.stroke-picker-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.stroke-picker-trigger{width:100%;min-height:42px;padding:9px 15px;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;color:#f4fbff;background:#153b4f;border:1px solid #65e3d3;border-radius:12px;font-size:14px;font-weight:700}
.stroke-picker-trigger[data-stroke="free"]{border-color:#66ead3;color:#8bf7e5}
.stroke-picker-trigger[data-stroke="back"]{border-color:#80c7ff;color:#b1ddff}
.stroke-picker-trigger[data-stroke="breast"]{border-color:#ffb66e;color:#ffcc99}
.stroke-picker-trigger[data-stroke="fly"]{border-color:#d1a5ff;color:#e3c8ff}
.stroke-picker-trigger[data-stroke="im"]{border-color:#ff8fba;color:#ffc1d9}
.stroke-picker-chevron{font-size:22px;line-height:1;color:#b4d6e7}
.stroke-picker-menu{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:80;max-height:min(55vh,410px);overflow-y:auto;overscroll-behavior:contain;padding:7px;background:#10243a;border:1px solid #3e6680;border-radius:14px;box-shadow:0 18px 45px #0009}
.stroke-picker-menu[hidden]{display:none}
.stroke-picker-section{--stroke:#66ead3;margin:3px 0 7px;border-left:3px solid var(--stroke);background:#ffffff05;border-radius:7px;overflow:hidden}
.stroke-picker-section.stroke-back{--stroke:#80c7ff}
.stroke-picker-section.stroke-breast{--stroke:#ffb66e}
.stroke-picker-section.stroke-fly{--stroke:#d1a5ff}
.stroke-picker-section.stroke-im{--stroke:#ff8fba}
.stroke-picker-heading{position:sticky;top:0;background:#1a344b;padding:8px 12px;color:var(--stroke);font-size:11px;font-weight:900;letter-spacing:1px;text-transform:uppercase}
.stroke-picker-option{display:block;width:100%;border:0;background:transparent;color:#ecf6ff;text-align:left;padding:9px 13px;font-size:13px;min-height:38px;border-radius:5px}
.stroke-picker-option:hover,.stroke-picker-option:focus-visible{background:#27455f;outline:1px solid var(--stroke);outline-offset:-1px}
.stroke-picker-option[aria-pressed="true"]{background:#234a57;color:var(--stroke);font-weight:800}
@media(max-width:640px){.stroke-picker-menu{max-height:48vh}.stroke-picker-option{min-height:40px}.stroke-picker-trigger{min-height:40px}}

/* v0.1.0 — event picker sizing fix: dropdown overlays, never splits metric grid */
body[data-page="profile"] .controls:has(.stroke-picker) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  position:relative;
  z-index:30;
  overflow:visible;
  margin-bottom:12px;
}
body[data-page="profile"] .controls:has(.stroke-picker) > .stroke-picker {
  grid-column:1 / -1;
  grid-row:1;
  width:100%;
  min-width:0;
  position:relative;
  z-index:31;
}
body[data-page="profile"] .controls:has(.stroke-picker) > #profileCourse,
body[data-page="profile"] .controls:has(.stroke-picker) > #profileSeason {
  width:100%;min-width:0;max-width:100%;margin:0;
  height:40px;min-height:40px;
}
body[data-page="profile"] .stroke-picker-trigger {
  height:42px;min-height:42px;width:100%;
  padding:8px 13px;
}
body[data-page="profile"] .stroke-picker-menu {
  position:absolute;
  top:calc(100% + 5px);
  left:0;right:0;
  width:100%;
  max-height:min(310px,42dvh);
  overflow-y:auto;
  overscroll-behavior:contain;
  z-index:200;
  box-shadow:0 16px 40px rgba(0,0,0,.65);
}
body[data-page="profile"] #profileMetrics {
  position:relative;
  z-index:1;
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:100%;
}
body[data-page="profile"] .twocol {position:relative;z-index:1}
@media(max-width:640px) {
  body[data-page="profile"] .controls:has(.stroke-picker) {gap:7px;margin-bottom:10px}
  body[data-page="profile"] .stroke-picker-trigger {height:39px;min-height:39px;font-size:13px;padding:7px 11px}
  body[data-page="profile"] .controls:has(.stroke-picker) > #profileCourse,
  body[data-page="profile"] .controls:has(.stroke-picker) > #profileSeason {height:38px;min-height:38px;font-size:12px;padding:6px 8px}
  body[data-page="profile"] .stroke-picker-menu {max-height:min(280px,40dvh);padding:5px}
  body[data-page="profile"] .stroke-picker-heading {padding:6px 10px;font-size:10px}
  body[data-page="profile"] .stroke-picker-option {padding:7px 10px;min-height:35px;font-size:12px}
}


/* v0.1.0 — stroke-responsive swimmer profile accents.
   Scoped to profile only; gold/pink meet PB indicators are intentionally unchanged. */
body[data-page="profile"] {
  --stroke-accent: #66ead3;
  --stroke-rgb: 102,234,211;
  --stroke-ink: #072438;
}
body[data-page="profile"][data-profile-stroke="back"] {
  --stroke-accent: #80c7ff;
  --stroke-rgb: 128,199,255;
}
body[data-page="profile"][data-profile-stroke="breast"] {
  --stroke-accent: #ffb66e;
  --stroke-rgb: 255,182,110;
}
body[data-page="profile"][data-profile-stroke="fly"] {
  --stroke-accent: #d1a5ff;
  --stroke-rgb: 209,165,255;
}
body[data-page="profile"][data-profile-stroke="im"] {
  --stroke-accent: #ff8fba;
  --stroke-rgb: 255,143,186;
}
body[data-page="profile"] #profileHeader {
  border-color: rgba(var(--stroke-rgb), .43);
  background: linear-gradient(125deg, rgba(var(--stroke-rgb), .12), #10243b 70%);
}
body[data-page="profile"] #profileHeader .eyebrow { color: var(--stroke-accent); }
body[data-page="profile"] #profileHeader .avatar {
  background: rgba(var(--stroke-rgb), .18);
  color: var(--stroke-accent);
}
body[data-page="profile"] .stroke-picker-trigger {
  border-color: var(--stroke-accent);
  background: linear-gradient(110deg, rgba(var(--stroke-rgb), .15), #142c45);
  color: var(--stroke-accent);
}
body[data-page="profile"] .stroke-picker-trigger:focus-visible,
body[data-page="profile"] #profileCourse:focus-visible,
body[data-page="profile"] #profileSeason:focus-visible {
  outline-color: var(--stroke-accent);
}
body[data-page="profile"] #profileMetrics .metric {
  border-color: rgba(var(--stroke-rgb), .38);
  background: linear-gradient(145deg, rgba(var(--stroke-rgb), .105), #10243b 78%);
}
body[data-page="profile"] #profileMetrics .metric::after {
  border-color: rgba(var(--stroke-rgb), .085);
}
body[data-page="profile"] #profileMetrics .metric .sub,
body[data-page="profile"] #profileSeasonDetails .accent {
  color: var(--stroke-accent);
}
body[data-page="profile"] .twocol > .card {
  border-color: rgba(var(--stroke-rgb), .32);
}
body[data-page="profile"] .chart-toggle-btn.active {
  background: var(--stroke-accent);
  color: var(--stroke-ink);
}
body[data-page="profile"] #profileChart .chartline { stroke: var(--stroke-accent); }
body[data-page="profile"] #profileChart .chartdot {
  fill: var(--stroke-accent);
  stroke: #10243b;
}
body[data-page="profile"] #profileChart .dot { background: var(--stroke-accent); }
@media (prefers-reduced-motion: no-preference) {
  body[data-page="profile"] #profileHeader,
  body[data-page="profile"] #profileMetrics .metric,
  body[data-page="profile"] .stroke-picker-trigger,
  body[data-page="profile"] .chart-toggle-btn.active {
    transition: border-color .18s, background .18s, color .18s;
  }
}

/* v0.1.0 — readable, date-proportional race progression */
body[data-page="profile"] .race-chart-wrap{width:100%;min-width:0}
body[data-page="profile"] .race-chart{display:block;width:100%;height:auto;max-height:none!important;overflow:visible}
body[data-page="profile"] .race-chart .chartline{stroke:var(--stroke-accent,var(--teal));stroke-width:3}
body[data-page="profile"] .race-chart .chartdot{fill:var(--stroke-accent,var(--teal));stroke:#0e253d;stroke-width:2;cursor:pointer}
body[data-page="profile"] .race-chart .chartdot:focus-visible{outline:none;stroke:#fff;stroke-width:4}
body[data-page="profile"] .chart-axis-title{fill:#a6bed0;font:11px 'DM Sans',sans-serif}
body[data-page="profile"] .axis-mobile{display:none}
body[data-page="profile"] .race-chart-detail{min-height:22px;margin-top:2px;text-align:center;color:#b9d1df;font-size:11px}
@media(max-width:640px){
 body[data-page="profile"] .axis-desktop{display:none}
 body[data-page="profile"] .axis-mobile{display:block}
 body[data-page="profile"] .race-chart .charttext{font-size:12px}
 body[data-page="profile"] .race-chart-detail{font-size:10px}
}

/* v0.1.0 final graph and metric density polish */
body[data-page="profile"] #profileMetrics {gap:7px;margin-bottom:9px;}
body[data-page="profile"] #profileMetrics .metric {min-height:0;padding:11px 13px;}
body[data-page="profile"] #profileMetrics .metric .label {line-height:1.2;}
body[data-page="profile"] #profileMetrics .metric .value {margin:4px 0 3px;line-height:1.1;}
body[data-page="profile"] #profileMetrics .metric .sub {margin-top:3px;line-height:1.35;overflow-wrap:break-word;}
body[data-page="profile"] .race-chart {max-height:none!important;}
body[data-page="profile"] .race-chart .axis-mobile {display:none;}
body[data-page="profile"] .race-chart .axis-desktop {display:inline;}
body[data-page="profile"] .race-chart .race-chart-point {cursor:pointer;}
body[data-page="profile"] .race-chart .race-chart-point:focus-visible .chartdot {stroke:#fff;stroke-width:4;}
body[data-page="profile"] .race-chart-detail {margin-top:0;min-height:18px;}
@media(max-width:640px) {
  body[data-page="profile"] #profileMetrics .metric {padding:9px 10px;}
  body[data-page="profile"] #profileMetrics .metric .value {font-size:clamp(21px,5.5vw,27px);}
  body[data-page="profile"] #profileMetrics .metric .sub {font-size:10px;}
  body[data-page="profile"] .race-chart .axis-desktop {display:none;}
  body[data-page="profile"] .race-chart .axis-mobile {display:inline;}
  body[data-page="profile"] .race-chart .charttext {font-size:12px;}
  body[data-page="profile"] .race-chart-detail {font-size:10px;}
}

/* v0.1.0 — focused, collapsible race progression */
body[data-page="profile"] #profileMetrics[hidden],
body[data-page="profile"] .twocol[hidden],
body[data-page="profile"] .twocol > .card[hidden],
body[data-page="profile"] .profile-graph-open[hidden] { display:none !important; }
body[data-page="profile"] .profile-graph-open {
  display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;
  margin:0 0 12px;padding:9px 15px;border:1px solid var(--stroke-accent,#66ead3);
  border-radius:12px;background:rgba(var(--stroke-rgb,102,234,211),.12);
  color:var(--stroke-accent,#66ead3);font-size:13px;font-weight:800;
}
body[data-page="profile"] .profile-graph-close {
  border:1px solid #45647c;border-radius:9px;padding:6px 10px;
  background:#0b2237;color:#d5e7f3;font-size:12px;font-weight:800;
}
body[data-page="profile"] .profile-graph-expanded {grid-template-columns:minmax(0,1fr);width:100%;}
body[data-page="profile"] .profile-graph-expanded > .card {width:100%;min-width:0;}
body[data-page="profile"] .profile-graph-expanded .race-chart {max-height:none!important;}
@media(max-width:640px){
 body[data-page="profile"] .profile-graph-expanded > .card{padding:13px;}
 body[data-page="profile"] .profile-graph-close{font-size:11px;padding:5px 8px;}
 body[data-page="profile"] .profile-graph-expanded .chart-heading{gap:8px;}
}

/* v0.1.0 — immersive graph focus: hide secondary controls and Meets */
body[data-page="profile"] #profileCourse[hidden],
body[data-page="profile"] #profileSeason[hidden],
body[data-page="profile"] #swimmerMeets[hidden],
body[data-page="profile"] .swimmer-meets-section[hidden] {display:none!important;}
body[data-page="profile"] .profile-graph-expanded .race-chart {width:100%;height:auto;max-height:none!important;}
body[data-page="profile"] .profile-graph-expanded > .card {padding:18px 20px;}
body[data-page="profile"] .profile-graph-expanded .chart-heading {margin-bottom:14px;}
body[data-page="profile"] .profile-graph-expanded .race-chart-detail {min-height:24px;font-size:12px;}
@media(max-width:640px){
 body[data-page="profile"] .profile-graph-expanded > .card {padding:12px 10px;}
 body[data-page="profile"] .profile-graph-expanded .race-chart {width:100%;max-height:none!important;}
 body[data-page="profile"] .profile-graph-expanded .chart-heading {margin-bottom:10px;}
 body[data-page="profile"] .profile-graph-expanded .race-chart-detail {font-size:11px;}
}

/* v0.1.0 — immersive, viewport-height race chart */
body[data-page="profile"] .profile-graph-expanded {align-items:stretch;}
body[data-page="profile"] .profile-graph-expanded > .card {padding:15px 16px;}
body[data-page="profile"] .profile-graph-expanded .race-chart-wrap {width:100%;}
body[data-page="profile"] .profile-graph-expanded .race-chart {
  display:block;width:100%;height:auto;max-height:none!important;
}
body[data-page="profile"] .profile-graph-expanded .chart-heading {margin-bottom:5px;}
body[data-page="profile"] .profile-graph-expanded .chartlegend {margin-top:5px;}
body[data-page="profile"] .profile-graph-expanded .race-chart-detail {margin-top:3px;}
@media(max-width:640px) {
  body[data-page="profile"] .profile-graph-expanded > .card {padding:12px 9px;}
  body[data-page="profile"] .profile-graph-expanded .chart-heading {gap:6px;}
  body[data-page="profile"] .profile-graph-expanded .race-chart .charttext {font-size:11px;}
  body[data-page="profile"] .profile-graph-expanded .race-chart .chart-axis-title {font-size:10px;}
}

/* v0.1.0 — point-attached race data bubbles; no redundant chart captions */
body[data-page="profile"] .race-chart-wrap{position:relative;isolation:isolate}
body[data-page="profile"] .race-point-bubble{
  position:absolute;z-index:5;transform:translate(-50%,-100%);
  width:max-content;max-width:min(235px,82%);padding:10px 13px;
  border:1px solid var(--stroke-accent,#66ead3);border-radius:12px;
  background:#091e31f5;box-shadow:0 12px 30px #0009;
  color:#f3f9ff;text-align:center;pointer-events:none;
  overflow-wrap:anywhere;
}
body[data-page="profile"] .race-point-bubble[hidden]{display:none!important}
body[data-page="profile"] .race-point-bubble[data-position="below"]{transform:translate(-50%,0)}
body[data-page="profile"] .race-point-bubble strong{display:block;color:var(--stroke-accent,#66ead3);font:800 22px/1.1 Outfit,sans-serif}
body[data-page="profile"] .race-point-bubble span{display:block;margin-top:4px;color:#d9e9f4;font-size:12px;font-weight:700}
body[data-page="profile"] .race-point-bubble small{display:block;margin-top:3px;color:#a9c3d5;font-size:11px;line-height:1.3}
body[data-page="profile"] .race-chart-point.is-selected .chartdot{stroke:#fff;stroke-width:3.5;r:6}
body[data-page="profile"] .race-chart-hit{cursor:pointer}
@media(max-width:640px){body[data-page="profile"] .race-point-bubble{padding:8px 10px;max-width:min(210px,85%)}body[data-page="profile"] .race-point-bubble strong{font-size:19px}}


/* OSHAC v0.1.0 — Brand-led homepage hero; scoped to Overview only */
body[data-page="index"] .home-brand-hero {
  position:relative; isolation:isolate; overflow:hidden;
  display:block; min-height:0; padding:clamp(24px,4vw,48px);
  border-radius:26px; border:1px solid #418c96;
  background:linear-gradient(118deg,#102b47 0%,#12465e 55%,#08777a 110%);
  box-shadow:0 18px 55px #00000026;
}
body[data-page="index"] .home-brand-hero::before,
body[data-page="index"] .home-brand-hero::after {content:none}
body[data-page="index"] .home-hero-glow {
  position:absolute; width:420px; height:420px; right:-140px; top:-190px;
  border:1px solid #9bfff526; border-radius:50%; pointer-events:none;
  box-shadow:0 0 0 60px #9bfff509,0 0 0 120px #9bfff505;
}
body[data-page="index"] .home-hero-layout {
  position:relative; z-index:1; display:grid;
  grid-template-columns:minmax(190px,.7fr) minmax(0,1.3fr);
  align-items:center; gap:clamp(22px,4vw,58px);
}
body[data-page="index"] .home-hero-emblem {display:grid;place-items:center;min-width:0}
body[data-page="index"] .home-hero-logo-ring {
  width:clamp(180px,23vw,275px); aspect-ratio:1;
  display:grid;place-items:center; border-radius:50%;
  background:radial-gradient(circle,#e5ffff1d 0%,#a6fff508 66%,transparent 70%);
  border:1px solid #b7fff247;
  box-shadow:0 0 0 11px #b7fff10a,0 0 0 23px #b7fff106;
}
body[data-page="index"] .home-hero-logo {
  display:block;width:84%;height:84%;object-fit:contain;
  border-radius:50%; background:#fff; padding:5px;
  filter:drop-shadow(0 12px 18px #03172955);
}
body[data-page="index"] .home-hero-kicker {
  display:flex;align-items:center;gap:9px;color:#a4fff0;
  font-size:clamp(10px,1.3vw,13px);font-weight:900;letter-spacing:2px;
}
body[data-page="index"] .home-hero-spark {width:8px;height:8px;border-radius:50%;background:#8df7e3;box-shadow:0 0 0 5px #8df7e322}
body[data-page="index"] .home-hero-content h1 {
  font:900 clamp(34px,5.1vw,68px)/1.06 Outfit,sans-serif;
  letter-spacing:-1.9px;margin:16px 0 13px;
}
body[data-page="index"] .home-hero-content h1 .accent {color:#93f6e3}
body[data-page="index"] .home-hero-content p {max-width:400px;color:#c1d8e7;font-size:clamp(13px,1.4vw,16px);line-height:1.55;margin:0}
body[data-page="index"] .home-hero-footnote {
  display:flex;align-items:center;gap:8px;margin-top:25px;
  color:#9ee8e0;font-size:10px;font-weight:900;letter-spacing:1.8px;
}
body[data-page="index"] .home-hero-footnote span {font-size:25px;line-height:1}
@media(max-width:700px) {
  body[data-page="index"] .home-brand-hero {padding:27px 20px 25px;border-radius:22px}
  body[data-page="index"] .home-hero-layout {grid-template-columns:1fr;gap:20px;text-align:center}
  body[data-page="index"] .home-hero-logo-ring {width:clamp(145px,42vw,215px)}
  body[data-page="index"] .home-hero-kicker,body[data-page="index"] .home-hero-footnote {justify-content:center}
  body[data-page="index"] .home-hero-content h1 {font-size:clamp(34px,8.2vw,50px);letter-spacing:-1.5px;margin:11px 0}
  body[data-page="index"] .home-hero-content p {margin:0 auto;font-size:13px}
  body[data-page="index"] .home-hero-footnote {margin-top:17px;font-size:9px}
}
@media(max-width:390px) {
  body[data-page="index"] .home-brand-hero {padding:23px 16px}
  body[data-page="index"] .home-hero-logo-ring {width:145px}
  body[data-page="index"] .home-hero-content h1 {font-size:33px}
}

/* OSHAC v0.1.0 — compact AG-grouped swimmer directory */
body[data-page="swimmers"] .swimmer-grid{display:flex;flex-direction:column;gap:13px}
body[data-page="swimmers"] .directory-group{--group-accent:#91c9da;--group-rgb:145,201,218;min-width:0;border:1px solid rgba(var(--group-rgb),.43);border-radius:15px;background:linear-gradient(130deg,rgba(var(--group-rgb),.075),#0e2137 80%);overflow:hidden}
body[data-page="swimmers"] .directory-ag1{--group-accent:#ff8fba;--group-rgb:255,143,186}
body[data-page="swimmers"] .directory-ag2{--group-accent:#c6a1ff;--group-rgb:198,161,255}
body[data-page="swimmers"] .directory-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:rgba(var(--group-rgb),.13);border-bottom:1px solid rgba(var(--group-rgb),.25)}
body[data-page="swimmers"] .directory-group-name{font:900 13px Outfit,'DM Sans',sans-serif;letter-spacing:1.2px;color:var(--group-accent)}
body[data-page="swimmers"] .directory-group-count{font-size:11px;color:#b7cadb}
body[data-page="swimmers"] .directory-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-page="swimmers"] .directory-row{display:flex;align-items:center;gap:10px;min-width:0;min-height:47px;padding:9px 13px;border-bottom:1px solid #ffffff12;transition:background .15s}
body[data-page="swimmers"] .directory-row:nth-child(odd){border-right:1px solid #ffffff12}
body[data-page="swimmers"] .directory-row:hover,body[data-page="swimmers"] .directory-row:focus-visible{background:rgba(var(--group-rgb),.13)}
body[data-page="swimmers"] .directory-swimmer-name{font-size:13px;font-weight:750;color:#f2f8ff;min-width:0;flex:1;overflow-wrap:anywhere}
body[data-page="swimmers"] .directory-event-count{font-size:10px;color:#a8bed0;white-space:nowrap}
body[data-page="swimmers"] .directory-arrow{color:var(--group-accent);font-size:20px;line-height:1}
body[data-page="swimmers"] .controls [hidden]{display:none!important}
@media(max-width:640px){
 body[data-page="swimmers"] .directory-rows{grid-template-columns:1fr}
 body[data-page="swimmers"] .directory-row{min-height:40px;padding:7px 12px}
 body[data-page="swimmers"] .directory-row:nth-child(odd){border-right:0}
 body[data-page="swimmers"] .directory-group-heading{padding:8px 12px}
 body[data-page="swimmers"] .directory-swimmer-name{font-size:12px}
 body[data-page="swimmers"] .directory-event-count{font-size:10px}
}

/* OSHAC v0.1.0 — tap-to-expand AG swimmer sections */
body[data-page="swimmers"] .directory-group-heading{cursor:pointer;list-style:none;border-bottom:0;min-height:46px;user-select:none}
body[data-page="swimmers"] .directory-group-heading::-webkit-details-marker{display:none}
body[data-page="swimmers"] .directory-group-heading::marker{content:""}
body[data-page="swimmers"] .directory-group[open] .directory-group-heading{border-bottom:1px solid rgba(var(--group-rgb),.25)}
body[data-page="swimmers"] .directory-group-heading-right{display:flex;align-items:center;gap:13px}
body[data-page="swimmers"] .directory-group-chevron{display:inline-block;font-size:22px;line-height:1;color:var(--group-accent);transition:transform .18s}
body[data-page="swimmers"] .directory-group[open] .directory-group-chevron{transform:rotate(180deg)}
body[data-page="swimmers"] .directory-group-heading:hover{background:rgba(var(--group-rgb),.22)}
body[data-page="swimmers"] .directory-group-heading:focus-visible{outline:2px solid var(--group-accent);outline-offset:-3px}
@media(max-width:640px){body[data-page="swimmers"] .directory-group-heading{min-height:43px}}

/* v0.1.0 — high-density collapsible AG directory, phone first */
body[data-page="swimmers"] .swimmer-grid{gap:8px}
body[data-page="swimmers"] .directory-group{border-radius:12px}
body[data-page="swimmers"] .directory-group-heading{min-height:38px;padding:6px 11px}
body[data-page="swimmers"] .directory-group-heading-right{gap:8px}
body[data-page="swimmers"] .directory-group-chevron{font-size:18px}
body[data-page="swimmers"] .directory-rows{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-page="swimmers"] .directory-row{min-height:34px;padding:5px 9px;gap:5px;border-right:1px solid #ffffff12}
body[data-page="swimmers"] .directory-swimmer-name{font-size:12px;line-height:1.2}
body[data-page="swimmers"] .directory-event-count{font-size:9px}
body[data-page="swimmers"] .directory-arrow{font-size:16px}
@media(max-width:900px){
 body[data-page="swimmers"] .directory-rows{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 body[data-page="swimmers"] .pagehead{padding-top:0;margin-bottom:10px;padding-bottom:5px}
 body[data-page="swimmers"] .pagehead h1{margin:3px 0 6px;font-size:30px}
 body[data-page="swimmers"] .controls{gap:6px;margin-bottom:9px}
 body[data-page="swimmers"] .controls .field{min-height:36px;height:36px;padding:6px 10px;font-size:12px}
 body[data-page="swimmers"] .sectionhead{margin:10px 0 7px}
 body[data-page="swimmers"] .directory-rows{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-page="swimmers"] .directory-row{min-height:33px;padding:5px 8px;border-right:1px solid #ffffff12}
 body[data-page="swimmers"] .directory-swimmer-name{font-size:11px;line-height:1.2}
 body[data-page="swimmers"] .directory-event-count{display:none}
 body[data-page="swimmers"] .directory-arrow{font-size:15px}
 body[data-page="swimmers"] .directory-group-heading{min-height:37px;padding:6px 10px}
 body[data-page="swimmers"] .directory-group-name{font-size:12px}
 body[data-page="swimmers"] .directory-group-count{font-size:10px}
}
@media(max-width:340px){
 body[data-page="swimmers"] .directory-rows{grid-template-columns:1fr}
 body[data-page="swimmers"] .directory-row{border-right:0}
 body[data-page="swimmers"] .directory-event-count{display:inline}
}


/* OSHAC v0.1.0 — final mobile space polish (Overview, Swimmers, Meets only).
   Profile and all Supabase-driven behavior remain untouched. */
body[data-page="index"],body[data-page="swimmers"],body[data-page="meets"]{
  min-height:100dvh;display:flex;flex-direction:column;
}
body:is([data-page="index"],[data-page="swimmers"],[data-page="meets"]) > .main{
  flex:1 0 auto;width:100%;
}
body:is([data-page="index"],[data-page="swimmers"],[data-page="meets"]) > .foot{
  flex:0 0 auto;
}
/* Overview: scale the entire logo without clipping and avoid an oversized hero. */
body[data-page="index"] .home-brand-hero{margin-bottom:12px;}
body[data-page="index"] .home-hero-logo-ring{overflow:visible;}
body[data-page="index"] .home-hero-logo{width:88%;height:88%;object-fit:contain;}
body[data-page="index"] .home-shortcuts{margin:12px 0 14px;}
body[data-page="index"] .home-shortcut{min-height:116px;}
/* Directory: give the groups priority over redundant headings and gaps. */
body[data-page="swimmers"] .pagehead{margin-bottom:12px;}
body[data-page="swimmers"] .controls{margin-bottom:9px;}
body[data-page="swimmers"] .sectionhead{margin:10px 0 8px;}
body[data-page="swimmers"] .swimmer-grid{gap:9px;}
/* Meet: controls stay compact and selected results are the main content. */
body[data-page="meets"] .pagehead{margin-bottom:11px;}
body[data-page="meets"] .meet-explorer-controls{margin:0 0 9px!important;gap:8px!important;}
body[data-page="meets"] .meet-results-heading-bar{margin:10px 0 7px!important;}
body[data-page="meets"] .meet-results-card{padding:12px!important;}
body[data-page="meets"] .meet-results-card #meetSelectedSummary{margin-bottom:8px!important;}
body[data-page="meets"] .meet-results-card .meet-mini-table td,
body[data-page="meets"] .meet-results-card .meet-mini-table th{padding-top:8px!important;padding-bottom:8px!important;}
body[data-page="meets"] .meet-results-card .meet-legend{margin-top:8px!important;}
@media(max-width:700px){
  body:is([data-page="index"],[data-page="swimmers"],[data-page="meets"]) .main{padding-top:11px;padding-bottom:calc(88px + env(safe-area-inset-bottom));}
  /* The fixed bottom navigation is the mobile footer. */
  body:is([data-page="index"],[data-page="swimmers"],[data-page="meets"]) > .foot{display:none;}
  body[data-page="index"] .home-brand-hero{padding:19px 16px 18px;border-radius:20px;}
  body[data-page="index"] .home-hero-layout{gap:11px;}
  body[data-page="index"] .home-hero-logo-ring{width:clamp(118px,31vw,168px);}
  body[data-page="index"] .home-hero-content h1{font-size:clamp(30px,7.2vw,42px);line-height:1.02;margin:7px 0 8px;}
  body[data-page="index"] .home-hero-content p{font-size:12px;line-height:1.4;}
  body[data-page="index"] .home-hero-kicker{font-size:9px;letter-spacing:1.5px;}
  body[data-page="index"] .home-hero-footnote{margin-top:9px;font-size:8px;}
  body[data-page="index"] .home-shortcuts{gap:9px;margin:10px 0 0;}
  body[data-page="index"] .home-shortcut{min-height:122px;padding:12px 9px;gap:7px;border-radius:15px;}
  body[data-page="index"] .home-shortcut-icon{width:35px;height:35px;font-size:22px;}
  body[data-page="index"] .home-shortcut-copy strong{font-size:18px;}
  body[data-page="index"] .home-shortcut-copy small{font-size:10px;line-height:1.3;}
  body[data-page="swimmers"] .pagehead{margin-bottom:8px;padding:0 0 5px;}
  body[data-page="swimmers"] .pagehead h1{font-size:29px;margin:2px 0 3px;}
  body[data-page="swimmers"] .controls{gap:6px;margin-bottom:7px;}
  body[data-page="swimmers"] .controls .field{min-height:36px;height:36px;padding:6px 10px;font-size:12px;}
  body[data-page="swimmers"] .sectionhead{margin:8px 0 6px;}
  body[data-page="swimmers"] .sectionhead h2{font-size:19px;}
  body[data-page="swimmers"] .directory-group-heading{min-height:39px;padding:7px 11px;}
  body[data-page="swimmers"] .directory-row{min-height:36px;padding:6px 8px;}
  body[data-page="meets"] .pagehead{padding:0 0 5px;margin-bottom:8px;}
  body[data-page="meets"] .pagehead h1{font-size:29px;margin:2px 0 3px;}
  body[data-page="meets"] .meet-explorer-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px!important;margin-bottom:7px!important;}
  body[data-page="meets"] .meet-explorer-controls>div:first-child{grid-column:1;grid-row:1;}
  body[data-page="meets"] .meet-explorer-controls>div:nth-child(2){grid-column:1/-1;grid-row:2;}
  body[data-page="meets"] .meet-explorer-controls>div:nth-child(3){grid-column:1/-1;grid-row:3;}
  body[data-page="meets"] .meet-explorer-controls label{font-size:10px!important;margin-bottom:2px!important;}
  body[data-page="meets"] .meet-explorer-controls .field{height:36px!important;min-height:36px!important;font-size:12px!important;}
  body[data-page="meets"] .meet-swimmer-focused{min-height:39px;padding:5px 8px;}
  body[data-page="meets"] .meet-results-heading-bar{margin:8px 0 6px!important;}
  body[data-page="meets"] .meet-results-heading-bar h2{font-size:19px!important;}
  body[data-page="meets"] .meet-results-card{padding:9px!important;}
  body[data-page="meets"] .meet-results-card #meetSelectedSummary{margin-bottom:7px!important;}
  body[data-page="meets"] .meet-results-card .meet-mini-table th,
  body[data-page="meets"] .meet-results-card .meet-mini-table td{padding:7px 6px!important;line-height:1.25!important;}
  body[data-page="meets"] .meet-results-card .meet-legend{margin-top:7px!important;}
}
@media(max-width:360px){
  body[data-page="index"] .home-hero-logo-ring{width:112px;}
  body[data-page="index"] .home-hero-content h1{font-size:29px;}
  body[data-page="index"] .home-shortcut-copy small{font-size:9px;}
}

/* v0.1.0 — Northline Digital attribution across all pages */
.foot .northline-credit {display:block;width:100%;font-size:11px;color:#a7c0d0;letter-spacing:.15px;margin-top:6px;}
.foot .northline-credit strong{color:#9ef2e2;font-weight:800;}
/* On compact pages the main footer is hidden: keep a small legal line instead. */
@media(max-width:700px){
  body:is([data-page="index"],[data-page="swimmers"],[data-page="meets"]) > .foot{display:block;padding:7px 14px 12px;border-top:0;text-align:center;background:transparent;}
  body:is([data-page="index"],[data-page="swimmers"],[data-page="meets"]) > .foot .footinner > span{display:none;}
  body:is([data-page="index"],[data-page="swimmers"],[data-page="meets"]) > .foot .northline-credit{margin:0;font-size:10px;}
  body[data-page="index"] .main{padding-bottom:14px;}
  body:is([data-page="swimmers"],[data-page="meets"]) > .foot{padding-bottom:calc(78px + env(safe-area-inset-bottom));}
}


/* OSHAC v0.1.0 — screen-filling responsive layouts */
html { min-height:100%; }
body[data-page="index"],body[data-page="swimmers"],body[data-page="meets"] {
  min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column;
}
body[data-page="index"] > main,
body[data-page="swimmers"] > main,
body[data-page="meets"] > main { flex:1 0 auto; width:100%; }
/* A single quiet copyright footer, centered consistently at all widths. */
body .northline-footer {
  flex:none; width:100%; padding:13px 16px 16px;
  border-top:1px solid rgba(138,191,211,.22);
  background:rgba(6,19,37,.56);
}
body .northline-footer .footinner {
  display:flex; align-items:center; justify-content:center;
  gap:5px 14px; flex-wrap:wrap; text-align:center;
  color:#a9c2d2; font-size:11px; line-height:1.45;
}
body .northline-footer .footinner span { margin:0; display:inline; }
body .northline-footer strong {color:#9cf2df;font-weight:800;}
body .northline-footer-sub {color:#89a9bc;}
/* Overview: hero + two stacked primary destinations use the full available screen. */
body[data-page="index"] > .main {
  display:flex;flex-direction:column; gap:12px;
  padding-top:16px; padding-bottom:14px;
}
body[data-page="index"] .home-brand-hero {
  flex:0 0 auto; margin:0; min-height:0;
}
body[data-page="index"] .home-shortcuts {
  flex:1 1 auto; min-height:260px; width:100%;
  display:grid; grid-template-columns:1fr; grid-template-rows:repeat(2,minmax(112px,1fr));
  gap:12px; margin:0;
}
body[data-page="index"] .home-shortcut {
  min-height:0; display:flex; flex-direction:row;
  align-items:center;justify-content:flex-start;
  text-align:left; gap:17px; padding:17px 24px;
  border-radius:18px;
}
body[data-page="index"] .home-shortcut-icon {width:58px;height:58px;flex:none;}
body[data-page="index"] .home-shortcut-copy {flex:1;align-items:flex-start;}
body[data-page="index"] .home-shortcut-arrow {display:block;margin-left:auto;}
/* Directory: opened groups expand into a dense but comfortable tap grid. */
body[data-page="swimmers"] > .main {display:flex;flex-direction:column;padding-bottom:12px;}
body[data-page="swimmers"] .pagehead {flex:none;}
body[data-page="swimmers"] .controls {flex:none;}
body[data-page="swimmers"] .sectionhead {flex:none;}
body[data-page="swimmers"] #swimmerList {
  flex:1 1 auto; min-height:140px;display:flex;flex-direction:column;gap:10px;
}
body[data-page="swimmers"] #swimmerList .directory-group {flex:0 0 auto;display:flex;flex-direction:column;}
body[data-page="swimmers"] #swimmerList .directory-group[open] {flex:1 0 auto;}
body[data-page="swimmers"] #swimmerList .directory-rows {
  flex:1 1 auto; align-content:stretch;
  grid-auto-rows:minmax(42px,1fr);
}
body[data-page="swimmers"] #swimmerList .directory-row {
  min-height:42px; padding:8px 11px;
}
body[data-page="swimmers"] #swimmerList .directory-swimmer-name {font-size:clamp(12px,1.1vw,15px);}
/* Meets: the result section expands naturally without oversized blank rows. */
body[data-page="meets"] > .main {padding-bottom:16px;}
body[data-page="meets"] .meet-explorer-controls {margin-top:8px!important;margin-bottom:10px!important;}
body[data-page="meets"] .meet-results-heading-bar {margin-top:12px!important;}
body[data-page="meets"] .meet-results-card {max-width:100%;}
@media (max-width:700px) {
  body[data-page="index"] > .main {padding:12px 14px 10px;gap:10px;}
  body[data-page="index"] .home-brand-hero {padding:18px 16px 19px;border-radius:20px;}
  body[data-page="index"] .home-hero-layout {gap:10px;}
  body[data-page="index"] .home-hero-logo-ring {width:clamp(112px,29vw,155px);}
  body[data-page="index"] .home-hero-content h1 {font-size:clamp(28px,7.4vw,39px);margin:7px 0;}
  body[data-page="index"] .home-hero-footnote {margin-top:9px;}
  body[data-page="index"] .home-shortcuts {min-height:230px;gap:9px;grid-template-rows:repeat(2,minmax(105px,1fr));}
  body[data-page="index"] .home-shortcut {padding:12px 16px;gap:13px;flex-direction:row;text-align:left;}
  body[data-page="index"] .home-shortcut-icon {width:48px;height:48px;font-size:26px;}
  body[data-page="index"] .home-shortcut-copy strong {font-size:clamp(21px,5vw,28px);}
  body[data-page="index"] .home-shortcut-copy small {font-size:11px;}
  body[data-page="index"] .home-shortcut-arrow {display:block;}
  body[data-page="swimmers"] > .main,
  body[data-page="meets"] > .main {padding-bottom:12px;}
  body[data-page="swimmers"] #swimmerList .directory-rows {grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(44px,1fr);}
  body[data-page="swimmers"] #swimmerList .directory-row {padding:7px 9px;min-height:44px;}
  body[data-page="swimmers"] #swimmerList .directory-swimmer-name {font-size:12px;}
  body[data-page="swimmers"] #swimmerList .directory-group[open] {min-height: min(54dvh,540px);}
  body[data-page="swimmers"] #swimmerList .directory-group-heading {min-height:42px;}
  body[data-page="swimmers"] .controls {margin-bottom:7px;}
  body[data-page="meets"] .meet-explorer-controls {gap:7px!important;}
  body .northline-footer {padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));}
  body[data-page="swimmers"] .northline-footer,
  body[data-page="meets"] .northline-footer {margin-bottom:78px;}
  body .northline-footer .footinner {font-size:10px;gap:3px 9px;}
  body .northline-footer-sub {display:none!important;}
}
@media (max-width:360px) {
  body[data-page="swimmers"] #swimmerList .directory-rows {grid-template-columns:1fr;}
  body[data-page="index"] .home-shortcut {padding:10px 12px;}
}
@media (max-height:680px) and (max-width:700px) {
  body[data-page="index"] .home-shortcuts {min-height:200px;}
  body[data-page="index"] .home-hero-logo-ring {width:105px;}
}

body[data-page="index"] > .main {flex:1 0 auto;}


/* v0.1.0 — viewport-filling AG groups and always-visible mobile copyright */
body[data-page="swimmers"] > .main {flex:1 1 auto;min-height:0;}
body[data-page="swimmers"] #swimmerList {flex:1 1 auto;min-height:260px;}
body[data-page="swimmers"] #swimmerList .directory-group {flex:1 1 0;min-height:110px;}
body[data-page="swimmers"] #swimmerList .directory-group[open] {flex:3 1 auto;min-height:260px;}
body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-heading {flex:1;align-items:center;}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-group-heading {flex:0 0 auto;}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-rows {flex:1 1 auto;align-content:stretch;}
@media(max-width:700px){
 body[data-page="swimmers"] > .main {padding-bottom:calc(112px + env(safe-area-inset-bottom,0px));}
 body[data-page="swimmers"] #swimmerList {min-height:max(340px,calc(100dvh - 440px));}
 body[data-page="swimmers"] #swimmerList .directory-group {min-height:120px;}
 body[data-page="swimmers"] #swimmerList .directory-group[open] {min-height:max(360px,calc(100dvh - 470px));}
 body[data-page="swimmers"] .northline-footer,
 body[data-page="meets"] .northline-footer {position:fixed;left:0;right:0;bottom:calc(70px + env(safe-area-inset-bottom,0px));z-index:29;margin:0!important;padding:7px 10px!important;background:#081b2df5;backdrop-filter:blur(12px);border-top:1px solid #2e536c;}
 body[data-page="swimmers"] .northline-footer .footinner,
 body[data-page="meets"] .northline-footer .footinner {font-size:10px;line-height:1.3;}
 body[data-page="meets"] > .main {padding-bottom:calc(112px + env(safe-area-inset-bottom,0px));}
}

/* v0.1.0 — adaptive large-touch directory and meet selection */
body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-heading{
  display:flex;align-items:center;justify-content:space-between;min-height:100%;
  padding:clamp(15px,3vh,30px) clamp(17px,3vw,32px);
}
body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-name{
  font-size:clamp(20px,3.2vw,29px);letter-spacing:.5px;
}
body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-count{
  font-size:clamp(12px,1.5vw,16px);
}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-group-heading{
  min-height:48px;padding:10px 17px;
}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-group-name{font-size:clamp(16px,2.3vw,21px)}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-row{
  padding:clamp(9px,1.4vh,16px) clamp(10px,1.6vw,20px);min-height:48px;
}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-swimmer-name{
  font-size:clamp(13px,1.7vw,18px);line-height:1.3;
}
/* Meet swimmer tiles scale with available screen, but remain scrollable for big meets. */
body[data-page="meets"] .meet-swimmer-list{min-width:0;gap:clamp(8px,1.2vh,16px)}
body[data-page="meets"] .meet-swimmer-group-label{font-size:clamp(13px,1.65vw,18px);margin:7px 0 9px}
body[data-page="meets"] .meet-swimmer-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,1.2vh,15px);
}
body[data-page="meets"] .meet-swimmer-choice{
  display:flex;align-items:center;justify-content:flex-start;
  min-height:clamp(58px,8vh,100px);padding:clamp(12px,1.8vh,20px) clamp(12px,2.3vw,24px);
  font-size:clamp(14px,1.9vw,20px);line-height:1.25;
  border-radius:13px;overflow-wrap:anywhere;
}
body[data-page="meets"] .meet-swimmer-focused{min-height:64px;padding:11px 15px}
body[data-page="meets"] .meet-swimmer-selected-name{font-size:clamp(15px,2vw,20px)}
body[data-page="meets"] .meet-swimmer-clear{min-height:42px;font-size:clamp(12px,1.4vw,15px)}
/* Keep the copyright separate from the mobile navigation, never overlapping content. */
@media(max-width:700px){
  body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-heading{padding:18px 20px}
  body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-name{font-size:clamp(20px,5.2vw,27px)}
  body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-swimmer-name{font-size:clamp(12px,3.25vw,16px)}
  body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-row{min-height:49px;padding:10px 9px}
  body[data-page="meets"] .meet-swimmer-choice{font-size:clamp(13px,3.4vw,17px);min-height:clamp(62px,8.5dvh,92px);padding:11px 13px}
  body[data-page="meets"] .meet-swimmer-grid{gap:9px}
  body[data-page="meets"] .meet-swimmer-group-label{font-size:14px}
  body[data-page="meets"] .meet-swimmer-list{padding-bottom:12px}
  body[data-page="swimmers"] > .main,body[data-page="meets"] > .main{
    padding-bottom:calc(130px + env(safe-area-inset-bottom,0px));
  }
  body[data-page="swimmers"] .northline-footer,body[data-page="meets"] .northline-footer{
    bottom:calc(72px + env(safe-area-inset-bottom,0px));
  }
}
@media(max-width:360px){
  body[data-page="meets"] .meet-swimmer-choice{font-size:12px;padding:10px 8px}
  body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-swimmer-name{font-size:12px}
}

/* v0.1.0 — matching AG panels on Swimmers and Meets */
body[data-page="swimmers"] #swimmerCount{display:none!important}
body[data-page="swimmers"] .directory-group-count{display:none!important}
body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-heading{position:relative;justify-content:center;text-align:center}
body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-heading-right{position:absolute;right:clamp(12px,3vw,25px);top:50%;transform:translateY(-50%)}
body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-name{font-size:clamp(34px,8vw,66px);letter-spacing:-1px;line-height:1.05}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-group-heading{justify-content:center;position:relative}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-group-heading-right{position:absolute;right:15px}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-group-name{font-size:clamp(22px,5vw,36px)}
body[data-page="swimmers"] .sectionhead:has(#swimmerCount){margin-bottom:10px}
body[data-page="meets"] #meetSwimmerList{display:flex;flex-direction:column;gap:10px;min-height:0}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group{display:flex;flex-direction:column;flex:1 1 0;min-height:clamp(110px,20dvh,240px);overflow:hidden;border-radius:16px}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open]{flex:3 1 auto;min-height:300px}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group-label{display:flex;position:relative;align-items:center;justify-content:center;flex:1 1 auto;min-height:100%;margin:0;padding:15px;cursor:pointer;list-style:none;border:0;background:rgba(var(--group-rgb),.13)}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group-label::-webkit-details-marker{display:none}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group-label::marker{content:""}
body[data-page="meets"] #meetSwimmerList .directory-group-name{color:var(--group-accent);font:900 clamp(34px,8vw,64px)/1.1 Outfit,sans-serif;letter-spacing:-1px}
body[data-page="meets"] #meetSwimmerList .directory-group-chevron{position:absolute;right:18px;color:var(--group-accent);font-size:26px}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open] .meet-swimmer-group-label{min-height:52px;flex:0 0 auto;border-bottom:1px solid rgba(var(--group-rgb),.3)}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open] .directory-group-name{font-size:clamp(23px,5vw,34px)}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open] .directory-group-chevron{transform:rotate(180deg)}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;flex:1 1 auto;align-content:stretch}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-choice{display:flex;align-items:center;justify-content:space-between;min-width:0;min-height:48px;padding:10px 13px;border:0;border-right:1px solid #ffffff12;border-bottom:1px solid #ffffff12;border-radius:0;background:transparent;text-align:left;line-height:1.25;font-size:clamp(13px,1.7vw,18px);color:#f3f9ff}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-choice:hover,body[data-page="meets"] #meetSwimmerList .meet-swimmer-choice:focus-visible{background:rgba(var(--group-rgb),.15)}
body[data-page="meets"] #meetSwimmerList .directory-arrow{color:var(--group-accent);margin-left:7px}
body[data-page="meets"] #meetSwimmerList .directory-swimmer-name{font-size:inherit}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-focused{flex:0 0 auto}
@media(max-width:700px){
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-group{min-height:clamp(125px,24dvh,280px)}
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open]{min-height:clamp(350px,55dvh,750px)}
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-choice{padding:10px 8px;min-height:48px;font-size:clamp(12px,3.2vw,16px)}
 body[data-page="swimmers"] #swimmerList .directory-group:not([open]) .directory-group-name{font-size:clamp(38px,10vw,62px)}
}
@media(max-width:340px){body[data-page="meets"] #meetSwimmerList .meet-swimmer-grid{grid-template-columns:1fr}}

/* v0.1.0 final AG panel alignment and safe mobile bottom clearance */
body[data-page="meets"] #meetSwimmerList .directory-ag1{--group-accent:#ff8fba;--group-rgb:255,143,186;border:1px solid rgba(255,143,186,.5);background:linear-gradient(130deg,rgba(255,143,186,.12),#102037 88%)}
body[data-page="meets"] #meetSwimmerList .directory-ag2{--group-accent:#c6a1ff;--group-rgb:198,161,255;border:1px solid rgba(198,161,255,.5);background:linear-gradient(130deg,rgba(198,161,255,.12),#102037 88%)}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group-label{color:var(--group-accent);background:rgba(var(--group-rgb),.12)}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open] .meet-swimmer-grid,
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-rows{grid-auto-rows:minmax(52px,1fr);align-content:stretch;min-height:0}
body[data-page="swimmers"] #swimmerList .directory-group[open]{display:flex;flex-direction:column}
body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-rows{flex:1 1 auto}
body[data-page="swimmers"] #swimmerList:has(.directory-group[open]) .directory-group:not([open]),
body[data-page="meets"] #meetSwimmerList:has(.meet-swimmer-group[open]) .meet-swimmer-group:not([open]){flex:0 0 auto!important;min-height:76px!important}
body[data-page="swimmers"] #swimmerList:has(.directory-group[open]) .directory-group:not([open]) .directory-group-heading,
body[data-page="meets"] #meetSwimmerList:has(.meet-swimmer-group[open]) .meet-swimmer-group:not([open]) .meet-swimmer-group-label{min-height:76px!important}
@media(max-width:700px){
 body[data-page="swimmers"] #swimmerList .directory-group[open] .directory-rows,
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open] .meet-swimmer-grid{grid-auto-rows:minmax(56px,1fr)}
 body[data-page="swimmers"] > .main,body[data-page="meets"] > .main{padding-bottom:calc(168px + env(safe-area-inset-bottom,0px))!important}
 body[data-page="swimmers"] .northline-footer,body[data-page="meets"] .northline-footer{position:fixed!important;bottom:calc(82px + env(safe-area-inset-bottom,0px))!important;z-index:31!important;min-height:29px;padding:5px 10px!important;margin:0!important}
 body[data-page="swimmers"] .bottomnav,body[data-page="meets"] .bottomnav{z-index:32}
 body[data-page="swimmers"] #swimmerList .directory-group[open]{min-height:0;flex:1 1 auto}
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open]{min-height:0;flex:1 1 auto}
}

/* v0.1.0 — Swimmers landing page: AG1 and AG2 only.
   Keep the filter inputs in the DOM because dashboard.js binds to them. */
body[data-page="swimmers"] .main > .controls,
body[data-page="swimmers"] .main > .sectionhead { display:none!important; }
body[data-page="swimmers"] .main > .pagehead { margin-bottom:12px; }
body[data-page="swimmers"] #swimmerList { margin-top:0; }

/* Official v0.1.0 — controls removed from Swimmers markup and logic. */
body[data-page="swimmers"] .main > .pagehead{margin-bottom:12px}
body[data-page="swimmers"] #swimmerList{margin-top:0}


/* OSHAC PWA status bar safe area fix v1 */
/* iOS standalone can extend content behind system status bar. */
@media (display-mode: standalone) {
  html { background: #081b2d; }
  body { min-height: 100dvh; }
  body .topbar, body .family-top {
    padding-top: env(safe-area-inset-top, 0px) !important;
    box-sizing: border-box;
  }
  body .topbar .topinner, body .family-top .family-head {
    height: auto;
    min-height: 66px;
  }
  body .bottomnav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
}
/* iOS also supports navigator.standalone; class added by inline script. */
html.oshac-ios-standalone body .topbar,
html.oshac-ios-standalone body .family-top {
  padding-top: env(safe-area-inset-top, 0px) !important;
}

/* v0.2.0 coaching profile — family-style stroke / distance chips */
body[data-page="profile"] .coach-picker{grid-column:1/-1;width:100%;min-width:0;display:grid;gap:9px}
body[data-page="profile"] .coach-picker .stroke-picker-native{display:none!important}
body[data-page="profile"] .coach-picker-label{font-size:12px;font-weight:900;letter-spacing:.14em;color:#a7c5d5}
body[data-page="profile"] .coach-stroke-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
body[data-page="profile"] .coach-distance-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:8px;min-height:44px}
body[data-page="profile"] .coach-stroke-chip,body[data-page="profile"] .coach-distance-chip{font:800 clamp(11px,2.5vw,17px) "DM Sans",system-ui,sans-serif;min-width:0;min-height:44px;border:1px solid var(--stroke);border-radius:12px;background:color-mix(in srgb,var(--stroke) 13%,#10283d);color:var(--stroke);padding:8px 3px;cursor:pointer}
body[data-page="profile"] .coach-stroke-chip.active,body[data-page="profile"] .coach-distance-chip.active{border:2px solid var(--stroke);background:color-mix(in srgb,var(--stroke) 28%,#10283d);box-shadow:inset 0 0 0 1px var(--stroke)}
body[data-page="profile"] .coach-stroke-chip:focus-visible,body[data-page="profile"] .coach-distance-chip:focus-visible{outline:3px solid var(--stroke);outline-offset:2px}
body[data-page="profile"] .stroke-free{--stroke:#79e6dd}
body[data-page="profile"] .stroke-back{--stroke:#83baff}
body[data-page="profile"] .stroke-breast{--stroke:#ffc17e}
body[data-page="profile"] .stroke-fly{--stroke:#c8a1ff}
body[data-page="profile"] .stroke-im{--stroke:#ff9cce}
@media(max-width:440px){body[data-page="profile"] .coach-stroke-row{gap:4px}body[data-page="profile"] .coach-distance-row{grid-template-columns:repeat(auto-fit,minmax(65px,1fr));gap:5px}body[data-page="profile"] .coach-stroke-chip{font-size:clamp(10px,2.8vw,13px);padding:7px 1px}}

/* v0.2.0 coaching profile: compact course + season, mobile safe */
body[data-page="profile"] .controls:has(.coach-picker){display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
body[data-page="profile"] .controls:has(.coach-picker)>.coach-picker{grid-column:1/-1;min-width:0}
body[data-page="profile"] .coach-filter-bar{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end;width:100%;min-width:0}
body[data-page="profile"] .coach-filter-box{display:flex;flex-direction:column;gap:6px;min-width:0;width:100%;margin:0}
body[data-page="profile"] .coach-filter-box .coach-picker-label{font-size:10px;letter-spacing:.1em;line-height:1.2}
body[data-page="profile"] .coach-filter-box #profileSeason{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:45px;min-height:45px;padding:8px 26px 8px 11px;font-size:clamp(12px,2.7vw,15px);text-overflow:ellipsis}
body[data-page="profile"] .coach-filter-box .coach-course-native{display:none!important}
body[data-page="profile"] .coach-course-buttons{box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;width:100%;height:45px;padding:3px;border:1px solid #4c7488;border-radius:12px;background:#0b2539}
body[data-page="profile"] .coach-course-button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;border:1px solid transparent;border-radius:9px;background:transparent;color:#b1c7d5;cursor:pointer;padding:3px;font-family:inherit;white-space:nowrap}
body[data-page="profile"] .coach-course-button strong{font-size:clamp(12px,2.6vw,16px)}
body[data-page="profile"] .coach-course-button small{font-size:clamp(9px,2vw,11px)}
body[data-page="profile"] .coach-course-button.active{border-color:#79e6dd;background:#1c6069;color:#a6f7ed}
body[data-page="profile"] .coach-course-button:focus-visible{outline:3px solid #79e6dd;outline-offset:2px}
@media(max-width:380px){body[data-page="profile"] .coach-filter-bar{gap:6px}body[data-page="profile"] .coach-course-button{gap:2px}body[data-page="profile"] .coach-filter-box #profileSeason{padding-left:7px}}

/* v0.2.0 — Compact selection flow: choose stroke > distance > results */
body[data-page="profile"] .coach-selection-panel{display:grid;gap:10px;min-width:0}
body[data-page="profile"] .coach-selection-panel[hidden],body[data-page="profile"] .coach-selected-event[hidden]{display:none!important}
body[data-page="profile"] .coach-selected-event{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:9px 11px;border:1px solid var(--selected-accent,#79e6dd);border-radius:12px;background:color-mix(in srgb,var(--selected-accent,#79e6dd) 12%,#10283d)}
body[data-page="profile"] .coach-selected-event[data-stroke="free"]{--selected-accent:#79e6dd}
body[data-page="profile"] .coach-selected-event[data-stroke="back"]{--selected-accent:#83baff}
body[data-page="profile"] .coach-selected-event[data-stroke="breast"]{--selected-accent:#ffc17e}
body[data-page="profile"] .coach-selected-event[data-stroke="fly"]{--selected-accent:#c8a1ff}
body[data-page="profile"] .coach-selected-event[data-stroke="im"]{--selected-accent:#ff9cce}
body[data-page="profile"] .coach-selected-name{font:800 clamp(14px,3vw,19px) "DM Sans",system-ui,sans-serif;color:var(--selected-accent);min-width:0;overflow-wrap:anywhere}
body[data-page="profile"] .coach-clear-event{flex:none;min-height:36px;padding:7px 12px;border:1px solid var(--selected-accent);border-radius:9px;background:#10283d;color:var(--selected-accent);font:800 13px "DM Sans",system-ui,sans-serif;cursor:pointer}
body[data-page="profile"] .coach-clear-event:focus-visible{outline:3px solid var(--selected-accent);outline-offset:2px}
@media(max-width:400px){body[data-page="profile"] .coach-selected-event{padding:7px 9px;gap:8px}body[data-page="profile"] .coach-clear-event{padding:6px 9px;font-size:12px}}

/* v0.2.0 coach compact progressive disclosure */
body[data-page="profile"] .coach-selection-panel .coach-picker-label[hidden],
body[data-page="profile"] .coach-distance-row[hidden],
body[data-page="profile"] .coach-filter-bar[hidden]{display:none!important}
body[data-page="profile"] .coach-picker{gap:5px}
body[data-page="profile"] .coach-selection-panel{gap:8px}
body[data-page="profile"] .coach-stroke-row{margin-bottom:0}
body[data-page="profile"] .stroke-free{--stroke:#56baff}
body[data-page="profile"] .coach-selected-event[data-stroke="free"]{--selected-accent:#56baff}
body[data-page="profile"] .coach-stroke-chip,body[data-page="profile"] .coach-distance-chip{min-height:41px}
@media(max-width:440px){body[data-page="profile"] .coach-selection-panel{gap:6px}body[data-page="profile"] .coach-stroke-chip{min-height:40px}}

/* Ryley request: all event controls and results follow the chosen stroke colour. */
body[data-page="profile"] .coach-distance-chip,
body[data-page="profile"] .coach-selected-event {
  --coach-current-stroke:var(--stroke-accent,#79e6dd);
}
body[data-page="profile"] .coach-selected-event {
  border-color:var(--stroke-accent,#79e6dd)!important;
  background:rgba(var(--stroke-rgb,102,234,211),.14)!important;
}
body[data-page="profile"] .coach-selected-name {color:var(--stroke-accent,#79e6dd)!important}
body[data-page="profile"] .coach-clear-event {border-color:rgba(var(--stroke-rgb,102,234,211),.5)!important;color:var(--stroke-accent,#79e6dd)!important}
body[data-page="profile"] .coach-distance-chip {border-color:var(--stroke)!important;color:var(--stroke)!important;background:color-mix(in srgb,var(--stroke) 15%,#10283d)!important}
body[data-page="profile"] .coach-distance-chip.active {background:color-mix(in srgb,var(--stroke) 32%,#10283d)!important;border-color:var(--stroke)!important}
body[data-page="profile"] .profile-graph-open {border-color:var(--stroke-accent,#79e6dd)!important;color:var(--stroke-accent,#79e6dd)!important;background:rgba(var(--stroke-rgb,102,234,211),.13)!important}
body[data-page="profile"] #profileMetrics .metric .value {color:var(--stroke-accent,#79e6dd)}

body[data-page="profile"] .coach-picker-label[hidden],body[data-page="profile"] .coach-distance-row[hidden],body[data-page="profile"] .coach-selection-panel[hidden],body[data-page="profile"] .coach-selected-event[hidden]{display:none!important}


/* v0.2.0 coaching profile — compact season → meet → result explorer */
body[data-page="profile"] .coach-meet-native,
body[data-page="profile"] label[for="swimmerMeetSelect"][hidden] {display:none!important}
body[data-page="profile"] .coach-meet-picker{display:grid;gap:10px;min-width:0}
body[data-page="profile"] .coach-meet-picker-heading{font-size:11px;font-weight:900;letter-spacing:.13em;color:#a8c5d7}
body[data-page="profile"] .coach-meet-season-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:7px}
body[data-page="profile"] .coach-meet-season-button{min-width:0;min-height:42px;border:1px solid #527d93;border-radius:11px;padding:8px 5px;background:#122b42;color:#d9eaf5;font:800 clamp(12px,2.5vw,15px) "DM Sans",sans-serif;cursor:pointer}
body[data-page="profile"] .coach-meet-season-button.active{border:2px solid #7de7dc;background:#1c5662;color:#a7fff0}
body[data-page="profile"] .coach-meet-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px}
body[data-page="profile"] .coach-meet-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;min-width:0;min-height:64px;padding:11px 13px;border:1px solid #416d84;border-radius:12px;background:#102a41;color:#f3f9ff;cursor:pointer}
body[data-page="profile"] .coach-meet-choice strong{font-size:clamp(13px,2.6vw,16px);line-height:1.3}
body[data-page="profile"] .coach-meet-choice small{font-size:11px;color:#a8c6d5}
body[data-page="profile"] .coach-meet-choice:focus-visible,
body[data-page="profile"] .coach-meet-season-button:focus-visible,
body[data-page="profile"] .coach-meet-clear:focus-visible{outline:3px solid #83e8dd;outline-offset:2px}
body[data-page="profile"] .coach-meet-selection{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:9px 11px;border:1px solid #77d8d0;border-radius:12px;background:#163a4b}
body[data-page="profile"] .coach-meet-selection-text{min-width:0;font-size:clamp(12px,2.5vw,15px);font-weight:800;color:#a7f7ea;overflow-wrap:anywhere}
body[data-page="profile"] .coach-meet-clear{flex:none;min-height:36px;padding:6px 12px;border:1px solid #5caeb1;border-radius:9px;background:#0c293d;color:#a7f7ea;font:800 12px "DM Sans",sans-serif;cursor:pointer}
body[data-page="profile"] .coach-meet-picker [hidden],
body[data-page="profile"] #swimmerMeetResults[hidden]{display:none!important}
@media(max-width:420px){body[data-page="profile"] .coach-meet-season-buttons{grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:5px}body[data-page="profile"] .coach-meet-buttons{grid-template-columns:1fr}body[data-page="profile"] .coach-meet-choice{min-height:55px}}

/* v0.2.0 — stable OSHAC identity + five independent stroke accents.
   Profile identity remains mint regardless of event selection. */
body[data-page="profile"] {
  --oshac-identity: #79e6dd;
  --oshac-identity-rgb: 121,230,221;
}
body[data-page="profile"][data-profile-stroke="free"] {
  --stroke-accent: #32d6e8;
  --stroke-rgb: 50,214,232;
}
body[data-page="profile"] .stroke-free { --stroke: #32d6e8; }
body[data-page="profile"] .coach-selected-event[data-stroke="free"] {
  --selected-accent: #32d6e8;
}
body[data-page="profile"] #profileHeader {
  border-color: rgba(var(--oshac-identity-rgb), .48) !important;
  background: linear-gradient(125deg, rgba(var(--oshac-identity-rgb), .13), #10243b 70%) !important;
}
body[data-page="profile"] #profileHeader .eyebrow {
  color: var(--oshac-identity) !important;
}
body[data-page="profile"] #profileHeader .avatar {
  background: rgba(var(--oshac-identity-rgb), .19) !important;
  color: var(--oshac-identity) !important;
}
/* Keep the AG group identity badge green, regardless of selected stroke. */
body[data-page="profile"] #profileHeader .tag,
body[data-page="profile"] #profileHeader .pill,
body[data-page="profile"] #profileHeader .group-badge {
  color: #a6f7e9 !important;
  border-color: rgba(var(--oshac-identity-rgb), .45) !important;
  background: rgba(var(--oshac-identity-rgb), .16) !important;
}

/* OSHAC v0.2.0: responsive coaching profile filter layout.
   Override older desktop grid and select sizing without altering JS. */
body[data-page="profile"] .controls:has(.coach-picker) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: max-content !important;
  align-items: start !important;
  align-content: start !important;
  justify-items: stretch !important;
  gap: clamp(8px, 1.2vw, 12px) !important;
  min-width: 0;
  width: 100%;
}
body[data-page="profile"] .controls:has(.coach-picker) > .coach-picker,
body[data-page="profile"] .controls:has(.coach-picker) > .coach-selection-panel,
body[data-page="profile"] .controls:has(.coach-picker) > .coach-filter-bar {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  min-width: 0;
  width: 100%;
  align-self: start !important;
}
body[data-page="profile"] .coach-filter-bar {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: max-content !important;
  align-items: start !important;
  align-content: start !important;
  gap: clamp(8px, 1.2vw, 12px) !important;
  height: auto !important;
  min-height: 0 !important;
}
body[data-page="profile"] .coach-filter-bar[hidden] { display: none !important; }
body[data-page="profile"] .coach-filter-box {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: start !important;
}
body[data-page="profile"] .coach-filter-box .coach-picker-label {
  display: block;
  line-height: 1.3;
  min-height: 0;
  margin: 0;
}
body[data-page="profile"] .coach-filter-box #profileSeason,
body[data-page="profile"] .coach-filter-box .coach-course-buttons {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  align-self: start !important;
}
body[data-page="profile"] .coach-filter-box .coach-course-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
}
body[data-page="profile"] .coach-filter-box #profileSeason {
  padding: 8px 32px 8px 12px !important;
  font-size: clamp(13px, 1.1vw, 16px) !important;
  line-height: normal !important;
  appearance: auto;
}
body[data-page="profile"] .coach-stroke-row,
body[data-page="profile"] .coach-distance-row {
  width: 100%;
  min-width: 0;
  align-content: start;
  grid-auto-rows: max-content;
}
body[data-page="profile"] .coach-stroke-row {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
body[data-page="profile"] .coach-distance-row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr)) !important;
}
body[data-page="profile"] .coach-stroke-chip,
body[data-page="profile"] .coach-distance-chip {
  width: 100%;
  min-width: 0;
  max-height: 54px;
}
@media (max-width: 600px) {
  body[data-page="profile"] .coach-filter-bar {
    gap: 8px !important;
  }
  body[data-page="profile"] .coach-filter-box #profileSeason,
  body[data-page="profile"] .coach-filter-box .coach-course-buttons {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }
  body[data-page="profile"] .coach-filter-box #profileSeason {
    font-size: 13px !important;
    padding-left: 9px !important;
    padding-right: 22px !important;
  }
  body[data-page="profile"] .coach-distance-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 70px), 1fr)) !important;
  }
}
@media (max-width: 340px) {
  body[data-page="profile"] .coach-filter-bar {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Coaching v0.2.0 — move event Clear into swimmer identity card */
body[data-page="profile"] #profileHeader .profilebanner{position:relative;min-width:0;padding-right:clamp(88px,15vw,150px)}
body[data-page="profile"] #profileHeader .coach-profile-header-clear {
  position:absolute;right:clamp(12px,2vw,22px);top:50%;transform:translateY(-50%);
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-height:40px;padding:8px 13px;max-width:105px;
  border:1px solid #69dccc;border-radius:11px;
  background:#113e48;color:#9bf5e5;
  font:800 clamp(12px,2.2vw,14px) "DM Sans",system-ui,sans-serif;
  cursor:pointer;white-space:nowrap;z-index:1;
}
body[data-page="profile"] #profileHeader .coach-profile-header-clear[hidden]{display:none!important}
body[data-page="profile"] #profileHeader .coach-profile-header-clear:focus-visible{outline:3px solid #9bf5e5;outline-offset:3px}
body[data-page="profile"] .coach-selected-event{min-width:0}
@media(max-width:420px){
  body[data-page="profile"] #profileHeader .profilebanner{padding-right:85px}
  body[data-page="profile"] #profileHeader .coach-profile-header-clear{right:10px;min-height:38px;padding:7px 9px;font-size:12px}
}

/* OSHAC v0.2.0 — adaptive Meets page layout */
body[data-page="meets"]{min-width:0}
body[data-page="meets"] .main{width:100%;min-width:0;max-width:1280px;margin-inline:auto;box-sizing:border-box}
body[data-page="meets"] .pagehead{min-width:0;margin-bottom:clamp(8px,1.5vw,16px)}
body[data-page="meets"] .pagehead h1{font-size:clamp(26px,4.4vw,46px);line-height:1.12}
body[data-page="meets"] .meet-explorer-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:clamp(10px,1.5vw,18px)!important;width:100%;min-width:0;margin-block:8px 14px!important}
body[data-page="meets"] .meet-explorer-controls>div{min-width:0;max-width:100%;align-self:start}
body[data-page="meets"] .meet-explorer-controls>div:nth-child(3){grid-column:1/-1}
body[data-page="meets"] .meet-explorer-controls label{display:block;margin-bottom:7px;font-size:clamp(11px,1.1vw,14px);line-height:1.35;letter-spacing:.04em}
body[data-page="meets"] .meet-explorer-controls .field{display:block;width:100%;max-width:100%;min-width:0;height:clamp(44px,4.5vw,52px);min-height:44px;box-sizing:border-box;padding:8px 34px 8px 13px;font-size:clamp(13px,1.3vw,17px);text-overflow:ellipsis}
body[data-page="meets"] #meetSwimmerList{min-width:0;width:100%;gap:10px;align-items:stretch}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group{min-width:0;max-width:100%;min-height:clamp(76px,12vh,130px);flex:0 0 auto}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open]{min-height:0;flex:0 0 auto}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group-label{min-height:clamp(72px,10vh,120px);padding:12px 18px}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open] .meet-swimmer-group-label{min-height:50px}
body[data-page="meets"] #meetSwimmerList .directory-group-name{font-size:clamp(26px,4.2vw,44px)}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));grid-auto-rows:auto;align-content:start;min-width:0}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-choice{min-height:48px;min-width:0;padding:11px 13px;font-size:clamp(13px,1.3vw,17px);overflow-wrap:anywhere}
body[data-page="meets"] #meetSwimmerList .meet-swimmer-focused{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
body[data-page="meets"] #meetResultsSection,body[data-page="meets"] .meet-results-card{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
body[data-page="meets"] .meet-results-heading-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
body[data-page="meets"] .meet-heading-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body[data-page="meets"] .meet-results-card{overflow:hidden}
body[data-page="meets"] #meetResults{min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body[data-page="meets"] #meetResults table{width:100%;min-width:min(100%,470px);border-collapse:collapse}
body[data-page="meets"] .meet-legend{display:flex;flex-wrap:wrap;align-items:center;gap:7px 16px;font-size:clamp(11px,1.15vw,14px)}
body[data-page="meets"] .meet-export-btn{min-height:40px}
@media(min-width:1100px){
 body[data-page="meets"] .meet-explorer-controls{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
}
@media(max-width:700px){
 body[data-page="meets"] .main{padding-inline:clamp(12px,3vw,20px)}
 body[data-page="meets"] .meet-explorer-controls{grid-template-columns:minmax(0,1fr);gap:10px!important}
 body[data-page="meets"] .meet-explorer-controls>div:nth-child(3){grid-column:auto}
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto!important}
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open]{min-height:0!important}
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-group[open] .meet-swimmer-grid{grid-auto-rows:auto!important}
 body[data-page="meets"] #meetSwimmerList .meet-swimmer-choice{min-height:46px;font-size:clamp(12px,3.3vw,16px);padding:9px 10px}
 body[data-page="meets"] .meet-results-heading-bar h2{font-size:clamp(19px,5vw,28px)}
 body[data-page="meets"] .meet-legend{gap:7px 12px}
}
@media(max-width:350px){body[data-page="meets"] #meetSwimmerList .meet-swimmer-grid{grid-template-columns:minmax(0,1fr)}}



/* v0.3.0 — Meet results legibility. Shared by the admin Meet Explorer and
   swimmer-profile Meet history. No navigation or page layout changes. */
.meet-mini-table.oshac-readable-meet-table{width:100%;table-layout:fixed!important}
.meet-mini-table.oshac-readable-meet-table th:first-child,
.meet-mini-table.oshac-readable-meet-table td:first-child{width:67%!important;text-align:left!important}
.meet-mini-table.oshac-readable-meet-table th:last-child,
.meet-mini-table.oshac-readable-meet-table td:last-child{width:33%!important;text-align:right!important;white-space:nowrap!important}
.meet-mini-table.oshac-readable-meet-table td{padding:13px 10px!important;font-size:clamp(15px,1.5vw,19px)!important;line-height:1.5!important;vertical-align:middle}
.meet-mini-table.oshac-readable-meet-table td:last-child,
.meet-mini-table.oshac-readable-meet-table td:last-child strong{font-size:clamp(17px,1.8vw,23px)!important;font-weight:850;font-variant-numeric:tabular-nums}
.oshac-readable-meet-table .oshac-event-label{font-weight:700}
.oshac-course-badge{display:inline-flex;align-items:center;vertical-align:middle;margin-left:9px;padding:2px 7px;border:1px solid #4b93a4;border-radius:7px;background:#154457;color:#9ef0ed;font-size:11px;font-weight:850;letter-spacing:.03em;white-space:nowrap}
@media(max-width:640px){
 .meet-mini-table.oshac-readable-meet-table td{padding:13px 7px!important;font-size:clamp(14px,3.8vw,17px)!important}
 .meet-mini-table.oshac-readable-meet-table td:last-child,
 .meet-mini-table.oshac-readable-meet-table td:last-child strong{font-size:clamp(16px,4.2vw,20px)!important}
 .meet-mini-table.oshac-readable-meet-table th:first-child,
 .meet-mini-table.oshac-readable-meet-table td:first-child{width:62%!important}
 .meet-mini-table.oshac-readable-meet-table th:last-child,
 .meet-mini-table.oshac-readable-meet-table td:last-child{width:38%!important}
 .meet-mini-table.oshac-readable-meet-table .oshac-course-badge{margin-left:5px;padding:1px 5px;font-size:10px}
}

/* v0.3.0 — Single course indicator for each meet card; mixed meets keep row labels. */
.oshac-meet-title-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.oshac-meet-title-line strong,.oshac-meet-title-line .family-meet-name{min-width:0}
.oshac-meet-course-pill{display:inline-flex;align-items:center;flex:none;padding:3px 9px;border:1px solid #4b93a4;border-radius:8px;background:#154457;color:#a2f3e9;font-size:clamp(10px,1.2vw,12px);font-weight:800;letter-spacing:.02em;line-height:1.5;white-space:nowrap}
@media(max-width:520px){.oshac-meet-title-line{gap:6px}.oshac-meet-course-pill{padding:2px 7px;font-size:10px}}
