.cabinet-prototype .account-layout{display:grid;grid-template-columns:280px minmax(0,1fr);column-gap:44px;row-gap:var(--section-spacing);align-items:start;align-content:start}
.account-layout>.author-banner{grid-column:1/-1;display:grid;grid-template-columns:88px minmax(0,1fr) auto;column-gap:24px;align-items:start;padding-bottom:24px;border-bottom:1px solid var(--line)}
.profile-summary{display:grid;grid-template-columns:88px minmax(0,1fr) auto;column-gap:24px;align-items:start;margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.author-banner>.profile-avatar{grid-column:1;grid-row:1/5}
.author-banner h2{grid-column:2;margin:0 0 6px}
.author-banner .author-status,.author-banner .author-about,.author-banner .author-socials{grid-column:2;max-width:700px}
.author-banner .author-about{margin-bottom:10px}
.author-banner .author-status{margin-bottom:8px}
.author-banner .profile-edit,.author-banner .author-follow{grid-column:3;grid-row:1/3;justify-self:end;align-self:start;margin:0}
.author-banner .public-profile-link{grid-column:3;grid-row:3;justify-self:end;margin:0}
.account-layout>.account-navigation{grid-column:1/-1;margin:0;padding:0;border:0}
.cabinet-content>[data-cabinet-panel][hidden],.account-layout>.project-structure[hidden]{display:none!important}

.account-layout>.account-navigation nav{display:flex;gap:8px;flex-wrap:wrap}
.account-layout>.account-navigation .account-nav-label{display:none}
.project-structure{position:sticky;top:var(--account-sidebar-top,110px);min-width:0;max-height:calc(100dvh - var(--account-sidebar-top,110px) - 16px);overflow-y:auto;overflow-x:hidden;padding:2px;box-sizing:border-box}
.project-structure h2{font-size:14px;line-height:1.5;letter-spacing:0;margin:0 0 8px;color:var(--muted);font-weight:600}
.project-structure nav{display:grid;gap:2px}
.project-structure button{display:block;width:100%;margin:0;border:0;background:none;text-align:left;color:var(--forest);font:600 14px/1.4 var(--font-ui);padding:7px 10px;border-radius:6px;overflow-wrap:anywhere;transform:none;transition:none}
.project-structure button:hover{background:#eaf0e5}
.project-structure button[aria-current=page]{background:#e2ecde}
.project-tree-branch{margin-top:0}
.project-structure .tree-model{margin-left:12px;width:calc(100% - 12px);padding-left:16px;border-left:1px solid var(--line);border-radius:0;font-size:12px;color:var(--muted)}
.project-structure .tree-folder{font-weight:650;font-size:13px;margin-top:6px}
.account-layout.without-structure>.cabinet-content,.account-layout.without-structure>.author-projects{grid-column:1/-1}
.account-layout.without-structure .account-project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-form .profile-checkbox{display:flex;align-items:center;gap:10px;color:var(--forest);font-size:14px}
.profile-form .profile-checkbox input{width:18px;height:18px;flex:none;accent-color:var(--forest)}
.project-access-status{font-size:12px;color:var(--muted);margin:0 0 12px}
.public-archive-badge{display:inline-block;margin:0 4px 8px;padding:4px 8px;border-radius:4px;background:#eef3ec;color:var(--muted);font-size:11px}
.project-access-dialog .access-toggle{display:flex;align-items:flex-start;gap:12px;margin:20px 0;color:var(--forest)}
.access-toggle input{flex:none;width:18px;height:18px;accent-color:var(--forest);margin:2px 0}
.access-toggle strong{display:block;font-size:14px;font-weight:600}.access-toggle small{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:5px}
.author-sidebar{min-width:0;position:sticky;top:94px}
.profile-avatar{display:grid;place-items:center;width:88px;height:88px;border:1px solid var(--line);border-radius:50%;overflow:hidden;background:#eaf0e5;color:var(--forest)}
.profile-avatar svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round}
.profile-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.author-profile h2{font-size:24px;line-height:1.2;margin:18px 0 8px;letter-spacing:-.035em;color:var(--forest);overflow-wrap:anywhere}
.author-profile .author-status{font-size:14px;font-weight:600;color:var(--forest);margin:0 0 12px;line-height:1.5}
.author-about{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:16px;white-space:pre-line;overflow-wrap:anywhere}
.author-socials{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px;font-size:12px;color:var(--forest)}
.profile-edit,.public-profile-link{display:block;font:inherit;font-size:13px;color:var(--forest);margin:0 0 12px;padding:0;border:0;background:none;text-align:left}
.profile-edit:hover,.public-profile-link:hover{color:#6d927d}
.public-profile-link{color:var(--muted)}
.account-navigation{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}
.account-navigation>summary{display:none}
.account-navigation nav{display:grid;gap:4px}
.account-nav-label{font-size:11px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:16px 12px 6px}
.account-navigation button{padding:11px 12px;border:0;border-radius:6px;background:none;color:var(--forest);text-align:left;font-size:14px;line-height:1.3;font-weight:600}
.account-navigation button:hover{background:#eaf0e5}
.account-navigation button[aria-current=page]{background:#e2ecde}
.cabinet-content{min-width:0}
.cabinet-prototype .account-layout .cabinet-import{justify-self:start;width:auto}
.account-panel h1{font-size:30px;line-height:1.2;letter-spacing:-.035em;margin:0 0 24px;color:var(--forest)}
.account-panel .account-intro{margin-top:-12px;color:var(--muted);font-size:14px}
.account-panel #accountBranding>h2{display:none}
.account-panel #accountBranding>p{color:var(--muted);font-size:14px}
.profile-form{display:grid;gap:18px;max-width:680px}
.profile-form>label,.profile-links>label{display:grid;gap:8px;font-size:13px;color:var(--muted)}
.profile-form input:not([type=file]):not([type=checkbox]),.profile-form textarea{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;font-size:14px}
.profile-form textarea{resize:vertical;min-height:120px}
.profile-form input:focus,.profile-form textarea:focus{outline:none;border-color:#8ca797}
.profile-form h2{font-size:20px;margin:12px 0 0}
.profile-form .field-hint{color:var(--muted);font-size:12px;line-height:1.5;margin:-8px 0 0}
.profile-links{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.profile-photo-control{display:flex;align-items:center;gap:20px;margin-bottom:8px}
.profile-photo-control .profile-avatar{width:72px;height:72px}
.photo-label{cursor:pointer;min-height:38px;padding:8px 12px}
.profile-photo-remove{display:block;border:0;background:none;color:var(--muted);font-size:12px;padding:10px 0 0}
.profile-save-row{display:flex;align-items:center;gap:16px}
#profileFeedback{margin:0;color:var(--muted);font-size:13px}
.account-plan{padding:28px;border:1px solid var(--line);border-radius:10px;background:var(--paper);max-width:520px}
.account-plan h2{font-size:30px;margin:24px 0 12px}.account-plan p{font-size:14px;color:var(--muted)}.account-plan a{font-size:14px;color:var(--forest)}
.account-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.account-model-card{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--paper);box-shadow:var(--home-shadow)}
.account-model-author{display:flex;align-items:center;gap:8px;margin:0 2px 12px;font-size:13px;min-width:0}
.account-model-author strong{display:block;font-size:13px;line-height:1.4}
.account-model-author small{display:block;font-size:11px;line-height:1.4;color:var(--muted)}
.mini-profile-avatar{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;overflow:hidden;background:#eaf0e5;color:var(--forest)}
.mini-profile-avatar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.mini-profile-avatar img{width:100%;height:100%;object-fit:cover}
.home-page #cabinetHome{align-items:center;gap:8px;padding:7px 14px}
#cabinetHome .mini-profile-avatar{display:grid;width:26px;height:26px}
#cabinetHome .mini-profile-avatar svg{width:17px;height:17px}
.account-model-image{display:block;aspect-ratio:1;border-radius:6px;overflow:hidden}.account-model-image img{display:block;width:100%;height:100%;padding:12px;object-fit:contain}
.account-model-title{display:block;margin:16px 4px 6px;font-size:20px;font-weight:700;letter-spacing:-.03em;color:var(--forest)}
.account-model-card>p{margin:0 4px 12px;font-size:13px;color:var(--muted)}
.saved-remove{padding:8px 4px;border:0;background:none;color:var(--muted);font-size:12px}.saved-remove:hover{color:var(--forest)}
.account-empty{padding:28px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:14px}.account-empty a{display:block;margin-top:12px;color:var(--forest)}
.author-follow{width:100%;margin-top:4px;max-width:240px}.author-follow[aria-pressed=true]{background:#e2ecde;color:var(--forest)}
.author-page .author-sidebar{position:static}
.author-projects-head{display:flex;align-items:center;gap:12px;margin-bottom:24px}.author-projects-head h1{margin:0;font-size:30px;color:var(--forest)}.author-projects-head span{color:var(--muted);font-size:14px}
@media(min-width:1001px){.cabinet-prototype .account-layout .library-toolbar{grid-template-columns:1fr auto}.cabinet-prototype .account-layout .library-toolbar>div:first-child{grid-column:1/-1}.cabinet-prototype .account-layout .project-grid{grid-template-columns:repeat(var(--cabinet-columns,3),minmax(0,1fr))}}
@media(max-width:1100px){.cabinet-prototype .account-layout{grid-template-columns:240px minmax(0,1fr);column-gap:28px}.cabinet-prototype .account-layout .library-toolbar{grid-template-columns:1fr 1fr}.cabinet-prototype .account-layout .library-toolbar>div:first-child{grid-column:1/-1}.cabinet-prototype .account-layout .library-toolbar .button{padding:10px;font-size:12px}.cabinet-prototype .account-layout .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .profile-summary{grid-template-columns:64px minmax(0,1fr);gap:0 16px}
 .profile-summary>.profile-avatar{grid-row:1/3;grid-column:1}
 .profile-summary h2,.profile-summary .author-status{grid-column:2}
 .profile-summary .author-about,.profile-summary .author-socials,.profile-summary .public-profile-link{grid-column:1/-1;grid-row:auto;justify-self:start}
 .account-layout>.author-banner{grid-template-columns:64px minmax(0,1fr);gap:0 16px;padding-bottom:16px}
 .account-layout>.author-banner>.profile-avatar{grid-row:1/3;grid-column:1}
 .account-layout>.author-banner h2,.account-layout>.author-banner .author-status{grid-column:2}
 .account-layout>.author-banner .author-about,.account-layout>.author-banner .author-socials{grid-column:1/-1}
 .account-layout>.author-banner .profile-edit,.account-layout>.author-banner .public-profile-link,.account-layout>.author-banner .author-follow{grid-column:1/-1;grid-row:auto;justify-self:start;margin-top:12px}
 .project-structure{position:static;max-height:none;overflow:visible;border-bottom:1px solid var(--line);padding-bottom:18px}
 .project-structure nav{max-height:none;overflow:visible}
 .account-layout>.account-navigation{border:1px solid var(--line);padding:0}
 .account-layout>.account-navigation nav{display:grid;padding:8px}
 .account-layout.without-structure .account-project-grid{grid-template-columns:1fr}
 .cabinet-prototype .account-layout{grid-template-columns:1fr;column-gap:28px}
 .author-sidebar{position:static}.author-profile{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:16px;align-items:center}
 .author-profile>.profile-avatar{width:64px;height:64px;grid-row:1/3}
 .author-profile h2{font-size:22px;margin:0 0 6px}.author-profile .author-status{margin:0;font-size:13px}
 .author-about,.author-socials,.profile-edit,.public-profile-link,.author-follow{grid-column:1/-1}
 .author-about{margin-top:16px;margin-bottom:12px}.profile-edit{margin-bottom:10px}
 .account-navigation{margin-top:8px;padding-top:0;border:1px solid var(--line);border-radius:6px;background:var(--paper)}
 .account-navigation>summary{display:list-item;cursor:pointer;padding:12px 14px;font-size:14px;font-weight:600;color:var(--forest)}
 .account-navigation nav{padding:0 8px 8px}.account-panel h1{font-size:28px}
 .profile-links{grid-template-columns:1fr}.profile-form input:not([type=file]):not([type=checkbox]),.profile-form textarea{font-size:16px}
 .account-project-grid{grid-template-columns:1fr}.cabinet-prototype .account-layout .project-grid{grid-template-columns:1fr}
 .profile-save-row{align-items:flex-start;flex-direction:column}
}

/* Company settings and workspace share the account grid. */
.company-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.company-list button{max-width:100%;overflow-wrap:anywhere}
.company-list [aria-pressed=true]{background:#e2ecde;border-color:#c8d7c7}
.company-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.company-heading h2{margin:0;font-size:24px;overflow-wrap:anywhere}
.company-heading .pricing-badge{margin:0}
.company-create{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.company-create h2{margin:0;font-size:22px}
.company-create .button,.company-details .button,.profile-form>.button{justify-self:start}
.company-section-title{margin:32px 0 16px;font-size:22px}
.company-members{max-width:680px}
.company-member{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.company-member strong{display:block;font-size:14px;overflow-wrap:anywhere}
.company-member span{display:block;font-size:12px;color:var(--muted);margin-top:6px}
.company-text-button{border:0;background:none;font:inherit;font-size:13px;color:var(--muted);padding:8px}
.company-invite{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:20px}
.company-invite label{display:grid;gap:8px;font-size:13px;color:var(--muted)}
.company-invite input,.company-invite select{min-height:44px;max-width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--forest);font:inherit;font-size:14px}
.company-subscription{margin-top:32px;color:var(--muted);font-size:14px}
.company-subscription h2{font-size:22px;color:var(--forest)}
.company-subscription a{color:var(--forest)}
.company-feedback{color:var(--muted);font-size:13px;line-height:1.6}
.company-list[hidden],.company-invite[hidden]{display:none}
.company-context{margin:0 0 8px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.project-structure .company-manage-link{margin-top:24px;color:var(--muted);font-size:13px}
#companyWorkspaceButton{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--line);padding-block:10px}
#companyWorkspaceButton[aria-current=page]{border-color:#c8d7c7}
#companyAvatar>span{font-size:30px;font-weight:600}
@media(max-width:700px){.company-invite{display:grid;grid-template-columns:minmax(0,1fr)}.company-invite input,.company-invite select{width:100%;box-sizing:border-box}.company-invite .button{justify-self:start}#companyWorkspaceButton{max-width:100%}}

[data-cabinet-panel="saved"] h1{display:flex;align-items:center;gap:12px}
#accountSavedGrid .saved-project-title{font:inherit;color:var(--forest)}
.profile-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.profile-settings-heading h1{margin:0}
.profile-settings-heading .button{flex:none;font-size:13px}
@media(max-width:700px){.profile-settings-heading{flex-wrap:wrap}}

.cabinet-prototype .library-controls .search-field{flex:1;min-width:0}
.cabinet-type-filter{margin-left:auto;flex:none}
.cabinet-type-filter>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cabinet-type-filter select{max-width:100%}
.project-structure .tree-model{padding-block:5px}
@media(max-width:700px){.cabinet-prototype .library-controls{flex-wrap:wrap}.cabinet-prototype .library-controls .search-field{flex-basis:100%;width:100%}.cabinet-type-filter{margin-left:0}.cabinet-prototype .library-layout{margin-left:auto}}
.company-create-intro{margin:0;color:var(--muted);font-size:14px;line-height:1.6;max-width:640px}

.project-structure .tree-row{display:flex;align-items:stretch;border-radius:6px}
.project-structure .tree-row:has([aria-current=page]){background:#e2ecde}
.project-structure .tree-row>.tree-project{flex:1;min-width:0;width:auto;background:none}
.project-structure .tree-toggle{display:grid;place-items:center;flex:none;width:32px;padding:4px;background:none;color:var(--muted)}
.tree-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tree-toggle[aria-expanded=false] svg{transform:rotate(-90deg)}
.project-structure .tree-children{margin-left:12px;padding-left:4px;border-left:1px solid var(--line)}
.project-structure .tree-children[hidden]{display:none}
.project-structure .tree-children>.tree-model{width:100%;margin-left:0;padding-left:10px;border-left:0}

.profile-qr-settings{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.profile-qr-settings>h2{font-size:22px;margin:0 0 16px;color:var(--forest)}

.profile-qr-settings+.profile-save-row{margin-top:24px}
.account-qr-layout{display:grid;grid-template-columns:248px minmax(0,1fr);gap:24px;align-items:start}
.account-qr-controls{min-width:0}
.account-qr-preview{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;width:min(248px,100%)}
.account-qr-code{display:flex;flex-direction:column;align-items:center;width:100%;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--forest)}
.account-qr-code canvas{display:block;width:min(230px,100%);height:auto;aspect-ratio:1}
.account-qr-caption{padding:7px 4px 0;text-align:center;font-size:12px;line-height:1.2;font-weight:700}
.account-qr-profile-link{font-size:13px;color:var(--forest)}
.account-qr-profile-link:hover{text-decoration:underline}
.account-qr-preview .account-qr-local-note{margin:0;font-size:12px;line-height:1.5;text-align:center;color:var(--muted)}
@media(max-width:760px){.account-qr-layout{grid-template-columns:minmax(0,1fr);gap:24px}}


@media(min-width:1101px){.author-page .account-project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.author-page .account-layout{--author-photo-width:240px;--author-profile-gap:44px}
.author-page .account-layout>.author-banner{grid-template-columns:var(--author-photo-width) minmax(0,1fr) auto;column-gap:var(--author-profile-gap);grid-template-rows:auto auto auto 1fr;align-items:start}
.author-page .account-layout>.author-banner>.profile-avatar{grid-column:1;grid-row:1/5;width:100%;height:auto;aspect-ratio:1;border-radius:8px;box-sizing:border-box}
.author-page .account-layout>.author-banner>.profile-avatar svg{width:72px;height:72px}
.author-page .account-layout>.author-banner h2{margin:0 0 8px;grid-row:1}
.author-page .account-layout>.author-banner .author-status{grid-row:2}
.author-page .account-layout>.author-banner .author-about{grid-row:3}
.author-page .account-layout>.author-banner .author-socials{grid-row:4}
@media(max-width:1100px){.author-page .account-layout{--author-photo-width:210px;--author-profile-gap:28px}}
@media(max-width:700px){
 .author-page .account-layout>.author-banner{grid-template-columns:minmax(0,1fr);gap:0}
 .author-page .account-layout>.author-banner>.profile-avatar{grid-column:1;grid-row:1;margin-bottom:20px}
 .author-page .account-layout>.author-banner h2{grid-column:1;grid-row:2}
 .author-page .account-layout>.author-banner .author-status{grid-column:1;grid-row:3}
 .author-page .account-layout>.author-banner .author-about{grid-column:1;grid-row:4}
 .author-page .account-layout>.author-banner .author-socials{grid-column:1;grid-row:5}
 .author-page .account-layout>.author-banner .author-follow{grid-column:1;grid-row:6;justify-self:end;margin-top:12px}
}
#companyWorkspaceButton{max-width:none;overflow:visible;text-overflow:clip;border:0;padding-block:11px}
[data-cabinet-panel="company-create"] .company-create{margin:0;padding:0;border:0}
.companies-tree-list{margin:0 0 10px 12px;padding-left:4px;border-left:1px solid var(--line)}
.companies-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.company-catalogue-card{padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--paper);min-width:0}
.company-catalogue-card h2{margin:0 0 12px;font-size:22px;overflow-wrap:anywhere}
.company-catalogue-card>p{font-size:14px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.company-catalogue-card .button{margin-top:16px;font-size:13px}
@media(max-width:1100px){.companies-grid{grid-template-columns:1fr}}
/* Keep every private section on the same heading and navigation guides. */
.cabinet-prototype:not(.author-page) .account-layout>.account-navigation button{font-weight:600}
@media(min-width:1001px){
 .cabinet-prototype:not(.author-page) .cabinet-main{padding-top:22px}
 .cabinet-prototype:not(.author-page) .account-layout{--section-spacing:18px}
 .cabinet-prototype:not(.author-page) .account-layout>.account-navigation button{padding-block:9px}
}
.cabinet-prototype:not(.author-page) .account-layout>.project-structure button{min-height:36px;box-sizing:border-box}
.cabinet-prototype:not(.author-page) .account-layout>.project-structure .tree-toggle{min-height:36px}
.cabinet-prototype:not(.author-page) .account-layout .cabinet-content h1{font-size:30px;line-height:36px;min-height:40px;display:flex;align-items:center;gap:12px;box-sizing:border-box;color:var(--forest)}
.cabinet-prototype:not(.author-page) .profile-settings-heading{min-height:40px}
.cabinet-prototype:not(.author-page) .profile-settings-heading h1{margin:0}
.cabinet-prototype:not(.author-page) .profile-settings-heading .button{min-height:40px;padding:9px 14px;line-height:20px}
@media(max-width:700px){.cabinet-prototype:not(.author-page) .account-layout .cabinet-content h1{font-size:28px}}
.author-page .author-banner[hidden],.author-page .author-projects-head[hidden]{display:none}
.companies-catalogue-link{display:block;color:var(--forest);font-size:14px;padding:9px 10px;border-radius:6px;margin-bottom:8px}
.companies-catalogue-link:hover{background:#eaf0e5}
.companies-search{margin-bottom:24px}
.companies-search[hidden]{display:none}

.company-entry-form select{width:100%;min-height:46px;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--forest);font:inherit;font-size:14px}
@media(max-width:700px){.company-entry-form select{font-size:16px}}

.specialists-sidebar{display:block}
.specialists-sidebar[hidden]{display:none}
.specialists-blacklist{margin-top:12px;padding-top:0;color:var(--muted);font-size:13px}
.specialists-blacklist>summary{cursor:pointer;padding:8px 10px;line-height:1.5}
.specialists-blacklist>summary span{margin-left:6px}
.blacklist-entry{padding:10px;border-bottom:1px solid var(--line)}
.blacklist-entry>span{display:block;overflow-wrap:anywhere;font-size:13px}
.project-structure .blacklist-entry button{width:auto;font-size:12px;padding:4px 0;color:var(--muted)}
.specialists-search{margin-bottom:24px}
.specialist-avatar{display:grid;place-items:center;width:64px;height:64px;overflow:hidden;border-radius:8px;background:#eaf0e5;color:var(--forest);font-size:26px;font-weight:600}
.specialist-avatar img{width:100%;height:100%;object-fit:cover}
.specialist-profile-link{color:var(--forest)}
.specialist-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.specialist-card-actions button{padding:8px 0;font-size:12px}
.specialist-card-actions button+button{margin-left:12px}
.author-page .author-specialist-actions{grid-column:3;grid-row:1/5;display:grid;justify-items:end;gap:10px}
.specialist-block-link{border:0;background:none;color:var(--muted);font:inherit;font-size:12px;padding:6px 0;cursor:pointer}
@media(max-width:700px){.author-page .account-layout>.author-banner .author-specialist-actions{grid-column:1;grid-row:6;margin-top:12px}.specialists-sidebar{min-height:0}}
.specialist-profile-link h2{margin-top:14px}

.current-subscription{max-width:none}
.subscription-offer.current-subscription{border-color:#9cbaa8}
.subscription-offer.current-subscription .pricing-badge{background:var(--forest);color:#fff}
.subscription-offer.current-subscription .subscription-price{margin-bottom:56px}
.subscription-offers-title{margin:32px 0 20px;font-size:24px;color:var(--forest)}
.subscription-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.subscription-offer{display:flex;flex-direction:column;align-items:start;min-width:0;padding:22px 18px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.subscription-offer-pro{background:#e7eedf;border-color:#c6d6bc}
.subscription-offer .pricing-badge{font-size:10px;line-height:1.5}
.subscription-offer h3{font-size:28px;color:var(--forest);margin:20px 0 12px;line-height:1.2}
.subscription-offer>p{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 16px}
.subscription-offer ul{padding-left:18px;margin:0 0 24px;color:var(--forest);font-size:13px;line-height:1.6}
.subscription-offer li+li{margin-top:10px}
.subscription-price{margin-top:auto;margin-bottom:16px;font-size:20px;color:var(--forest);font-weight:600}
.subscription-offer .button{font-size:12px;padding:10px 12px;min-height:40px;width:100%}
.subscription-company-rule{color:var(--muted);font-size:13px;line-height:1.7;margin:24px 0 0}
@media(max-width:1100px){.subscription-offers{grid-template-columns:1fr}.subscription-offer{padding:24px}.subscription-offer .button{width:auto}}
.company-personal-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.company-personal-actions button{font-size:12px;padding:6px 0}


.project-structure button[hidden]{display:none}

/* Project heading and its actions form one stable toolbar. */




#projectsTitle #projectCount{display:none}
.library-actions{display:flex;gap:12px;align-items:start;justify-content:flex-end}
.cabinet-prototype .account-layout #projects .library-actions .button{white-space:nowrap;margin:0;width:auto;font-size:13px;padding:12px 16px;min-height:46px}
.model-workflow-dialog{width:min(560px,calc(100vw - 36px));box-sizing:border-box;max-height:calc(100dvh - 40px);overflow:auto}
.model-workflow-dialog h2{font-size:26px;margin:0 0 6px;overflow-wrap:anywhere}
.model-workflow-dialog select{width:100%;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--forest);font:inherit;font-size:14px}
.model-workflow-dialog input[type=file]{width:100%;min-width:0;font-size:13px}
.model-workflow-dialog label[hidden]{display:none}
.model-workflow-error{color:#a04434;font-size:13px;line-height:1.5;margin:0}
@media(max-width:1100px){.cabinet-prototype .account-layout #projects .library-toolbar{grid-template-columns:minmax(0,1fr)}.cabinet-prototype .account-layout #projects .library-actions{grid-column:1;justify-content:start}.cabinet-prototype .account-layout #projects .library-controls{grid-column:1}}
@media(max-width:700px){.library-actions{flex-wrap:wrap}.cabinet-prototype .account-layout #projects .library-actions .button{font-size:12px;padding:10px 12px}.model-workflow-dialog select{font-size:16px}}

/* Keep the current viewport while a shorter section replaces a longer one. */
body.cabinet-page{overflow-anchor:none}
.cabinet-prototype:not(.author-page) .account-layout{min-height:max(calc(100dvh - 166px),var(--account-scroll-height,0px))}


/* One collection layout for projects, saved work, companies and specialists. */
.cabinet-prototype .account-layout .collection-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:22px 16px;margin:0 0 var(--content-spacing)}
.cabinet-prototype .account-layout .collection-toolbar>div.library-heading{grid-column:1;min-width:0}
.cabinet-prototype .account-layout .collection-toolbar h1{margin:0 0 var(--caption-spacing);min-height:40px;display:flex;align-items:center;overflow-wrap:anywhere}
.collection-toolbar [data-list-count]{display:block;font-size:13px;line-height:20px;color:var(--muted);margin-top:-7px}
.cabinet-prototype .collection-toolbar .library-controls{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:16px;min-width:0}
.cabinet-prototype .collection-toolbar .search-field{flex:1;min-width:0;width:auto;margin:0}

/* Compact project navigation; keep control sizes and the grid spacing intact. */
.cabinet-prototype .account-layout #projects .collection-toolbar{margin-bottom:14px}
.cabinet-prototype #projects .folder-breadcrumb{margin-bottom:16px}
.cabinet-prototype #projects .folder-breadcrumb button{padding-block:6px}
@media(min-width:701px){.cabinet-prototype .account-layout #projects .collection-toolbar{row-gap:18px}}

.collection-toolbar .library-layout{position:relative;flex:0 0 56px;width:56px;margin:0}
.collection-toolbar .library-layout>button{width:100%;height:40px;min-height:40px;display:flex;align-items:center;gap:6px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--forest);font-size:13px;font-weight:400}
.collection-toolbar .library-layout>[role=group]{position:absolute;z-index:15;right:0;top:calc(100% + 6px);width:130px;padding:5px;border:1px solid var(--line);border-radius:6px;background:var(--paper);box-shadow:var(--home-shadow)}
.collection-toolbar .library-layout>[role=group][hidden]{display:none}
.collection-toolbar .library-layout>[role=group] button{display:block;width:100%;text-align:left;padding:10px;border:0;border-radius:4px;background:none;color:var(--forest);font-size:13px}
.collection-toolbar .library-layout>[role=group] button[aria-pressed=true]{background:#e2ecde}
.cabinet-prototype .account-layout .cabinet-content :is(.project-grid,.folder-grid,.companies-grid){display:grid;grid-template-columns:repeat(var(--cabinet-columns,3),minmax(0,1fr));gap:20px}


@media(max-width:1100px){
 .cabinet-prototype .account-layout .collection-toolbar{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(var(--list-action-row,40px),auto) auto}
 .collection-toolbar .library-actions{grid-column:1;grid-row:2;justify-content:flex-start}
 .cabinet-prototype .collection-toolbar .library-controls{grid-row:3}
 .cabinet-prototype .account-layout .cabinet-content :is(.project-grid,.folder-grid,.companies-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .cabinet-prototype .collection-toolbar .library-controls{flex-wrap:wrap}
 .cabinet-prototype .collection-toolbar .search-field{flex-basis:100%;width:100%}
 .collection-toolbar .library-layout{margin-left:auto}
 .cabinet-prototype .account-layout .cabinet-content :is(.project-grid,.folder-grid,.companies-grid){grid-template-columns:minmax(0,1fr)}
}

.company-project-thumb{width:100%;border:0;padding:0;color:var(--forest);font-size:36px}
/* Keep the search and the right edge of its tools aligned between lists. */
.collection-toolbar .library-controls>select,
.collection-toolbar .cabinet-type-filter{flex:0 0 144px;width:144px;max-width:144px;margin:0}
.collection-toolbar .cabinet-type-filter select{width:100%}


.cabinet-prototype .collection-toolbar #layoutToggle{width:100%;gap:6px;padding-inline:10px;font-size:13px;font-weight:400}

@media(max-width:380px){.collection-toolbar{--list-action-row:92px}}

/* Models are visually subordinate to folders without an extra tree level. */
.project-structure .tree-model{font-size:13px;font-weight:400;line-height:1.5;color:#5b7465}
.project-structure .tree-model[aria-current=page]{color:var(--forest);font-weight:600}
