
:root { --zk-ease: cubic-bezier(.2, .8, .2, 1); }

.zinkly-btn-primary,
.zinkly-btn-secondary {
    transition: transform .16s var(--zk-ease), box-shadow .22s var(--zk-ease), filter .2s, background-color .2s, border-color .2s, color .2s;
}
@media (hover: hover) {
    .zinkly-btn-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 24px -12px rgba(124, 92, 255, .6); }
    .zinkly-btn-secondary:hover:not(:disabled) { transform: translateY(-1px); }
}
.zinkly-btn-primary:active:not(:disabled),
.zinkly-btn-secondary:active:not(:disabled) { transform: scale(.97); transition-duration: .06s; }
.zinkly-btn-primary:disabled,
.zinkly-btn-secondary:disabled { opacity: .55; cursor: not-allowed; }

:where(a, button, [role="button"], input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--zinkly-cyan, #22d3ee);
    outline-offset: 2px;
}

:where(button, a, [role="button"]) { -webkit-tap-highlight-color: transparent; }

.zk-busy { position: relative; pointer-events: none; color: transparent !important; }
.zk-busy > * { visibility: hidden; }
.zk-busy::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: zkSpin .7s linear infinite;
}
.zinkly-btn-secondary.zk-busy::after,
:where(button:not(.zinkly-btn-primary)).zk-busy::after { border-color: rgba(127, 127, 127, .3); border-top-color: var(--zinkly-cyan, #22d3ee); }
@keyframes zkSpin { to { transform: rotate(360deg); } }

@media (max-width: 1023px) {
    .zk-drawer { width: min(86vw, 340px); box-shadow: 24px 0 60px -24px rgba(0, 0, 0, .7); }
    .zk-drawer nav .zinkly-sidebar-item { padding-top: .7rem; padding-bottom: .7rem; }
    .zk-drawer nav > a, .zk-drawer .zk-more-tile { animation: zkNavIn .38s var(--zk-ease) both; }
    .zk-drawer nav > a:nth-child(2) { animation-delay: .03s; }
    .zk-drawer nav > a:nth-child(3) { animation-delay: .06s; }
    .zk-drawer nav > a:nth-child(4) { animation-delay: .09s; }
    .zk-drawer nav > a:nth-child(5) { animation-delay: .12s; }
    .zk-drawer nav > a:nth-child(6) { animation-delay: .15s; }
    .zk-drawer nav > a:nth-child(7) { animation-delay: .18s; }
    .zk-drawer .zk-more-tile { animation-delay: .2s; }
}
.zk-more-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.zk-more-tile { grid-column: span 2 / span 2; }
.zk-more-tile.is-half { grid-column: span 3 / span 3; }
.zk-more-tile.is-wide { grid-column: span 6 / span 6; flex-direction: row !important; gap: .6rem !important; padding: .8rem 1rem !important; }
.zk-more-tile.is-wide > span { width: auto !important; text-align: left; font-size: 12px; }

.zk-acct-backdrop { position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, .55); }
.zk-sheet-handle { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; padding: 9px 0 7px; margin-bottom: -21px; touch-action: none; cursor: grab; }
.zk-sheet-handle span { width: 42px; height: 5px; border-radius: 9999px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
@media (max-width: 1023px) {
    .zk-acct-sheet {
        left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important;
        max-height: 88vh !important; z-index: 60 !important;
        border-radius: 24px 24px 0 0 !important; border-bottom-width: 0 !important;
        padding-bottom: env(safe-area-inset-bottom);
        overscroll-behavior: contain;
        box-shadow: 0 -20px 60px -10px rgba(0, 0, 0, .6) !important;
        animation: zkSheetUp .34s var(--zk-ease) both;
    }
}
@media (min-width: 1024px) { .zk-acct-backdrop, .zk-sheet-handle { display: none !important; } }
@keyframes zkNavIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes zkSheetUp { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .zk-drawer nav > a, .zk-drawer .zk-more-tile, .zk-acct-sheet { animation: none !important; }
    .zinkly-btn-primary, .zinkly-btn-secondary { transition: none; }
    .zinkly-btn-primary:hover, .zinkly-btn-secondary:hover,
    .zinkly-btn-primary:active, .zinkly-btn-secondary:active { transform: none; }
    .zk-busy::after { animation-duration: 1.6s; }
}

/* p144: page headers on light backgrounds force all text dark (.zinkly-page-header *), which also turned the
   verified badge black on Page profiles. Keep the badges in their brand colour, same as in the Pages list. */
html.light .zinkly-page-header .zk-verified, html.light .zinkly-page-header .zk-verified *,
html[data-custom-bg="light"] .zinkly-page-header .zk-verified, html[data-custom-bg="light"] .zinkly-page-header .zk-verified * { color: #0891b2 !important; text-shadow: none !important; }
html.light .zinkly-page-header .zk-biz-verified, html.light .zinkly-page-header .zk-biz-verified *,
html[data-custom-bg="light"] .zinkly-page-header .zk-biz-verified, html[data-custom-bg="light"] .zinkly-page-header .zk-biz-verified * { color: #047857 !important; text-shadow: none !important; }

/* p145: single video in a feed post. Plays in place; the expand button opens the viewer.
   Portrait videos get a taller frame with a blurred copy of the first frame behind them, instead of wide black bars. */
.zk-fv { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; background: #000; }
.zk-fv > video.zk-feed-video { position: relative; z-index: 1; display: block; width: 100%; max-height: 20rem; object-fit: contain; background: transparent; }
.zk-fv.is-portrait { height: min(70vh, 34rem); }
.zk-fv.is-square { height: min(60vh, 28rem); }
.zk-fv.is-portrait > video.zk-feed-video, .zk-fv.is-square > video.zk-feed-video { width: auto; max-width: 100%; height: 100%; max-height: none; }
.zk-fv-bg { position: absolute; inset: -24px; z-index: 0; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.2); opacity: 0; transition: opacity .3s; pointer-events: none; }
.zk-fv.has-bg.is-portrait .zk-fv-bg, .zk-fv.has-bg.is-square .zk-fv-bg { opacity: 1; }
.zk-fv-expand {
    position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; width: 36px; height: 36px; align-items: center; justify-content: center;
    border-radius: 9999px; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
    opacity: .85; transition: opacity .15s, transform .15s, background .15s;
}
.zk-fv-expand svg { width: 18px; height: 18px; }
.zk-fv-expand:hover { opacity: 1; background: rgba(0, 0, 0, .75); transform: scale(1.06); }
@media (hover: hover) { .zk-fv .zk-fv-expand { opacity: 0; } .zk-fv:hover .zk-fv-expand, .zk-fv-expand:focus-visible { opacity: .9; } }

/* p147: gallery reels, several photos / videos per reel, swiped left-right */
.zk-rs { position: absolute; inset: 0; z-index: 0; isolation: isolate; } /* p154: own layer, so photos never cover the reel's buttons and caption */
.zk-rs-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.zk-rs-track::-webkit-scrollbar { display: none; }
.zk-rs-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.zk-rs-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.5) saturate(1.2); }
.zk-rs-img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.zk-rs-dots { position: absolute; top: 12px; left: 50%; z-index: 6; display: flex; gap: 5px; transform: translateX(-50%); padding: 5px 8px; border-radius: 9999px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); pointer-events: none; }
.zk-rs-dots span { width: 6px; height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, .45); transition: width .2s, background .2s; }
.zk-rs-dots span.is-on { width: 18px; background: #fff; }
.zk-rs-count { position: absolute; top: 12px; left: 12px; z-index: 6; padding: 3px 10px; border-radius: 9999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); pointer-events: none; }
.zk-rs-nav { position: absolute; top: 50%; z-index: 6; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin-top: -20px; border-radius: 9999px; color: #111; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: opacity .15s, transform .15s; }
.zk-rs-nav svg { width: 20px; height: 20px; }
.zk-rs-nav:hover { transform: scale(1.08); }
.zk-rs-nav[hidden] { display: none; }
.zk-rs-prev { left: 10px; } .zk-rs-next { right: 10px; }
@media (hover: none) { .zk-rs-nav { display: none !important; } }
@media (hover: hover) { .zk-rs .zk-rs-nav { opacity: 0; } .zk-rs:hover .zk-rs-nav { opacity: 1; } }
.zk-rs.is-single .zk-rs-dots, .zk-rs.is-single .zk-rs-count, .zk-rs.is-single .zk-rs-nav { display: none !important; }

/* reel composer: preview + thumbnail strip */
.zk-rc { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); padding: 10px; transition: border-color .15s, background .15s; }
.zk-rc.is-drag { border-color: #7c5cff; background: rgba(124, 92, 255, .08); }
.zk-rc-stage { position: relative; display: flex; height: 260px; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #000; }
.zk-rc-media { max-width: 100%; max-height: 100%; object-fit: contain; }
.zk-rc-count { position: absolute; top: 8px; left: 8px; padding: 2px 9px; border-radius: 9999px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); }
.zk-rc-strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.zk-rc-thumb { position: relative; flex: 0 0 64px; height: 84px; overflow: hidden; border-radius: 10px; cursor: pointer; background: #111; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, transform .15s; }
.zk-rc-thumb img, .zk-rc-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.zk-rc-thumb.is-on { box-shadow: 0 0 0 2px #7c5cff; transform: translateY(-2px); }
.zk-rc-kind { position: absolute; left: 4px; bottom: 4px; display: flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 9999px; color: #fff; background: rgba(0, 0, 0, .6); }
.zk-rc-kind svg { width: 10px; height: 10px; }
.zk-rc-num { position: absolute; left: 4px; top: 4px; min-width: 18px; padding: 0 5px; border-radius: 9999px; font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; color: #fff; background: rgba(0, 0, 0, .6); }
.zk-rc-x { position: absolute; right: 3px; top: 3px; display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 9999px; color: #fff; background: rgba(0, 0, 0, .65); }
.zk-rc-x svg { width: 11px; height: 11px; }
.zk-rc-x:hover { background: #e11d48; }
.zk-rc-move { position: absolute; inset-inline: 3px; bottom: 3px; display: flex; justify-content: flex-end; gap: 3px; }
.zk-rc-move button { width: 20px; height: 20px; border-radius: 6px; font-size: 15px; font-weight: 800; line-height: 18px; color: #fff; background: rgba(124, 92, 255, .9); }
.zk-rc-move button:disabled { opacity: .35; }
.zk-rc-add { display: flex; flex: 0 0 64px; height: 84px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .2); font-size: 11px; font-weight: 600; color: #a1a1aa; cursor: pointer; transition: border-color .15s, color .15s; }
.zk-rc-add svg { width: 20px; height: 20px; }
.zk-rc-add:hover { border-color: #7c5cff; color: #fff; }
html.light .zk-rc { border-color: #e4e4e7; }
html.light .zk-rc-add { border-color: #d4d4d8; color: #71717a; }
html.light .zk-rc-add:hover { color: #18181b; }

/* profile reels grid: photo reels and gallery badge */
.zk-reel-multi { position: absolute; top: 6px; right: 6px; display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 6px; color: #fff; background: rgba(0, 0, 0, .55); }
.zk-reel-multi svg { width: 14px; height: 14px; }
@media (max-width: 767px) {
    .zk-rs-dots { top: calc(env(safe-area-inset-top, 0px) + 64px); }
    .zk-rs-count { display: none; }
}

/* p149: reel comments with photo / GIF */
.zk-rcf.is-drag { box-shadow: inset 0 0 0 2px #7c5cff; background: rgba(124, 92, 255, .06); }
.zk-rcf-attach { position: relative; display: inline-flex; margin: 0 0 8px 40px; }
.zk-rcf-attach img { max-height: 110px; max-width: 180px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.zk-rcf-attach button { position: absolute; top: -7px; right: -7px; display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 9999px; font-size: 15px; font-weight: 700; line-height: 1; color: #fff; background: #e11d48; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.zk-rcf-tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; background: rgba(0, 0, 0, .65); }
.zk-rcf-btn { display: flex; flex-shrink: 0; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 9999px; color: #a1a1aa; transition: background .15s, color .15s; }
.zk-rcf-btn svg { width: 20px; height: 20px; }
.zk-rcf-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
html.light .zk-rcf-btn:hover { color: #18181b; background: rgba(0, 0, 0, .06); }
.zk-rcf-err { margin: 6px 0 0 40px; font-size: 12px; color: #fb7185; }

/* p149: monetized reels: composer card + badge on the reel */
.zk-rmon { border-radius: 14px; padding: 12px; border: 1px solid rgba(124, 92, 255, .3); background: linear-gradient(135deg, rgba(124, 92, 255, .08), rgba(34, 211, 238, .04)); transition: border-color .2s, box-shadow .2s; }
.zk-rmon.is-on { border-color: rgba(251, 191, 36, .55); box-shadow: 0 0 0 3px rgba(251, 191, 36, .08); }
.zk-rmon-head { display: flex; align-items: center; gap: 10px; }
.zk-rmon-ic { display: flex; width: 34px; height: 34px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 10px; color: #fbbf24; background: rgba(251, 191, 36, .14); }
.zk-rmon-ic svg { width: 18px; height: 18px; }
.zk-rmon-title { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.zk-rmon-sub { display: block; font-size: 11.5px; color: #a1a1aa; }
.zk-rmon-link { flex-shrink: 0; font-size: 11px; color: #22d3ee; }
.zk-rmon-link:hover { text-decoration: underline; }
.zk-rmon-label { margin: 12px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #a1a1aa; }
.zk-rmon-chips, .zk-rmon-plans { display: flex; flex-wrap: wrap; gap: 6px; }
.zk-rmon-chips button, .zk-rmon-plans label { padding: 6px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; color: #d4d4d8; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; transition: all .15s; }
.zk-rmon-chips button:hover, .zk-rmon-plans label:hover { border-color: rgba(124, 92, 255, .6); }
.zk-rmon-chips button.is-sel, .zk-rmon-plans label.is-sel { color: #fff; border-color: transparent; background: linear-gradient(135deg, #7c5cff, #4f6bff); box-shadow: 0 4px 12px -4px rgba(124, 92, 255, .6); }
.zk-rmon-plans { margin-top: 8px; }
.zk-rmon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.zk-rmon-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #a1a1aa; }
.zk-rmon-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #d4d4d8; }
.zk-rmon-check input { width: 15px; height: 15px; border-radius: 4px; accent-color: #7c5cff; }
.zk-rmon-teaser { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px dashed rgba(251, 191, 36, .45); font-size: 12px; color: #d4d4d8; transition: background .15s; }
.zk-rmon-teaser b { color: #fff; font-size: 13px; }
.zk-rmon-teaser small { color: #a1a1aa; }
.zk-rmon-teaser:hover { background: rgba(251, 191, 36, .06); }
html.light .zk-rmon-title, html.light .zk-rmon-teaser b { color: #18181b; }
html.light .zk-rmon-chips button, html.light .zk-rmon-plans label { color: #3f3f46; background: #f4f4f5; border-color: #e4e4e7; }
html.light .zk-rmon-check, html.light .zk-rmon-teaser { color: #3f3f46; }

.zk-reel-badge { position: absolute; left: 12px; top: 12px; z-index: 7; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 9999px; font-size: 11.5px; font-weight: 800; color: #1c1917; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); pointer-events: none; }
.zk-reel-badge svg { width: 13px; height: 13px; }
.zk-reel-badge.is-paid { color: #fff; background: linear-gradient(135deg, #34d399, #059669); }
.zk-reel-badge.is-early { color: #fff; background: linear-gradient(135deg, #60a5fa, #6366f1); }
.zk-reel-badge.is-own { color: #fff; background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.zk-reel-badge.has-count { top: 44px; }
@media (max-width: 767px) { .zk-reel-badge { top: calc(env(safe-area-inset-top, 0px) + 64px); } .zk-reel-badge.has-count { top: calc(env(safe-area-inset-top, 0px) + 88px); } }

/* p150: revamped Create Reel window */
.zk-rcm { display: flex; flex-direction: column; color: #f4f4f5; }
.zk-rcm-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: inherit; background: rgba(24, 24, 32, .92); backdrop-filter: blur(10px); }
.zk-rcm-logo { display: flex; width: 40px; height: 40px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #ff4fa3, #8b5cf6 55%, #22d3ee); box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .8); }
.zk-rcm-logo svg { width: 22px; height: 22px; }
.zk-rcm-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.zk-rcm-sub { margin: 1px 0 0; font-size: 12.5px; color: #a1a1aa; }
.zk-rcm-x { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 9999px; color: #a1a1aa; transition: background .15s, color .15s; }
.zk-rcm-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.zk-rcm-x svg { width: 20px; height: 20px; }
.zk-rcm-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 6px; }

.zk-rcm-drop { position: relative; display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px 16px; border-radius: 18px; text-align: center;
    background: radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, .16), transparent 60%), rgba(255, 255, 255, .02);
    border: 2px dashed rgba(167, 139, 250, .35); transition: border-color .2s, background .2s, transform .2s; }
.zk-rcm-drop.is-drag { border-color: #a78bfa; background: rgba(139, 92, 246, .14); transform: scale(1.01); }
.zk-rcm-art { position: relative; width: 132px; height: 92px; margin-bottom: 10px; }
.zk-rcm-art > span { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 16px; color: #fff; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6); }
.zk-rcm-art-a { left: 0; top: 16px; width: 62px; height: 62px; background: linear-gradient(135deg, #f472b6, #db2777); transform: rotate(-10deg); }
.zk-rcm-art-c { right: 0; top: 16px; width: 62px; height: 62px; background: linear-gradient(135deg, #22d3ee, #0891b2); transform: rotate(10deg); }
.zk-rcm-art-b { left: 36px; top: 0; z-index: 1; width: 60px; height: 76px; border-radius: 14px; background: linear-gradient(160deg, #a78bfa, #6d28d9); animation: zkRcmFloat 3.2s ease-in-out infinite; }
.zk-rcm-art svg { width: 26px; height: 26px; }
.zk-rcm-art-b svg { width: 24px; height: 24px; }
@keyframes zkRcmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.zk-rcm-drop-title { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.zk-rcm-drop-sub { margin: 0 0 8px; font-size: 13px; color: #a1a1aa; }
.zk-rcm-drop-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.zk-rcm-limits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.zk-rcm-limits span { padding: 3px 9px; border-radius: 9999px; font-size: 11px; font-weight: 600; color: #a1a1aa; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.zk-rcm-mob, .zk-rcm-mob-flex { display: none !important; }
@media (hover: none), (max-width: 639px) { .zk-rcm-desk { display: none; } .zk-rcm-mob { display: inline !important; } .zk-rcm-mob-flex { display: inline-flex !important; } }

.zk-rcm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #e4e4e7; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; transition: transform .15s, filter .15s, background .15s; }
.zk-rcm-btn svg { width: 18px; height: 18px; }
.zk-rcm-btn:hover { background: rgba(255, 255, 255, .1); }
.zk-rcm-btn:active { transform: scale(.97); }
.zk-rcm-btn.is-primary { color: #fff; border-color: transparent; background: linear-gradient(120deg, #8b5cf6, #5b6cff 60%, #22d3ee); box-shadow: 0 10px 24px -10px rgba(139, 92, 246, .9); }
.zk-rcm-btn.is-primary:hover { filter: brightness(1.08); }
.zk-rcm-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.3); }
.zk-rcm-btn.is-wide { flex: 1; }
.zk-rcm-spin { width: 16px; height: 16px; border-radius: 9999px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: zkRcmSpin .7s linear infinite; }
@keyframes zkRcmSpin { to { transform: rotate(360deg); } }

.zk-rcm .zk-rc { border: 0; padding: 0; }
.zk-rcm .zk-rc-stage { height: 320px; border-radius: 16px; }
.zk-rcm-field { position: relative; }
.zk-rcm-caption { width: 100%; min-height: 84px; padding: 12px 14px 26px; resize: vertical; border-radius: 14px; font-size: 14.5px; line-height: 1.45; color: #f4f4f5; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); outline: none; transition: border-color .15s, box-shadow .15s; }
.zk-rcm-caption:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .22); }
.zk-rcm-counter { position: absolute; right: 12px; bottom: 9px; font-size: 11px; color: #71717a; pointer-events: none; }
.zk-rcm-rows { overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); }
.zk-rcm-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.zk-rcm-row + .zk-rcm-row, .zk-rcm-rows > div + .zk-rcm-row { border-top: 1px solid rgba(255, 255, 255, .06); }
.zk-rcm-row-ic { display: flex; width: 34px; height: 34px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 10px; color: #c4b5fd; background: rgba(139, 92, 246, .14); }
.zk-rcm-row-ic svg { width: 18px; height: 18px; }
.zk-rcm-row-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #f4f4f5; }
.zk-rcm-select { max-width: 52%; padding: 7px 30px 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; background-color: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.zk-rcm-rows > [x-show] { margin: 0 12px 12px !important; }
.zk-rcm-error { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: #fecdd3; background: rgba(225, 29, 72, .14); border: 1px solid rgba(225, 29, 72, .35); }
.zk-rcm-foot { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(24, 24, 32, .94); backdrop-filter: blur(10px); }

/* phones: full screen */
@media (max-width: 639px) {
    .zinkly-modal:has(.zk-rcm) { padding: 0 !important; }
    .zinkly-modal:has(.zk-rcm) > div:last-child { margin: 0 !important; min-height: 100dvh; border-radius: 0 !important; border: 0 !important; }
    .zk-rcm { min-height: 100dvh; }
    .zk-rcm-body { flex: 1; }
    .zk-rcm-drop { min-height: 46dvh; }
    .zk-rcm .zk-rc-stage { height: 44dvh; }
}

html.light .zk-rcm { color: #18181b; }
html.light .zk-rcm-head, html.light .zk-rcm-foot { background: rgba(255, 255, 255, .94); border-color: #e4e4e7; }
html.light .zk-rcm-title, html.light .zk-rcm-drop-title, html.light .zk-rcm-row-t { color: #18181b; }
html.light .zk-rcm-x:hover { color: #18181b; background: #f4f4f5; }
html.light .zk-rcm-drop { background: radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, .1), transparent 60%), #fafafa; }
html.light .zk-rcm-limits span, html.light .zk-rcm-btn:not(.is-primary) { color: #3f3f46; background: #f4f4f5; border-color: #e4e4e7; }
html.light .zk-rcm-caption { color: #18181b; background: #fafafa; border-color: #e4e4e7; }
html.light .zk-rcm-rows { background: #fafafa; border-color: #e4e4e7; }
html.light .zk-rcm-row + .zk-rcm-row { border-color: #e4e4e7; }
html.light .zk-rcm-select { color: #18181b; background-color: #fff; border-color: #e4e4e7; }
/* keep header / Post bar sticky: the modal panel clips without becoming a scroll box */
.zinkly-modal:has(.zk-rcm) > div:last-child { overflow: clip !important; }
/* thumbnails' small controls must not grow to touch-target size */
.zk-rc-x, .zk-rc-move button { min-width: 0 !important; min-height: 0 !important; padding: 0 !important; }
.zk-rc-x { width: 20px !important; height: 20px !important; }
.zk-rc-move button { width: 20px !important; height: 20px !important; }
@media (max-width: 639px) { .zk-rcm-select { max-width: 46%; } .zk-rcm-row-t { font-size: 13.5px; } }
/* sticky bars: solid background (backdrop blur on sticky inside a clipped panel can fail to paint) */
.zk-rcm-head, .zk-rcm-foot { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #1a1a22 !important; }
html.light .zk-rcm-head, html.light .zk-rcm-foot { background: #fff !important; }

/* p153: emoji picker */
.zk-emo-btn { display: flex; flex-shrink: 0; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 9999px; color: #a1a1aa; transition: background .15s, color .15s, transform .15s; }
.zk-emo-btn svg { width: 21px; height: 21px; }
.zk-emo-btn:hover, .zk-emo-btn.is-on { color: #fbbf24; background: rgba(251, 191, 36, .1); }
.zk-emo-btn:active { transform: scale(.92); }
.zk-emo-panel { position: absolute; bottom: 100%; left: 0; z-index: 60; width: 292px; margin-bottom: 8px; padding: 8px; border-radius: 16px; background: #15151d; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.zk-emo-search { width: 100%; padding: 7px 10px; border-radius: 10px; font-size: 13px; color: #f4f4f5; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); outline: none; }
.zk-emo-search:focus { border-color: #8b5cf6; }
.zk-emo-tabs { display: flex; gap: 2px; margin-top: 6px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.zk-emo-tabs button { flex: 1; height: 30px; border-radius: 8px; font-size: 17px; opacity: .55; transition: opacity .12s, background .12s; }
.zk-emo-tabs button:hover { opacity: .9; }
.zk-emo-tabs button.is-on { opacity: 1; background: rgba(139, 92, 246, .18); }
.zk-emo-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 200px; margin-top: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.zk-emo-grid button { height: 32px; border-radius: 8px; font-size: 21px; line-height: 1; transition: transform .1s, background .1s; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; }
.zk-emo-grid button:hover { background: rgba(255, 255, 255, .08); transform: scale(1.15); }
.zk-emo-empty { grid-column: 1 / -1; padding: 16px 0; text-align: center; font-size: 12px; color: #71717a; }
html.light .zk-emo-panel { background: #fff; border-color: #e4e4e7; box-shadow: 0 16px 38px rgba(15, 23, 42, .16); }
html.light .zk-emo-search { color: #18181b; background: #f4f4f5; border-color: #e4e4e7; }
html.light .zk-emo-tabs { border-color: #eceef5; }
html.light .zk-emo-grid button:hover { background: #f4f4f5; }
html.light .zk-emo-btn:hover, html.light .zk-emo-btn.is-on { color: #d97706; background: rgba(251, 191, 36, .14); }

/* p155: schedule a reel */
.zk-rcm-row-btn { width: 100%; text-align: start; cursor: pointer; transition: background .15s; }
.zk-rcm-row-btn:hover { background: rgba(255, 255, 255, .03); }
.zk-rcm-row-t small.zk-rcm-row-sub { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; color: #a1a1aa; }
.zk-rcm-row-ic.is-sched { color: #fde68a; background: rgba(251, 191, 36, .16); }
.zk-rcm-switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; border-radius: 9999px; background: #4e5058; transition: background .15s; }
.zk-rcm-switch i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 9999px; background: #fff; transition: transform .15s; }
.zk-rcm-switch.is-on { background: linear-gradient(120deg, #8b5cf6, #22d3ee); }
.zk-rcm-switch.is-on i { transform: translateX(16px); }
.zk-rcm-sched { margin: 0 12px 12px; padding: 12px; border-radius: 12px; background: rgba(251, 191, 36, .06); border: 1px solid rgba(251, 191, 36, .25); }
.zk-rcm-dt { width: 100%; max-width: none !important; padding: 10px 12px !important; font-size: 14px !important; color-scheme: dark; }
.zk-rcm-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.zk-rcm-quick button { padding: 5px 11px; border-radius: 9999px; font-size: 12px; font-weight: 600; color: #e4e4e7; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .15s, color .15s; }
.zk-rcm-quick button:hover { border-color: #8b5cf6; color: #fff; }
.zk-rcm-hint { margin: 8px 0 0; font-size: 11.5px; color: #a1a1aa; }
.zk-rcm-hint a { color: #22d3ee; } .zk-rcm-hint a:hover { text-decoration: underline; }
.zk-rcm-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px 28px; text-align: center; }
.zk-rcm-done-ic { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #f59e0b, #8b5cf6 60%, #22d3ee); box-shadow: 0 14px 30px -10px rgba(139, 92, 246, .8); }
.zk-rcm-done-ic svg { width: 32px; height: 32px; }
.zk-rcm-done-t { margin: 8px 0 0; font-size: 17px; font-weight: 800; color: #fff; }
.zk-rcm-done-s { margin: 0; max-width: 340px; font-size: 13px; color: #a1a1aa; }
.zk-rcm-done-b { display: flex; gap: 10px; margin-top: 12px; }
html.light .zk-rcm-row-btn:hover { background: #f4f4f5; }
html.light .zk-rcm-switch:not(.is-on) { background: #c4c7d4; }
html.light .zk-rcm-sched { background: #fffbeb; border-color: #fde68a; }
html.light .zk-rcm-dt { color-scheme: light; }
html.light .zk-rcm-quick button { color: #3f3f46; background: #fff; border-color: #e4e4e7; }
html.light .zk-rcm-done-t { color: #18181b; }

/* p156: Scheduled page, kind filter as real buttons with icons (no emoji) */
.zk-sk-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: 9999px; font-size: 12.5px; font-weight: 600; color: #a1a1aa; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: color .15s, background .15s, border-color .15s, transform .15s; }
.zk-sk-chip:hover { color: #fff; border-color: rgba(139, 92, 246, .5); }
.zk-sk-chip:active { transform: scale(.97); }
.zk-sk-ic { width: 16px; height: 16px; flex-shrink: 0; }
.zk-sk-chip.is-on { color: #fff; border-color: transparent; background: linear-gradient(120deg, #8b5cf6, #5b6cff); box-shadow: 0 6px 16px -8px rgba(139, 92, 246, .9); }
.zk-sk-chip.is-post .zk-sk-ic { color: #a78bfa; } .zk-sk-chip.is-story .zk-sk-ic { color: #f472b6; } .zk-sk-chip.is-message .zk-sk-ic { color: #22d3ee; }
.zk-sk-chip.is-event .zk-sk-ic { color: #fbbf24; } .zk-sk-chip.is-reel .zk-sk-ic { color: #fb7185; }
.zk-sk-chip.is-on .zk-sk-ic { color: #fff; }
.zk-sk-badge { display: flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 12px; color: #c4b5fd; background: rgba(139, 92, 246, .15); }
.zk-sk-badge .zk-sk-ic { width: 19px; height: 19px; }
.zk-sk-badge.is-story { color: #f9a8d4; background: rgba(244, 114, 182, .14); }
.zk-sk-badge.is-message { color: #67e8f9; background: rgba(34, 211, 238, .13); }
.zk-sk-badge.is-event { color: #fcd34d; background: rgba(251, 191, 36, .14); }
.zk-sk-badge.is-reel { color: #fda4af; background: rgba(251, 113, 133, .14); }
html.light .zk-sk-chip { color: #52525b; background: #fff; border-color: #e4e4e7; }
html.light .zk-sk-chip:hover { color: #18181b; }
html.light .zk-sk-chip.is-on { color: #fff; }
html.light .zk-sk-chip.is-post .zk-sk-ic { color: #7c3aed; } html.light .zk-sk-chip.is-story .zk-sk-ic { color: #db2777; } html.light .zk-sk-chip.is-message .zk-sk-ic { color: #0891b2; }
html.light .zk-sk-chip.is-event .zk-sk-ic { color: #d97706; } html.light .zk-sk-chip.is-reel .zk-sk-ic { color: #e11d48; }
html.light .zk-sk-chip.is-on .zk-sk-ic { color: #fff; }
html.light .zk-sk-badge { color: #7c3aed; } html.light .zk-sk-badge.is-story { color: #db2777; } html.light .zk-sk-badge.is-message { color: #0891b2; } html.light .zk-sk-badge.is-event { color: #d97706; } html.light .zk-sk-badge.is-reel { color: #e11d48; }
html.light .zk-sk-chip.is-on { color: #fff !important; border-color: transparent; background: linear-gradient(120deg, #8b5cf6, #5b6cff) !important; }

/* p157: grouped settings navigation (all Settings pages) */
.zk-st { margin-bottom: 24px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .07); }
.zk-st-scroll { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.zk-st-group { min-width: 0; }
.zk-st-label { margin: 0 0 7px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #71717a; }
.zk-st-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.zk-st-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border-radius: 9999px; font-size: 13px; font-weight: 600; color: #d4d4d8; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.zk-st-tab:hover { color: #fff; border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .08); }
.zk-st-tab:active { transform: scale(.97); }
.zk-st-ic { display: flex; width: 28px; height: 28px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; }
.zk-st-ic svg { width: 16px; height: 16px; }
.zk-st-tab.c-violet .zk-st-ic { color: #c4b5fd; background: rgba(139, 92, 246, .16); }
.zk-st-tab.c-cyan .zk-st-ic { color: #67e8f9; background: rgba(34, 211, 238, .14); }
.zk-st-tab.c-blue .zk-st-ic { color: #93c5fd; background: rgba(96, 165, 250, .15); }
.zk-st-tab.c-amber .zk-st-ic { color: #fcd34d; background: rgba(251, 191, 36, .14); }
.zk-st-tab.c-green .zk-st-ic { color: #6ee7b7; background: rgba(52, 211, 153, .14); }
.zk-st-tab.c-teal .zk-st-ic { color: #5eead4; background: rgba(45, 212, 191, .14); }
.zk-st-tab.c-pink .zk-st-ic { color: #f9a8d4; background: rgba(244, 114, 182, .14); }
.zk-st-tab.c-slate .zk-st-ic { color: #cbd5e1; background: rgba(148, 163, 184, .14); }
.zk-st-tab.is-on { color: #fff; border-color: transparent; background: linear-gradient(120deg, #8b5cf6, #5b6cff 60%, #22d3ee); box-shadow: 0 8px 20px -10px rgba(139, 92, 246, .9); }
.zk-st-tab.is-on .zk-st-ic { color: #fff !important; background: rgba(255, 255, 255, .22) !important; }
@media (max-width: 767px) {
    .zk-st { margin-left: -4px; margin-right: -4px; padding: 6px; border-radius: 16px; }
    .zk-st-scroll { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); padding: 2px 8px; }
    .zk-st-scroll::-webkit-scrollbar { display: none; }
    .zk-st-group { display: contents; }
    .zk-st-label { display: none; }
    .zk-st-tabs { display: contents; }
    .zk-st-tab { scroll-snap-align: center; flex-shrink: 0; }
}
html.light .zk-st { background: #fff; border-color: #e4e4e7; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
html.light .zk-st-label { color: #a1a1aa; }
html.light .zk-st-tab { color: #3f3f46; background: #fafafa; border-color: #e4e4e7; }
html.light .zk-st-tab:hover { color: #18181b; background: #f5f3ff; border-color: #c4b5fd; }
html.light .zk-st-tab.is-on { color: #fff !important; background: linear-gradient(120deg, #8b5cf6, #5b6cff 60%, #22d3ee) !important; }
html.light .zk-st-tab.c-violet .zk-st-ic { color: #7c3aed; } html.light .zk-st-tab.c-cyan .zk-st-ic { color: #0891b2; } html.light .zk-st-tab.c-blue .zk-st-ic { color: #2563eb; }
html.light .zk-st-tab.c-amber .zk-st-ic { color: #d97706; } html.light .zk-st-tab.c-green .zk-st-ic { color: #059669; } html.light .zk-st-tab.c-teal .zk-st-ic { color: #0d9488; }
html.light .zk-st-tab.c-pink .zk-st-ic { color: #db2777; } html.light .zk-st-tab.c-slate .zk-st-ic { color: #475569; }
@media (min-width: 768px) {
    .zk-st { padding: 6px 14px; }
    .zk-st-scroll { flex-direction: column; flex-wrap: nowrap; gap: 0; }
    .zk-st-group { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
    .zk-st-group + .zk-st-group { border-top: 1px solid rgba(255, 255, 255, .06); }
    .zk-st-label { flex: 0 0 132px; margin: 0; }
    .zk-st-tab { height: 34px; padding-right: 13px; font-size: 12.5px; }
    .zk-st-ic { width: 25px; height: 25px; }
    .zk-st-ic svg { width: 15px; height: 15px; }
    html.light .zk-st-group + .zk-st-group { border-color: #f0f0f3; }
}

/* p158: Boost / Promote */
.zk-reach { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border-radius: 9999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.zk-reach svg { width: 12px; height: 12px; }
.zk-reach.is-promoted { color: #ddd6fe; background: rgba(139, 92, 246, .2); }
.zk-reach.is-boosted { color: #a5f3fc; background: rgba(34, 211, 238, .16); }
html.light .zk-reach.is-promoted { color: #6d28d9; background: #ede9fe; }
html.light .zk-reach.is-boosted { color: #0e7490; background: #cffafe; }
.zk-reach-vip { flex-shrink: 0; padding: 1px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #1c1917; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.zk-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 100000; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(560px, calc(100vw - 24px)); padding: 10px 10px 10px 12px; transform: translateX(-50%); border-radius: 14px; font-size: 13.5px; color: #f4f4f5; background: #17171f; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
@media (max-width: 1023px) { .zk-toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }
.zk-toast-ic { display: flex; width: 26px; height: 26px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; color: #fff; }
.zk-toast-ic svg { width: 15px; height: 15px; }
.zk-toast.is-ok .zk-toast-ic { background: linear-gradient(135deg, #10b981, #22d3ee); }
.zk-toast.is-warn .zk-toast-ic { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.zk-toast-t { min-width: 0; line-height: 1.35; }
.zk-toast-a { flex-shrink: 0; padding: 5px 10px; border-radius: 9999px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(120deg, #8b5cf6, #5b6cff); }
.zk-toast-x { flex-shrink: 0; width: 26px; height: 26px; border-radius: 9999px; font-size: 18px; line-height: 1; color: #a1a1aa; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; }
.zk-toast-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
html.light .zk-toast { color: #18181b; background: #fff; border-color: #e4e4e7; box-shadow: 0 16px 36px rgba(15, 23, 42, .16); }

/* p161: story studio size bar */
.zk-ss-size button{display:flex;width:34px;height:34px;min-width:0;min-height:0;align-items:center;justify-content:center;border-radius:9999px;transition:background .15s}
.zk-ss-size button:hover{background:rgba(255,255,255,.18)}
.zk-ss-size button:disabled{opacity:.35;pointer-events:none}
.zk-ss-size svg{width:16px;height:16px}
/* the site-wide 44px touch minimum made the item handles cover small stickers and text; keep them small and outside the item */
[x-ref="canvas"] .zk-ss-h{min-width:0!important;min-height:0!important;width:24px;height:24px;touch-action:none}
[x-ref="canvas"] .zk-ss-h svg{width:12px;height:12px}
[x-ref="canvas"] .zk-ss-del{left:-26px;top:-26px}
[x-ref="canvas"] .zk-ss-rot{right:-26px;bottom:-26px}

/* p162: EchoAI menu row with a statistics button on the right */
.zk-nav-split-main{padding-right:2.75rem}
.zk-nav-extra{position:absolute;right:.4rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:0!important;min-height:0!important;border-radius:9999px;color:var(--zk-faint,#9ca3af);transition:background .15s,color .15s}
.zk-nav-extra svg{width:16px;height:16px}
.zk-nav-extra:hover,.zk-nav-extra:focus-visible{background:rgba(139,92,246,.16);color:#fff;outline:none}
.zk-nav-extra.is-active{background:linear-gradient(135deg,#8b5cf6,#22d3ee);color:#fff}
html:not(.dark) .zk-nav-extra:hover,html.light .zk-nav-extra:hover{color:#5b21b6}
/* p162: EchoAI statistics page */
.zk-es-ico{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:11px}
.zk-es-ico svg{width:19px;height:19px}
.zk-es-violet{background:rgba(139,92,246,.16);color:#a78bfa}.zk-es-cyan{background:rgba(34,211,238,.14);color:#22d3ee}
.zk-es-pink{background:rgba(244,114,182,.15);color:#f472b6}.zk-es-amber{background:rgba(251,191,36,.14);color:#fbbf24}
.zk-es-green{background:rgba(52,211,153,.14);color:#34d399}.zk-es-blue{background:rgba(96,165,250,.15);color:#60a5fa}
.zk-es-chart{display:flex;align-items:flex-end;gap:6px;height:150px}
.zk-es-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}
.zk-es-bar{width:100%;max-width:28px;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,#8b5cf6,#22d3ee);min-height:3px}
.zk-es-num{font-size:10px;color:var(--zk-faint,#9ca3af);font-variant-numeric:tabular-nums;min-height:12px}
.zk-es-day{font-size:10px;color:var(--zk-faint,#9ca3af)}

/* p167: "i" info tips (public/js/zk-info-tip.js) */
.zk-info-tip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-inline-start: 3px; vertical-align: -3px; border-radius: 9999px; color: var(--zinkly-faint, #94a3b8); cursor: help; transition: color .15s, background-color .15s; }
.zk-info-tip svg { width: 14px; height: 14px; pointer-events: none; }
.zk-info-tip:hover, .zk-info-tip.is-active { color: #c4b5fd; background: rgba(124, 92, 255, .18); }
html.light .zk-info-tip:hover, html.light .zk-info-tip.is-active { color: #6d28d9; background: #ede9fe; }
.zk-tip-bubble { position: fixed; z-index: 9999; display: none; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; font-weight: 500; text-align: start; white-space: normal; color: #e4e4e7; background: #1c1f2b; border: 1px solid #2e3243; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); pointer-events: none; }
.zk-tip-bubble.is-open { display: block; }
html.light .zk-tip-bubble { color: #27272a; background: #ffffff; border-color: #e4e4e7; box-shadow: 0 12px 32px rgba(24, 24, 27, .16); }

/* p169: manager sidebar "Home · Exit manager" button. "Home" keeps its width; the hint wraps (right-aligned)
   instead of sliding over it in longer languages (e.g. Greek "Έξοδος από τη διαχείριση"). */
.zk-mgr-home-label { flex: none; white-space: nowrap; }
.zk-mgr-home-sub { flex: 1 1 auto; min-width: 0; text-align: end; line-height: 1.25; overflow-wrap: anywhere; }

/* p170: "i" tips on the Pages / Communities directory tabs. Phones (3 tight tabs): the "i" sits on the
   tab's top-right edge so labels and counts keep their space; larger screens: inline after the count. */
.zk-dir-tab { position: relative; }
.zk-dir-tab .zk-info-tip { flex: none; margin-inline-start: 0; }
.zk-dir-tab[aria-current] .zk-info-tip { color: rgb(255 255 255 / .85); }
.zk-dir-tab[aria-current] .zk-info-tip:hover, .zk-dir-tab[aria-current] .zk-info-tip.is-active { color: #fff; background: rgb(255 255 255 / .2); }
@media (max-width: 639px) {
    .zk-dir-tab .zk-info-tip { position: absolute; top: -6px; right: -3px; width: 18px; height: 18px; background: var(--zinkly-raised, #14161f); box-shadow: 0 0 0 1px var(--zinkly-border, #22242f); }
    .zk-dir-tab[aria-current] .zk-info-tip { color: #c4b5fd; }
    html.light .zk-dir-tab[aria-current] .zk-info-tip { color: #6d28d9; }
}
/* p170: long tab names (e.g. Greek "Κοινότητες που συμμετέχω") wrap instead of running off the screen. */
.zk-dir-tab > span.min-w-0 { overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 640px) { .zk-dir-nav { flex-wrap: wrap; } }

/* p171: "i" tips on the community tab bar (Posts, Pinned, Discussion, …). */
.zk-com-tabs .zk-info-tip { flex: none; margin-inline-start: -1px; }
/* p171: keep each tab's hidden screen-reader text (sr-only = position:absolute) inside the scrolling bar;
   without this it escaped the bar and made the page wider than the phone screen. */
.zk-com-tabs { position: relative; }
.zk-com-tabs > a { position: relative; }

/* p172: Tailwind classes used by Blogs / Subscription limits that the prebuilt bundle does not contain */
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.aspect-\[2\/1\] { aspect-ratio: 2 / 1; }
.min-w-\[520px\] { min-width: 520px; }
.\!min-h-\[34px\] { min-height: 34px !important; }
.\!min-h-\[36px\] { min-height: 36px !important; }
.\!min-h-\[38px\] { min-height: 38px !important; }
.\!min-h-\[40px\] { min-height: 40px !important; }
.\!px-3 { padding-left: .75rem !important; padding-right: .75rem !important; }
.\!text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.\!font-bold { font-weight: 700 !important; }
.\!mb-0 { margin-bottom: 0 !important; }
.ring-2 { box-shadow: 0 0 0 2px var(--zk-ring, #8b5cf6); }
.ring-violet-500 { --zk-ring: #8b5cf6; }
@media (min-width: 640px) {
    .sm\:p-7 { padding: 1.75rem; }
    .sm\:grid-cols-\[1fr_1fr_auto_auto\] { grid-template-columns: 1fr 1fr auto auto; }
}
@media (min-width: 1024px) { .lg\:grid-cols-\[340px_minmax\(0\2c 1fr\)\] { grid-template-columns: 340px minmax(0, 1fr); } }

/* p174: "What are you doing?" picker in the post composer */
.zk-act { --a-panel: #161925; --a-panel2: #1e2231; --a-line: #2a2f40; --a-text: #f4f4f5; --a-muted: #8b8fa3; padding: 14px; border-radius: 20px; background: var(--a-panel); border: 1px solid var(--a-line); }
html.light .zk-act { --a-panel: #ffffff; --a-panel2: #f4f4f8; --a-line: #e5e7ee; --a-text: #18181b; --a-muted: #6b7280; }
.zk-act-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.zk-act-title { font-size: 15px; font-weight: 800; color: var(--a-text); }
.zk-act-sub { margin-top: 1px; font-size: 12px; color: var(--a-muted); }
.zk-act-icon-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 0; min-height: 0; border-radius: 10px; color: var(--a-muted); }
.zk-act-icon-btn:hover { color: var(--a-text); background: var(--a-panel2); }
.zk-act-icon-btn svg { width: 18px; height: 18px; }
.zk-act-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .zk-act-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zk-act-type { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 8px 10px; border-radius: 14px; text-align: left; background: var(--a-panel2); border: 1px solid var(--a-line); transition: border-color .15s, background-color .15s, transform .15s; }
.zk-act-type:hover { border-color: color-mix(in srgb, var(--c) 60%, var(--a-line)); transform: translateY(-1px); }
.zk-act-type.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--a-panel2)); }
.zk-act-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.zk-act-ic svg { width: 19px; height: 19px; }
.zk-act-name { min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--a-text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zk-act-chosen { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border-radius: 14px; font-size: 14px; color: var(--a-text); background: color-mix(in srgb, var(--c) 10%, var(--a-panel2)); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--a-line)); }
.zk-act-chosen-label { color: var(--a-muted); }
.zk-act-remove { flex: none; min-height: 0; padding: 6px 10px; border-radius: 9999px; font-size: 12px; font-weight: 700; color: var(--a-muted); }
.zk-act-remove:hover { color: #fb7185; background: rgba(251, 113, 133, .1); }
.zk-act-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zk-act-chip { min-height: 0; padding: 7px 13px; border-radius: 9999px; font-size: 13px; font-weight: 600; color: var(--a-text); background: var(--a-panel2); border: 1px solid var(--a-line); transition: all .15s; }
.zk-act-chip:hover { border-color: #8b5cf6; }
.zk-act-chip.is-on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #7c3aed, #db2777); }
.zk-act-more { display: inline-flex; align-items: center; gap: 4px; min-height: 0; padding: 7px 12px; border-radius: 9999px; font-size: 13px; font-weight: 700; color: #a78bfa; }
html.light .zk-act-more { color: #6d28d9; }
.zk-act-more:hover { background: rgba(139, 92, 246, .12); }
.zk-act-more svg { width: 14px; height: 14px; transition: transform .2s; }
.zk-act-more svg.rotate-180 { transform: rotate(180deg); }
.zk-act-own { display: block; }
.zk-act-own-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--a-muted); }
.zk-act-input { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--a-panel2); border: 1px solid var(--a-line); }
.zk-act-input:focus-within { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
.zk-act-input input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; font-size: 14px; color: var(--a-text); }
.zk-act-input input:focus { box-shadow: none; }
.zk-act-count { flex: none; font-size: 11px; color: var(--a-muted); }
.zk-act-done { min-height: 0; height: 38px; padding: 0 18px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7c3aed, #db2777); }
.zk-act-done[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 520px) {
    .zk-act-type { flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; text-align: center; }
    .zk-act-name { font-size: 13px; overflow-wrap: break-word; }
}

/* p175: emoji button inside comment boxes (bottom-right of the field); the panel itself is placed against the screen */
.zk-emo-field { position: relative; display: block; }
.zk-emo-field > textarea, .zk-emo-field > input { width: 100%; padding-right: 46px !important; }
.zk-emo-field > .zk-emo { position: absolute; right: 5px; bottom: 5px; }
.zk-emo-field > input + .zk-emo { bottom: 50%; transform: translateY(50%); }
.zk-emo-field .zk-emo-btn { width: 32px !important; height: 32px !important; min-width: 0 !important; min-height: 0 !important; }
.zk-emo-field .zk-emo-btn svg { width: 19px; height: 19px; }

/* p178: notification panel actions */
.zk-nb-act { display: inline-flex; width: 32px; height: 32px; min-width: 0 !important; min-height: 0 !important; align-items: center; justify-content: center; border-radius: 9999px; color: #a1a1aa; transition: background .15s, color .15s; }
.zk-nb-act:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #fff; }
.zk-nb-act:disabled { opacity: .35; cursor: default; }
.zk-nb-act svg { width: 18px; height: 18px; }
.zk-nb-del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: inline-flex; width: 30px; height: 30px; min-width: 0 !important; min-height: 0 !important; align-items: center; justify-content: center; border-radius: 9999px; color: #71717a; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.zk-nb-item:hover .zk-nb-del, .zk-nb-del:focus-visible { opacity: 1; }
.zk-nb-del:hover { background: rgba(244,63,94,.12); color: #fb7185; }
.zk-nb-del svg { width: 15px; height: 15px; }
@media (hover: none) { .zk-nb-del { opacity: .75; } }
html.light .zk-nb-act:hover:not(:disabled) { background: rgba(0,0,0,.06); color: #18181b; }

/* ---- p183: notifications popup ---- */
.zk-nb { max-height: min(560px, calc(100vh - 80px)); border-radius: 18px; background: #14151b; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 60px -12px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.2); color: #e4e4e7; }
.zk-nb-top { padding: 14px 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.zk-nb-title { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.zk-nb-strong { color: #fff; }
.zk-nb-muted { color: #8b8d98; }
.zk-nb-cancel { border-radius: 999px; padding: 6px 10px; font-size: 12px; color: #a1a1aa; }
.zk-nb-cancel:hover { color: #fff; }
.zk-nb-tabs { display: flex; gap: 6px; margin-top: 10px; padding-bottom: 10px; }
.zk-nb-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px !important; min-width: 0 !important; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #a1a1aa; background: transparent; transition: background .15s, color .15s; }
.zk-nb-tabs button:hover { background: rgba(255,255,255,.06); color: #fff; }
.zk-nb-tabs button.is-on { background: rgba(124,92,255,.18); color: #c4b5fd; }
.zk-nb-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #7c5cff; color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.zk-nb-list { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; padding: 4px 6px 6px; }
.zk-nb-list::-webkit-scrollbar { width: 8px; }
.zk-nb-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.zk-nb-sec { padding: 10px 10px 4px; font-size: 12px; font-weight: 700; color: #8b8d98; text-transform: uppercase; letter-spacing: .05em; }
.zk-nb-item { border-radius: 12px; }
.zk-nb-row { display: flex; align-items: center; gap: 12px; padding: 9px 44px 9px 10px; border-radius: 12px; transition: background .15s; }
.zk-nb-row:hover { background: rgba(255,255,255,.05); }
.zk-nb-item.is-unread .zk-nb-row { background: rgba(124,92,255,.08); }
.zk-nb-item.is-unread .zk-nb-row:hover { background: rgba(124,92,255,.13); }
.zk-nb-msg { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; color: #d4d4d8; overflow-wrap: anywhere; }
.zk-nb-msg b { font-weight: 700; color: #fff; }
.zk-nb-item.is-unread .zk-nb-msg { color: #f4f4f5; }
.zk-nb-meta { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #8b8d98; }
.zk-nb-meta .is-new { color: #a78bfa; font-weight: 600; }
.zk-nb-pill { border-radius: 999px; padding: 1px 7px; font-size: 10.5px; font-weight: 600; background: rgba(255,255,255,.07); color: #a5f3fc; }
.zk-nb-pill.is-high { background: rgba(244,63,94,.15); color: #fda4af; }
.zk-nb-dot { flex: none; width: 10px; height: 10px; border-radius: 999px; background: #7c5cff; box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
.zk-nb-badge { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 0 2px #14151b; }
.zk-nb-badge svg { width: 12px; height: 12px; }
.zk-nb-badge.k-react { background: linear-gradient(135deg, #fb7185, #e11d48); }
.zk-nb-badge.k-comment { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.zk-nb-badge.k-reply { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.zk-nb-badge.k-mention { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.zk-nb-badge.k-message { background: linear-gradient(135deg, #4ade80, #16a34a); }
.zk-nb-badge.k-follow { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.zk-nb-badge.k-share { background: linear-gradient(135deg, #fbbf24, #d97706); }
.zk-nb-badge.k-story { background: linear-gradient(135deg, #f472b6, #c026d3); }
.zk-nb-badge.k-system { background: linear-gradient(135deg, #a1a1aa, #52525b); }
.zk-nb-num { position: absolute; left: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #22d3ee; color: #08090c; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #14151b; }
.zk-nb-tools { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .15s; }
.zk-nb-item:hover .zk-nb-tools, .zk-nb-tools:focus-within { opacity: 1; }
.zk-nb-item:hover .zk-nb-dot { opacity: 0; }
.zk-nb-tool { width: 28px !important; height: 28px !important; min-width: 0 !important; min-height: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #a1a1aa; background: rgba(20,21,27,.9); }
.zk-nb-tool:hover { background: rgba(124,92,255,.25); color: #fff; }
.zk-nb-tool.is-del:hover { background: rgba(244,63,94,.2); color: #fb7185; }
.zk-nb-tool svg { width: 14px; height: 14px; }
@media (hover: none) { .zk-nb-tools { opacity: 1; } .zk-nb-dot { display: none; } }
.zk-nb-foot { display: block; padding: 12px; text-align: center; font-size: 13px; font-weight: 600; color: #a78bfa; border-top: 1px solid rgba(255,255,255,.06); }
.zk-nb-foot:hover { background: rgba(255,255,255,.04); color: #c4b5fd; }
.zk-nb-skel { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 200% 100%; animation: zk-nb-sh 1.2s infinite; display: block; }
@keyframes zk-nb-sh { to { background-position: -200% 0; } }
.zk-nb-empty-ic { width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(124,92,255,.12); color: #a78bfa; }
.zk-nb-empty-ic svg { width: 28px; height: 28px; }
.zk-nb .zk-nb-act { width: 34px; height: 34px; }

html.light .zk-nb { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 24px 60px -16px rgba(15,23,42,.28); color: #27272a; }
html.light .zk-nb-top { border-color: rgba(0,0,0,.07); }
html.light .zk-nb-title, html.light .zk-nb-strong, html.light .zk-nb-msg b { color: #0f1115; }
html.light .zk-nb-msg { color: #3f3f46; }
html.light .zk-nb-item.is-unread .zk-nb-msg { color: #18181b; }
html.light .zk-nb-tabs button { color: #52525b; }
html.light .zk-nb-tabs button:hover { background: rgba(0,0,0,.05); color: #18181b; }
html.light .zk-nb-tabs button.is-on { background: rgba(124,92,255,.12); color: #6d28d9; }
html.light .zk-nb-row:hover { background: rgba(0,0,0,.04); }
html.light .zk-nb-item.is-unread .zk-nb-row { background: rgba(124,92,255,.07); }
html.light .zk-nb-meta .is-new { color: #6d28d9; }
html.light .zk-nb-badge, html.light .zk-nb-num { box-shadow: 0 0 0 2px #fff; }
html.light .zk-nb-tool { background: rgba(255,255,255,.95); color: #52525b; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
html.light .zk-nb-foot { color: #6d28d9; border-color: rgba(0,0,0,.07); }
html.light .zk-nb-foot:hover { background: rgba(0,0,0,.03); }
html.light .zk-nb-list { scrollbar-color: rgba(0,0,0,.2) transparent; }
html.light .zk-nb-pill { background: rgba(0,0,0,.05); color: #0e7490; }
html.light .zk-nb-cancel:hover { color: #18181b; }
.zk-nb-item + .zk-nb-item { margin-top: 2px; }
@media (hover: none) { .zk-nb-tool.is-read { display: none; } .zk-nb-tools { flex-direction: row; } .zk-nb-tool { background: transparent !important; box-shadow: none !important; } }
/* p183b: a bit more air between notifications */
.zk-nb-list { padding: 6px 8px 8px; }
.zk-nb-item + .zk-nb-item { margin-top: 6px; }
.zk-nb-sec { padding-top: 12px; }

/* ---- p185: create menu (phone "+") ---- */
.zk-cm { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(max(1.5rem, env(safe-area-inset-bottom) + 0.75rem) + 4.75rem); width: min(360px, calc(100vw - 24px)); z-index: 70; border-radius: 24px; padding: 14px; background: #14151b; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 24px 60px -12px rgba(0,0,0,.7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.zk-cm-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.zk-cm-title { font-size: 16px; font-weight: 800; color: #fff; }
.zk-cm-x { width: 32px !important; height: 32px !important; min-width: 0 !important; min-height: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #a1a1aa; background: rgba(255,255,255,.06); }
.zk-cm-x svg { width: 16px; height: 16px; }
.zk-cm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zk-cm-tile { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); color: #e4e4e7; text-align: center; padding: 8px 4px; transition: background .15s, transform .12s, border-color .15s; min-height: 0 !important; }
.zk-cm-tile:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.zk-cm-tile:active { transform: scale(.96); }
.zk-cm-ic { width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 18px -6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.zk-cm-ic svg { width: 23px; height: 23px; }
.zk-cm-label { font-size: 12.5px; font-weight: 600; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
html.light .zk-cm { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 24px 60px -16px rgba(15,23,42,.3); }
html.light .zk-cm-title { color: #0f1115; }
html.light .zk-cm-x { color: #52525b; background: rgba(0,0,0,.05); }
html.light .zk-cm-tile { background: #f6f6f9; border-color: rgba(0,0,0,.06); color: #27272a; }
html.light .zk-cm-tile:hover { background: #eeeef3; }

/* p185: gallery reels on narrow screens: the "next photo" arrow sat on the action column (author photo, like, comment…);
   keep it just left of that column, a little smaller */
@media (max-width: 767px) {
    .zk-rs-nav { width: 34px; height: 34px; margin-top: -17px; background: rgba(255, 255, 255, .82); }
    .zk-rs-nav svg { width: 17px; height: 17px; }
    .zk-rs-next { right: 72px; }
    .zk-rs-prev { left: 8px; }
}

/* p187: Create Reel keeps its header and buttons fixed; only the middle part scrolls */
.zinkly-modal:has(.zk-rcm) > div:last-child { display: flex; flex-direction: column; max-height: calc(100dvh - 56px); margin-bottom: 0 !important; }
.zk-rcm { flex: 1 1 auto; min-height: 0; max-height: calc(100dvh - 56px); }
.zk-rcm-head, .zk-rcm-foot { position: relative; top: auto; bottom: auto; flex-shrink: 0; }
.zk-rcm-body, .zk-rcm-done { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.zk-rcm-body > * { flex-shrink: 0; }
@media (max-width: 639px) {
    .zinkly-modal:has(.zk-rcm) > div:last-child { height: 100dvh; max-height: 100dvh; min-height: 0; }
    .zk-rcm { height: 100dvh; max-height: 100dvh; min-height: 0; }
}

/* p188: (i) tips on the VIP page */
.zk-vtip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; }
.zk-vtip-b { display: inline-flex; width: 17px; height: 17px; align-items: center; justify-content: center; border-radius: 999px; border: 1.3px solid currentColor; font: italic 700 10.5px/1 Georgia, serif; opacity: .65; cursor: help; position: relative; }
.zk-vtip-b::after { content: ''; position: absolute; inset: -13px; } /* 44px tap area */
.zk-vtip-b:hover, .zk-vtip-b[aria-expanded="true"] { opacity: 1; color: #a78bfa; }
.zk-vtip-p { position: fixed; z-index: 90; padding: 9px 11px; border-radius: 12px; font-size: 12px; font-weight: 500; font-style: normal; line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; color: #f4f4f5; background: #27272a; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
html.light .zk-vtip-p { color: #18181b; background: #fff; border-color: #e4e4e7; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.zk-vbill { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.zk-vbill button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #a1a1aa; }
.zk-vbill button.is-on { color: #fff; background: linear-gradient(120deg, #8b5cf6, #5b6cff 60%, #22d3ee); }
.zk-vbill em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; color: #052e16; background: #4ade80; }
html.light .zk-vbill { background: #f4f4f5; border-color: #e4e4e7; }
html.light .zk-vbill button:not(.is-on) { color: #52525b; }
.zk-vbox { margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
html.light .zk-vbox { background: #fafafa; border-color: #e4e4e7; }
.zk-vsum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
html.light .zk-vsum { border-color: #e4e4e7; }

/* p190: editing a chat message: wide, multi-line box that keeps line breaks */
.zk-msg-editing { display: block !important; width: min(640px, 82vw) !important; max-width: 100% !important; }
.zk-msg-edit { display: flex; flex-direction: column; gap: 8px; }
.zk-msg-edit-box { display: block; width: 100%; min-height: 84px; max-height: 50vh; padding: 10px 12px; border-radius: 12px; resize: vertical; overflow-y: auto; white-space: pre-wrap; font-size: 14px; line-height: 1.5; color: #18181b; background: #fff; border: 1px solid rgba(0,0,0,.12); outline: none; }
.zk-msg-edit-box:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.zk-msg-edit-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.zk-msg-edit-n { margin-right: auto; font-size: 11px; opacity: .7; }
.zk-msg-edit-btn { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.18); color: inherit; }
.zk-msg-edit-btn:hover { background: rgba(255,255,255,.28); }
.zk-msg-edit-btn.is-save { background: #fff !important; color: #18181b !important; }
.zk-msg-edit-btn:disabled { opacity: .5; cursor: not-allowed; }
html:not(.light) .zk-msg-edit-box { color: #f4f4f5; background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.18); }
/* p190: own (coloured) bubbles force white text; keep the edit box readable there in both themes */
.zinkly-discord-chat .zinkly-msg-bubble > .zk-msg-press > .inline-block[style*="--dc-brand"] .zk-msg-edit .zk-msg-edit-box { color: #fff !important; background: rgba(0,0,0,.24) !important; border-color: rgba(255,255,255,.28) !important; }
.zinkly-discord-chat .zinkly-msg-bubble > .zk-msg-press > .inline-block[style*="--dc-brand"] .zk-msg-edit .zk-msg-edit-box::placeholder { color: rgba(255,255,255,.6) !important; }
.zinkly-discord-chat .zinkly-msg-bubble > .zk-msg-press > .inline-block[style*="--dc-brand"] .zk-msg-edit .zk-msg-edit-btn.is-save { color: #18181b !important; background: #fff !important; }

/* p192: Create Reel: settings on the left, large preview on the right that stays visible; stacked on phones and tablets */
.zk-rcm-split { display: flex; flex-direction: column; gap: 14px; }
.zk-rcm-left { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
.zk-rcm-left > * { flex-shrink: 0; }
.zk-rcm-right { order: -1; }
@media (min-width: 1024px) {
    .zinkly-modal:has(.zk-rcm.has-items) > div:last-child { width: 100% !important; max-width: min(1120px, calc(100vw - 48px)) !important; }
    .zk-rcm.has-items .zk-rcm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); align-items: start; gap: 24px; }
    .zk-rcm.has-items .zk-rcm-right { order: 0; position: sticky; top: 0; z-index: 2; }
    .zk-rcm.has-items .zk-rc-stage { height: min(calc(100dvh - 230px), 780px) !important; border-radius: 18px; }
}
/* p192: phones and tablets: the preview stays pinned at the top while the settings scroll under it */
@media (max-width: 1023px) {
    .zk-rcm.has-items .zk-rcm-right { position: sticky; top: -16px; z-index: 3; margin: -16px -18px 0; padding: 16px 18px 10px; background: #1a1a22; box-shadow: 0 10px 18px -14px rgba(0,0,0,.8); }
    html.light .zk-rcm.has-items .zk-rcm-right { background: #fff; box-shadow: 0 10px 18px -14px rgba(0,0,0,.25); }
    .zk-rcm.has-items .zk-rc-stage { height: 38dvh !important; }
}

/* p194: animated VIP avatar ring, shown wherever the avatar appears (posts, comments, menus, chat, profile) */
@property --zk-ring-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes zkRingTurn { to { --zk-ring-a: 360deg; } }
@keyframes zkRingGlow { 0%, 100% { box-shadow: 0 0 6px 0 rgba(236,72,153,.45); } 50% { box-shadow: 0 0 12px 2px rgba(139,92,246,.6); } }
.zk-avring {
    border: 3px solid transparent !important;
    background: linear-gradient(#0b0c12, #0b0c12) padding-box, conic-gradient(from var(--zk-ring-a), #f59e0b, #ec4899, #8b5cf6, #22d3ee, #f59e0b) border-box !important;
    animation: zkRingTurn 3s linear infinite, zkRingGlow 3s ease-in-out infinite;
}
.zk-avring.is-thin { border-width: 2px !important; }
.zk-avring.is-initials { background: linear-gradient(135deg, #8b5cf6, #22d3ee) padding-box, conic-gradient(from var(--zk-ring-a), #f59e0b, #ec4899, #8b5cf6, #22d3ee, #f59e0b) border-box !important; }
html.light .zk-avring:not(.is-initials) { background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--zk-ring-a), #f59e0b, #ec4899, #8b5cf6, #22d3ee, #f59e0b) border-box !important; }
/* inside a Story ring or the profile's own VIP ring, don't draw a second ring */
.zinkly-story-ring .zk-avring, .zinkly-vip-ring .zk-avring { border-width: 0 !important; background: none !important; animation: none; box-shadow: none; }
/* the bigger profile ring uses the same colours and turns visibly */
.zinkly-vip-ring { padding: 4px !important; }
.zinkly-vip-ring::before { background: conic-gradient(from var(--zk-ring-a), #f59e0b, #ec4899, #8b5cf6, #22d3ee, #f59e0b) !important; animation: zkRingTurn 3s linear infinite, zkRingGlow 3s ease-in-out infinite !important; }
@media (prefers-reduced-motion: reduce) { .zk-avring, .zinkly-vip-ring::before { animation: none !important; } }
