
:root{font-family:Arial,Helvetica,sans-serif;color:#233b37;background:#f5f7f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #6ec9ae;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #70b7a5;outline-offset:1px}.shell{display:flex;min-height:100vh}.sidebar{width:258px;background:#fff;border-right:1px solid #e3eae7;padding:32px 20px 0;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.brand{display:flex;gap:12px;align-items:center;font-weight:800;font-size:21px;letter-spacing:2px;padding:0 10px}.brandmark{display:grid;place-items:center;width:38px;height:42px;background:#15634f;color:white;border-radius:10px 2px;font-size:29px;font-family:Georgia}.brand small{font-size:8px;letter-spacing:2.3px;display:block;margin-top:7px;color:#8b9b95}.workspace{display:flex;gap:11px;align-items:center;margin:35px 0 30px;padding:15px 9px;border:1px solid #e5ebe8;border-radius:10px;font-size:13px;font-weight:600}.workspace-icon{background:#edf4f0;padding:10px;border-radius:7px}.workspace small,.profile small{display:block;color:#89958e;font-size:10px;font-weight:400;margin-top:6px}.navlabel{font-size:10px;letter-spacing:1.7px;color:#87968f;padding-left:14px;margin-bottom:14px}nav button{display:flex;width:100%;align-items:center;gap:11px;padding:13px 12px;margin:3px 0;font-size:12px;border-radius:7px;color:#6a7c74;text-align:left}nav button span{flex:1}nav button b{font-size:10px;font-weight:500;color:#92a098}nav .active{color:#17664f;background:#eaf4ef;font-weight:600}nav button:hover{background:#f1f6f3}.navline{border-top:1px solid #eef1ef;margin:18px 0}.sidebarbottom{display:flex;gap:9px;margin-top:auto;padding:30px 4px 20px;color:#6e8177;font-size:11px}.sidebarbottom small{display:block;font-size:9px;margin-top:7px;color:#97a39c}.profile{border-top:1px solid #edf1ee;display:flex;align-items:center;gap:10px;font-size:12px;padding:20px 0}.profile>span{background:#f0ede3;border-radius:50%;padding:12px 15px;color:#917345}main{margin-left:258px;width:calc(100% - 258px)}header{height:76px;background:#fff;border-bottom:1px solid #e6ece8;padding:0 44px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8c9a93}header b{color:#4c6459;font-weight:500}.crumb{margin:0 15px;color:#ccd4cf}.live{font-size:10px}.live i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#3f9776;margin-right:7px}.content{max-width:1330px;margin:auto;padding:38px 44px 0}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:#4f8a73}.heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:32px}h1{font-size:36px;line-height:1.25;letter-spacing:-1.2px;margin:14px 0}h1 span{color:#78978a}.heading p{font-size:12px;color:#87968e;line-height:1.8;margin:0}.primary{display:inline-flex;justify-content:center;align-items:center;gap:8px;background:#19684f;color:white;padding:13px 18px;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}.primary:hover{background:#10513d}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:36px}.stats>div{display:flex;align-items:center;gap:18px;background:white;border:1px solid #e5ebe7;border-radius:10px;padding:23px}.stat-icon{background:#eaf4ee;color:#43886a;border-radius:10px;padding:13px;display:flex}.stat-icon.amber{background:#fcf5e8;color:#b19a65}.stat-icon.blue{background:#edf2f9;color:#718daf}.stats strong{font-size:26px;font-weight:600}.stats p{font-size:11px;color:#8a998f;margin:6px 0 0}.sectiontitle,.sectiontitle>div{display:flex;align-items:center;justify-content:space-between;gap:13px}.sectiontitle h2{font-size:18px;margin:0}.sectiontitle span{font-size:10px;background:#e6ece8;color:#7d8d82;padding:5px 9px;border-radius:20px}.textbutton{display:flex;gap:7px;align-items:center;font-size:11px;color:#76877b}.toolbar{display:flex;gap:12px;margin:21px 0}.search{display:flex;align-items:center;gap:10px;background:white;border:1px solid #dfe7e1;border-radius:7px;padding:0 14px;flex:1;color:#8e9e94}.search input{border:0;background:none;padding:13px 0;outline:none;flex:1;min-width:0;font-size:12px}.toolbar select{border:1px solid #dfe7e1;background:white;border-radius:7px;font-size:11px;padding:0 14px;color:#75877c}.refresh{background:white;border:1px solid #dfe7e1;border-radius:7px;padding:10px;color:#809085}.empty{min-height:330px;background:#fff;border:1px dashed #d5e2d9;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:32px}.emptyart{position:relative;width:83px;height:76px;background:#eff6f1;display:grid;place-items:center;border-radius:22px;color:#78a58d;margin-bottom:10px}.emptyart span{position:absolute;right:-8px;bottom:0;border:4px solid white;border-radius:50%;background:#19684f;color:white;padding:6px;display:flex}.empty h3{font-size:18px;margin:17px 0 8px}.empty p{font-size:12px;color:#8c9b91;max-width:380px;line-height:1.8;margin:0 0 20px}.supported{font-size:8px;letter-spacing:1px;color:#a1ada5;margin-top:24px}.supported span{margin:0 10px}.hint{display:flex;align-items:center;gap:14px;border:1px solid #e1e9e2;background:#edf3ee;padding:16px 20px;border-radius:8px;margin-top:23px;color:#739180}.hint svg{flex-shrink:0}.hint p{font-size:11px;line-height:1.8;margin:0}.hint b{color:#54725f;font-weight:600}footer{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.2px;color:#a0aea4;padding:27px 0}footer span{letter-spacing:0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{border:1px solid #e1e9e2;border-radius:10px;background:white;padding:20px;min-width:0}.cardtop{display:flex;align-items:center;gap:9px}.docicon{display:flex;background:#eaf3ec;color:#528767;border-radius:9px;padding:10px}.badge{font-size:9px;color:#7e9385;background:#f3f6f3;padding:5px 7px;border-radius:5px}.pinned{margin-left:auto;color:#b4a06b}.card h3{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.note{font-size:11px;line-height:1.8;color:#8b9a90;min-height:38px;white-space:pre-wrap;overflow-wrap:anywhere}.domain{font-size:10px;color:#a0ada3;overflow:hidden;text-overflow:ellipsis;margin:18px 0}.cardbottom{display:flex;gap:12px;align-items:center;border-top:1px solid #eef2ee;padding-top:14px;font-size:10px;color:#86978a}.cardbottom a{display:flex;gap:5px;align-items:center;margin-right:auto;color:#337a57;font-weight:600}.overlay{position:fixed;inset:0;background:#122b2366;backdrop-filter:blur(4px);z-index:5;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:white;border-radius:16px;padding:28px;width:510px;max-width:100%;max-height:95vh;overflow:auto;box-shadow:0 20px 70px #123c2325}.modaltitle{display:flex;align-items:center;justify-content:space-between}.modaltitle h2{font-size:22px;margin:10px 0}.modal>p{font-size:12px;color:#8d9d92;margin:0 0 24px}.modal label{display:block;font-size:12px;font-weight:600;margin-top:17px}.modal label input:not([type=checkbox]),.modal textarea,.modal select{display:block;width:100%;border:1px solid #dce6dd;border-radius:7px;padding:12px;font-weight:400;font-size:12px;margin-top:8px;background:#fff}.modal em{color:#9caf9e;font-style:normal}.modal label.check{display:flex;align-items:center;gap:8px;font-weight:400;color:#6e8675}.modal input[type=checkbox]{accent-color:#19684f}.modalactions{display:flex;justify-content:flex-end;gap:22px;border-top:1px solid #e9eee9;margin-top:24px;padding-top:20px;font-size:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#204f39;color:white;padding:16px 24px;border-radius:10px;z-index:10;font-size:13px;box-shadow:0 4px 30px #0002}@media(min-width:1500px){.content{padding-top:50px}.empty{min-height:390px}}@media(max-width:1150px){.sidebar{width:220px;padding-inline:14px}main{margin-left:220px;width:calc(100% - 220px)}.content{padding:30px 25px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats>div{padding:18px;gap:10px}header{padding:0 25px}h1{font-size:31px}}@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:100%;padding:18px 20px;border-bottom:1px solid #e4ece5}.brand{font-size:18px;padding:0}.brand small{font-size:7px}.brandmark{height:34px;width:32px;font-size:24px}.workspace,.navlabel,.sidebarbottom,.profile,.navline{display:none}nav{display:flex;overflow-x:auto;margin-top:18px;gap:7px}nav button{width:auto;flex-shrink:0;padding:9px 10px;font-size:10px}nav button svg{width:14px}nav button b{display:none}main{margin:0;width:100%}header{height:49px;font-size:9px;padding:0 20px}.content{padding:27px 20px 0}.heading{align-items:flex-start;flex-direction:column;gap:18px}h1{font-size:31px}.heading p{font-size:11px}.stats{gap:8px;margin-bottom:28px}.stats>div{padding:12px;display:block}.stat-icon{display:none}.stats strong{font-size:23px}.stats p{font-size:9px;line-height:1.5}.sectiontitle h2{font-size:16px}.sectiontitle>div{gap:7px}.textbutton{font-size:9px}.toolbar{gap:7px}.toolbar select{font-size:10px;width:112px;padding:0 8px}.search{padding:0 10px}.search input{font-size:11px}.refresh{display:none}.empty{padding:24px 18px;min-height:340px}.empty h3{font-size:16px}.empty p{font-size:11px}.hint{padding:14px}.hint p{font-size:10px}.grid{grid-template-columns:1fr}.modal{padding:24px}.toast{width:90%;text-align:center}.live{font-size:9px}}
[hidden]{display:none!important}.auth-page{margin:0;width:100%;display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:#eaf1eb;padding:54px 60px;display:flex;flex-direction:column;justify-content:space-between}.auth-story>div:nth-child(2){margin:70px 0}.auth-story h1{font-size:42px;margin:23px 0}.auth-story p{color:#718678;font-size:13px;line-height:2}.auth-story>small{font-size:9px;letter-spacing:3px;color:#7d9786}.auth-tags{display:flex;gap:12px;margin-top:40px}.auth-tags span{font-size:9px;letter-spacing:1px;border:1px solid #cddcd0;border-radius:30px;padding:10px 15px;color:#799280}.auth-form{background:#fff;display:grid;place-items:center;padding:45px}.auth-box{width:100%;max-width:370px}.auth-box h2{font-size:31px;letter-spacing:-.8px;margin:16px 0 12px}.auth-box>p{color:#8d9b92;font-size:12px;line-height:1.8;margin-bottom:30px}.auth-box label{font-size:12px;font-weight:600;display:block;margin-top:21px}.auth-box input{display:block;width:100%;border:1px solid #dae4dc;padding:14px;border-radius:7px;margin-top:9px;font-size:13px;background:#fff}.pinfield{position:relative}.pinfield input{padding-right:60px}.pinfield button{position:absolute;right:13px;top:14px;font-size:11px;color:#799181}.auth-submit{width:100%;padding:15px}.form-error{color:#b05043;font-size:12px;line-height:1.7;min-height:20px}.auth-switch{font-size:12px;text-align:center;color:#90a095;margin-top:26px}.auth-switch a{color:#257054;font-weight:600;margin-left:5px}.auth-info{font-size:11px;line-height:1.8;background:#f4f7f4;padding:16px;border-radius:8px;margin-top:32px;color:#839789}.header-actions{display:flex;gap:17px;color:#60816b;font-size:11px}.data-actions{display:flex;gap:15px}.users{max-height:60vh;overflow:auto}.user-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #e9eee9;padding:18px 0;font-size:12px}.user-row small{display:block;color:#8a9c8e;margin-top:7px}.user-row .primary{padding:9px 14px}.muted{font-size:12px;color:#87988c;line-height:1.8}.cardtop .docicon{font-size:21px}.emptyart{font-size:38px}.header-actions button{padding:8px 0}@media(max-width:900px){.auth-story{padding:40px 30px}.auth-story h1{font-size:34px}.auth-form{padding:35px}.auth-tags{gap:6px}.auth-tags span{padding:8px 10px}}@media(max-width:640px){.auth-page{display:block}.auth-story{padding:24px}.auth-story>div:nth-child(2),.auth-story>small{display:none}.auth-form{padding:38px 24px;min-height:calc(100vh - 82px);align-items:start}.auth-box{max-width:430px}.header-actions{gap:10px;font-size:9px}.data-actions{gap:9px}.sectiontitle{flex-wrap:wrap}}

.brand-custom{flex-direction:column;text-align:center;gap:12px;font-size:15px;letter-spacing:.6px}.brand-custom img{display:block;width:104px;height:104px;object-fit:contain;border-radius:50%}.brand-custom small{font-size:10px;letter-spacing:2px;color:#12749b}.auth-story .brand-custom{flex-direction:row;text-align:left;font-size:18px;gap:17px}.auth-story .brand-custom img{width:94px;height:94px}@media(max-width:760px){.sidebar .brand-custom{flex-direction:row;text-align:left;font-size:16px}.sidebar .brand-custom img{width:56px;height:56px}}@media(max-width:640px){.auth-story .brand-custom img{width:64px;height:64px}.auth-story .brand-custom{font-size:16px}}

.sidebar nav{min-height:0;overflow-y:auto;flex:1}.sidebarbottom{flex-shrink:0}.user-row b{overflow-wrap:anywhere}.user-row>div{min-width:0}.user-row button{flex-shrink:0}@media(max-width:760px){.sidebar nav{overflow-x:auto;overflow-y:hidden;flex:none}}
.chat-dialog{width:860px;height:min(880px,94vh);display:flex;flex-direction:column;overflow:hidden}.chat-dialog .modaltitle{flex-shrink:0}.chat-shell{display:flex;flex-direction:column;min-height:0;flex:1}.chat-subtitle{font-size:11px;color:#8a9b90;margin:0 0 15px}.chat-pins{flex-shrink:0;max-height:170px;overflow:auto;background:#fdf7e6;border-radius:9px;font-size:12px}.chat-pins summary{cursor:pointer;padding:12px;font-weight:600;color:#947636}.chat-pin{display:flex;justify-content:space-between;gap:15px;padding:10px 14px;border-top:1px solid #f0e7ce}.chat-pin p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;font-size:12px;line-height:1.5}.chat-pin a{font-size:11px;color:#33734d}.chat-pin button{flex-shrink:0;font-size:10px;align-self:flex-start}.chat-feed{overflow:auto;flex:1;min-height:140px;background:#f5f8f5;border:1px solid #e6eee7;border-radius:10px;padding:15px;margin-top:12px;overscroll-behavior:contain}.chat-message{background:white;border:1px solid #e0e9e0;border-radius:10px;padding:13px 15px;max-width:90%;margin:0 auto 12px 0}.chat-own{margin-left:auto;margin-right:0;background:#ecf5ee;border-color:#d6e5d9}.chat-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:10px;color:#8b9b90}.chat-meta strong{font-size:12px;color:#345842}.chat-meta time{margin-left:auto;font-size:9px}.chat-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65;margin:10px 0}.chat-file img{display:block;max-width:100%;max-height:280px;object-fit:contain;border-radius:8px;margin:10px 0}.chat-download{display:block;font-size:12px;color:#216b47;overflow-wrap:anywhere;padding:8px 0}.chat-download small{color:#83968a;margin-left:8px}.chat-msg-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:8px;color:#728c7a;font-size:10px}.chat-older{display:block;margin:0 auto 15px;font-size:11px;color:#498162}.chat-welcome{text-align:center;padding:25px;color:#8b9c8e;font-size:12px}.chat-welcome h3{color:#466b50}.chat-dialog #chat-status{font-size:10px;margin:7px 0;min-height:14px}.chat-dialog #chat-form{flex-shrink:0}.chat-dialog .chat-compose-label{margin:0;font-size:11px}.chat-dialog #chat-text{resize:vertical;max-height:150px;min-height:60px;margin-top:5px;padding:10px;font-size:12px}.chat-compose-actions{display:flex;gap:12px;align-items:center;margin-top:9px}.chat-dialog label.chat-attach{margin:0;cursor:pointer;color:#497658;font-size:12px}.chat-compose-actions .primary{margin-left:auto;padding:10px 14px}.chat-dialog #chat-file-name{font-size:10px;margin:7px 0;overflow-wrap:anywhere}.chat-dialog .form-error{margin:4px 0;min-height:0;font-size:11px}#chat-clear-file{font-size:10px;color:#a66f5c}@media(max-width:640px){.chat-dialog{padding:16px;width:100%;height:96dvh;max-height:96dvh}.chat-dialog .modaltitle h2{font-size:18px}.chat-message{max-width:96%;padding:10px}.chat-feed{padding:9px}.chat-meta time{margin-left:0}.chat-pins{max-height:130px}.chat-compose-actions .primary{font-size:11px}.chat-file img{max-height:200px}}
.user-avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;object-fit:cover;border-radius:50%;flex-shrink:0;background:#e4eee7;color:#396d4e;font-size:16px;font-weight:600;border:1px solid #dbe6de}.profile-avatar{padding:0;display:flex;border-radius:50%}.chat-meta .user-avatar{width:29px;height:29px;font-size:12px}.avatar-preview{text-align:center;margin:20px 0}.avatar-preview .user-avatar{width:140px;height:140px;font-size:48px}.avatar-preview img{object-fit:cover}.header-actions{flex-wrap:wrap}@media(max-width:640px){header{height:auto;min-height:60px;padding-top:8px;padding-bottom:8px;gap:10px}.header-actions{justify-content:flex-end;gap:6px 12px}.header-actions button{padding:5px 0}}
.fund-dialog{width:1180px;max-width:98vw;max-height:95dvh}.fund-intro{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#789082}.fund-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:15px 0}.fund-stats>div{padding:20px;border:1px solid #e1e9e3;border-radius:11px;background:#f9fbf9}.fund-stats span{font-size:11px;color:#7a9281;display:block}.fund-stats strong{display:block;font-size:25px;margin-top:12px;overflow-wrap:anywhere}.fund-stats .fund-total{background:#1d654c;color:#fff}.fund-total span{color:#c5ded0}.fund-income{color:#267a54}.fund-expense{color:#c56b4f}.fund-caption{font-size:11px;color:#8b9a90;line-height:1.7}.fund-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:20px 0}.fund-expense-button{padding:12px 17px;background:#fbede6;color:#ad6143;border-radius:7px;font-weight:600;font-size:12px}.fund-cleanup{margin-left:auto;color:#a46f58}.fund-charts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:25px 0}.fund-charts section{border:1px solid #e3eae4;padding:17px;border-radius:10px;min-width:0}.fund-charts h3,.fund-history-title h3{font-size:15px;margin:0 0 8px}.fund-charts p{margin:5px 0}.fund-charts svg{display:block;width:100%;height:auto}.fund-legend{display:flex;gap:18px;font-size:10px;margin:8px 0}.fund-gridline{stroke:#e7ede8;stroke-width:1}.fund-axis{font-size:10px;fill:#8c9b91}.fund-bar-income{fill:#4d9977}.fund-bar-expense{fill:#d49a7d}.fund-balance-line{fill:none;stroke:#4d9977;stroke-width:2.5}.fund-balance-dot{fill:#4d9977}.fund-chart-data{font-size:10px;color:#7d9183}.fund-chart-data table{width:100%;border-collapse:collapse;margin-top:8px}.fund-chart-data td,.fund-chart-data th{padding:5px;text-align:right}.fund-history-title{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.fund-history-title>div{display:flex;align-items:center;gap:10px}.fund-history-title label{display:flex;align-items:center;gap:8px;margin:0;font-weight:400;font-size:11px}.fund-dialog .fund-history-title input,.fund-dialog .fund-history-title select{margin:0;font-size:11px;padding:8px;width:auto}.fund-table-wrap{overflow:auto;border:1px solid #e2eae3;border-radius:9px}.fund-table{border-collapse:collapse;width:100%;font-size:11px}.fund-table th{text-align:left;background:#f2f6f2;color:#718b79;font-weight:600;padding:13px 12px;white-space:nowrap}.fund-table td{padding:14px 12px;border-top:1px solid #edf1ed;vertical-align:top;min-width:80px;max-width:260px;overflow-wrap:anywhere}.fund-table small{display:block;color:#96a399;font-size:9px;line-height:1.6;margin-top:5px}.fund-note{white-space:pre-wrap;line-height:1.6}.fund-amount{white-space:nowrap;font-weight:600;text-align:right}.fund-table .data-actions{font-size:10px}.fund-empty{text-align:center;color:#9baa9f;padding:30px!important}.fund-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}#fund-form{border:1px solid #dbe8de;background:#f7faf7;border-radius:10px;padding:20px}#fund-form h3{font-size:16px;margin:0 0 12px}.fund-carry{margin:18px 0;font-size:11px;line-height:1.8;color:#829588}@media(max-width:700px){.fund-dialog{padding:18px}.fund-stats{gap:7px}.fund-stats>div{padding:13px 10px}.fund-stats strong{font-size:17px}.fund-stats span{font-size:10px}.fund-charts{grid-template-columns:1fr}.fund-actions{gap:12px}.fund-cleanup{margin-left:0}.fund-history-title>div{flex-wrap:wrap}.fund-table{min-width:660px}.fund-form-grid{grid-template-columns:1fr}.fund-dialog .modaltitle h2{font-size:19px}}

/* Shared category order: pointer dragging and keyboard-accessible controls. */
#group-order-list{max-height:48vh;overflow-y:auto;overscroll-behavior:contain}
.group-order-row{gap:10px;flex-wrap:wrap;position:relative}
.group-order-row .group-name{flex:1;min-width:100px;overflow-wrap:anywhere}
.group-drag{touch-action:none;cursor:grab;font-size:22px;min-width:44px;min-height:44px;user-select:none}
.group-dragging{background:#e8f3ff;outline:2px solid #377bc4;outline-offset:-2px}
.group-dragging .group-drag{cursor:grabbing}
.group-sorting{user-select:none}
.group-move-buttons{display:flex;gap:4px}
.group-move-buttons button{min-width:36px;min-height:40px}
.group-order-row button:disabled{opacity:.4;cursor:default}

.staff-dialog{width:min(1100px,96vw);max-width:1100px}
.staff-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.staff-toolbar [aria-pressed=true]{background:#173d67;color:white}
.staff-table-wrap{overflow-x:auto}.staff-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.staff-table caption{text-align:left;font-weight:600;margin-bottom:12px}.staff-table th{background:#f1f5f9;color:#526477}.staff-table th,.staff-table td{padding:14px 12px;border-bottom:1px solid #e2e8f0}.staff-table td{min-width:100px}.staff-person{display:flex;gap:10px;align-items:center;min-width:190px}.staff-person small{display:block;color:#64748b;margin-top:4px}.staff-person .user-avatar{width:42px;height:42px;flex-shrink:0}.staff-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}#staff-form{background:#f8fafc;padding:18px;border-radius:12px;margin-bottom:20px}#staff-custom-label[hidden]{display:none}.staff-org{text-align:center;padding:16px 0}.staff-org h3{font-size:15px;color:#526477}.staff-leaders,.staff-team{display:flex;justify-content:center;flex-wrap:wrap;gap:20px}.staff-card{display:flex;flex-direction:column;align-items:center;gap:9px;background:#fff;border:1px solid #d6e1ed;border-radius:14px;padding:20px;width:210px;overflow-wrap:anywhere;box-shadow:0 4px 16px #173d6709}.staff-leaders .staff-card{border-top:4px solid #173d67}.staff-card .user-avatar{width:64px;height:64px}.staff-card small{color:#64748b}.staff-connector{height:34px;width:2px;background:#9baec3;margin:auto}.staff-team{border-top:2px solid #c4d2df;padding-top:24px}.staff-team .staff-card{position:relative}.staff-team .staff-card:before{content:'';position:absolute;top:-26px;height:24px;width:2px;background:#c4d2df}@media(max-width:600px){.staff-fields{grid-template-columns:1fr}.staff-card{width:100%}.staff-dialog{padding:18px}}

.sidebar nav .chat-unread-badge{background:#c73545;color:#fff;min-width:24px;text-align:center;padding:3px 7px;border-radius:20px}.chat-unread-badge[hidden]{display:none}.chat-mention{background:#e2eefc;color:#17558c;padding:1px 4px;border-radius:4px}.chat-mentioned{border-left:3px solid #3877b5}.chat-quote{display:block;text-align:left;border-left:3px solid #8ba6c5;background:#eef3f8;border-radius:6px;padding:10px 12px;margin:8px 0;color:#41566e;max-width:100%;overflow-wrap:anywhere}.chat-quote b,.chat-quote span{display:block;font-size:12px;line-height:1.5}.chat-reply-compose{display:flex;justify-content:space-between;align-items:center;gap:10px}.chat-mention-options{max-height:190px;overflow-y:auto;border:1px solid #d7e2ee;border-radius:8px;background:white;margin:6px 0}.chat-mention-options[hidden]{display:none}.chat-mention-options button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px}.chat-mention-options button:hover,.chat-mention-options button:focus{background:#eef3fa}.chat-mention-options .user-avatar{width:30px;height:30px}.chat-mention-options small{color:#718299}.chat-highlight{outline:2px solid #e7ab35;background:#fff9e7}

.gallery-dialog{width:min(1220px,97vw);max-width:1220px}.gallery-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:22px}.gallery-projects{display:flex;flex-direction:column;gap:7px;align-self:start}.gallery-projects button{display:flex;justify-content:space-between;gap:8px;text-align:left;padding:12px;border-radius:8px;overflow-wrap:anywhere}.gallery-projects [aria-pressed=true]{background:#183e65;color:#fff}.gallery-projects b{font-size:12px}.gallery-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.gallery-upload{border:1px solid #d8e3ed;border-radius:10px;padding:14px;margin:14px 0}.gallery-upload summary{cursor:pointer;font-weight:600;color:#285d8a}.gallery-upload form{margin-top:15px}.gallery-upload .form-error{white-space:pre-wrap}.gallery-filters{display:grid;grid-template-columns:2fr 1fr;gap:16px}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}.gallery-card{border:1px solid #dce5ed;border-radius:12px;overflow:hidden;background:white}.gallery-thumbnail{display:block;padding:0;width:100%;height:170px;background:#edf2f6;cursor:zoom-in}.gallery-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}.gallery-file-icon{height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#edf2f6;color:#517797;font-size:60px}.gallery-file-icon small{font-size:13px}.gallery-card-body{padding:13px;overflow-wrap:anywhere}.gallery-card-body>b{display:block;font-size:14px}.gallery-card-body>small{display:block;font-size:11px;color:#748596;margin-top:7px}.gallery-card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:15px;font-size:12px;color:#235a89}.gallery-card-actions button{padding:0;font-size:12px}.gallery-viewer-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.gallery-viewer-toolbar button,.gallery-viewer-toolbar a{padding:10px;border:1px solid #d8e3ed;border-radius:6px;font-size:13px}.gallery-viewer h3{overflow-wrap:anywhere}.gallery-viewport{height:65vh;overflow:auto;background:#122234;border-radius:10px;overscroll-behavior:contain}.gallery-viewport img{display:block;margin:auto;user-select:none}.gallery-viewport.zoom-0{display:flex;align-items:center;justify-content:center}.gallery-viewport.zoom-0 img{max-width:100%;max-height:100%;object-fit:contain}.gallery-viewport:not(.zoom-0){touch-action:none;cursor:grab}.gallery-viewport:not(.zoom-0):active{cursor:grabbing}.gallery-viewport:not(.zoom-0) img{max-width:none;max-height:none;height:auto}.gallery-viewport.zoom-1 img{width:150%}.gallery-viewport.zoom-2 img{width:200%}.gallery-viewport.zoom-3 img{width:300%}.gallery-viewport.zoom-4 img{width:400%}.gallery-share-box{padding:16px;border:1px solid #c6d9ea;border-radius:10px;background:#eff6fc;margin:14px 0;overflow-wrap:anywhere}.gallery-share-box a,.gallery-share-box button{margin-right:15px}.gallery-share-box p{font-size:13px}@media(max-width:700px){.gallery-dialog{padding:18px}.gallery-layout{grid-template-columns:1fr}.gallery-projects{flex-direction:row;overflow-x:auto;padding-bottom:8px}.gallery-projects button{flex-shrink:0;max-width:220px}.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.gallery-filters{grid-template-columns:1fr}.gallery-viewport{height:55vh}.gallery-viewer-toolbar{gap:6px}}

.sidebar .chat-priority{flex:0 0 auto;overflow:visible;margin-bottom:12px}.sidebar .chat-priority .chat-unread-badge:not([hidden]){display:inline-block}

.sidebar .chat-priority button[data-action="chat"]>span{font-weight:700;color:#123f78}

.gallery-name-input{display:flex;align-items:center;gap:8px}.gallery-name-input input{min-width:0;flex:1}.gallery-name-input span{font-size:13px;color:#5f768b}#gallery-upload-names label>small{display:block;overflow-wrap:anywhere;font-weight:400;margin:6px 0}

.gallery-batch-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;background:#eef5fc;border:1px solid #ccdeef;border-radius:9px;margin:10px 0}.gallery-batch-bar button{font-size:12px}.gallery-select{display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px;background:#f3f7fb;cursor:pointer;font-size:13px}.gallery-select input{width:18px;height:18px;margin:0;accent-color:#174b7c}

.rent-simulator-dialog{width:min(1280px,98vw);max-width:1280px;padding:18px}.rent-simulator-actions{display:flex;justify-content:flex-end;margin:0 0 12px;font-size:13px;color:#123f78}.rent-simulator-frame{display:block;width:100%;height:78vh;height:78dvh;border:1px solid #dbe5ef;border-radius:12px;background:#f4f7fb}@media(max-width:700px){.rent-simulator-dialog{padding:12px}.rent-simulator-frame{height:75vh;height:75dvh}}

.gallery-video-cover{width:100%;height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#112d50;color:#fff;border:0;border-radius:0}.gallery-video-cover span{font-size:38px}.gallery-video-cover small{color:#d8e8ff}.gallery-video-player{display:block;width:100%;max-height:65vh;background:#101820;border-radius:10px}
.site-settings-button span{font-size:21px;line-height:1}.site-logo-preview{display:block;width:112px;height:112px;object-fit:contain;border:1px solid #dbe2ea;border-radius:12px;background:white;margin:10px 0}.brand-custom>div{overflow-wrap:anywhere}

.gallery-video-cover{position:relative;height:210px;padding:0;overflow:hidden;background:#101820}.gallery-video-preview{width:100%;height:100%;object-fit:contain;pointer-events:none}.gallery-video-cover .gallery-preview-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#0009;color:white;font-size:23px;box-shadow:0 2px 12px #0004}.gallery-video-cover .gallery-preview-status{position:absolute;bottom:8px;right:8px;left:8px;width:fit-content;max-width:calc(100% - 16px);margin-left:auto;background:#000b;color:white;border-radius:5px;padding:4px 8px;font-size:12px}.gallery-video-cover:hover .gallery-preview-play{background:#145ba8}.gallery-video-cover:focus-visible{outline:3px solid #2785e5;outline-offset:2px}

.gallery-pdf-cover{height:260px;position:relative;overflow:hidden;background:#f1f3f6}.gallery-pdf-cover iframe{width:100%;height:100%;border:0;pointer-events:none;background:white}.gallery-pdf-cover button{position:absolute;inset:0;width:100%;height:100%;background:transparent;border:0;border-radius:0;display:flex;align-items:flex-end;justify-content:center;padding:10px}.gallery-pdf-cover button span{background:#123f78;color:white;border-radius:6px;padding:6px 12px;font-size:12px}.gallery-pdf-cover button:focus-visible{outline:3px solid #2785e5;outline-offset:-3px}.gallery-pdf-reader{display:block;width:100%;height:70vh;min-height:360px;border:1px solid #dbe2ea;border-radius:8px;background:#f1f3f6}

/* Compact gallery toolbar: two rows, expanded tools only when needed. */
.gallery-dialog{padding:22px}.gallery-dialog .modaltitle{margin-bottom:16px}.gallery-layout{grid-template-columns:180px minmax(0,1fr);gap:18px}.gallery-projects{gap:4px}.gallery-projects button{padding:10px;font-size:13px}.gallery-heading{min-height:36px;gap:8px;margin:0 0 10px}.gallery-heading h3{font-size:16px;margin:0}.gallery-heading .data-actions{gap:6px}.gallery-heading button{font-size:12px;padding:8px 10px}.gallery-filters{display:grid;grid-template-columns:minmax(0,1fr) 145px auto;align-items:center;gap:8px;margin:0 0 10px}.gallery-filters label{margin:0;min-width:0}.gallery-filters input,.gallery-filters select{height:36px;padding:7px 10px;margin:0;font-size:13px}.gallery-filters>button{height:36px;padding:7px 10px;font-size:12px;white-space:nowrap;border:1px solid #d8e3ed;border-radius:7px}.gallery-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}.gallery-upload-main:not([open]){display:none}.gallery-upload-main{margin:0 0 12px;padding:12px;background:#f7fafc}.gallery-upload-main summary{display:none}.gallery-upload-main form{margin-top:0}.gallery-batch-bar[hidden]{display:none}.gallery-batch-bar{gap:8px;padding:8px 10px;margin:0 0 10px;font-size:12px}.gallery-batch-bar button{padding:6px 8px;font-size:12px}#gallery-results>p{margin:8px 0;font-size:12px}.gallery-grid{gap:12px}.gallery-card-body{padding:10px}.gallery-card-body>small{margin-top:4px}.gallery-card-actions{gap:10px;margin-top:10px}.gallery-select{padding:6px 10px;font-size:12px}
@media(max-width:700px){.gallery-dialog{padding:14px}.gallery-layout{grid-template-columns:1fr;gap:10px}.gallery-projects{gap:5px;padding-bottom:4px}.gallery-projects button{padding:8px 10px}.gallery-filters{grid-template-columns:minmax(0,1fr) 125px;gap:6px}.gallery-filters .gallery-select-all{grid-column:1/-1;justify-self:end;height:28px;padding:3px 8px}.gallery-heading .data-actions{flex-wrap:wrap}.gallery-heading{margin-bottom:8px}.gallery-grid{gap:9px}.gallery-batch-bar{gap:6px}.gallery-batch-bar button{min-height:32px}}

/* Shared account settings and mobile workspace */
.mobile-menu-toggle{display:none}.sidebar{overflow-y:auto;overscroll-behavior:contain}.account-settings{margin-top:14px}.settings-profile{display:flex;align-items:center;gap:12px;padding:14px;background:#f0f6f4;border-radius:12px}.settings-profile>div{min-width:0;overflow-wrap:anywhere}.settings-profile small{display:block;color:#657e75;font-size:12px;margin-top:5px}.settings-section-title{font-size:10px;letter-spacing:1px;color:#71867d;margin:24px 0 8px}.account-settings>button{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:15px 10px;border-bottom:1px solid #edf1ee;min-height:56px}.account-settings>button>div{flex:1}.account-settings button b{font-size:14px}.account-settings button small{display:block;font-size:12px;color:#7a8e85;margin-top:4px}.account-settings button:hover{background:#f7faf8;border-radius:8px}.account-settings .settings-logout{color:#ae3e36;margin-top:22px;border-top:1px solid #eee;border-bottom:0}.settings-profile .user-avatar{width:48px;height:48px}.header-actions .site-settings-button{display:flex;gap:6px;align-items:center;padding:10px 12px;background:#eef5f1;border-radius:9px;color:#205e49;font-size:13px}
@media(max-width:760px){
 body{background:#f3f6f5}.shell{display:block}.shell>main{margin:0;width:100%;min-width:0}.shell>main>header{position:sticky;top:0;z-index:3;min-height:62px;height:auto;display:flex;gap:10px;padding:8px 14px;background:#fff;border-bottom:1px solid #e1e9e5}.shell>main>header>span,.shell>main>header>b{flex:1;min-width:0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crumb{margin:0 5px}.mobile-menu-toggle{display:block;font-size:22px;min-width:44px;min-height:44px;background:#f0f5f3;border-radius:10px}.header-actions{flex:none}.header-actions .site-settings-button{min-height:44px;padding:8px 10px}.shell>.sidebar{position:fixed;inset:62px auto 0 0;width:min(310px,86vw);height:calc(100dvh - 62px);z-index:4;transform:translateX(-105%);visibility:hidden;padding:20px 16px;display:flex;flex-direction:column;overflow-y:auto;box-shadow:10px 0 35px #102a2226;background:#fff;transition:transform .18s ease,visibility .18s}.mobile-menu-open .shell>.sidebar{transform:translateX(0);visibility:visible}.mobile-menu-open::after{content:'';position:fixed;inset:62px 0 0;background:#152d2255;z-index:3}.mobile-menu-open{overflow:hidden}.sidebar .brand-custom{display:flex;align-items:center;gap:10px;padding:0}.sidebar .brand-custom img{width:56px;height:56px;object-fit:contain}.sidebar .brand-custom>div{font-size:14px;letter-spacing:.4px}.sidebar .brand-custom small{font-size:10px;letter-spacing:.7px}.sidebar .workspace{display:none}.sidebar .navlabel{display:block;margin:20px 0 8px}.sidebar nav{display:block;overflow:visible;white-space:normal}.sidebar nav button{display:flex;width:100%;min-height:44px;padding:11px 12px;font-size:14px;white-space:normal;margin:3px 0}.sidebar .navline{display:block;margin:12px 0}.sidebar .profile{display:flex;padding:14px 0}.sidebar .sidebarbottom{display:block;margin-top:16px;padding:12px 0}.content{padding:20px 14px 24px;max-width:100%}.content h1{font-size:26px;letter-spacing:-.6px;line-height:1.3}.heading{align-items:flex-start;gap:14px;flex-direction:column;margin-bottom:20px}.heading .primary{min-height:44px;width:100%;font-size:14px}.heading p{font-size:13px;line-height:1.6}.stats{gap:7px;margin-bottom:22px}.stats>div{padding:12px 9px;min-width:0}.stats strong{font-size:23px}.stats p{font-size:11px;line-height:1.4}.sectiontitle{align-items:flex-start;gap:10px;flex-wrap:wrap}.sectiontitle h2{font-size:18px}.data-actions{flex-wrap:wrap;gap:10px}.toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:14px 0}.toolbar .search{grid-column:1/-1;padding:0 12px}.toolbar input{font-size:16px;min-height:44px}.toolbar select{min-height:42px;font-size:14px}.grid{grid-template-columns:1fr;gap:12px}.card{padding:16px}.card h3{font-size:16px;margin:12px 0}.card .note{font-size:13px;min-height:0}.card .domain{font-size:11px;margin:12px 0}.cardbottom{font-size:13px}.cardbottom a,.cardbottom button{min-height:36px;display:flex;align-items:center}.hint{padding:12px}.hint p{font-size:12px}.overlay{padding:0;align-items:stretch}.modal,.gallery-dialog,.fund-dialog,.staff-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:16px 14px calc(20px + env(safe-area-inset-bottom));overscroll-behavior:contain}.modaltitle{position:sticky;top:-16px;background:white;z-index:2;gap:10px;padding:8px 0;border-bottom:1px solid #e6ece8;margin-bottom:14px}.modaltitle h2{font-size:19px;margin:4px 0}.modaltitle>button{min-width:44px;min-height:44px;font-size:20px;background:#f1f5f3;border-radius:10px}.modal label input:not([type=checkbox]),.modal textarea,.modal select{font-size:16px;min-height:44px}.modal .primary,.modalactions button{min-height:44px}.modalactions{gap:12px;flex-wrap:wrap}.users .user-row{flex-wrap:wrap;gap:10px;padding:14px 0}.user-row>div{min-width:0;overflow-wrap:anywhere}.user-row button{min-height:36px}.gallery-projects{gap:6px}.gallery-projects button{min-height:40px}.gallery-filters input,.gallery-filters select{height:44px;font-size:16px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-thumbnail,.gallery-video-cover,.gallery-file-icon{height:145px}.gallery-pdf-cover{height:180px}.gallery-card-body>b{font-size:13px;line-height:1.4}.gallery-card-actions{gap:6px 10px}.gallery-card-actions button,.gallery-card-actions a{min-height:34px;display:inline-flex;align-items:center}.gallery-viewer-toolbar{gap:6px}.gallery-viewer-toolbar button,.gallery-viewer-toolbar a{min-height:40px;padding:8px}.gallery-filters .gallery-select-all{height:36px}.chat-feed{height:45dvh;min-height:180px}.chat-compose-actions{flex-wrap:wrap;gap:8px}.chat-compose-actions button{min-height:44px}.chat-meta{flex-wrap:wrap}.chat-text{font-size:14px;line-height:1.6}.fund-stats{grid-template-columns:1fr 1fr}.fund-stats .fund-total{grid-column:1/-1}.fund-stats strong{font-size:21px}.fund-charts{gap:12px;margin:16px 0}.staff-table-wrap,.fund-table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}.toast{max-width:calc(100vw - 24px);width:max-content;bottom:calc(14px + env(safe-area-inset-bottom));padding:12px 16px}.auth-page{min-height:100dvh}.auth-form{padding:24px 18px}.auth-box input{font-size:16px;min-height:48px}.auth-story{padding:24px 18px}.auth-story h1{font-size:26px}.auth-story .brand-custom img{width:64px;height:64px}
}
@media(prefers-reduced-motion:reduce){.shell>.sidebar{transition:none}}

@media(max-width:760px){.sidebar nav button b{display:inline}.toolbar .refresh{display:block;min-height:42px}.sidebar nav{margin-top:6px}.sidebar nav button{flex-shrink:1}.auth-page .auth-form{width:100%}}

.gallery-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:20px 0;font-size:13px}.gallery-pagination button{border:1px solid #d6e2db;border-radius:8px;padding:10px 12px;min-height:44px}.gallery-thumbnail img{object-fit:cover}#gallery-results{scroll-margin-top:70px}

/* Keep file actions compact and away from the browsing toolbar. */
.gallery-dialog>.modaltitle{margin-bottom:8px}.gallery-dialog>.modaltitle h2{font-size:19px;margin:4px 0}.gallery-heading{margin-bottom:8px;min-height:32px}.gallery-heading h3{font-size:14px}.gallery-filters{margin-bottom:8px}.gallery-batch-bar{padding:6px 9px;gap:6px;border:0;background:#eaf3ee;font-size:12px;border-radius:8px}.gallery-batch-bar>span{margin-right:auto}.gallery-batch-bar button{padding:7px 10px;min-height:32px;white-space:nowrap}.gallery-batch-bar [data-gallery-action=clear-selection]{order:4;color:#6d8178}.gallery-batch-bar [data-gallery-action=share-selected]{background:#fff;border:1px solid #d7e4dc;border-radius:6px}.gallery-content>#gallery-share:not(:empty){position:fixed;z-index:8;right:24px;bottom:24px;width:min(430px,calc(100vw - 32px));filter:drop-shadow(0 8px 22px #102b2330)}.gallery-share-box{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:12px;background:#fff;border:1px solid #c9ddd2;border-radius:12px}.gallery-share-box>b{display:block;flex-basis:100%;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px}.gallery-share-box p{flex-basis:100%;font-size:12px;margin:0;line-height:1.5}.gallery-share-box a,.gallery-share-box button{margin:0;padding:8px 10px;font-size:12px;border-radius:7px;min-height:36px}.gallery-share-box a{background:#f0f5f2}.gallery-share-box [data-gallery-action=share-cancel]{margin-left:auto;color:#61766b}.gallery-content>#gallery-share>p{margin:0;background:white;padding:12px;border-radius:10px;font-size:13px}.gallery-viewer #gallery-share:not(:empty){margin-top:12px}
@media(max-width:760px){.gallery-content>#gallery-share:not(:empty){bottom:calc(10px + env(safe-area-inset-bottom));right:10px;width:calc(100vw - 20px)}.gallery-share-box{padding:10px;gap:6px}.gallery-share-box a,.gallery-share-box button{min-height:44px}.gallery-batch-bar{gap:5px;padding:7px}.gallery-batch-bar>span{flex-basis:100%;font-size:12px}.gallery-batch-bar button{min-height:40px;padding:7px 12px}.gallery-dialog>.modaltitle h2{font-size:18px}.gallery-heading{gap:6px}.gallery-heading h3{font-size:13px}.gallery-filters .gallery-select-all{justify-self:start;margin:0;min-height:36px}.gallery-filters{margin-bottom:6px}}

.gallery-share-box .gallery-move-target{width:100%;margin-top:0}.gallery-move-target select{width:100%;margin-top:6px}

.gallery-pagination .gallery-page-picker{margin:0}.gallery-pagination .gallery-page-picker select{margin:0;width:auto;min-width:120px;min-height:44px;padding:9px 12px;font-size:13px;border:1px solid #d6e2db;border-radius:8px;background:white}.gallery-pagination{flex-wrap:wrap;gap:8px}@media(max-width:760px){.gallery-pagination{gap:6px}.gallery-pagination button{font-size:12px;padding:8px}.gallery-pagination .gallery-page-picker select{font-size:16px;min-width:110px;padding:8px}}

.gallery-batch-bar:not([hidden]){position:fixed;z-index:7;bottom:20px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:10px 14px;box-shadow:0 8px 30px #123c2333;border:1px solid #c6dcd0;background:#f5fbf7}.gallery-content:has(.gallery-batch-bar:not([hidden])){padding-bottom:100px}.gallery-content:has(.gallery-batch-bar:not([hidden]))>#gallery-share:not(:empty){bottom:110px}.gallery-batch-bar [data-gallery-action=share-selected]{background:#19684f;color:white;border:0;min-width:100px;order:1}.gallery-batch-bar [data-gallery-action=download-selected]{background:white;color:#205e49;order:2}.gallery-batch-bar [data-gallery-action=move-selected]{order:3}@media(max-width:760px){.gallery-batch-bar:not([hidden]){left:10px;right:10px;transform:none;width:auto;max-width:none;bottom:calc(10px + env(safe-area-inset-bottom));padding:10px;justify-content:center}.gallery-batch-bar>span{flex-basis:100%}.gallery-batch-bar button{min-height:44px;flex:1;padding:7px}.gallery-content:has(.gallery-batch-bar:not([hidden])){padding-bottom:155px}.gallery-content:has(.gallery-batch-bar:not([hidden]))>#gallery-share:not(:empty){bottom:calc(150px + env(safe-area-inset-bottom))}}

/* Direct dialing from personnel table and organization cards. */
.staff-phone{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.staff-call{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;border-radius:12px;background:#e8f2ff;color:#1768b6;text-decoration:none}.staff-call:hover{background:#d5e8ff;color:#0c4d91}.staff-call:focus-visible{outline:3px solid #1768b6;outline-offset:2px}.staff-call svg{pointer-events:none}

.staff-zalo{background:#0866ff;color:#fff;font-size:12px;font-weight:700;letter-spacing:-.4px}.staff-zalo:hover{background:#0052d4;color:#fff}.staff-card .staff-phone{flex-wrap:wrap;justify-content:center}.staff-card .staff-phone>span{flex-basis:100%}

#reminder-form textarea{width:100%;resize:vertical}.reminder-item{padding:16px;border:1px solid #dce5ef;border-radius:12px;margin:12px 0}.reminder-meta{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;font-size:13px}.reminder-text{white-space:pre-wrap;overflow-wrap:anywhere}.reminder-item .modalactions{margin-top:12px}

/* Highlight the internal chat entry without changing its actions or unread badge. */
.sidebar .chat-priority button.chat-launch-button{display:flex;align-items:center;gap:8px;width:100%;min-height:46px;margin:4px 0 8px;padding:8px 10px;border:1px solid #215da7;border-radius:12px;background:linear-gradient(135deg,#174885,#2269bb);color:#fff;box-shadow:0 6px 16px #17488530;white-space:normal;text-align:left;transition:background .15s,box-shadow .15s}
.sidebar .chat-priority button.chat-launch-button>span{color:#fff;font-weight:700}
.sidebar .chat-priority .chat-launch-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 28px;background:#ffffff22;border-radius:8px}
.sidebar .chat-priority .chat-launch-label{flex:1;min-width:0;font-size:13px;line-height:1.4}
.sidebar .chat-priority button.chat-launch-button:hover{background:#174885;box-shadow:0 8px 20px #17488540}
.sidebar .chat-priority button.chat-launch-button:focus-visible{outline:3px solid #66adff;outline-offset:3px}
.sidebar .chat-priority .chat-launch-button .chat-unread-badge{flex-shrink:0;background:#e33249;color:#fff;border:2px solid #fff;padding:2px 6px;font-size:12px}

.sidebar .chat-priority .chat-launch-icon svg{width:19px;height:19px}

/* Separate branding from the chat shortcut. */
.sidebar .chat-priority{margin-top:20px;padding-top:18px;border-top:1px solid #dce5ec}
@media(max-width:760px){.sidebar .chat-priority{margin-top:16px;padding-top:14px}}

.chat-compose-actions .chat-attach-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #c7dbed;border-radius:12px;background:#eaf3fc;color:#195c9c;cursor:pointer}.chat-compose-actions .chat-attach-icon:hover{background:#dbeafb;border-color:#8ab5dc}.chat-compose-actions .chat-attach-icon:focus-visible{outline:3px solid #3989cc;outline-offset:2px}.chat-attach-icon svg{pointer-events:none}

.chat-dialog [hidden]{display:none!important}.chat-dialog .modaltitle h2{flex:1;min-width:0}.chat-tools{position:relative;display:flex;gap:4px;align-items:center;margin-left:auto}.chat-tools>button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:#edf4fb;color:#245b8b;font-size:21px}.chat-tools button:focus-visible{outline:2px solid #2879bf;outline-offset:2px}#chat-tools-menu{position:absolute;right:0;top:46px;z-index:8;min-width:190px;padding:6px;background:#fff;border:1px solid #d9e4ee;border-radius:12px;box-shadow:0 8px 25px #163c6026}#chat-tools-menu button{display:block;width:100%;padding:12px;text-align:left;font-size:14px;border-radius:8px}#chat-tools-menu button:hover{background:#edf4fb}#chat-browser{display:flex;flex-direction:column;flex:1;min-height:0}.chat-browser-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0}.chat-browser-head button{padding:10px;color:#205d96}.chat-browser-label{font-size:12px;margin:8px 0 4px}#chat-browser-query{width:100%;min-height:44px;margin-bottom:10px}#chat-browser-results{flex:1;min-height:0;overflow:auto;padding:2px 4px 14px}.chat-browser-item{padding:12px;border:1px solid #dfe8ee;border-radius:12px;margin-bottom:10px;background:#fff}.chat-browser-meta{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;font-size:12px}.chat-browser-meta time{color:#718096;font-size:11px}.chat-browser-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.chat-browser-link{display:block;overflow-wrap:anywhere;color:#1765a8;margin:12px 0}.chat-browser-item>button{color:#1765a8;min-height:40px;font-size:12px}.chat-browser-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.chat-browser-media .chat-file img{width:100%;height:150px;object-fit:cover}.chat-browser-item{min-width:0}.chat-browser-item .chat-download{overflow-wrap:anywhere}@media(max-width:480px){.chat-dialog .modaltitle h2{font-size:16px}.chat-tools>button{width:36px;height:40px}.chat-browser-meta{display:block}.chat-browser-meta time{display:block;margin-top:4px}}
