/* 2.3.242 the search inside the open folder (next to its title) and the quick chips above its photos (folder-search.js) */
.folder-search{display:flex;align-items:center;gap:8px;flex:1 1 280px;max-width:460px;margin-inline:18px auto}
.folder-search[hidden]{display:none}
.folder-search input{flex:1;min-width:0;padding:9px 12px;border:1px solid #a9afb9;border-radius:8px;background:#fff9;font-size:14px}
.folder-search .page-button{padding:9px 14px;white-space:nowrap}
.folder-search-whole{font-size:13px;white-space:nowrap;color:#535b69}
.folder-search-whole[hidden]{display:none}
.quick-chips{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 28px;margin:0 0 18px;max-width:100%}
.quick-chips[hidden]{display:none}
.quick-chips-row{position:relative;display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;flex:0 1 auto}
.quick-chips-label{font-size:12px;color:#5d6572;flex:none}
.quick-chips-list{display:flex;flex-wrap:nowrap;gap:6px;overflow:hidden;padding:1px;min-width:0;flex:0 1 auto}
.quick-chips-list>*{flex:none}
.quick-chip{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 13px;border:1px solid #cfd6e0;border-radius:999px;background:#fdfdff;color:#39414f;font-size:13px;cursor:pointer;white-space:nowrap;max-width:260px}
.quick-chip span{overflow:hidden;text-overflow:ellipsis}
.quick-chip small{color:#5d6572;font-size:12px}
.quick-chip:hover{border-color:#9aa6b8}
.quick-chip[aria-pressed="true"]{background:var(--site-accent,#344236);border-color:var(--site-accent,#344236);color:#fff}
.quick-chip[aria-pressed="true"] small{color:#d3d6dc}
.quick-chip.quick-person{padding-inline-start:3px}
.quick-face{width:28px;height:28px;border-radius:50%;overflow:hidden;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:#ced2d9;color:#464c58;font-size:11px;font-weight:600}
.quick-face img{width:100%;height:100%;object-fit:cover;display:block}
.quick-chips-more{flex:none;height:34px;padding:0 12px;border:1px solid #cfd6e0;border-radius:999px;background:#fdfdff;color:#39414f;font-size:13px;cursor:pointer;white-space:nowrap}
.quick-chips-more:hover,.quick-chips-more[aria-expanded="true"]{border-color:#9aa6b8;background:#eef1f6}
.quick-pop{position:absolute;inset-inline-start:0;top:calc(100% + 6px);z-index:30;width:min(360px,92vw);padding:10px;border:1px solid #cfd6e0;border-radius:12px;background:#fff;box-shadow:0 10px 30px #1b243326}
.quick-pop input{box-sizing:border-box;width:100%;padding:8px 10px;border:1px solid #a9afb9;border-radius:8px;font-size:14px;margin-bottom:8px}
.quick-pop-list{display:flex;flex-wrap:wrap;gap:6px;max-height:300px;overflow:auto}
.face-zoom{position:fixed;z-index:10000;border-radius:50%;overflow:hidden;box-shadow:0 12px 36px #0000004d;border:3px solid #fff;background:#ced2d9;pointer-events:none;opacity:0;transform:scale(.18);transition:opacity .16s ease,transform .18s ease}
.face-zoom.on{opacity:1;transform:scale(1)}
.face-zoom img{display:block;width:100%;height:100%;object-fit:cover}
@media (prefers-reduced-motion:reduce){.face-zoom{transition:none}}
/* 2.3.273 (Andrew 01.11): the header of a folder in two lines — title · count · buttons, then the chips; one search (the top one), no neighbour pill, no hint line */
.album-heading.two-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin-bottom:10px}
.album-heading.two-row #gallery-count{font-size:13px;color:#5d6572;margin-inline-end:auto}
.album-heading.two-row>.album-controls{margin:0;flex:0 1 auto;align-self:center}
.album-heading.two-row>.album-controls>*{margin:0}
.gallery-main:has(#gallery-index:not([hidden]))>.album-neighbors{display:none}
.album-card img{width:100%;object-fit:cover}
#gallery-intro:empty{display:none}
.quick-chips-more[hidden]{display:none}
.site-search-only{display:inline-block;margin:0 0 14px;font-size:14px}
@media (max-width:760px){
 .folder-search{flex-basis:100%;max-width:none;margin-inline:0}
 .quick-chips{gap:8px 12px}
}
/* 2.3.275 (audit 02.11): a chip is whole or it goes behind «+N» — never squeezed to half; «+N» reads the same in Hebrew */
.quick-chips-list>*{flex:none}
.quick-chips-more{direction:ltr;unicode-bidi:isolate}
/* 2.3.275: the «Вид» menu in the header's first row opens towards the inside of the page: the actions sit at the end of the row, so the menu is anchored to its end edge */
.album-heading .view-menu .view-menu-body{inset-inline-start:auto;inset-inline-end:0}
/* 2.3.276 (audit 02.11): «+N» follows the last chip at once (no gap to the end of the row) */
.quick-chips-row .quick-chips-list{flex:0 1 auto}
/* «один стиль» (Andrew 06.11, D:\CODEX\AUDIT\tasks\2026-11-02-ui-one-style-sweep.md, end): no big «Фотографии» above the grid — the title of an album listing is
   small, in one row with «18 альбомов · 33064 фото» and «▶ Все фото подряд»; the row and the grid go up under «Альбомы / Годы / Люди». ПК only. */
@media(min-width:1000px){
 #gallery-index>.album-heading.two-row{margin:0 0 14px;min-height:0;align-items:center}
 #gallery-index>.album-heading.two-row #gallery-title{font-size:24px;line-height:1.2;margin:0}
}
/* 2.3.331: while the quick lines load, their usual place (two lines of 36 px chips, 8 px apart) is kept with two faint rows */
.quick-chips.quick-chips-loading{min-height:80px;background:repeating-linear-gradient(90deg,#e3e5e9 0 150px,transparent 150px 160px) 0 0/min(640px,100%) 36px no-repeat,repeating-linear-gradient(90deg,#e3e5e9 0 110px,transparent 110px 120px) 0 44px/min(360px,100%) 36px no-repeat;border-radius:18px}
