/* 1.2.91 c4 — 📇 New Directory design (switch dirV2; nothing here applies while it is Off: every rule needs [data-c4v] or a .c4- element) */
.page.dir[data-c4v] > .tabs { display: none !important; }
.page.dir[data-c4v="main"] > .iwrap:not(.c4-search), .page.dir[data-c4v="list"] > .iwrap:not(.c4-search),
.page.dir[data-c4v="main"] > #dirList, .page.dir[data-c4v="list"] > #dirList,
.page.dir[data-c4v="main"] > .dir-legend, .page.dir[data-c4v="list"] > .dir-legend, .page.dir[data-c4v="hg"] > .dir-legend, .page.dir[data-c4v="rh"] > .dir-legend,
.page.dir[data-c4v="main"] > #c1hgBox, .page.dir[data-c4v="list"] > #c1hgBox, .page.dir[data-c4v="main"] > #c1hgBack, .page.dir[data-c4v="list"] > #c1hgBack { display: none !important; }
.c4-dir { --c4-g1: #2c542f; --c4-g2: #173418; }
.c4-dir .c4-search { margin-bottom: 14px; }
.c4-btns { display: flex; flex-direction: column; gap: 12px; }
.c4-btns.hidden { display: none; }
.c4-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 10px 14px; border: 0; border-radius: 12px; cursor: pointer; text-align: start;
  background: linear-gradient(180deg, var(--c4-g1, #2c542f) 0%, var(--c4-g2, #173418) 100%); color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.14); font: inherit; }
.c4-btn:active { transform: scale(.99); filter: brightness(1.08); }
.c4-btn:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.c4-ic { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #173418; display: flex; align-items: center; justify-content: center; font-size: 23px; flex: none; overflow: hidden; }
.c4-ic.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c4-bt { flex: 1; min-width: 0; } .c4-bt b { display: block; font-size: 19px; font-weight: 600; line-height: 1.25; } .c4-bt small { display: block; font-size: 12.5px; opacity: .85; margin-top: 2px; }
.c4-ch { font-size: 24px; opacity: .75; margin-inline-start: 4px; }
[dir="rtl"] .c4-ch, [dir="rtl"] .c4-ch2 { transform: scaleX(-1); }
.c4-hdr { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px; margin-bottom: 12px; border-radius: 12px; color: #fff;
  background: linear-gradient(180deg, var(--c4-g1, #2c542f) 0%, var(--c4-g2, #173418) 100%); }
.c4-hdr b { font-size: 18px; font-weight: 600; } .c4-hdr .c4-ic { width: 38px; height: 38px; font-size: 19px; }
.c4-back { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
[dir="rtl"] .c4-back { transform: scaleX(-1); }
.c4-list { display: flex; flex-direction: column; gap: 10px; }
.c4-list:empty { display: none; }
#c4res { margin-bottom: 14px; }
.c4-row, .c4-arow2 { display: flex; align-items: center; gap: 12px; background: hsl(var(--card, 0 0% 100%)); border: 1px solid hsl(var(--border, 214 32% 91%)); border-radius: 12px; padding: 10px 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.c4-row.hidden { display: none; }
.c4-av { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: none; overflow: hidden; background: #2c542f; }
.c4-av.has-img { background: #fff; border: 1px solid hsl(var(--border, 214 32% 91%)); }
.c4-av img { width: 100%; height: 100%; object-fit: contain; display: block; }
.c4-av.lg { width: 56px; height: 56px; font-size: 22px; }
.c4-rhav, .c4-hgav { background: #eef5ee; font-size: 22px; }
.c4-t { flex: 1; min-width: 0; } .c4-t b { display: block; font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; } .c4-t small { display: block; color: hsl(var(--muted-foreground, 215 16% 47%)); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c4-call, .c4-wa { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; text-decoration: none; }
.c4-call { background: #16a34a; color: #fff; } .c4-call svg { width: 20px; height: 20px; }
.c4-wa { background: #e7f8ee; font-size: 19px; }
.c4-ch2 { font-size: 22px; color: hsl(var(--muted-foreground, 215 16% 47%)); }
.c4-unc { font-style: normal; font-size: 11px; vertical-align: middle; }
.c4-sub { font-weight: 600; margin: 18px 2px 8px; color: hsl(var(--muted-foreground, 215 16% 47%)); }
.c4-mh { display: flex; align-items: center; gap: 12px; margin: 0; }
.c4-card { display: flex; flex-direction: column; gap: 10px; }
.c4-note { margin: 0; color: hsl(var(--muted-foreground, 215 16% 47%)); }
.c4-callbtn { background: #16a34a; border-color: #16a34a; }
.c4-line { display: block; padding: 6px 2px; overflow-wrap: anywhere; }
/* admin */
.c4-abtns { display: flex; flex-direction: column; gap: 12px; }
.c4-abtn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.c4-btn-mini { min-height: 58px; width: auto; flex: 1 1 220px; cursor: default; } .c4-btn-mini .c4-bt b { font-size: 16px; } .c4-btn-mini .c4-ic { width: 40px; height: 40px; font-size: 20px; }
.c4-aact { display: flex; flex-wrap: wrap; gap: 6px; }
.c4-file { position: relative; cursor: pointer; }
.c4-arow { margin-bottom: 8px; } .c4-arow .input { flex: 1; }
.c4-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.c4-chip { border: 1px solid hsl(var(--border, 214 32% 91%)); background: transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px; color: inherit; }
.c4-chip.on { background: #2c542f; border-color: #2c542f; color: #fff; }
.c4-alist { display: flex; flex-direction: column; gap: 8px; }
.c4-ord { display: flex; gap: 2px; } .c4-ord .iconbtn { width: 34px; height: 34px; }
.c4-lrow { gap: 8px; flex-wrap: wrap; }
.c4-chk { gap: 8px; align-items: center; }
.c4-danger { color: #dc2626; }
.c4-emoji { font-size: 24px; width: 100px; text-align: center; }
.c4-epick { display: flex; flex-wrap: wrap; gap: 6px; } .c4-ep { font-size: 22px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid hsl(var(--border, 214 32% 91%)); background: transparent; cursor: pointer; }
@media (min-width: 900px) { .c4-btns { display: grid; grid-template-columns: 1fr 1fr; } }
html.dark .c4-av.has-img, html.dark .c4-ic { background: #f8fafc; }
html.dark .c4-rhav, html.dark .c4-hgav { background: #1e293b; }
html.dark .c4-wa { background: #14532d; }

/* 1.2.94 Directory group view: the green bar + the search box stay pinned under the app's top bar while scrolling (Mordechai 2026-10-21 "frozen") */
.page.dir[data-c4v="list"] #c4root > .c4-hdr { position: sticky; top: var(--c4-tb, 0px); z-index: 7; margin-bottom: 0; }
.page.dir[data-c4v="list"] #c4root > .c4-search { position: sticky; top: calc(var(--c4-tb, 0px) + var(--c4-hh, 56px)); z-index: 6; margin: 0 0 6px; padding: 10px 0 8px; background: hsl(var(--background)); }
.page.dir[data-c4v="hg"] > #c4root, .page.dir[data-c4v="rh"] > #c4root, .page.dir[data-c4v="vol"] > #c4root { position: sticky; top: var(--c4-tb, 0px); z-index: 7; }
.page.dir[data-c4v="hg"] > #c4root .c4-hdr, .page.dir[data-c4v="rh"] > #c4root .c4-hdr, .page.dir[data-c4v="vol"] > #c4root .c4-hdr { margin-bottom: 0; }
.page.dir[data-c4v="hg"] > .iwrap, .page.dir[data-c4v="rh"] > .iwrap, .page.dir[data-c4v="vol"] > .iwrap { position: sticky; top: calc(var(--c4-tb, 0px) + var(--c4-hh, 56px)); z-index: 6; padding: 10px 0 8px; margin-top: 0; background: hsl(var(--background)); }
