/* Profile, resources, section tabs, and theme corrections. */
.resource-portal{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:14px}.portal-card{display:flex;flex-direction:column;min-height:190px;padding:20px;border:1px solid #e4eaf3;border-radius:15px;background:#fff;box-shadow:0 6px 20px #283f6508;transition:transform .2s,box-shadow .2s}.portal-card:hover{transform:translateY(-3px);box-shadow:0 13px 28px #283f6518}.portal-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:16px;border-radius:12px;background:#eaf1ff;color:#2765e3;font-weight:800;font-size:18px}.portal-card strong{font:800 16px var(--display)}.portal-card p{color:#78869e;font-size:11px;line-height:1.5;flex:1}.portal-card>span:last-child{color:#2869ed;font-size:11px;font-weight:800}.profile-mini{cursor:pointer}.profile-layout{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(320px,1.25fr);gap:16px}.profile-card,.profile-edit,.tab-panel{padding:22px}.profile-large-avatar{display:grid;place-items:center;width:78px;height:78px;border-radius:25px;background:linear-gradient(140deg,#2868ec,#79a4f4);color:#fff;font-size:25px;font-weight:800}.profile-card h2{margin:15px 0 4px;font:800 22px var(--display)}.profile-card p,.tab-panel>p{color:#8290a8;font-size:12px}.profile-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:16px;margin-top:18px;border-top:1px solid #edf0f5;font-size:11px}.profile-meta span{color:#8996aa}.profile-meta strong{text-align:right}.profile-edit h3,.tab-panel h3{margin:0 0 15px;font:800 17px var(--display)}.profile-edit form,.tab-panel form,.dialog-form{display:grid;gap:13px}.profile-edit label,.tab-panel label,.dialog-form label{display:grid;gap:6px;color:#66758c;font-size:11px;font-weight:700}.profile-edit input,.tab-panel textarea,.dialog-form input,.dialog-form textarea{width:100%;border:1px solid #dfe7f1;border-radius:9px;background:#fff;color:#24344f;padding:11px 12px;font:500 12px var(--font)}.profile-edit form .button,.tab-panel form .button,.dialog-form .button{justify-self:start}.profile-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:23px;padding-top:18px;border-top:1px solid #edf0f5}.logout-button{border:1px solid #f2c8c8;background:#fff5f5;color:#bb4747;cursor:pointer}.tab-content{margin-top:15px}.result-list{display:grid;margin:15px 0 20px}.result-list article{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #edf0f5}.result-list article div{display:grid;gap:5px}.result-list strong{font-size:11px}.result-list small{font-size:10px;color:#8e9bb0}.result-list b{white-space:nowrap;color:#1aa775;font-size:12px}.message-list{margin-top:17px}.message-list article{padding:12px 0;border-top:1px solid #edf0f5}.message-list strong{font-size:11px}.message-list small{margin-left:10px;color:#98a4b8;font-size:9px}.message-list p{font-size:11px;line-height:1.6;color:#66758c}.community-main{max-width:950px}.community-main .panel-body{padding:7px 20px 20px}.community-main .discussion{padding:15px 0}.community-main .discussion h4{font-size:11px}.community-main .discussion p{font-size:10px}.community-main .discussion .button{margin-top:8px;font-size:10px}.simple-dialog{max-width:570px}.dialog-form{margin-top:20px}.evidence-detail,.notification-list{display:grid;gap:8px;margin-top:18px;padding:15px;border-radius:10px;background:#f5f8fc;color:#68768d;font-size:12px}.evidence-detail h3,.notification-list p{margin:0}.search-result{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #e5ebf4;border-radius:8px;background:#f8faff;color:#2766e6;text-align:left;cursor:pointer}
body:not([data-theme=dark]) .module-workspace .panel{background:#fff;border-color:#e8edf5;color:#243553}body:not([data-theme=dark]) .module-workspace .panel h3,body:not([data-theme=dark]) .module-workspace .panel strong{color:#1d2d4e}body:not([data-theme=dark]) .module-workspace .module-step{background:#f6f8fc}body:not([data-theme=dark]) .module-workspace .module-step p{color:#50617c}body:not([data-theme=dark]) .module-tool-form input,body:not([data-theme=dark]) .module-tool-form textarea,body:not([data-theme=dark]) .module-tool-form select{background:#fff;color:#243553}body[data-theme=dark] .module-workspace .panel{background:#172235;border-color:#2b394e;color:#e5edfc}body[data-theme=dark] .module-workspace .panel h3,body[data-theme=dark] .module-workspace .panel strong{color:#e5edfc}body[data-theme=dark] .module-workspace .module-step{background:#202d42}body[data-theme=dark] .module-workspace .module-step p{color:#afbdd1}body[data-theme=dark] .module-workspace .module-deliverable strong{color:#b3e9d9}
body[data-theme=dark] .portal-card,body[data-theme=dark] .profile-card,body[data-theme=dark] .profile-edit,body[data-theme=dark] .tab-panel,body[data-theme=dark] .community-main{background:#172235;border-color:#2b394e;color:#e5edfc}body[data-theme=dark] .portal-card p,body[data-theme=dark] .profile-card p,body[data-theme=dark] .tab-panel p,body[data-theme=dark] .message-list p{color:#afbdd1}body[data-theme=dark] .portal-icon,body[data-theme=dark] .evidence-detail,body[data-theme=dark] .notification-list,body[data-theme=dark] .search-result{background:#21334f;border-color:#34445c}body[data-theme=dark] .profile-edit input,body[data-theme=dark] .tab-panel textarea,body[data-theme=dark] .dialog-form input,body[data-theme=dark] .dialog-form textarea{background:#111b2a;color:#e5edfc;border-color:#34445c}body[data-theme=dark] .result-list article,body[data-theme=dark] .message-list article,body[data-theme=dark] .profile-meta,body[data-theme=dark] .profile-actions{border-color:#2d3b51}body[data-theme=dark] .logout-button{background:#35232b;color:#ffb6b6;border-color:#66404b}body[data-theme=dark] .simple-dialog{background:#172235;color:#e5edfc}
@media(max-width:700px){.profile-layout{grid-template-columns:1fr}.resource-portal{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}.portal-card{min-height:170px}.profile-card,.profile-edit,.tab-panel{padding:16px}}
.stats-grid .stat-card[data-page-link]{cursor:pointer}.stats-grid .stat-card[data-page-link]:hover{transform:translateY(-2px);box-shadow:0 12px 28px #2868ec18}.users-total{align-self:center;padding:9px 13px;border-radius:20px;background:#eaf2ff;color:#2365db;font-size:12px;font-weight:800}.users-panel{overflow:hidden}.users-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px;border-bottom:1px solid #e9edf5}.users-toolbar .search-input{flex:1;min-width:240px;font-size:12px}.users-toolbar .select-input{font-size:12px}.users-toolbar span{margin-left:auto;color:#8190a8;font-size:11px}.users-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px;padding:0 18px}.user-row{display:flex;align-items:center;gap:11px;min-width:0;padding:12px 0;border-bottom:1px solid #edf0f5}.user-row>div{display:grid;gap:4px;min-width:0;flex:1}.user-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#243657;font-size:11px}.user-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#93a0b3;font-size:10px}.user-role{white-space:nowrap;border-radius:18px;padding:5px 8px;background:#eef4ff;color:#3470df;font-size:9px;font-weight:700}.users-footer{padding:17px;text-align:center}.users-footer .button{cursor:pointer}.users-footer .button[hidden]{display:none}body[data-theme=dark] .users-toolbar,body[data-theme=dark] .user-row{border-color:#2b394e}body[data-theme=dark] .user-row strong{color:#e5edfc}body[data-theme=dark] .users-total,body[data-theme=dark] .user-role{background:#223a60;color:#9ec0ff}@media(max-width:720px){.users-list{grid-template-columns:1fr}.users-toolbar .search-input{min-width:100%}}
