/* Circle's tabs, faces, More and Settings (js/circle/lens.js). */
.circle-fixed-top:has(.lens-tabrow) { padding: 2px 0 0; }
html:not(.is-desktop-board)[data-main-tab="circle"] .circle-fixed-top:has(.lens-tabrow) {
  position: sticky;
  top: 0; /* measured from below the feed's padding, which already clears the top bar */
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
html.is-circle-me .lens-top, html.is-circle-me .circle-lens-view { display: none !important; }
.circle-feed-page.lens-on > .circle-private-feed:not(.circle-lens-view) { display: none; }
html.is-circle-me .circle-feed-page.lens-on > .circle-private-feed:not(.circle-lens-view) { display: block; }

.lens-top button { font: inherit; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lens-tabrow { display: flex; align-items: center; }
.lens-tabs { flex: 1; min-width: 0; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 8px 26px 8px 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.lens-tabs::-webkit-scrollbar, .lens-faces::-webkit-scrollbar { display: none; }
.lens-top .lens-tab { flex: 0 0 auto; font-size: 15.5px; color: #868a92; white-space: nowrap; }
.lens-top .lens-tab.on { color: #17181a; font-weight: 700; }
.lens-n { margin-left: 3px; font-size: 12.5px; font-weight: 500; color: #a5a8af; font-variant-numeric: tabular-nums; }
.lens-top .lens-more { padding: 8px 16px 8px 6px; }
.lens-faces { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 3px 16px 9px; }
.lens-top .lens-face { flex: 0 0 auto; width: 58px; text-align: center; font-size: 12.5px; color: #4f535b; }
.lens-face.on { color: #17181a; font-weight: 700; }
.lens-face-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lens-ring { position: relative; display: block; flex: 0 0 auto; width: 52px; height: 52px; margin: 0 auto 4px; }
.lens-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background-color: var(--circle-avatar, #4b7966); background-size: cover; background-position: center; color: #fff; font-size: 18px; font-weight: 600; }
.lens-face.on .lens-av { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #17181a; }
.lens-badge { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #e8a200; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.lens-dot { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: #4ea26b; box-shadow: 0 0 0 2px #fff; }
.lens-hint { margin: 0; padding: 0 16px 8px; font-size: 13px; color: #8a8e96; }
.lens-who { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 8px; font-size: 13.5px; color: #55585e; }
.lens-who b { color: #17181a; }
.lens-top .lens-who button { font-size: 13.5px; font-weight: 600; color: #2a6fd6; }

.circle-private-post:has(> .lens-star:not([hidden])) .circle-private-head { padding-right: 62px; }
.lens-star { display: none; position: absolute; top: 12px; right: 40px; z-index: 2; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: #b6b9bf; cursor: pointer; }
.circle-feed-page .lens-star { display: grid; }
.circle-feed-page .lens-star[hidden] { display: none; }
.lens-star.on { color: #e8a200; background: #fff4d6; }
.lens-chat-label { margin-left: 2px; padding: 1px 7px; border-radius: 10px; background: #e1f5ee; color: #0f6e56; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.lens-chat-label[hidden], .lens-on .lens-chat-label { display: none; }

.lens-empty { padding: 56px 28px; text-align: center; color: #8a8e96; font-size: 15px; line-height: 1.5; }
.lens-empty b { display: block; margin-bottom: 6px; color: #17181a; font-size: 17px; }
.lens-see-more, .lens-see-all { display: block; width: 100%; border: 0; background: none; padding: 14px 0; font: inherit; font-size: 14px; font-weight: 600; color: #2a6fd6; text-align: left; cursor: pointer; }
.lens-see-more { text-align: center; }
.lens-more-top { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.lens-kind { flex: 0 0 auto; display: flex; padding: 3px; border-radius: 12px; background: #f3f4f6; }
.lens-kind button { border: 0; background: none; padding: 6px 10px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: #80848c; cursor: pointer; }
.lens-kind button.on { background: #fff; color: #17181a; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.lens-search { flex: 1; min-width: 0; padding: 9px 12px; border: 0; border-radius: 12px; background: #f3f4f6; font: inherit; font-size: 16px; color: #17181a; outline: none; }
.lens-gear { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #f3f4f6; color: #33373d; cursor: pointer; }
.lens-mark-all { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #8a8e96; }
.lens-mark-all:not(:empty) { padding: 0 0 8px; border-bottom: 1px solid #ececef; }
.lens-mark-all button { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: #2a6fd6; cursor: pointer; }
.lens-row-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid #ececef; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lens-row-head.open { position: sticky; top: var(--lens-top-h, 0px); z-index: 3; }
.lens-row-head .lens-ring { width: 44px; height: 44px; margin: 0; }
.lens-row-head .lens-av { width: 44px; height: 44px; font-size: 16px; }
.lens-tag-icon { position: relative; flex: 0 0 auto; display: block; width: 44px; height: 44px; border-radius: 50%; background: #f3f4f6; }
.lens-mini { position: absolute; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background-color: var(--circle-avatar, #4b7966); background-size: cover; background-position: center; color: #fff; font-size: 10px; box-shadow: 0 0 0 1.5px #fff; }
.lens-mini:nth-child(1) { left: 3px; top: 5px; }
.lens-mini:nth-child(2) { right: 3px; top: 8px; }
.lens-mini:nth-child(3) { left: 11px; bottom: 2px; }
.lens-row-text { flex: 1; min-width: 0; }
.lens-row-text strong { display: block; font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lens-row-text small { display: block; margin-top: 1px; font-size: 12.5px; color: #8a8e96; }
.lens-row-text small.new { color: #0f6e56; font-weight: 700; }
.lens-chev { flex: 0 0 auto; width: 26px; text-align: center; color: #80848c; font-size: 16px; }
.lens-row-body { padding: 2px 0 8px 12px; margin-left: 21px; border-left: 2px solid #ececef; }
.lens-close-all { display: block; position: sticky; bottom: calc(var(--float-bottom-h, 12px) + 12px); z-index: 3; width: fit-content; margin: 8px auto 0; padding: 9px 16px; border: 0; border-radius: 999px; background: #17181a; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lens-meet { margin-left: -12px; margin-right: -12px; }

.lens-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); transform: translateX(-50%); z-index: 3000; width: max-content; max-width: 84vw; padding: 8px 14px; border-radius: 14px; background: #17181a; color: #fff; font-size: 13px; text-align: center; }
.lens-toast button { margin-left: 12px; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #8ab4ff; cursor: pointer; }

.lens-sheet-wrap { position: fixed; inset: 0; z-index: 2500; }
.lens-scrim { position: absolute; inset: 0; border: 0; background: rgb(0 0 0 / .32); cursor: default; }
.lens-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 7%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; box-sizing: border-box; padding: 8px 16px 0; border-radius: 22px 22px 0 0; background: #fff; color: #17181a; font-size: 14px; animation: lens-up .18s ease-out; }
@keyframes lens-up { from { transform: translateY(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .lens-sheet { animation: none; } }
.lens-sheet button { font: inherit; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }
.lens-grab { width: 38px; height: 5px; margin: 2px auto 10px; border-radius: 3px; background: #d4d3cd; }
.lens-sheet-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; }
.lens-sheet-head b { font-size: 19px; font-weight: 800; }
.lens-sheet .lens-sheet-head button { padding: 4px 2px; font-size: 16px; font-weight: 600; color: #2a6fd6; }
.lens-panes { flex: 0 0 auto; display: flex; gap: 18px; padding: 10px 0 9px; border-bottom: 1px solid #ececef; }
.lens-sheet .lens-panes button { font-size: 15px; color: #868a92; white-space: nowrap; }
.lens-sheet .lens-panes button.on { color: #17181a; font-weight: 700; }
.lens-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 2px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
.lens-sheet-body::-webkit-scrollbar { display: none; }
.lens-shint { margin: 10px 0 6px; font-size: 13px; line-height: 1.4; color: #8a8e96; }
.lens-sh { margin: 16px 0 4px; font-size: 13px; font-weight: 700; color: #55585e; }
.lens-input { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: #f3f4f6; font: inherit; font-size: 16px; color: #17181a; outline: none; }
.lens-srow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 5px 0; box-sizing: border-box; background: #fff; border-bottom: 1px solid #ececef; text-align: left; }
.lens-sheet button.lens-srow { padding: 5px 0; border-bottom: 1px solid #ececef; }
.lens-srow.drag { background: #f3f4f6; border-radius: 10px; box-shadow: 0 2px 10px rgb(0 0 0 / .12); }
.lens-sn { flex: 1; min-width: 0; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lens-sn b { font-weight: 500; }
.lens-sn small { display: block; margin-top: 1px; font-size: 12.5px; color: #8a8e96; }
.lens-srow > small { font-size: 12.5px; color: #8a8e96; }
.lens-dh { flex: 0 0 auto; padding: 6px 4px; font-size: 20px; line-height: 1; color: #a5a8af; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.lens-sw { position: relative; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 13px; transition: background .15s; }
.lens-sheet .lens-sw { background: #d4d6db; }
.lens-sheet .lens-sw.on { background: #0f6e56; }
.lens-sw i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .15s; }
.lens-sw.on i { transform: translateX(18px); }
.lens-sheet .lens-add { flex: 0 0 auto; padding: 6px 2px; font-size: 14px; font-weight: 600; color: #2a6fd6; }
.lens-sheet .lens-add.rm { color: #80848c; }
.lens-sface { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background-color: var(--circle-avatar, #4b7966); background-size: cover; background-position: center; color: #fff; font-size: 13px; }
.lens-days { display: flex; gap: 8px; margin-top: 6px; }
.lens-sheet .lens-days button { flex: 1; padding: 10px 0; border-radius: 12px; background: #f3f4f6; font-size: 14.5px; font-weight: 600; text-align: center; }
.lens-sheet .lens-days button.on { background: #17181a; color: #fff; }
.lens-sheet .lens-new-tag { font-size: 15px; font-weight: 600; color: #2a6fd6; }
.lens-tag-body, .lens-make { padding: 2px 0 14px; border-bottom: 1px solid #ececef; }
.lens-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lens-sheet .lens-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 14px; background: #f3f4f6; font-size: 13px; }
.lens-chip-av { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background-color: var(--circle-avatar, #4b7966); background-size: cover; background-position: center; color: #fff; font-size: 10px; }
.lens-chip span { color: #80848c; }
.lens-sheet .lens-del { display: block; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: #d92d3f; }
.lens-make-actions { display: flex; justify-content: flex-end; gap: 16px; margin-top: 12px; }
.lens-sheet .lens-make-actions button { padding: 9px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #55585e; }
.lens-sheet .lens-make-actions button.go { background: #17181a; color: #fff; }
.circle-private-head > span:has(> .lens-chat-label:not([hidden])) { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 6px; }
