/* crabs.name member-space UI | Bootstrap 5 compatible */
.side-unread,.hub-unread{font-size:10px;padding:3px 7px;background:#f4c6b6;color:#723b33;border-radius:16px;font-weight:800;margin-left:auto}
.hub-date-pill,.hub-count{font-size:11px;font-weight:800;color:#688678;background:#edf5ef;border:1px solid #dceae0;padding:6px 10px;border-radius:20px}
.hub-profile-card .avatar.big{width:68px;height:68px;font-size:24px;background:#e6efe7;color:#387a5e;display:inline-flex;align-items:center;justify-content:center;border-radius:20px}
.profile-password{padding:12px 14px;background:#f6f8f5;border:1px solid #e5eee8;border-radius:12px;margin:8px 0}.profile-password summary{cursor:pointer;font-size:13px;color:#386953;font-weight:700}
.cabinet-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cabinet-shortcuts button{background:#eef7f2;border:1px solid #dce9e2;border-radius:16px;padding:18px;text-align:left;color:#194732;display:flex;flex-direction:column;gap:6px;transition:transform .15s}
.cabinet-shortcuts button:hover{transform:translateY(-2px)}.cabinet-shortcuts button span{font-size:25px}.cabinet-shortcuts button strong{font-size:14px}.cabinet-shortcuts button small{font-size:11px;color:#688475}
.hub-messenger{display:grid;grid-template-columns:minmax(270px,330px) 1fr;min-height:640px;overflow:hidden;padding:0!important;border-radius:19px}
.hub-dialogs{border-right:1px solid #e3eae4;min-width:0;background:#fafcf9}.hub-dialogs-head{padding:24px 19px 15px;border-bottom:1px solid #e7ede7}.hub-dialogs-head h3{font-size:22px;margin:7px 0 18px;display:flex;align-items:center;gap:10px}.hub-member-search{display:flex;align-items:center;gap:8px;border:1px solid #dce8de;background:#fff;padding:10px 13px;border-radius:13px;color:#709480}
.hub-member-search input{border:0;outline:0;background:transparent;min-width:0;width:100%;font-size:13px;color:#284d3c}
.hub-member-results{margin-top:8px;max-height:190px;overflow-y:auto}.hub-member-results button{display:flex;align-items:center;gap:9px;width:100%;padding:10px;text-align:left;border:0;border-bottom:1px solid #f0f1ed;background:#fff;font-weight:650;color:#304b3d;font-size:12px}.hub-member-results button small{margin-left:auto;font-size:10px;color:#738f7d}
.hub-thread-list{padding:12px 9px;max-height:545px;overflow-y:auto}.hub-thread{border:1px solid transparent;background:transparent;width:100%;display:flex;align-items:center;gap:11px;text-align:left;border-radius:13px;padding:12px 10px;margin:3px 0;transition:background .15s}
.hub-thread:hover,.hub-thread.active{background:#e8f5ed;border-color:#dbebdf}.hub-thread-avatar{width:43px;height:43px;min-width:43px;border-radius:14px;background:linear-gradient(145deg,#dcefe6,#edf8f0);display:inline-flex;align-items:center;justify-content:center;color:#388061;font-weight:800;font-size:16px}.hub-thread-copy{min-width:0;display:grid;gap:4px;flex:1}.hub-thread-copy strong{font-size:13px;color:#213e33}.hub-thread-copy small{font-size:11px;color:#7c948a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-dialog-view{min-width:0;display:flex;flex-direction:column}.hub-dialog-top{display:flex;align-items:center;gap:12px;padding:17px 24px;border-bottom:1px solid #e3ece6}.hub-dialog-top>div{flex:1;min-width:0;display:grid;gap:3px}.hub-dialog-top strong{font-size:15px;color:#233c31}.hub-dialog-top small{font-size:11px;color:#869a90}.hub-live-mark{font-size:10px;color:#4d9272;background:#edf8f1;border-radius:20px;padding:6px 11px;font-weight:800}
.hub-chat-history{height:420px;flex:1;min-height:300px;max-height:550px;overflow-y:auto;background:radial-gradient(circle at 17% 28%,#f1f7f2,#fff 60%);padding:25px;display:flex;flex-direction:column;gap:14px}
.hub-empty-chat{margin:auto;text-align:center;color:#91a89a;max-width:320px}.hub-empty-chat span{font-size:55px;color:#94c6ac}.hub-empty-chat h3{color:#2d5340;font-size:19px}.hub-empty-chat p{font-size:13px}
.hub-message{max-width:80%;display:flex;flex-direction:column;gap:4px}.hub-message.mine{align-self:flex-end;align-items:flex-end}.hub-message.theirs{align-self:flex-start}.hub-bubble{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 17px;background:#fff;color:#30483c;border:1px solid #e5ede7;border-radius:16px 16px 16px 4px;box-shadow:0 2px 8px #274d2710}.hub-message.mine .hub-bubble{background:#276d57;color:#fff;border-color:#276d57;border-radius:16px 16px 4px 16px}.hub-message small{font-size:10px;color:#8b9e91}
.hub-composer{display:flex;gap:12px;padding:18px 22px;border-top:1px solid #e3ece6;align-items:flex-end}.hub-composer textarea{width:100%;flex:1;border:1px solid #d8e5dd;border-radius:13px;padding:11px 14px;min-height:68px;max-height:160px;resize:vertical;background:#fafcf9;color:#2b4638;outline-color:#6bb893}.hub-composer .btn{white-space:nowrap;padding:12px 19px}.hub-chat-status{padding:0 24px 8px;margin:0;font-size:10px!important}
.hub-empty{text-align:center;background:#fafcf9;color:#819587;border-radius:14px;padding:25px;font-size:13px}
.hub-tabs{display:flex;gap:7px;flex-wrap:wrap}.hub-tabs button{background:transparent;border:1px solid #e4ece6;border-radius:12px;padding:11px 15px;font-size:12px;color:#577062;font-weight:700}.hub-tabs button.active{background:#266a52;border-color:#266a52;color:#fff}
.hub-favorites-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.hub-favorite-card{border:1px solid #e2e9e4;background:white;border-radius:18px;padding:22px;box-shadow:0 8px 25px #244d3010;min-height:236px;display:flex;flex-direction:column}.hub-fav-top{display:flex;align-items:center;gap:8px;margin-bottom:15px}.hub-fav-icon{font-size:23px;color:#317b5f}.hub-fav-kind{font-size:10px;letter-spacing:.07em;font-weight:800;color:#77917e}.hub-fav-date{margin-left:auto;color:#a0aea4;font-size:10px}.hub-favorite-card h3{font-size:16px;color:#244834;line-height:1.45;overflow-wrap:anywhere;margin-bottom:9px}.hub-favorite-card p{color:#7d9484;font-size:12px;overflow-wrap:anywhere}.hub-fav-actions{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:16px}.hub-fav-actions button{border:0;border-radius:10px;padding:9px 14px;font-size:12px;font-weight:700}.hub-fav-open{background:#e5f4eb;color:#267456}.hub-fav-remove{background:#fef1ee;color:#a55f54}
.res-save,.res-save-query,.hub-dossier-save{border:1px solid #b9dbc8;border-radius:10px;padding:9px 13px;color:#2c7554;background:#f5fcf7;font-size:12px;font-weight:750;cursor:pointer}.res-save:hover,.res-save-query:hover,.hub-dossier-save:hover{background:#dbf2e4}
.hub-dossier-toolbar{display:flex;justify-content:flex-end;gap:8px;padding:10px 12px;background:#f3faf5;border:1px solid #e3efe7;border-radius:12px;margin-bottom:16px}
.hub-toast-stack{position:fixed;right:20px;bottom:20px;z-index:9999;display:grid;gap:6px}.hub-toast{background:#205a43;padding:12px 17px;color:#fff;border-radius:12px;box-shadow:0 7px 25px #0003;max-width:360px;font-size:13px}.hub-toast.error{background:#a43b3b}
@media(max-width:890px){.hub-messenger{grid-template-columns:1fr}.hub-dialogs{border-right:0;border-bottom:1px solid #e3eae4}.hub-thread-list{max-height:220px}.hub-chat-history{height:380px}.hub-dialog-top{padding:13px 15px}.hub-composer{padding:12px}.cabinet-shortcuts{grid-template-columns:1fr}}

.res-save-row{display:flex;justify-content:flex-end;padding:0 18px 16px}.res-card-footer .res-save{margin-left:10px}
.res-search{flex-wrap:wrap}.res-save-query{white-space:nowrap}

.saved-article-dialog{width:min(720px,94vw);max-height:85vh;overflow:auto;padding:clamp(18px,4vw,36px);border:1px solid #c6d6ce;border-radius:16px;color:#20372d}
.saved-article-dialog::backdrop{background:#142c237a}
.saved-article-dialog header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}
.saved-article-dialog header span{font-size:.8rem;letter-spacing:.1em}
.saved-article-dialog button{border:1px solid #abbeb3;border-radius:8px;background:white;padding:.35rem .8rem}
.saved-article-dialog article p{white-space:pre-wrap;overflow-wrap:anywhere}

.favorite-view{display:flex;gap:.3rem;margin-inline-start:auto}
.favorite-view button[aria-pressed="true"]{background:#205c47;color:white}
.hub-favorites-grid.favorites-table-mode{display:block;overflow-x:auto}
.favorites-table{width:100%;border-collapse:collapse;background:white;font-size:.9rem}
.favorites-table th,.favorites-table td{padding:.7rem;text-align:start;border-bottom:1px solid #dce6e0;vertical-align:top}
.favorites-table th{background:#eff5f2;white-space:nowrap}
.favorites-table .hub-fav-actions{margin:0;min-width:10rem;flex-wrap:wrap}

#favoriteHierarchy{margin-bottom:1rem}#favoriteTree ul{list-style:none;padding-left:1rem;margin:.25rem}
#favoriteTree li ul{border-left:1px solid #bbcfc4}
#favoriteTree button{background:transparent;border:0;border-radius:.35rem;padding:.25rem .55rem;text-align:left}
#favoriteTree button[aria-pressed=true]{background:#dfeee6;font-weight:bold}
