/* Global task catalogue: sections → groups → destinations. Existing portal tokens. */
.portal-catalog{flex:none;align-self:center}
.portal-catalog>.menyu-polotno{position:fixed;top:72px;left:16px;right:auto;z-index:90;display:block;width:min(1180px,calc(100vw - 32px));min-width:0;max-height:calc(100dvh - 88px);overflow:auto;padding:0;border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 16px 48px rgba(17,19,24,.14);animation:none}
.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px 10px}
.catalog-heading strong{display:block;font-size:18px;font-weight:600;line-height:1.4}
.catalog-heading span{display:block;color:var(--ink-3);font-size:12px;margin-top:3px}
.catalog-close{width:36px;height:36px;display:grid;place-items:center;flex:none;border:1px solid var(--line);border-radius:8px;color:var(--ink-3);background:var(--paper);font:400 24px/1 var(--shrift);cursor:pointer}
.portal-catalog-search{display:block;padding:0 20px 12px}
.portal-catalog-search input{width:100%;min-width:0;height:40px;box-sizing:border-box;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--pale);font:400 14px/1.4 var(--shrift);color:var(--ink)}
.catalog-layout{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:0;border-top:1px solid var(--line)}
.catalog-sections{padding:12px;border-right:1px solid var(--line);background:var(--pale-2,var(--paper))}
.catalog-section{width:100%;min-height:44px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;margin-bottom:4px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:400 14px/1.4 var(--shrift);cursor:pointer}
.catalog-section span{color:var(--ink-3);font-size:20px;font-weight:400}
.catalog-section:hover,.catalog-close:hover{background:var(--pale)}
.catalog-section[aria-expanded=true]{background:var(--pale);font-weight:600}
.catalog-content{min-width:0;padding:16px 20px 20px}
.catalog-category h2{font:600 18px/1.4 var(--shrift);margin:0 0 14px;color:var(--ink)}
.catalog-groups{column-count:3;column-gap:24px}
.catalog-group{break-inside:avoid;page-break-inside:avoid;margin:0 0 18px;display:flow-root}
.catalog-group h3{margin:0 0 6px;padding-bottom:6px;border-bottom:1px solid var(--line);font:500 12px/1.5 var(--shrift);color:var(--ink-3)}
.catalog-group ul,.catalog-results ul{list-style:none;padding:0;margin:0}
.portal-catalog .catalog-group a{display:block;padding:7px 8px;margin-left:-8px;min-height:36px;box-sizing:border-box;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.portal-catalog a[aria-current=page]{background:var(--pale);font-weight:600}
.portal-catalog :is(a,button,input):focus-visible{outline:2px solid var(--fokus);outline-offset:2px}
.portal-catalog [hidden]{display:none!important}
.catalog-results p{font-size:12px;color:var(--ink-3);margin:0 0 12px}
.portal-catalog .catalog-results a{display:block;padding:10px 8px;font-size:14px;line-height:1.4}
.catalog-results a span{display:block;color:var(--ink-3);font-size:11px;margin-top:4px;font-weight:400}
.portal-catalog .glazami-v-menyu{margin:0;border-top:1px solid var(--line);padding:8px 16px}
.portal-catalog .glazami-vhod{min-height:40px}
.portal-catalog:not(.catalog-enhanced) .catalog-sections{display:none}
.portal-catalog:not(.catalog-enhanced) .catalog-layout{display:block}
.portal-catalog:not(.catalog-enhanced) .catalog-category{margin-bottom:24px}
@media(max-width:1050px){.catalog-groups{column-count:2}}
@media(max-width:720px){
 .portal-catalog>.menyu-polotno{top:70px;left:8px;width:calc(100vw - 16px);max-height:calc(100dvh - 80px)}
 .catalog-heading{padding:16px 16px 12px}.portal-catalog-search{padding:0 16px 12px}
 .catalog-layout{grid-template-columns:1fr;min-height:0}.catalog-sections{display:flex;overflow-x:auto;gap:4px;border-right:0;border-bottom:1px solid var(--line);padding:8px}
 .catalog-section{width:auto;flex:none;white-space:nowrap;margin:0;min-height:44px;padding:8px 12px;font-size:13px}.catalog-section span{display:none}
 .catalog-content{padding:16px}.catalog-groups{column-gap:20px}.catalog-category h2{margin-bottom:16px}
}
@media(max-width:460px){.catalog-groups{column-count:1}.shapka{column-gap:12px}.catalog-heading span{font-size:11px}}

/* Role preview stays in the scrollable catalogue, never clipped in a flyout. */
.portal-catalog .s-vyletom .glazami-vylet{position:static;width:auto;box-shadow:none;border:0;padding:4px 0 8px 16px;animation:none}
.portal-catalog .s-vyletom .glazami-punkt>.glazami-ryad::after{transform:rotate(135deg)}

.portal-catalog[open]>.menyu-polotno{animation:none}

@media(max-width:720px){.portal-catalog .catalog-group a,.catalog-close{min-height:44px}.catalog-close{width:44px}.portal-catalog .catalog-group a{padding-block:11px}}
