:root { color-scheme:light; }
* { box-sizing:border-box; }
body.mobile-team-page { margin:0; background:#fff; color:#26384c; font:16px/1.45 Arial,sans-serif; letter-spacing:0; }
.mobile-team-page a { color:#285b7b; }
.mobile-team-page button, .mobile-team-page input, .mobile-team-page select { font:inherit; }
.mobile-team-page button, .mobile-team-page a { -webkit-tap-highlight-color:transparent; }
.mobile-team-page [hidden] { display:none !important; }
.mobile-team-page button { cursor:pointer; }
.mobile-team-page :focus-visible { outline:2px solid #47826a; outline-offset:2px; }
.mobile-topbar { display:flex; align-items:center; gap:10px; min-height:60px; padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left)); background:#243551; color:#fff; }
.mobile-topbar a { color:#fff; text-decoration:none; }
.mobile-brand { flex:1; font-size:19px; font-weight:700; }
.mobile-brand span { padding-left:8px; font-size:14px; font-weight:400; color:#dae4ee; }
.mobile-topbar form { margin:0; }
.mobile-home, .mobile-icon, .mobile-add { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex-shrink:0; padding:10px; border:0; border-radius:4px; background:transparent; }
.mobile-topbar img { filter:brightness(0) invert(1); }
.mobile-content { max-width:960px; margin:0 auto; padding:20px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
.mobile-content h1 { font-size:26px; line-height:1.25; margin:0 0 20px; overflow-wrap:anywhere; }
.mobile-content h2 { font-size:20px; line-height:1.3; margin:0; }
.mobile-content h3 { font-size:17px; line-height:1.3; margin:0 0 6px; overflow-wrap:anywhere; }
.mobile-account { margin-bottom:18px; color:#455c6c; font-size:14px; overflow-wrap:anywhere; }
.mobile-account span { display:block; margin-top:2px; color:#617381; font-size:13px; }
.mobile-breadcrumbs { display:flex; gap:8px; margin:16px 0 20px; padding-bottom:8px; overflow-x:auto; font-size:13px; }
.mobile-breadcrumbs>* { flex-shrink:0; max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mobile-team-heading { padding-bottom:16px; }
.mobile-coordinator { display:flex; align-items:center; gap:14px; min-width:0; }
.mobile-coordinator>div { min-width:0; overflow-wrap:anywhere; }
.mobile-avatar { flex-shrink:0; object-fit:cover; border-radius:6px; background:#f0f4f6; }
.mobile-eyebrow { margin-bottom:4px; font-size:12px; color:#617381; }
.mobile-card-number { display:block; margin-top:4px; font-size:13px; color:#617381; }
.mobile-people { margin:16px 0 10px; font-size:14px; }
.mobile-team-page .team-messenger-launch { text-align:left; margin:0 0 24px; }
.mobile-team-page .team-messenger-launch button { min-height:48px; width:100%; }
.mobile-root-form { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px; }
.mobile-root-form label { width:100%; font-size:13px; color:#617381; }
.mobile-root-form select { flex:1; min-width:0; width:180px; max-width:100%; height:44px; padding:8px; border:1px solid #cdd9e0; border-radius:4px; background:#fff; }
.mobile-secondary { min-height:44px; padding:8px 12px; border:1px solid #cdd9e0; border-radius:4px; background:#f7f9fa; color:#26384c; }
.mobile-notice { padding:12px; border-left:3px solid #a77c27; background:#faf6e9; font-size:14px; }
.mobile-leaders { padding:14px 0; border-top:1px solid #dce4e9; border-bottom:1px solid #dce4e9; margin-bottom:20px; }
.mobile-leaders summary { cursor:pointer; font-size:14px; color:#285b7b; }
.mobile-leaders ul { margin:12px 0 0; padding:0; list-style:none; }
.mobile-leaders li { display:grid; gap:4px; padding:10px 0; font-size:14px; }
.mobile-leaders li span { font-size:13px; color:#617381; }
.mobile-section-title { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0 0 12px; }
.mobile-section-title h2 span { font-size:14px; font-weight:400; color:#617381; margin-left:5px; }
.mobile-add { border:1px solid #cdd9e0; }
.mobile-search { display:flex; align-items:center; gap:8px; min-height:46px; padding:0 12px; border:1px solid #cdd9e0; border-radius:4px; margin-bottom:16px; }
.mobile-search img { flex-shrink:0; }
.mobile-search input { min-width:0; width:100%; height:44px; border:0; background:transparent; color:#26384c; outline-offset:0; }
.mobile-team-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.mobile-team-card { border:1px solid #d5dfe5; border-radius:6px; min-width:0; background:#fff; }
.mobile-team-open { display:flex; align-items:center; gap:12px; padding:14px; color:#26384c !important; text-decoration:none; min-height:108px; }
.mobile-team-open>div { flex:1; min-width:0; }
.mobile-team-open:hover { background:#f7fafa; }
.mobile-person-name { font-size:14px; overflow-wrap:anywhere; }
.mobile-chevron { flex-shrink:0; opacity:.7; }
.mobile-edit-link { display:flex; align-items:center; gap:6px; min-height:44px; padding:8px 14px; font-size:13px; border-top:1px solid #edf0f2; text-decoration:none; }
.mobile-empty { margin:12px 0; color:#617381; }
.mobile-login { max-width:420px; margin:20px auto; }
.mobile-form { display:flex; flex-direction:column; gap:8px; }
.mobile-form label { margin-top:10px; font-size:14px; }
.mobile-form input:not([type="hidden"]) { min-width:0; width:100%; min-height:48px; padding:10px 12px; border:1px solid #cdd9e0; border-radius:4px; background:#fff; color:#26384c; }
.mobile-password { position:relative; }
.mobile-password input { padding-right:50px !important; }
.mobile-password button { position:absolute; top:2px; right:2px; }
.mobile-primary { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:10px 16px; border:1px solid #243551; border-radius:4px; margin-top:16px; background:#243551; color:#fff; }
.mobile-secondary-link { display:block; padding:12px 0; text-align:center; }
.mobile-error { color:#992a2a; padding:12px; border-left:3px solid #b52e2e; background:#fff1f1; font-size:14px; }
.mobile-back { display:inline-flex; align-items:center; gap:8px; min-height:44px; text-decoration:none; margin-bottom:14px; }
.mobile-parent-name { color:#617381; font-size:14px; }
.mobile-editor { max-width:600px; }
.mobile-editor-photo { object-fit:cover; border-radius:6px; margin-top:16px; }
.mobile-team-page .team-messenger button, .mobile-team-page .team-messenger input, .mobile-team-page .team-messenger textarea, .mobile-team-page .team-messenger select { font-size:16px; }
.mobile-team-page .team-messenger .tm-author, .mobile-team-page .team-messenger .tm-preview, .mobile-team-page .team-messenger .tm-time { font-size:13px; }
.mobile-team-page .team-messenger .tm-message-menu-toggle { width:36px; height:36px; }
.mobile-team-page .team-messenger .tm-message-actions button { min-height:44px; }
.mobile-team-page .team-messenger .tm-reaction-picker button { font-size:24px; }
.mobile-team-page .team-messenger .tm-reaction { font-size:18px; min-height:36px; }
.mobile-team-page .team-messenger .tm-icon { min-width:40px; }
@media(max-width:700px), (pointer:coarse) and (max-width:1000px) {
    .mobile-team-list { grid-template-columns:minmax(0,1fr); }
    .mobile-team-page .team-messenger { inset:var(--team-viewport-top,0px) 0 auto; width:100%; max-width:100%; height:var(--team-viewport-height,100dvh); max-height:var(--team-viewport-height,100dvh); margin:0; border:0; border-radius:0; }
    .mobile-team-page .tm-workspace { display:flex; flex-direction:column; }
    .mobile-team-page .tm-sidebar { flex:1; border-right:0; }
    .mobile-team-page .tm-workspace[data-view="list"] .tm-conversation, .mobile-team-page .tm-workspace[data-view="chat"] .tm-sidebar { display:none; }
    .mobile-team-page .tm-workspace[data-view="chat"] .tm-conversation { flex:1; }
    .mobile-team-page .team-messenger #tm-back { display:inline-flex; }
    .mobile-team-page .team-messenger-header { padding:calc(8px + env(safe-area-inset-top)) 12px 8px; }
    .mobile-team-page .team-messenger .team-messenger-title { font-size:18px; line-height:24px; }
    .mobile-team-page .tm-chat-header { padding:8px 10px; min-height:62px; }
    .mobile-team-page .team-messenger #tm-members-link { font-size:12px; max-width:150px; }
    .mobile-team-page .tm-compose { padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); }
    .mobile-team-page .team-messenger #tm-body { height:52px; min-height:52px; max-height:110px; resize:none; }
    .mobile-team-page .tm-compose-row { flex-wrap:nowrap; gap:4px; }
    .mobile-team-page .team-messenger #tm-send { width:44px; height:44px; min-width:44px; padding:10px; font-size:0; background:#47826a url('/icons/team-send-lucide.svg') center/22px no-repeat; }
    .mobile-team-page .team-messenger .tm-message { max-width:96%; }
    .mobile-team-page .team-messenger .tm-body { font-size:15px; }
    .mobile-team-page .tm-emoji-grid { max-height:min(160px,calc(var(--team-viewport-height,100dvh) * .24)); }
    .mobile-team-page .team-messenger[data-compact="true"] .team-messenger-header { padding:4px 8px; }
    .mobile-team-page .team-messenger[data-compact="true"] .tm-chat-header { min-height:44px; padding:2px 8px; }
    .mobile-team-page .team-messenger[data-compact="true"] .tm-pins { max-height:50px; overflow-y:auto; }
}
@media(max-width:350px) { .mobile-content { padding-left:12px; padding-right:12px; } .mobile-team-open { gap:8px; padding:12px; } .mobile-team-open>.mobile-avatar { width:44px; height:44px; } }
