:root{--media-pull-bg:var(--surface15,#fff);--media-pull-line:var(--line15,#dfe3e8);--media-pull-ink:var(--muted15,#667085);--media-pull-accent:var(--accent15,#2585e8)}
/* Natural image proportions: show the full photograph without cropping or letterbox gutters. */
html[data-theme] .post-photo-track15{aspect-ratio:auto!important;align-items:flex-start!important;background:var(--surface15)!important}
html[data-theme] .post-photo-track15>img{height:auto!important;max-height:76svh!important;object-fit:contain!important;align-self:flex-start;background:var(--surface15)!important;cursor:zoom-in}
html[data-theme] .post-comment-row15>.av{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;flex:0 0 40px!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:50%!important;overflow:hidden}
html[data-theme] .post-comment-row15{display:flex!important;gap:12px!important;align-items:flex-start!important;min-width:0!important}
html[data-theme] .post-comment-row15>div:not(.av){min-width:0!important;flex:1 1 auto!important;overflow-wrap:anywhere}
html[data-theme] .post-comments15{background:var(--surface15)!important;color:var(--ink15)!important;border-color:var(--line15)!important}
html[data-theme] .post-comment-form15{background:var(--surface15)!important;border-top:1px solid var(--line15)!important;gap:8px!important;padding:9px 0 max(8px,env(safe-area-inset-bottom))!important}
html[data-theme] .post-comment-form15 input{min-width:0!important;background:var(--field15)!important;color:var(--ink15)!important;border:1px solid var(--line15)!important;border-radius:22px!important;min-height:44px!important}
html[data-theme] .post-comment-form15 .comment-send15{width:44px!important;height:44px!important;flex:0 0 44px!important;border-radius:50%!important;background:var(--accent15)!important;color:#fff!important}
/* Keep reactions on the message footer line beside its time, without forcing a second row. */
html[data-theme] .mb{display:flow-root!important;overflow-wrap:anywhere}
html[data-theme] .mb .rx{clear:none!important;display:inline-flex!important;vertical-align:middle!important;max-width:72%!important;gap:4px!important;margin:5px 6px 0 0!important;float:left!important}
html[data-theme] .mb .rx button{min-height:24px!important;padding:2px 7px!important;border:1px solid var(--line15)!important;border-radius:14px!important;background:var(--soft15)!important;color:var(--ink15)!important}
html[data-theme] .mb .mt{float:right!important;display:inline-flex!important;align-items:center!important;gap:3px!important;margin:8px 0 0 4px!important;white-space:nowrap!important;color:var(--muted15)!important}
html[data-theme] .tasks-body .week-plan .week-day{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:12px 13px!important;min-height:64px!important;border:1px solid var(--line15)!important;border-radius:15px!important;background:var(--surface15)!important}
html[data-theme] .tasks-body .week-day>span{font-weight:750!important;text-align:center!important}
html[data-theme] .tasks-body .week-day>div,html[data-theme] .tasks-body .week-day>p{min-width:0!important;line-height:1.4!important}
html[data-theme] .tasks-body .week-day small{font-size:11px!important;line-height:1.35!important;color:var(--muted15)!important}
html[data-theme] .tasks-body .week-day .points,html[data-theme] .tasks-body .week-day b:last-child{white-space:nowrap!important;font-size:12px!important}
.pull-indicator20{height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--media-pull-ink);font-size:12px;transition:height .16s ease;flex:none}
.pull-indicator20[style]{height:var(--pull20)!important}
.pull-indicator20 i{width:17px;height:17px;border:2px solid var(--media-pull-line);border-top-color:var(--media-pull-accent);border-radius:50%;animation:pullspin20 .8s linear infinite}
.pull-indicator20.ready i{animation:none;transform:rotate(160deg);border-color:var(--media-pull-accent)}
.pull-indicator20.loading i{animation:pullspin20 .65s linear infinite}
@keyframes pullspin20{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.pull-indicator20,.pull-indicator20 i{animation:none!important;transition:none!important}}
html[data-theme] .dating-dismiss13{display:block;margin-top:8px;min-height:38px;padding:6px 11px;border:1px solid var(--line15);border-radius:12px;background:var(--surface15);color:var(--muted15);font-size:12px;font-weight:600}
html[data-theme] .dating-dismiss13:disabled{opacity:.55}

/* Contrast, feed cards, controls and profile headers — v21 */
:root{--muted15:#5f6b78}
:root[data-theme=dark]{--muted15:#a5b2bf}
html[data-theme] .discover-card15{border-color:var(--line15)!important;box-shadow:0 2px 10px #16253612!important}
html[data-theme] .discover-author15{display:flex!important;align-items:center!important;gap:9px!important;min-height:58px!important;padding:10px 13px!important;background:var(--surface15)!important;color:var(--ink15)!important}
html[data-theme] .discover-author15>.av{width:38px!important;height:38px!important;min-width:38px!important;flex:0 0 38px!important;border:2px solid var(--line15)!important;box-sizing:border-box!important}
html[data-theme] .discover-author15>b{min-width:0!important;flex:1!important;font-size:14px!important;line-height:1.25!important;color:var(--ink15)!important}
html[data-theme] .discover-follow15{min-height:34px!important;padding:6px 12px!important;border:1px solid var(--accent15)!important;border-radius:10px!important;background:var(--accent15)!important;color:#fff!important;font-family:inherit!important;font-size:12px!important;font-weight:600!important;line-height:1.1!important;white-space:nowrap!important;cursor:pointer}
html[data-theme] .discover-follow15.on{background:var(--soft15)!important;color:var(--accent15)!important}
html[data-theme] .discover-info15{padding:14px 15px 15px!important}
html[data-theme] .discover-kind15{display:block!important;color:var(--muted15)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.07em!important}
html[data-theme] .discover-info15 h3{margin:8px 0 7px!important;color:var(--ink15)!important;font-size:17px!important;line-height:1.4!important;font-weight:750!important;overflow-wrap:anywhere}
html[data-theme] .discover-info15 p{color:var(--muted15)!important;font-size:14px!important;line-height:1.55!important}
html[data-theme] .discover-meta15{color:var(--muted15)!important}
html[data-theme] .discover-work .discover-info15 h3{color:var(--accent15)!important}
html[data-theme] .discover-work .discover-info15 p{color:var(--ink15)!important}
html[data-theme] .discover-work .discover-meta15 span{color:var(--ink15)!important;font-weight:700!important}
html[data-theme] .discover-cover15{width:100%!important;height:auto!important;max-height:350px!important;object-fit:cover!important;background:var(--field15)}
/* A real compact sponsored feed card, never a full-screen banner. */
html[data-theme] .feed-posts15>.ad-card18[data-slot18]{position:relative!important;min-height:0!important;height:auto!important;margin:10px 12px 14px!important;border:1px solid var(--line15)!important;border-radius:16px!important;background:var(--surface15)!important;overflow:hidden!important;box-shadow:0 2px 10px #15253a10!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18]>img,html[data-theme] .feed-posts15>.ad-card18[data-slot18]>video{display:block!important;width:100%!important;height:clamp(150px,52vw,240px)!important;max-height:240px!important;object-fit:cover!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18]>.ad-label18{position:absolute!important;top:10px!important;left:10px!important;right:auto!important;z-index:2!important;width:max-content!important;max-width:calc(100% - 20px)!important;padding:6px 9px!important;border:0!important;border-radius:8px!important;background:#101820bd!important;color:white!important;font-size:10px!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18]>.ad-content18{position:static!important;padding:12px 14px 14px!important;background:var(--surface15)!important;color:var(--ink15)!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18] .ad-content18>b{display:block!important;color:var(--ink15)!important;font-size:16px!important;line-height:1.35!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18] .ad-content18 p{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;color:var(--muted15)!important;font-size:13px!important;line-height:1.45!important;margin:5px 0 10px!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18] .ad-cta18{display:flex!important;width:auto!important;min-height:38px!important;padding:8px 13px!important;border-radius:10px!important;background:var(--accent15)!important;color:#fff!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18] .ad-cta18[hidden]{display:flex!important}
/* Keep each carousel image full-width and size the viewport to its own aspect ratio. */
html[data-theme] .post-photo-track15{position:relative!important;display:flex!important;align-items:stretch!important;overflow-x:auto!important;max-height:76dvh!important;min-height:0!important;aspect-ratio:auto!important;background:var(--field15)!important}
html[data-theme] .post-photo-track15>img{display:block!important;flex:0 0 100%!important;width:100%!important;height:100%!important;max-height:76dvh!important;object-fit:contain!important;background:var(--field15)!important;scroll-snap-align:start!important}
html[data-theme] .post-actions15{min-height:44px!important;gap:14px!important}
html[data-theme] .post-actions15>button{width:32px!important;height:34px!important;min-width:32px!important}
html[data-theme] .post-actions15>button svg{width:23px!important;height:23px!important}
html[data-theme] .post-actions15 .post-views18 svg{width:21px!important;height:21px!important}
html[data-theme] .post-actions15 .post-save15 svg{width:22px!important;height:22px!important}
html[data-theme] .post-actions15 .post-like-count15{font-size:12px!important;font-weight:650!important}
html[data-theme] .post-comment-row15 .comment-delete15{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;margin:0 0 0 9px!important;padding:5px 10px!important;border:1px solid color-mix(in srgb,#e45462 32%,var(--line15))!important;border-radius:9px!important;background:color-mix(in srgb,#e45462 9%,var(--surface15))!important;color:#c84250!important;font-family:inherit!important;font-size:11px!important;font-weight:600!important;line-height:1.2!important;cursor:pointer!important}
:root[data-theme=dark] .post-comment-row15 .comment-delete15{color:#ff929a!important;border-color:#a54d55!important}
html[data-theme] .post-comment-row15 .comment-delete15:active{transform:scale(.97)}
/* Mutual matches: name first, readable city, two actions stacked without clipping. */
html[data-theme] .date-person-row13{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;align-items:start!important;min-height:0!important;height:auto!important;padding:13px!important;gap:12px!important;overflow:visible!important}
html[data-theme] .date-person-row13>div{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;min-width:0!important;width:auto!important}
html[data-theme] .date-person-row13 h3{order:0!important;margin:1px 0 3px!important;font-size:15px!important;line-height:1.25!important;color:var(--ink15)!important}
html[data-theme] .date-person-row13 small{order:1!important;color:var(--muted15)!important;font-size:12px!important}
html[data-theme] .date-person-row13 p{order:2!important;margin:5px 0 8px!important;color:var(--muted15)!important;font-size:12px!important;line-height:1.45!important}
html[data-theme] .date-person-row13 .date-match-actions13{order:3!important;display:flex!important;flex-direction:column!important;gap:7px!important;width:100%!important;margin:1px 0 0!important;padding:0!important}
html[data-theme] .date-person-row13 .date-match-actions13 .btn{width:100%!important;min-height:38px!important;white-space:normal!important;font-size:12px!important}
/* Profile cover text stays readable over light or dark imagery. */
html[data-theme] .win .pf-top[style]{position:relative!important;isolation:isolate!important;color:#fff!important;background-color:#263746!important;filter:none!important}
html[data-theme] .win .pf-top[style]::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#10182022 0%,#10182032 42%,#101820d9 100%);backdrop-filter:blur(1.5px)}
html[data-theme] .win .pf-top[style]>.av{z-index:1!important}
html[data-theme] .win .pf-top[style]>h2,html[data-theme] .win .pf-top[style]>p{position:relative;z-index:1;color:#fff!important;text-shadow:0 1px 4px #000,0 2px 12px #000c!important}
html[data-theme] .win .pf-top:not([style]) h2,html[data-theme] .win .pf-top:not([style]) p{color:var(--ink15)!important;text-shadow:none!important}
/* Stories occupy the full Telegram app viewport; controls float above media. */
html[data-theme] .story-viewer{z-index:80!important}
html[data-theme] .story-media>img,html[data-theme] .story-media>video{object-fit:cover!important;object-position:center!important}
html[data-theme] .story-viewer>header,html[data-theme] .story-viewer>footer{pointer-events:auto!important}
html[data-theme] .story-viewer .story-caption{max-height:38%!important;bottom:68px!important}

/* Mutual matches: let each card keep the full height of its stacked actions. */
html[data-theme] .dating-list13{align-items:stretch!important;overflow-y:auto!important;overscroll-behavior:contain}
html[data-theme] .date-person-row13{flex:0 0 auto!important;min-height:max-content!important;height:auto!important;align-self:stretch!important;overflow:visible!important}
html[data-theme] .date-person-row13>div{min-height:max-content!important;overflow:visible!important}

/* Social feed polish: follow by author, tight comment metadata, editorial cards. */
html[data-theme] .post-card15>header{display:flex!important;align-items:center!important;gap:9px!important;min-height:58px!important;padding:8px 12px!important}
html[data-theme] .post-author15{flex:1 1 auto!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;text-align:left!important}
html[data-theme] .post-follow15{flex:0 0 auto!important;min-height:32px!important;padding:6px 11px!important;border:1px solid #104c77!important;border-radius:9px!important;background:#1466a1!important;color:#fff!important;font-family:inherit!important;font-size:11px!important;font-weight:600!important;line-height:1.1!important;white-space:nowrap!important}
html[data-theme] .post-follow15.on{background:var(--soft15)!important;color:var(--accent15)!important}
html[data-theme] .post-photo-track15{height:auto;contain:layout paint!important}
html[data-theme] .post-photo-track15>img{height:100%!important;max-height:76dvh!important;object-fit:contain!important}
html[data-theme] .post-comment-row15{margin:0 0 12px!important;padding:4px 2px!important;gap:10px!important}
html[data-theme] .post-comment-row15 p{margin:3px 0 5px!important;line-height:1.42!important}
html[data-theme] .post-comment-tools15{display:flex!important;align-items:center!important;gap:12px!important;min-height:22px!important}
html[data-theme] .post-comment-tools15 small{margin:0!important;line-height:1.2!important}
html[data-theme] .comment-reply15{min-height:28px!important;padding:3px 2px!important;border:0!important;background:transparent!important;color:var(--muted15)!important;font-family:inherit!important;font-size:11px!important;font-weight:600!important;line-height:1.2!important}
html[data-theme] .comment-reply15:active{color:var(--accent15)!important}
html[data-theme] .ad-feed-meta18{display:block!important;margin-bottom:7px!important;color:var(--muted15)!important;font-size:10px!important;font-weight:750!important;letter-spacing:.08em!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18=feed]>.ad-label18{display:none!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18=feed]>.ad-content18{padding:12px 14px 14px!important}
html[data-theme] .feed-posts15>.ad-card18[data-slot18=feed]>.ad-content18 .ad-cta18{width:100%!important;justify-content:space-between!important}

html[data-theme] .post-comment-tools15{flex-wrap:wrap!important}

/* Final compact social controls: author-only menu, legible comments and match actions. */
html[data-theme] .post-card15>header .post-more15{margin-left:0!important;flex:0 0 40px!important;width:40px!important;height:40px!important}
html[data-theme] .post-card15>header .post-follow15{margin-left:auto!important}
html[data-theme] .post-comment-row15{display:flex!important;align-items:flex-start!important;gap:9px!important;margin:0 0 11px!important;padding:2px 0!important}
html[data-theme] .post-comment-main15{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;flex:1 1 auto!important;min-width:0!important}
html[data-theme] .post-comment-content15{min-width:0!important;flex:1 1 auto!important}
html[data-theme] .post-comment-content15>b{display:block!important;line-height:1.25!important;margin:0!important}
html[data-theme] .post-comment-content15>p{margin:2px 0 3px!important;line-height:1.38!important}
html[data-theme] .post-comment-tools15{display:flex!important;align-items:center!important;gap:11px!important;min-height:20px!important;flex-wrap:nowrap!important}
html[data-theme] .post-comment-tools15 small{font-size:10px!important;color:var(--muted15)!important}
html[data-theme] .post-comment-tools15 .comment-reply15,html[data-theme] .post-comment-tools15 .comment-delete15{display:inline!important;min-height:24px!important;padding:1px 0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--muted15)!important;font-family:inherit!important;font-size:10px!important;font-weight:600!important;line-height:1.2!important;white-space:nowrap!important}
html[data-theme] .post-comment-tools15 .comment-delete15{color:var(--muted15)!important}
html[data-theme] .post-comment-tools15 .comment-reply15:active,html[data-theme] .post-comment-tools15 .comment-delete15:active{color:var(--accent15)!important}
html[data-theme] .post-comment-row15 .comment-like15{display:flex!important;flex:0 0 34px!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:2px!important;width:34px!important;min-width:34px!important;min-height:40px!important;padding:2px!important;border:0!important;background:transparent!important;color:var(--muted15)!important;font-family:inherit!important;font-size:10px!important;font-weight:500!important;line-height:1!important}
html[data-theme] .post-comment-row15 .comment-like15 svg{width:18px!important;height:18px!important}
html[data-theme] .post-comment-row15 .comment-like15.liked{color:#f04465!important}
html[data-theme] .post-comment-row15 .comment-like15.liked svg path{fill:#f04465!important;stroke:#f04465!important}
html[data-theme] .post-photo-track15{display:flex!important;align-items:center!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;transition:height .18s ease!important}
html[data-theme] .post-photo-track15>img{flex:0 0 100%!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;scroll-snap-align:center!important;background:var(--surface15)!important}
html[data-theme] .date-person-row13 .date-match-actions13{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;flex-direction:unset!important;gap:8px!important;width:100%!important;margin:5px 0 0!important;padding:0!important}
html[data-theme] .date-person-row13 .date-match-actions13 .btn{width:100%!important;min-width:0!important;min-height:40px!important;white-space:nowrap!important;font-size:11px!important;padding:7px 4px!important}
@media(max-width:360px){html[data-theme] .date-person-row13 .date-match-actions13{grid-template-columns:1fr 1fr!important;gap:5px!important}html[data-theme] .date-person-row13 .date-match-actions13 .btn{font-size:10px!important}}

/* Feed photos use a consistent Instagram-like crop; the vertical feed scrolls, not the image. */
html[data-theme] .post-photo-track15{height:auto!important;aspect-ratio:4/5!important;max-height:76dvh!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain!important;align-items:stretch!important;touch-action:pan-x pan-y!important;-webkit-overflow-scrolling:touch!important;background:var(--surface15)!important}
html[data-theme] .post-photo-track15>img{height:100%!important;max-height:100%!important;object-fit:cover!important;object-position:center top!important;background:var(--surface15)!important;cursor:zoom-in!important}
html[data-theme] .post-comment-tools15 .comment-delete15{color:var(--muted15)!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;padding:1px 0!important}
html[data-theme] .post-comment-tools15 .comment-delete15:focus,html[data-theme] .post-comment-tools15 .comment-delete15:focus-visible{outline:0!important;box-shadow:none!important}
