/* Карточки методик – краткое предметное описание непосредственно под названием */
.library-page .method .head{gap:14px;align-items:flex-start}
.library-page .method .head>div:last-child{min-width:0;flex:1}
.library-page .method h3{font-weight:800;line-height:1.25;margin:0 0 7px;overflow-wrap:anywhere}
.library-page .method p.method-card-summary{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
 min-height:42px;color:var(--muted);font:500 14px/1.5 system-ui;margin:0;
}
.library-page .method .tags{margin:13px 0 6px;gap:7px;align-items:flex-start}
.library-page .method .tag{padding:5px 9px;font-size:11px;font-weight:750;line-height:1.35}
.library-page .method .method-card-author{font:500 12px/1.45 system-ui;color:var(--muted);margin:4px 0 0;min-height:0}
.library-page .method .actions{margin-top:auto;padding-top:6px}
.library-page .method .actions>.btn{line-height:1.3;min-height:42px;text-align:center}
.library-page .method .actions>.method-kit-link{background:var(--area)!important;border-color:var(--area)!important;color:#fff!important}
.library-page .method .method-warning{top:12px;right:11px}
.library-page .method:has(.method-warning) .head{padding-right:28px}
.library-page .portfolio-note>h3:first-child{font-size:21px;color:var(--area);margin-top:0}
.library-page .portfolio-note .method-facts{margin:17px 0 24px}
@media(max-width:820px){
 .library-page .method .head{gap:12px}
 .library-page .method p.method-card-summary{font-size:13px;line-height:1.48;min-height:38px;-webkit-line-clamp:3}
 .library-page .method .tags{margin:9px 0 4px}
 .library-page .method .method-card-author{font-size:12px;line-height:1.4;margin:4px 0 0}
}

/* Исправленный порядок карточки: название, автор, тип/возраст/объем, описание, действие. */
.library-page .method p.method-card-summary{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0 14px;flex:1}
.library-page .method .head .method-card-author{max-width:100%}
.library-page .method .tags{margin:11px 0 4px}

/* 61–100: оригинальные изображения из пользовательского архива; 8 столбцов × 5 строк. */
.library-page .method .glyph:has(.method-art-tile){overflow:hidden;padding:0;border-radius:15px}
.library-page .method .method-art-tile{
 display:block;width:100%;height:100%;min-width:100%;min-height:100%;
 background-image:url('assets/psyteka-methods-61-100.webp?v=20261025art');
 background-repeat:no-repeat;background-size:800% 500%;
 background-color:#f4f8f4;border-radius:14px
}
html.dark .library-page .method .method-art-tile{background-color:#f4f8f4}
.library-page .topic-all{font-weight:800}

/* Ten user-supplied Psyteka pictures — independent thumbnails, no old art modified. */
.library-page .method .glyph:has(.method-art-personal){overflow:hidden;padding:0;border-radius:15px;background:#f7faf7;display:flex;align-items:center;justify-content:center}
.library-page .method .method-art-personal{display:block;width:100%;height:100%;min-width:100%;min-height:100%;object-fit:cover;object-position:center;border-radius:14px}

/* Approved illustrations 11–20, stored separately so no older pictures are changed. */
.library-page .method .method-art-tile.psy-new-batch-1120{
 background-image:url('assets/psyteka-icons-11-20-approved.webp?v=20261026batch2');
 background-repeat:no-repeat;
 background-size:500% 200%;
 background-color:#f6f9f5;
}
