/* Mobile workspace refinements. Desktop layout remains in style.css. */
@media(max-width:760px){
 :root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#243a36}
 body{background:#f3f6f8}button,a{touch-action:manipulation}
 .shell>main>header{padding:8px 14px;gap:8px;box-shadow:0 2px 12px #143f2710}
 .mobile-menu-toggle{color:#205d91;background:#edf4fa!important;border:1px solid #e0eaf2}
 .header-actions .site-settings-button{font-size:13px;border-radius:12px;background:#eef4f1;padding:10px 12px}
 .shell>.sidebar{width:min(320px,88vw);padding:18px 16px calc(18px + env(safe-area-inset-bottom));border-radius:0 18px 18px 0}
 .sidebar .brand-custom{gap:12px}.sidebar .brand-custom img{width:48px;height:48px}.sidebar .brand-custom>div{font-size:13px;text-align:left}
 .sidebar .chat-priority{margin-top:16px;padding-top:14px;margin-bottom:4px;overflow:visible;flex:none}
 .sidebar nav:not(.chat-priority){display:block;overflow:visible;flex:none;margin-top:0}
 .sidebar nav button{font-size:14px;min-height:46px;padding:12px;border-radius:10px;color:#425950}
 .sidebar nav button.active{background:#e7f3ec;color:#16634b}.sidebar nav button b{display:inline-block;font-size:12px}
 .sidebar .navlabel{margin:18px 0 8px;font-size:10px;font-weight:700;color:#74877d}
 .sidebar .sidebarbottom{margin-top:16px;padding:12px 0;font-size:11px}.sidebar .profile{margin-top:0;padding:14px 0;font-size:13px}
 .content{padding:20px 14px calc(24px + env(safe-area-inset-bottom))}
 .eyebrow{font-size:9px;letter-spacing:1.5px}.heading{gap:12px;margin-bottom:16px}.content h1{font-size:24px;line-height:1.25;letter-spacing:-.7px;margin:10px 0}.heading p{font-size:12px;line-height:1.6;color:#637a6e}
 .heading .primary{width:auto;min-height:44px;border-radius:11px;padding:10px 16px;font-size:13px}
 .stats{gap:7px;margin-bottom:22px}.stats>div{padding:12px 9px;border-radius:12px;border-color:#e1e9e5}.stats strong{font-size:22px;color:#205f4c}.stats p{font-size:10px;color:#60776b;margin-top:4px;line-height:1.4}
 .sectiontitle{gap:8px}.sectiontitle h2{font-size:17px}.data-actions{gap:8px;flex-wrap:wrap}.data-actions .textbutton{font-size:12px;min-height:40px;padding:8px 10px;border:1px solid #dce6df;background:white;border-radius:9px}
 .toolbar{grid-template-columns:minmax(0,1fr) 44px;gap:8px;margin:12px 0}.toolbar .search{border-radius:12px;padding:0 12px;box-shadow:0 2px 8px #174d3210}.toolbar .search input{font-size:16px;min-height:48px}.toolbar select{width:100%;min-height:42px;font-size:13px;border-radius:10px}.toolbar .refresh{display:block;min-width:44px;border-radius:10px}
 .grid{gap:10px}.card{padding:14px;border-radius:14px;border-color:#e0e8e3;box-shadow:0 2px 8px #15372b06}.cardtop{gap:8px}.cardtop .docicon{font-size:18px;padding:7px;border-radius:9px}.cardtop .badge{font-size:10px;line-height:1.5;white-space:normal}.card h3{font-size:15px;line-height:1.45;margin:10px 0 6px}.card .note{font-size:12px;line-height:1.6;min-height:0;margin:6px 0;color:#63786c}.card .domain{font-size:10px;margin:9px 0;color:#71877c}.cardbottom{padding-top:8px;gap:8px;flex-wrap:wrap}.cardbottom a,.cardbottom button{min-height:40px;padding:6px 8px;font-size:12px;border-radius:8px}.cardbottom a{background:#edf6f0;color:#1a6a4d}.hint{padding:12px;border-radius:12px}.hint p{font-size:11px}.content footer{font-size:9px;gap:10px;padding:18px 0 0}
 .overlay{padding:0;backdrop-filter:none}.modal{padding:0 14px calc(18px + env(safe-area-inset-bottom));height:100dvh;max-height:100dvh;border-radius:0;box-shadow:none}
 .modaltitle{position:sticky;top:0;z-index:4;background:white;padding:10px 0;margin:0 0 12px;gap:8px;border-bottom:1px solid #e5ece7;min-height:60px}.modaltitle h2{font-size:18px;line-height:1.35;min-width:0}.modaltitle>button{width:40px;min-width:40px;height:40px;min-height:40px;border-radius:11px;flex-shrink:0}
 .modal label{font-size:13px;margin-top:14px}.modal label input:not([type=checkbox]),.modal textarea,.modal select{border-radius:11px;font-size:16px;min-height:46px}.modalactions{gap:10px;padding-top:14px;margin-top:16px}.modalactions button{border-radius:10px;min-height:44px;padding:10px 14px}.modal .primary{border-radius:11px}
 .account-settings>button{min-height:64px;border-radius:12px;padding:12px;gap:12px;margin:6px 0;background:#f5f8f6}.account-settings>button b{font-size:14px}.account-settings>button small{font-size:12px;line-height:1.5}.settings-profile{padding:12px 0}.settings-section-title{margin:20px 0 8px}
 .chat-dialog{height:100dvh!important;max-height:100dvh;padding:0 12px calc(8px + env(safe-area-inset-bottom));overflow:hidden}.chat-dialog .modaltitle{flex:0 0 auto;margin-bottom:8px}.chat-dialog .modaltitle h2{font-size:17px}.chat-tools>button{width:38px;height:40px}.chat-subtitle{font-size:10px;line-height:1.4;margin:0 0 7px;color:#75877e}.chat-shell{overflow:hidden;min-height:0}.chat-feed{height:auto;min-height:80px;flex:1;margin-top:6px;padding:10px 8px;border:0;background:#f1f5f4;border-radius:12px}.chat-message{max-width:94%;padding:10px 11px;margin-bottom:10px;border-radius:14px}.chat-meta{gap:5px}.chat-meta strong{font-size:12px}.chat-meta>span{font-size:10px}.chat-meta time{font-size:9px}.chat-text{font-size:14px;line-height:1.55;margin:8px 0}.chat-msg-actions{gap:6px;flex-wrap:wrap}.chat-msg-actions button{min-height:36px;padding:7px;font-size:11px;border-radius:8px;background:#ffffff88;color:#496b5c}.chat-dialog #chat-status{font-size:9px;min-height:12px;margin:5px 0}.chat-dialog .chat-compose-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}.chat-dialog #chat-text{min-height:54px;height:64px;max-height:110px;font-size:16px;padding:11px;margin-top:0;border-radius:12px;background:#f9fbfa}.chat-compose-actions{gap:8px;margin-top:6px}.chat-compose-actions .primary{min-height:44px;font-size:12px;padding:10px 14px}.chat-dialog #chat-file-name{font-size:9px;line-height:1.4;margin:4px 0 0}.chat-pins{max-height:100px}.chat-pin{padding:8px}.chat-dialog .form-error:empty{display:none}.chat-reply-compose{padding:6px 9px;margin:0 0 6px}.chat-reply-compose>div{min-width:0}.chat-reply-compose span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:65vw}
 .gallery-dialog{padding-inline:12px}.gallery-projects{gap:6px}.gallery-projects button{font-size:12px;padding:8px 10px;border-radius:10px}.gallery-card-body{padding:10px}.gallery-card-actions{gap:4px}.gallery-card-actions button,.gallery-card-actions a{padding:6px;min-height:38px;font-size:11px}.gallery-grid{gap:9px}.gallery-thumbnail,.gallery-video-cover,.gallery-file-icon{height:130px}.gallery-batchbar{border-radius:14px}
 .staff-toolbar{gap:8px;flex-wrap:wrap}.staff-toolbar button{min-height:44px;padding:10px;border-radius:10px;font-size:12px}.staff-table th,.staff-table td{padding:12px 10px;font-size:13px}.staff-card{border-radius:14px;padding:16px}.staff-person{min-width:170px}
 .fund-stats{gap:8px}.fund-stats strong{font-size:19px}.fund-table th,.fund-table td{font-size:12px}
 .auth-form{padding:24px 20px}.auth-box h2{font-size:27px}.auth-box input{border-radius:12px;min-height:48px}.auth-submit{border-radius:12px;min-height:48px}
}
@media(max-width:380px){.content{padding-inline:12px}.stats p{font-size:9px}.chat-dialog .modaltitle h2{font-size:15px}.chat-tools>button{width:34px}.chat-dialog .modaltitle>button{width:34px;min-width:34px}.gallery-grid{gap:7px}.chat-message{max-width:98%}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none!important}}
