/* CEEJAY community: compact cards, blue grid, orange wayfinding. */
.crews-screen .crew-detail-hero{background:radial-gradient(ellipse at 100% 0,#ff6a3d55,transparent 65%),linear-gradient(120deg,#2d7dff,#1457ff 55%,#103b98);border-radius:22px 22px 0 0;border:1px solid #76a5ff;border-bottom:4px solid #ff5a1f;overflow:hidden}
.crews-screen .crew-detail-hero::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#ffffff0c 1px,transparent 1px),linear-gradient(90deg,#ffffff0c 1px,transparent 1px);background-size:24px 24px}
.crews-screen .crew-detail-hero .crew-role{font-size:9px;letter-spacing:.12em;color:#fff;background:#ffffff20;border:1px solid #ffffff50}
.crews-screen .crew-detail-hero h2{font-family:var(--font-display,"Avenir Next Condensed"),Impact,sans-serif;font-weight:900;text-transform:uppercase;letter-spacing:-.02em}
.crews-screen .crew-detail-tabs{border-color:#9ebfff;border-radius:0 0 16px 16px;padding:5px;background:#e7efff;gap:5px}
.crews-screen .crew-detail-tabs button{position:relative;color:#315789;min-height:44px}
.crews-screen .crew-detail-tabs button[aria-selected=true]{color:#fff;background:linear-gradient(120deg,#2c79ff,#1457ff);box-shadow:inset 0 -3px #ff5a1f,0 4px 12px #1457ff20;border-radius:10px}
.crews-screen .crew-pane:not(.crew-chat){border-color:#b1c9f6;border-top:3px solid #1457ff;background:radial-gradient(ellipse at 100% 0,#ff5a1f0a,transparent 55%),linear-gradient(135deg,#fff,#f4f7ff);box-shadow:0 10px 28px #143b9610}
.crews-screen .crew-section-head{gap:12px}
.crews-screen .crew-pane-eyebrow{display:block;font-size:10px;font-weight:900;letter-spacing:.15em;color:#1457ff;margin:0 0 5px}
.crews-screen #crew-pane-invite .crew-section-head h2{font-family:var(--font-display,"Avenir Next Condensed"),Impact,sans-serif;font-size:clamp(25px,4vw,32px);line-height:1.05;text-transform:uppercase;letter-spacing:-.02em;margin:0 0 7px}
.crews-screen #crew-pane-invite .crew-section-head p{margin:0 0 14px;line-height:1.45}
.crew-account-search{display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #aac4f5;border-radius:13px;background:#fff;box-shadow:inset 0 -2px #1457ff09}
.crew-account-search:focus-within{border-color:#1457ff;box-shadow:0 0 0 3px #1457ff13}
.crew-account-search>svg{flex:none;width:20px;height:20px;fill:none;stroke:#1457ff;stroke-width:1.9;stroke-linecap:round}
.crews-screen .crew-account-search input{min-height:46px;border:0;background:none;border-radius:0;padding:11px 0;box-shadow:none;outline:0;font-size:16px}
.crews-screen .crew-account-search input:focus-visible{outline:0}
.crews-screen #crew-friend-picker{margin-top:10px}
.crews-screen .social-person-card{position:relative;overflow:hidden;border:1px solid #c7d9fa;background:linear-gradient(120deg,#fff,#edf3ff);border-radius:14px;padding:10px 12px;transition:border-color .15s,box-shadow .15s}
.crews-screen .social-person-card::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(#1457ff 75%,#ff5a1f 75%)}
.social-person-card[data-account-profile],.teacher-person[data-account-profile]{cursor:pointer}
.crews-screen .social-person-card:hover{border-color:#87acfa;box-shadow:0 5px 15px #1457ff12}
.account-profile-open{display:flex;align-items:center;gap:10px;text-align:left;border:0;background:none;font:inherit;color:#143369;cursor:pointer;padding:0;min-width:0;flex:1}
.account-profile-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.account-profile-copy b,.account-profile-copy small{overflow-wrap:anywhere}
.account-profile-open .friend-profile-arrow{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;min-width:24px;margin-left:auto;padding:4px;border:1px solid #a8c5ff;border-radius:8px;color:#1457ff;background:#e8f0ff;transition:background .15s,color .15s}
.friend-profile-arrow svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.account-profile-open:hover .friend-profile-arrow{color:#fff;background:#1457ff}
.account-profile-open:focus-visible,.teacher-person-open:focus-visible{outline:2px solid #ff5a1f;outline-offset:4px;border-radius:8px}
.crews-screen .social-avatar{border:2px solid #97baff;background:linear-gradient(145deg,#388aff,#1457ff);box-shadow:inset 0 1px #ffffff65,0 3px 8px #1457ff18}
.crews-screen .crew-invite-button{flex:none;border-color:#ff9e72;color:#fff;background:linear-gradient(125deg,#ff7c36,#ff5a1f);box-shadow:inset 0 1px #ffffff55;min-height:38px;padding:8px 12px}
.crews-screen .crew-invite-button:disabled{color:#5e7098;background:#eaf1ff;border-color:#c1d4f9;box-shadow:none;font-size:10px}
.crews-screen .crew-username-invite{background:linear-gradient(120deg,#eef4ff,#fff);border-color:#aec8f6;border-left:3px solid #ff5a1f;padding:12px;border-radius:14px}
.crews-screen .crew-username-invite summary{color:#164293;font-weight:800}
.crews-screen .crew-subheading{display:flex;align-items:center;gap:8px;font-size:16px;line-height:1.2;margin:22px 0 10px;color:#123672}
.crews-screen .crew-subheading::before{content:"";width:6px;height:18px;border-radius:3px;background:#ff5a1f;flex:none}
.crew-username-results:not(:empty){margin-top:10px;max-height:320px;overflow:auto}
.crew-chat-profile,.crew-chat-author{border:0;padding:0;background:none;font:inherit;cursor:pointer;color:#1457ff}
.crew-chat-profile{flex:0 0 28px;width:28px;height:28px;border-radius:50%}
.crew-chat-profile .social-avatar{width:28px;height:28px;font-size:10px}
.crew-chat-author{font-size:11px;font-weight:800;text-align:left}
.crew-chat-author:hover{text-decoration:underline}
.admin-person-account-card{display:flex;align-items:center;gap:8px;min-width:0}
.admin-person-account-card .admin-person-card{flex:1;min-width:0}
.admin-person-profile-link{display:flex;align-items:center;gap:5px;flex:none;min-height:40px;padding:8px 10px;border:1px solid #b6ccf7;border-radius:10px;background:#edf3ff;color:#1457ff;font-family:inherit;font-size:11px;line-height:1.2;font-weight:750;cursor:pointer}
.admin-person-profile-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
@media(max-width:600px){.crews-screen .crew-detail-hero{padding:17px;gap:12px}.crews-screen .crew-pane:not(.crew-chat){padding:16px}.crews-screen .social-person-card{padding:10px;gap:8px}.crews-screen .social-person-main b{font-size:14px}.crews-screen .social-person-main small{font-size:11px}.account-profile-open{gap:8px}.account-profile-open .friend-profile-arrow{flex-basis:22px;width:22px;height:22px;padding:3px}.crews-screen .crew-invite-button{max-width:100px;white-space:normal}.crews-screen .crew-detail-tabs button{padding:9px 8px;font-size:12px}.admin-person-account-card{gap:5px}.admin-person-profile-link{flex-direction:column;padding:8px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.crews-screen .social-person-card,.account-profile-open .friend-profile-arrow{transition:none}}

.crew-owner-profile{padding:0;border:0;background:none;color:#1457ff;font:inherit;font-weight:750;cursor:pointer}.crew-owner-profile:hover{text-decoration:underline}.social-avatar-profile{display:flex;align-items:center;justify-content:center;border:0;background:none;padding:0;cursor:pointer;flex:none}

.admin-account-search-results{padding:10px;margin:0 0 16px;border:1px solid #abc7f6;border-top:3px solid #1457ff;border-radius:14px;background:#edf3ff;max-height:340px;overflow:auto;gap:8px}.admin-account-search-results[hidden]{display:none}.admin-account-search-results .social-person-card{margin:0;padding:10px;border-radius:12px;background:#fff}.teacher-account-name{padding:0;border:0;text-align:left;background:none;color:#1457ff;cursor:pointer;font:inherit}.teacher-account-name:hover small{text-decoration:underline}

/* Invitation headline uses the same graphic language as CEEJAY home banners. */
.crews-screen #crew-pane-invite .crew-section-head{position:relative;isolation:isolate;overflow:hidden;display:block;padding:18px 20px 16px;margin:0 0 16px;border:1px solid #8bb3ff;border-bottom:3px solid #ff5a1f;border-radius:16px;background:radial-gradient(ellipse at 100% 0,#ff6a3d55,transparent 65%),linear-gradient(115deg,#2e7cff,#1457ff 58%,#103b98)}
.crews-screen #crew-pane-invite .crew-section-head::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#ffffff10 1px,transparent 1px),linear-gradient(90deg,#ffffff10 1px,transparent 1px);background-size:24px 24px}
.crews-screen #crew-pane-invite .crew-section-head::after{content:"";position:absolute;width:160px;height:160px;right:-50px;top:-70px;border:1px solid #ffffff28;border-radius:50%;box-shadow:0 0 0 22px #ffffff08,0 0 0 44px #ffffff05;pointer-events:none;z-index:-1}
.crews-screen #crew-pane-invite .crew-pane-eyebrow{color:#ffaf80}
.crews-screen #crew-pane-invite .crew-section-head h2{color:#fff;max-width:85%;text-shadow:0 2px 0 #103b981a}
.crews-screen #crew-pane-invite .crew-section-head p{color:#eef5ff;margin:0;max-width:75ch;font-size:13px}
@media(max-width:600px){.crews-screen #crew-pane-invite .crew-section-head{padding:16px;margin-bottom:14px}.crews-screen #crew-pane-invite .crew-section-head h2{max-width:90%}.crews-screen #crew-pane-invite .crew-section-head p{font-size:12px}}
