/* Zinkly bridge (redesign 2026, step 2, beta)
 *
 * Maps the older shared classes (.zinkly-btn-primary, .zinkly-btn-secondary, .zinkly-input)
 * and two shared Blade components (x-modal, x-dropdown) onto the tokens in zk-tokens.css,
 * so every page gets the same controls without touching its markup or its event handlers.
 *
 * Safety rules used in every selector:
 *  - html:not([data-has-custom-bg])  stays out of pages where a member chose their own background
 *    (those pages have their own glass styles that must keep winning);
 *  - :not([class*="bg-"]) / :not([class*="border-"]) leaves alone any control whose markup already
 *    picks its own colour (e.g. a red "Leave" button), so intentional colours are kept.
 * Corner shapes and sizes from the markup are not touched, so nothing moves.
 * When a screen is moved onto the .zt-* components, its part of this file can be deleted.
 */

/* ---------- Secondary buttons: a raised fill so they read as buttons on cards ---------- */
html:not([data-has-custom-bg]) .zinkly-btn-secondary:not([class*="bg-"]) {
    background-color: var(--zt-surface-3);
    border-color: var(--zt-border-strong);
}
html:not([data-has-custom-bg]) .zinkly-btn-secondary:not([class*="bg-"]):hover:not(:disabled) {
    background-color: color-mix(in srgb, var(--zt-surface-3) 82%, var(--zt-text) 18%);
}
html.light:not([data-has-custom-bg]) .zinkly-btn-secondary:not([class*="bg-"]):hover:not(:disabled) {
    background-color: color-mix(in srgb, var(--zt-surface-3) 90%, var(--zt-text) 10%);
}

/* ---------- Primary buttons: flat brand colour, no glow, darker on hover ----------
   Human look only (html.zk-human); the Classic look keeps its own violet-to-cyan gradient and glow. */
html.zk-human:not([data-has-custom-bg]) .zinkly-btn-primary:not([class*="bg-"]) {
    box-shadow: var(--zt-shadow-1);
}
html.zk-human:not([data-has-custom-bg]) .zinkly-btn-primary:not([class*="bg-"]):hover:not(:disabled) {
    filter: none;
    background-image: none;
    background-color: var(--zt-brand-strong);
}

/* ---------- One keyboard focus ring for both ---------- */
html:not([data-has-custom-bg]) :is(.zinkly-btn-primary, .zinkly-btn-secondary):focus-visible {
    outline: none;
    box-shadow: var(--zt-focus);
}

/* ---------- Inputs: a clearer edge, a hover state and one focus ring ---------- */
html:not([data-has-custom-bg]) .zinkly-input:not([class*="border-"]) {
    border-color: var(--zt-border-strong);
}
html:not([data-has-custom-bg]) .zinkly-input:not([class*="border-"]):hover:not(:focus):not(:disabled) {
    border-color: color-mix(in srgb, var(--zt-border-strong) 70%, var(--zt-text) 30%);
}
html:not([data-has-custom-bg]) .zinkly-input:focus {
    border-color: var(--zt-brand);
    outline: none;
    /* the ring draws its own brand edge: light mode keeps a grey border with !important (app.css), so the
       border colour alone cannot show focus there */
    box-shadow: 0 0 0 1px var(--zt-brand), 0 0 0 4px color-mix(in srgb, var(--zt-brand) 24%, transparent);
}
html:not([data-has-custom-bg]) .zinkly-input::placeholder {
    color: var(--zt-text-3);
}

/* ---------- Popups (x-modal) and menus (x-dropdown): one edge and one shadow ---------- */
html:not([data-has-custom-bg]) .zk-modal-panel {
    border-color: var(--zt-border-strong);
    box-shadow: var(--zt-shadow-2);
}
html:not([data-has-custom-bg]) .zk-dd-panel {
    border-color: var(--zt-border-strong);
    box-shadow: var(--zt-shadow-2);
}
.zk-dd-link {
    border-radius: calc(var(--zt-r-sm) - 2px);
}
.zk-dd-link:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--zt-brand);
}

@media (prefers-reduced-motion: reduce) {
    .zinkly-btn-primary, .zinkly-btn-secondary, .zinkly-input { transition: none; }
}

/* ---------- Navigation (step 3) ---------- */
/* one keyboard focus ring for menu items in the sidebar, tablet rail and phone bar */
:is(.zinkly-sidebar, .zk-tablet-rail, #zinklyMobileNav) a:focus-visible,
:is(.zinkly-sidebar, .zk-tablet-rail, #zinklyMobileNav) button:focus-visible {
    outline: 2px solid var(--zt-brand);
    outline-offset: -2px;
}
/* Menu icons keep their own colours (p207), decided 25 Nov 2026. */

/* ---------- Post cards (step 4) ---------- */
/* Phones: the author's status chip may shrink (its text ends in "…") instead of running under the
   post's "⋯" menu button. The name box is shrink-0, so it only gives way when it holds a status chip. */
.zk-pv2-head span.shrink-0:has(> .zk-stc) {
    flex-shrink: 1;
    min-width: 0;
}
.zk-pv2-head span.shrink-0:has(> .zk-stc) > .zk-stc {
    min-width: 0; /* no overflow:hidden: the song button's 44px tap area must not be cut */
}
/* Post corners follow AdminCP > Site design > corners when an admin sets them
   (--zk-card-radius); by default they stay 22px as designed. */
html .zk-post-v2 {
    --pv2-radius: var(--zk-card-radius, 22px);
}
/* A single photo keeps its 4:3 frame on wide screens too (it was capped at 320px tall, which cut
   photos to 16:9 on computers). The frame size is fixed, so nothing moves while the photo loads. */
.zk-post .aspect-\[4\/3\].max-h-80 {
    max-height: 34rem;
}
/* The status chip's song button is 44px tall on touch screens (tap size), so its 1px left divider
   stuck out above and below the 20px chip. Draw the divider as a short centred line instead. */
.zk-stc .zk-stc-song {
    border-left-color: transparent;
    background: linear-gradient(color-mix(in srgb, currentColor 24%, transparent), color-mix(in srgb, currentColor 24%, transparent)) left center / 1px 14px no-repeat;
}

/* ---------- Profiles (step 5) ---------- */
/* Your own profile on phones: Edit profile and Set status share the first row and Customize takes the
   second, like the Follow / Message / Poke buttons visitors see; labels stay on one line. */
@media (max-width: 639px) {
    .zk-prof-own { gap: 8px; }
    .zk-prof-own > :is(a, button) {
        flex: 1 1 calc(50% - 4px);
        min-height: 42px;
        padding-inline: 12px;
        white-space: nowrap;
        font-size: .8125rem;
    }
}
/* A profile without a cover photo gets a calm brand-coloured cover instead of a flat block.
   Never on themed profiles (they set data-zk-pt-* on <html>) and never when a photo is set. */
html:not([data-zk-pt-bg]):not([data-zk-pt-fx]):not([data-zk-pt-panel]) [data-zk-pt-cover] > div.bg-zinkly-gradient-soft:not([style]) {
    background-image:
        radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--zt-brand) 34%, transparent) 0%, transparent 62%),
        radial-gradient(90% 140% at 100% 100%, color-mix(in srgb, var(--zt-brand) 16%, transparent) 0%, transparent 60%);
    background-color: var(--zt-surface-2);
}

/* ---------- Marketplace (step 6) ---------- */
/* Chip rows scroll sideways: no bar on touch screens (people swipe), a thin one with a mouse. */
.zk-mp-chips { scrollbar-width: thin; }
@media (hover: none) and (pointer: coarse) {
    .zk-mp-chips { scrollbar-width: none; }
    .zk-mp-chips::-webkit-scrollbar { display: none; }
}
/* Listing without a photo: a designed placeholder instead of a dark box with a tiny icon. */
.zk-mp-noimg {
    background:
        radial-gradient(110% 130% at 0% 0%, color-mix(in srgb, var(--zt-brand) 22%, transparent) 0%, transparent 60%),
        var(--zt-surface-2);
    color: var(--zt-text-3);
}
.zk-mp-noimg > svg { width: 2rem; height: 2rem; opacity: .8; }
/* (Save heart: already 44x44 on touch screens through the site's touch-size rule; no extra tap area needed.) */

/* ---------- Messages (step 7) ---------- */
/* Phones: Search moves from the chat header into the Info panel, so the contact's name has room.
   Same search bar (zkToggleMsgSearch); tablets and computers keep the header button. */
.zk-info-search { display: none !important; }
@media (max-width: 639px) {
    .zk-head-search { display: none !important; }
    .zk-info-search { display: flex !important; }
}

/* ---------- Final polish (step 8) ---------- */
/* Reduce motion, site-wide safety net: when a person asks their device for less motion, animations and
   transitions finish at once and loops stop. Stories are timed by JavaScript, so they still advance. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
/* Empty lists (business page tabs, hashtag page): a calm icon in a soft brand circle and more room. */
.zk-empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}
.zk-empty-card::before {
    content: "";
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--zt-brand-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8fa3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px 26px;
}
/* Marketplace cards: condition, place and seller were 10px; 11px reads better on phones. */
.zk-mp-card .text-\[10px\] { font-size: 11px; }

/* ---------- Post action bar on phones (revamp 25 Nov 2026; regrouped on your feedback the same evening) ----------
   Two groups: like, comment, repost on the left; award, send, views on the right.
   Inside a group the icons sit close; the free space goes between the groups. No dividers.
   Same buttons, same handlers: spacing only. */
@media (max-width: 640px) {
    html .zk-pa.zk-pa-bar { justify-content: flex-start !important; gap: 0 !important; margin-left: -4px !important; margin-right: -4px !important; }
    html .zk-pa.zk-pa-bar > .zk-pa-grp { display: contents !important; } /* zk-pa-bar.css loads later with the same strength */
    html .zk-pa.zk-pa-bar .zk-pa-sep { display: none !important; }
    html .zk-pa.zk-pa-bar > .zk-pa-grp > :is(.zk-pa-btn, .zk-pa-views, .relative, .zk-prx) { flex: 0 0 auto; min-width: 40px; justify-content: center; }
    html .zk-pa.zk-pa-bar .zk-pa-btn, html .zk-pa.zk-pa-bar .zk-pa-views { padding: 0 6px !important; }
    /* your order (25 Nov, evening, final): two groups.
       Left: like, comment, repost.  Right: award, send, views.  Icons sit close inside a group.
       CSS order only (the groups are flattened); the buttons and their handlers are unchanged. */
    html .zk-pa.zk-pa-bar > .zk-pa-grp > :is(.zk-prx, .zk-pa-like) { order: 1; }
    html .zk-pa.zk-pa-bar > .zk-pa-grp > .zk-pa-comment { order: 2; margin-left: 4px; }
    html .zk-pa.zk-pa-bar > .zk-pa-grp > .zk-pa-repost { order: 3; margin-left: 4px; }
    html .zk-pa.zk-pa-bar > .zk-pa-grp > .zk-pa-award { order: 4; margin-left: auto; }
    html .zk-pa.zk-pa-bar > .zk-pa-grp > .zk-pa-send { order: 5; margin-left: 4px; }
    html .zk-pa.zk-pa-bar > .zk-pa-grp > :is(.zk-pa-views, .relative) { order: 6; margin-left: 4px; }
    /* the right group starts at Send when there is no Award (own post), at Views when there is neither */
    html .zk-pa.zk-pa-bar:not(:has(.zk-pa-award)) > .zk-pa-grp > .zk-pa-send,
    html .zk-pa.zk-pa-bar:not(:has(.zk-pa-award)):not(:has(.zk-pa-send)) > .zk-pa-grp > :is(.zk-pa-views, .relative) { margin-left: auto; }
    html .zk-pa.zk-pa-bar > :not(.zk-pa-grp) { order: 10; } /* comments box etc. stay below the icons */
}
@media (max-width: 370px) {
    html .zk-pa.zk-pa-bar .zk-pa-btn, html .zk-pa.zk-pa-bar .zk-pa-views { padding: 0 3px !important; }
    html .zk-pa.zk-pa-bar > .zk-pa-grp > :is(.zk-pa-btn, .zk-pa-views, .relative, .zk-prx) { min-width: 36px; }
}

/* ---------- Recommend and Save move into the post menu on phones (your request, 25 Nov 2026) ----------
   Under 640px the action bar no longer shows Recommend (star) and Save (bookmark); the post's "⋯" menu
   shows them instead (rows .zk-pm-phone, which press the same hidden bar buttons). Wider screens unchanged. */
/* zk-post-menu.css forces .zk-pmenu > button to display:flex !important, so these selectors are one step stronger */
.zk-pmenu > button.zk-pm-phone, .zk-pm-phone { display: none !important; }
@media (max-width: 640px) {
    .zk-pmenu > button.zk-pm-phone, .zk-pm-phone { display: flex !important; }
    html .zk-pa.zk-pa-bar :is(.zk-pa-rec, .zk-pa-save) { display: none !important; }
}

/* ---------- Light mode: rings around pictures and status dots (26 Nov 2026) ----------
   border-zinkly-ink / -surface / -raised stayed dark in light mode while their backgrounds turn white,
   so avatars and online dots got a black ring. Thick rings take the card colour; thin lines a light grey. */
html.light .border-zinkly-ink, html.light .border-zinkly-surface, html.light .border-zinkly-raised { border-color: rgb(229, 231, 235); }
html.light :is(.border-2, .border-4, .border-\[3px\]):is(.border-zinkly-ink, .border-zinkly-surface, .border-zinkly-raised) { border-color: #fff; }

/* Light mode: admin dashboard change pills (26 Nov 2026). The light green / pink text was made for dark mode
   (1.6:1 on its pale background in light mode); darker shades read clearly. */
html.light .zk-db-pill.zk-db-up { color: #047857; background: rgba(16, 185, 129, .14); }
html.light .zk-db-pill.zk-db-down { color: #be123c; background: rgba(244, 63, 94, .12); }

/* Dark mode: page numbers under long lists (26 Nov 2026). Laravel's pager text ("Showing 1 to 20 of 45 results")
   is grey-700, made for white pages; on dark it was 2.7:1. */
html.dark nav[role="navigation"] :is(.text-gray-700, .text-gray-600, .text-gray-500) { color: #a1a1aa; }
html.dark nav[role="navigation"] .font-medium { color: #d4d4d8; }

/* 26 Nov 2026: profile tabs (profile/show.blade.php .zk-ptabs). Centred pill bar, no scrollbar, soft edge fades. */
.zk-ptabs { position: relative; margin-left: auto; margin-right: auto; max-width: 100%; width: fit-content; padding: 4px; border-radius: 16px;
    background: var(--zt-surface-2); border: 1px solid var(--zt-border); }
.zk-ptabs-row { display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.zk-ptabs-row::-webkit-scrollbar { display: none; }
.zk-ptabs.is-l .zk-ptabs-row { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.zk-ptabs.is-r .zk-ptabs-row { -webkit-mask-image: linear-gradient(to left, transparent, #000 28px); mask-image: linear-gradient(to left, transparent, #000 28px); }
.zk-ptabs.is-l.is-r .zk-ptabs-row { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.zk-ptab { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 12px; white-space: nowrap;
    font-size: 14px; font-weight: 600; line-height: 1; color: var(--zt-text-2); text-decoration: none; transition: background-color .15s, color .15s; }
.zk-ptab:hover { color: var(--zt-text); background: color-mix(in srgb, currentColor 8%, transparent); }
.zk-ptab:focus-visible { outline: 2px solid var(--zt-brand-ink); outline-offset: -2px; }
.zk-ptab.is-active { color: var(--zt-on-brand); background: var(--zt-brand); box-shadow: 0 4px 14px color-mix(in srgb, var(--zt-brand) 35%, transparent); }
html.light .zk-ptabs { background: #fff; border-color: #e4e4e7; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
html.light .zk-ptab { color: #52525b; }
html.light .zk-ptab:hover { color: #18181b; background: #f4f4f5; }
html.light .zk-ptab.is-active { color: var(--zt-on-brand); background: var(--zt-brand); }
@media (max-width: 640px) { .zk-ptabs { width: 100%; border-radius: 14px; } .zk-ptab { min-height: 36px; padding: 0 13px; font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .zk-ptabs-row { scroll-behavior: auto; } .zk-ptab { transition: none; } }

/* Chat popup "is typing" pill (26 Nov 2026): readable on light mode, dark mode and any conversation theme.
   A solid frosted pill with its own text colour, so it never depends on the chat background. */
#zkChatPopup .zk-pc-typing { max-width: calc(100% - 8px); font-size: 12px; font-weight: 500; line-height: 18px; color: #3f3f46; background: rgba(255,255,255,.94); border: 1px solid rgba(24,24,27,.08); box-shadow: 0 2px 8px rgba(24,24,27,.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#zkChatPopup .zk-pc-typing > span[x-text] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#zkChatPopup .zk-pc-typing .zl-dots i { background: var(--zt-brand, #7c5cff); opacity: .85; }
html.dark #zkChatPopup .zk-pc-typing, html:not(.light) #zkChatPopup .zk-pc-typing { color: #e4e4e7; background: rgba(24,24,27,.9); border-color: rgba(255,255,255,.1); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
html.dark #zkChatPopup .zk-pc-typing .zl-dots i, html:not(.light) #zkChatPopup .zk-pc-typing .zl-dots i { background: #a78bfa; }

/* 27 Nov 2026: group chats: small round pictures of who has seen the newest own message (message-bubble.blade.php) */
.zk-seenby-av { display: inline-grid; place-items: center; overflow: hidden; width: 16px; height: 16px; border-radius: 999px; flex: none; background: var(--zt-brand, #7c5cff); color: #fff;
    box-shadow: 0 0 0 1.5px var(--dc-bg-primary, #0f1117); }
.zk-seenby-av + .zk-seenby-av { margin-left: -4px; }
html.light .zk-seenby-av { box-shadow: 0 0 0 1.5px var(--dc-bg-primary, #fff); }
.zk-seenby-more { margin-left: 3px; font-size: 10px; font-weight: 600; line-height: 1; opacity: .8; }
.zk-seenby-av img { width: 100%; height: 100%; object-fit: cover; }
.zk-seenby-av b { font-size: 9px; font-weight: 700; line-height: 1; }

/* 28 Nov 2026: Channels topic card in the feed, redesigned (resources/views/channels/_feed-card.blade.php).
   Built on the site tokens; --chf is the forum's own colour (falls back to the brand). Light and dark, reduced motion. */
.zk-chf { --chf: var(--zt-brand, #2f5fd0); position: relative; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 14px 16px 14px 18px;
    border-radius: 18px; border: 1px solid var(--zt-border, #22242f); overflow: hidden; text-decoration: none; color: var(--zt-text, #f4f4f6);
    background: linear-gradient(180deg, color-mix(in srgb, var(--chf) 7%, transparent), transparent 70%), var(--zt-surface-2, #14161f);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.zk-chf::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--chf); opacity: .85; }
.zk-chf:hover { border-color: color-mix(in srgb, var(--chf) 55%, var(--zt-border, #22242f)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.zk-chf:focus-visible { outline: 2px solid var(--chf); outline-offset: 2px; }
.zk-chf-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zk-chf-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: 17px; line-height: 1;
    color: color-mix(in srgb, var(--chf) 55%, #fff); background: color-mix(in srgb, var(--chf) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chf) 26%, transparent); }
.zk-chf-ic svg { width: 18px; height: 18px; }
.zk-chf-where { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.zk-chf-forum { font-size: 13.5px; font-weight: 700; color: var(--zt-text, #f4f4f6); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zk-chf-kind { margin-top: 1px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--zt-text-3, rgba(244,244,246,.56)); }
.zk-chf-title { margin-top: 6px; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--zt-text, #f4f4f6);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zk-chf-text { font-size: 14px; line-height: 1.5; color: var(--zt-text-2, rgba(244,244,246,.72)); max-width: 62ch;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zk-chf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--zt-text, #f4f4f6) 8%, transparent); }
.zk-chf-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--zt-text-3, rgba(244,244,246,.56)); }
.zk-chf-hint svg { width: 16px; height: 16px; }
.zk-chf-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 650; white-space: nowrap;
    color: color-mix(in srgb, var(--chf) 50%, #fff); background: color-mix(in srgb, var(--chf) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chf) 34%, transparent);
    transition: background-color .2s ease, color .2s ease; }
.zk-chf-btn svg { width: 15px; height: 15px; transition: transform .2s ease; }
.zk-chf:hover .zk-chf-btn { color: #fff; background: var(--chf); box-shadow: none; }
.zk-chf:hover .zk-chf-btn svg { transform: translateX(2px); }
html.light .zk-chf { color: #18181b; background: linear-gradient(180deg, color-mix(in srgb, var(--chf) 6%, #fff), #fff 70%); border-color: #e4e4e7; }
html.light .zk-chf:hover { box-shadow: 0 4px 16px rgba(15,23,42,.08); }
html.light .zk-chf-forum, html.light .zk-chf-title { color: #18181b; }
html.light .zk-chf-text { color: #3f3f46; }
html.light .zk-chf-kind, html.light .zk-chf-hint { color: #71717a; }
html.light .zk-chf-foot { border-top-color: #f0f0f2; }
html.light .zk-chf-btn, html.light .zk-chf-ic { color: color-mix(in srgb, var(--chf) 82%, #000); }
@media (max-width: 480px) {
    .zk-chf { padding: 12px 14px 12px 16px; }
    .zk-chf-hint { display: none; }
    .zk-chf-btn { width: 100%; justify-content: center; min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .zk-chf, .zk-chf-btn, .zk-chf-btn svg { transition: none; }
    .zk-chf:hover { transform: none; }
    .zk-chf:hover .zk-chf-btn svg { transform: none; }
}

/* 28 Nov 2026: Channels messages with the post reactions (animated faces / the admin's pictures) */
.zk-rx-emo { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.zk-rx-emo .zkrx-svg, .zk-rx-emo .zkrx-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.zk-rx-pick button.is-emo .zk-rx-emo { width: 28px; height: 28px; transition: transform .15s ease; }
.zk-rx-pick button.is-emo:hover .zk-rx-emo, .zk-rx-pick button.is-emo:focus-visible .zk-rx-emo { transform: translateY(-2px) scale(1.15); }
@media (max-width: 640px) { .zk-rx-pick button.is-emo .zk-rx-emo { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .zk-rx-pick button.is-emo .zk-rx-emo { transition: none; } .zk-rx-pick button.is-emo:hover .zk-rx-emo { transform: none; } }

/* 28 Nov 2026: AdminCP > Post reactions > Reactions in Channels */
.zk-chrx-opt { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; cursor: pointer; border: 1px solid var(--zt-border, #22242f); background: var(--zt-surface-2, #14161f); transition: border-color .15s, box-shadow .15s; }
.zk-chrx-opt.is-on { border-color: var(--zt-brand, #2f5fd0); box-shadow: 0 0 0 3px color-mix(in srgb, var(--zt-brand, #2f5fd0) 22%, transparent); }
.zk-chrx-opt:focus-within { outline: 2px solid var(--zt-brand, #2f5fd0); outline-offset: 2px; }
.zk-chrx-ic { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 26px; }
.zk-chrx-emo { display: inline-grid; width: 24px; height: 24px; }
.zk-chrx-emo .zkrx-svg, .zk-chrx-emo .zkrx-img { width: 100%; height: 100%; object-fit: contain; }
.zk-chrx-t { font-size: 14px; font-weight: 700; color: var(--zt-text, #f4f4f6); }
.zk-chrx-d { font-size: 12.5px; line-height: 1.45; color: var(--zt-text-2, rgba(244,244,246,.72)); }
html.light .zk-chrx-opt { background: #fff; border-color: #e4e4e7; }
html.light .zk-chrx-t { color: #18181b; }
html.light .zk-chrx-d { color: #52525b; }

/* 28 Nov 2026: AdminCP > Post reactions > Channels preview */
.zk-rxa-stage.zk-chpv { min-height: 0; height: auto; padding: 14px; display: block; }
.zk-chpv-msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.zk-chpv-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; font-weight: 700; color: #fff; background: var(--zt-brand, #2f5fd0); }
.zk-chpv-name { font-size: 13px; font-weight: 700; color: #f4f4f6; }
.zk-chpv-text { font-size: 13px; color: rgba(244,244,246,.72); }
.zk-chpv-pick { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding: 5px 7px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.zk-chpv-opt { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; }
.zk-chpv-opt svg { width: 20px; height: 20px; }
.zk-chpv-opt.is-emo .zkrx-svg, .zk-chpv-opt.is-emo .zkrx-img { width: 26px; height: 26px; object-fit: contain; }
.zk-chpv.is-light .zk-chpv-msg { background: #fff; border-color: #e4e4e7; }
.zk-chpv.is-light .zk-chpv-name { color: #18181b; }
.zk-chpv.is-light .zk-chpv-text { color: #52525b; }
.zk-chpv.is-light .zk-chpv-pick { background: #f4f4f5; border-color: #e4e4e7; }

/* 28 Nov 2026: live link preview in the post composer (components/composer-modal.blade.php) */
.zk-lpc { position: relative; margin-top: 10px; border-radius: 16px; border: 1px solid var(--zt-border, #22242f); background: var(--zt-surface-2, #14161f); overflow: hidden; }
.zk-lpc.is-loading { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; color: var(--zt-text-2, rgba(244,244,246,.72)); }
.zk-lpc-spin { width: 16px; height: 16px; border-radius: 999px; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: zk-lpc-spin .8s linear infinite; }
@keyframes zk-lpc-spin { to { transform: rotate(360deg); } }
.zk-lpc-link { display: block; text-decoration: none; color: inherit; }
.zk-lpc-img { display: block; width: 100%; max-height: 240px; aspect-ratio: 1.91 / 1; object-fit: cover; background: color-mix(in srgb, var(--zt-text, #fff) 6%, transparent); }
.zk-lpc-body { display: grid; gap: 3px; padding: 11px 44px 12px 14px; }
.zk-lpc.is-compact .zk-lpc-body { padding-top: 10px; padding-bottom: 10px; }
.zk-lpc-dom { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--zt-text-3, rgba(244,244,246,.56)); }
.zk-lpc-title { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--zt-text, #f4f4f6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zk-lpc-desc { font-size: 13px; line-height: 1.4; color: var(--zt-text-2, rgba(244,244,246,.72)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zk-lpc-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px !important; height: 30px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2); }
.zk-lpc-x:hover { background: rgba(0,0,0,.75); }
.zk-lpc-x:focus-visible { outline: 2px solid var(--zt-brand-ink, #8fb0ff); outline-offset: 2px; }
.zk-lpc-x svg { width: 15px; height: 15px; }
html.light .zk-lpc { background: #fff; border-color: #e4e4e7; }
html.light .zk-lpc-title { color: #18181b; }
html.light .zk-lpc-desc { color: #52525b; }
html.light .zk-lpc-dom, html.light .zk-lpc.is-loading { color: #71717a; }
@media (prefers-reduced-motion: reduce) { .zk-lpc-spin { animation-duration: 2s; } }
