/* DriveZone Stories */
html.dzs-lock, html.dzs-lock body { overflow: hidden !important; overscroll-behavior: none; }

@property --dzs-a { syntax: '<angle>'; inherits: false; initial-value: 210deg; }

.dzs-tray, .dzs-viewer, .dzs-composer, .dzs-toasts {
    --dzs-blue: #0088ff;
    --dzs-ring: conic-gradient(from var(--dzs-a), #8fe0ff, #0088ff 28%, #0047e0 52%, #00b4ff 76%, #8fe0ff);
    --dzs-line: linear-gradient(90deg, #00c6ff, #0088ff 55%, #0047e0);
    -webkit-tap-highlight-color: transparent;
}
.dzs-tray *, .dzs-viewer *, .dzs-composer * { box-sizing: border-box; }
.dzs-tray button, .dzs-viewer button, .dzs-composer button { font: inherit; text-transform: none; letter-spacing: normal; }

/* ---------------------------------------------------- button state shield
   The site styles every button:hover / :focus (blue background, white !important text).
   Plugin buttons describe their look with --dzsb (bg), --dzsf (text), --dzsbh / --dzsfh (hover),
   and these two rules apply them in every state so foreign hover styles can never leak in. */
:is(.dzs-tray, .dzs-viewer, .dzs-composer) :is(button, [type="button"], [type="submit"]) {
    background-color: var(--dzsb, transparent);
    color: var(--dzsf, inherit);
    box-shadow: var(--dzss, none);
    text-decoration: none;
}
:is(.dzs-tray, .dzs-viewer, .dzs-composer) :is(button, [type="button"], [type="submit"]):is(:hover, :focus, :active, :focus-visible) {
    background-color: var(--dzsbh, var(--dzsb, transparent)) !important;
    color: var(--dzsfh, var(--dzsf, inherit)) !important;
    box-shadow: var(--dzssh, var(--dzss, none)) !important;
    border-color: var(--dzsbc, transparent);
    text-decoration: none !important;
    background-image: none;
}
:is(.dzs-tray, .dzs-viewer, .dzs-composer) :is(button, [type="button"]):focus:not(:focus-visible) { outline: none; }
:is(.dzs-viewer, .dzs-composer) a:is(:hover, :focus) { text-decoration: none; }

/* ------------------------------------------------------------------ tray */
.dzs-tray {
    position: relative;
    isolation: isolate;
    z-index: 0;
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--fcom-primary-text, inherit);
}
.dzs-tray[hidden] { display: none !important; }
.dzs-scroller {
    display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 4px 0 2px; margin: 0;
    scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none;
}
.dzs-scroller::-webkit-scrollbar { display: none; }
.dzs-item {
    flex: 0 0 auto; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    border: 0 !important; padding: 0 !important; margin: 0; cursor: pointer; scroll-snap-align: start; border-radius: 0;
    min-height: 0; line-height: normal;
}
.dzs-item:focus-visible { outline: none; }
.dzs-item:focus-visible .dzs-ring { outline: 2px solid var(--dzs-blue); outline-offset: 3px; }

/* gradient ring drawn with a mask, so the gap between ring and avatar is truly transparent */
.dzs-ring { position: relative; display: block; width: 70px; height: 70px; border-radius: 50%; }
.dzs-ring::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 3px;
    background: var(--dzs-ring);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    filter: drop-shadow(0 0 5px rgba(0, 136, 255, .55));
    transition: filter .2s;
}
.dzs-item:hover .dzs-ring::before { animation: dzs-ring-spin 2.2s linear infinite; filter: drop-shadow(0 0 8px rgba(0, 136, 255, .8)); }
@keyframes dzs-ring-spin { to { --dzs-a: 570deg; } }
.dzs-ring.is-seen::before { padding: 1.5px; background: rgba(150, 160, 175, .55); filter: none; animation: none; }
.dzs-ring.is-empty::before { display: none; }
.dzs-circle {
    position: absolute; inset: 6px; display: block; border-radius: 50%; overflow: hidden;
    background: rgba(127, 127, 127, .18);
}
.dzs-ring.is-empty .dzs-circle { inset: 3px; }
.dzs-thumb { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; border-radius: 50%; margin: 0 !important; transition: transform .25s; }
.dzs-item:hover .dzs-thumb { transform: scale(1.06); }
.dzs-item:active .dzs-circle { transform: scale(.96); }
.dzs-plus {
    position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-radius: 50%; z-index: 1;
    background: var(--dzs-blue); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s;
}
.dzs-plus:hover { transform: scale(1.12); background: #0077e6; }
.dzs-plus svg { width: 14px; height: 14px; }
.dzs-label {
    max-width: 100%; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--fcom-primary-text, inherit);
}
.dzs-ring.is-seen + .dzs-label { color: var(--fcom-secondary-text, inherit); opacity: .85; }
.dzs-arrow {
    position: absolute; top: 39px; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%;
    border: 0; --dzsb: rgba(255, 255, 255, .95); --dzsf: #111; --dzsbh: #fff; --dzss: 0 2px 12px rgba(0, 0, 0, .35);
    display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.dzs-arrow svg { width: 16px; height: 16px; }
.dzs-arrow-l { left: 2px; }
.dzs-arrow-r { right: 2px; }
.dzs-arrow.show { display: flex; }
@media (hover: none) and (pointer: coarse) { .dzs-arrow.show { display: none; } }
.dzs-skel .dzs-circle, .dzs-skel .dzs-label {
    background: linear-gradient(90deg, rgba(127,127,127,.12) 0%, rgba(127,127,127,.25) 50%, rgba(127,127,127,.12) 100%);
    background-size: 200% 100%; animation: dzs-shimmer 1.2s linear infinite;
}
.dzs-skel .dzs-ring::before { display: none; }
.dzs-skel .dzs-label { width: 48px; height: 10px; border-radius: 5px; }
@keyframes dzs-shimmer { to { background-position: -200% 0; } }


/* ------------------------------------------------- tray: cards (Facebook style) */
.dzs-tray.is-cards .dzs-scroller { gap: 8px; padding: 0; }
.dzs-tray.is-cards .dzs-arrow { top: 50%; }
.dzs-card {
    position: relative; width: 112px !important; height: 200px; flex: 0 0 auto; border-radius: 12px !important; overflow: hidden;
    gap: 0; --dzsb: rgba(127, 127, 127, .18); --dzsbh: rgba(127, 127, 127, .18);
    box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .25);
}
.dzs-card-bg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; border-radius: 0 !important; transition: transform .35s ease; }
.dzs-card:hover .dzs-card-bg { transform: scale(1.05); }
.dzs-card-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .7)); pointer-events: none; transition: background .2s; }
.dzs-card:hover .dzs-card-shade { background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .6)); }
.dzs-card-ava {
    position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; border-radius: 50%; padding: 3px;
    background: conic-gradient(from 210deg, #8fe0ff, #0088ff 28%, #0047e0 52%, #00b4ff 76%, #8fe0ff);
    box-shadow: 0 0 8px rgba(0, 136, 255, .6);
}
.dzs-card-ava.is-seen { background: rgba(170, 178, 190, .85); box-shadow: none; padding: 2px; }
.dzs-card-ava img { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; border-radius: 50% !important; object-fit: cover; display: block; border: 2px solid rgba(20, 22, 26, .9); }
.dzs-card-name {
    position: absolute; left: 10px; right: 10px; bottom: 9px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
}
.dzs-card-create { --dzsb: var(--fcom-primary-bg, rgba(127, 127, 127, .15)); --dzsbh: var(--fcom-primary-bg, rgba(127, 127, 127, .15)); }
.dzs-card-me { position: absolute; left: 0; right: 0; top: 0; height: 72%; overflow: hidden; }
.dzs-card-me img { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; display: block; border-radius: 0 !important; transition: transform .35s ease; }
.dzs-card-create:hover .dzs-card-me img { transform: scale(1.05); }
.dzs-card-plus {
    position: absolute; left: 50%; top: 72%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
    background: var(--dzs-blue); color: #fff; display: flex; align-items: center; justify-content: center;
    border: 4px solid var(--fcom-primary-bg, #24262b); box-shadow: 0 1px 4px rgba(0, 0, 0, .25), 0 0 4px rgba(0, 136, 255, .18); transition: transform .15s;
}
.dzs-card-create:hover .dzs-card-plus { transform: scale(1.08); }
.dzs-card-plus svg { width: 18px; height: 18px; }
.dzs-card-create-label { position: absolute; left: 6px; right: 6px; bottom: 10px; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.2; color: var(--fcom-primary-text, inherit); }
.dzs-tray.is-cards .dzs-item:focus-visible { outline: 2px solid var(--dzs-blue); outline-offset: 2px; }

/* ---------------------------------------------------------------- stage */
.dzs-stage {
    position: relative; overflow: hidden; overflow: clip; background: #000; color: #fff;
    aspect-ratio: 9 / 16; container-type: size; border-radius: 12px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    user-select: none; -webkit-user-select: none; touch-action: none;
}
.dzs-stage-bg { position: absolute; inset: 0; background-position: center; background-size: cover; }
.dzs-stage-bg.is-blur { filter: blur(28px) brightness(.55); transform: scale(1.25); }
.dzs-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dzs-media-el { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; object-fit: contain; display: block; border-radius: 0 !important; }
.dzs-media-el.fit-cover { object-fit: cover; }
.dzs-media-error { position: relative; padding: 20px; text-align: center; opacity: .8; }

.dzs-layers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.dzs-layer {
    position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); transform-origin: center;
    line-height: 1.22; white-space: nowrap;
}
.dzs-l-text {
    font-size: calc(var(--s) * 100cqw); white-space: pre-wrap; width: max-content; max-width: 86cqw;
    overflow-wrap: anywhere;
}
.dzs-l-inner { padding: .1em .32em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.al-left { text-align: left; } .al-center { text-align: center; } .al-right { text-align: right; }
.st-classic { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 600; }
.st-bold { font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.st-neon { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-weight: 400; }
.st-typewriter { font-family: "Courier New", Courier, monospace; font-weight: 600; }
.st-strong { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; }
.bg-none .dzs-l-inner, .dzs-texted-input.bg-none { color: var(--c); text-shadow: 0 1px 4px rgba(0, 0, 0, .55); background: transparent; }
.bg-soft .dzs-l-inner, .dzs-texted-input.bg-soft { color: var(--c); background: rgba(0, 0, 0, .55); }
.bg-solid .dzs-l-inner, .dzs-texted-input.bg-solid { color: var(--ctext); background: var(--c); text-shadow: none; }
.st-neon.bg-none .dzs-l-inner, .dzs-texted-input.st-neon.bg-none, .st-neon.bg-soft .dzs-l-inner, .dzs-texted-input.st-neon.bg-soft {
    color: #fff; text-shadow: 0 0 .08em #fff, 0 0 .25em var(--c), 0 0 .6em var(--c), 0 0 1em var(--c);
}
.dzs-l-emoji { font-size: calc(var(--s) * 100cqw); line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.dzs-l-gif { width: calc(var(--s) * 100cqw); aspect-ratio: var(--ar, 1); }
.dzs-l-gif img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.dzs-l-link {
    display: inline-flex; align-items: center; gap: .35em; font-size: calc(var(--s) * 100cqw); font-weight: 700;
    background: #fff; color: #1a73e8; padding: .45em .85em; border-radius: 99em; text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25); pointer-events: auto; max-width: 80cqw; overflow: hidden; text-overflow: ellipsis;
}
.dzs-l-link .dzs-l-ico { display: inline-flex; width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.dzs-l-link .dzs-l-ico svg { width: 100%; height: 100%; }
a.dzs-l-link:hover { filter: brightness(.95); }

/* ---------------------------------------------------------------- viewer */
.dzs-viewer {
    position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; gap: 18px;
    outline: none; animation: dzs-in .18s ease-out;
}
@keyframes dzs-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.dzs-v-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 14, .96); }
.dzs-viewer .dzs-stage { height: min(calc(100dvh - 32px), calc((100vw - 140px) * 16 / 9)); max-height: 940px; z-index: 1; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.dzs-v-close, .dzs-v-nav {
    position: relative; z-index: 2; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.dzs-v-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; --dzsf: #fff; --dzsbh: rgba(255, 255, 255, .1); border-radius: 50%; }
.dzs-v-close svg { width: 28px; height: 28px; }
.dzs-v-nav { width: 40px; height: 40px; border-radius: 50%; --dzsb: rgba(255, 255, 255, .92); --dzsf: #111; --dzsbh: #fff; flex: 0 0 auto; }
.dzs-v-nav svg { width: 20px; height: 20px; }

.dzs-top { position: absolute; left: 0; right: 0; top: 0; z-index: 4; padding: 10px 10px 28px; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); transition: opacity .2s; }
.dzs-bars { display: flex; gap: 4px; }
.dzs-bar { flex: 1; height: 2.5px; background: rgba(255, 255, 255, .35); border-radius: 2px; overflow: hidden; }
.dzs-fill { display: block; height: 100%; background: #fff; transform-origin: left center; transform: scaleX(0); will-change: transform; }
.dzs-head { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 36px; }
.dzs-h-user, .dzs-h-user:hover, .dzs-h-user:focus, .dzs-h-user * { color: #fff !important; text-decoration: none !important; border-bottom: 0 !important; box-shadow: none !important; }
.dzs-h-user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dzs-h-nm { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.dzs-h-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .3); }
.dzs-h-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.dzs-h-user:hover .dzs-h-name { opacity: .85; }
.dzs-h-ver { display: inline-flex; width: 15px; height: 15px; flex: 0 0 auto; margin: 0 !important; }
.dzs-h-ver svg { width: 100%; height: 100%; }
.dzs-h-id { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; height: 32px; }
.dzs-h-nm { line-height: 17px; }
.dzs-h-time { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 14px; font-weight: 500; opacity: .8; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.dzs-h-priv { display: inline-flex; align-items: center; gap: 3px; }
.dzs-h-priv::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin-right: 3px; opacity: .8; }
.dzs-h-priv-ico { display: inline-flex; width: 12px; height: 12px; }
.dzs-h-priv-ico svg { width: 100%; height: 100%; }
.dzs-h-sp { flex: 1; }
.dzs-ibtn {
    width: 36px; height: 36px; border: 0; border-radius: 50%; --dzsf: #fff; --dzsbh: rgba(255, 255, 255, .12); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: 0 0 auto;
}
.dzs-ibtn svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.dzs-ibtn:focus-visible, .dzs-v-nav:focus-visible, .dzs-v-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.dzs-spinner {
    position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; z-index: 3;
    border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%;
    animation: dzs-spin .8s linear infinite; opacity: 0; pointer-events: none; transition: opacity .2s .15s;
}
.dzs-viewer.is-loading .dzs-spinner { opacity: 1; }
.dzs-spinner.is-inline { position: relative; top: auto; left: auto; margin: 24px auto; opacity: 1; display: block; }
@keyframes dzs-spin { to { transform: rotate(360deg); } }

.dzs-bottom {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 34px 10px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
    transition: opacity .2s;
}
.dzs-viewer.is-holding .dzs-top, .dzs-viewer.is-holding .dzs-bottom { opacity: 0; }
.dzs-reply-wrap { flex: 1; display: flex; align-items: center; min-width: 0; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 99px; padding: 0 4px 0 16px; height: 44px; }
.dzs-reply { flex: 1; min-width: 0; background: transparent !important; border: 0 !important; outline: none; color: #fff !important; font-size: 15px; height: 40px; padding: 0 !important; box-shadow: none !important; }
.dzs-reply::placeholder { color: rgba(255, 255, 255, .8); }
.dzs-send { display: none; }
.dzs-viewer.has-text .dzs-send { display: inline-flex; }
.dzs-quick { display: none; width: 100%; justify-content: space-around; padding: 0 0 8px; }
.dzs-viewer.is-typing:not(.has-text) .dzs-quick { display: flex; }
.dzs-quick-btn { border: 0; font-size: 30px; cursor: pointer; line-height: 1; padding: 4px; transition: transform .12s; }
.dzs-quick-btn:hover { transform: scale(1.2); }
.dzs-like.is-on { --dzsf: #ff3040; }
.dzs-like.pop svg { animation: dzs-pop .35s ease; }
@keyframes dzs-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.dzs-login { flex: 0 1 auto; background: #fff !important; color: #111 !important; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 99px; text-decoration: none !important; }
.dzs-activity { display: inline-flex; align-items: center; gap: 8px; --dzsb: rgba(0, 0, 0, .35); --dzsf: #fff; --dzsbh: rgba(0, 0, 0, .55); border: 0; border-radius: 99px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.dzs-activity svg { width: 20px; height: 20px; display: block; }
.dzs-activity > span { display: inline-flex; align-items: center; line-height: 20px; }

.dzs-menu {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; background: #1c1c1e; border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); animation: dzs-up .18s ease-out;
}
.dzs-menu[hidden] { display: none; }
.dzs-menu > * { --dzsf: #fff; --dzsbh: rgba(255, 255, 255, .07); background: none; border: 0; color: #fff; padding: 15px; font-size: 15px; text-align: center; cursor: pointer; border-top: 1px solid rgba(255, 255, 255, .08); text-decoration: none; }
.dzs-menu > *:first-child { border-top: 0; }
a.dzs-menu-a:hover, .dzs-menu > a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.dzs-menu .is-danger { --dzsf: #ff453a; color: #ff453a; font-weight: 700; }
@keyframes dzs-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.dzs-sheet, .dzs-csheet {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; max-height: 72%; display: flex; flex-direction: column;
    background: #1c1c1e; color: #fff; border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .22s ease-out;
}
.dzs-sheet[hidden] { display: none; }
.dzs-sheet.open, .dzs-csheet.open { transform: none; }
.dzs-sheet-head .dzs-ibtn { --dzsf: #fff; }
.dzs-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 16px; font-size: 16px; }
.dzs-sheet-counts { display: flex; gap: 16px; padding: 0 16px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.dzs-count { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.dzs-count > span { display: inline-flex; align-items: center; line-height: 1; }
.dzs-count svg { width: 18px; height: 18px; display: block; }
.dzs-sheet-list { overflow-y: auto; padding: 6px 0 12px; touch-action: pan-y; }
.dzs-viewer-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: #fff !important; text-decoration: none !important; }
.dzs-viewer-row:hover { background: rgba(255, 255, 255, .05); }
.dzs-viewer-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dzs-vr-name { flex: 1; display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: 14px; }
.dzs-vr-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dzs-vr-name small { font-weight: 400; opacity: .6; font-size: 12px; }
.dzs-vr-like svg, .dzs-vr-reply svg { width: 20px; height: 20px; }
.dzs-vr-like { color: #ff3040; }
.dzs-empty { text-align: center; opacity: .7; padding: 24px 16px; margin: 0; font-size: 14px; }

/* --------------------------------------------------------------- toasts */
.dzs-toasts { position: fixed; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2147483600; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.dzs-toast { background: rgba(28, 28, 30, .96); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); animation: dzs-up .2s ease-out; max-width: 90vw; text-align: center; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.dzs-toast.err { background: #b3261e; }
.dzs-toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }

/* ------------------------------------------------------------- composer */
.dzs-composer {
    position: fixed; inset: 0; z-index: 2147483000; background: #0b0b0d; color: #fff; outline: none;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; animation: dzs-in .18s ease-out;
}
.dzs-c-body { height: 100dvh; display: flex; flex-direction: column; }
.dzs-c-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); min-height: 60px; }
.dzs-c-top strong { font-size: 17px; }
.dzs-tools { display: flex; gap: 6px; }
.dzs-tools .dzs-ibtn { --dzsb: rgba(255, 255, 255, .1); --dzsbh: rgba(255, 255, 255, .2); width: 42px; height: 42px; }
.dzs-gif-btn { font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.dzs-c-stage-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.dzs-c-stage { height: min(100%, calc((100vw - 24px) * 16 / 9)); max-height: 900px; }
.dzs-c-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.dzs-publish {
    display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; padding: 12px 22px; border-radius: 99px;
    --dzsb: var(--dzs-blue); --dzsf: #fff; --dzsbh: #0077e6; --dzss: 0 6px 20px rgba(0, 136, 255, .35); font-weight: 800; font-size: 15px;
}
.dzs-publish svg { width: 18px; height: 18px; }
.dzs-publish:disabled { opacity: .5; cursor: default; }
.dzs-progress { flex: 1; display: flex; align-items: center; gap: 12px; font-size: 13px; opacity: .9; }
.dzs-progress[hidden] { display: none; }
.dzs-progress-bar { flex: 1; height: 4px; background: rgba(255, 255, 255, .2); border-radius: 4px; overflow: hidden; }
.dzs-progress-bar span { display: block; height: 100%; width: 0; background: var(--dzs-line); transition: width .2s; }

.dzs-picker { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; }
.dzs-picker-sub { margin: 0 0 8px; opacity: .7; font-size: 14px; text-align: center; }
.dzs-pick {
    width: min(420px, 100%); display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
    padding: 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); --dzsb: rgba(255, 255, 255, .05); --dzsbh: rgba(255, 255, 255, .1); --dzsf: #fff; --dzsbc: rgba(0, 136, 255, .6); transition: transform .15s;
}
.dzs-pick:hover { transform: translateY(-1px); }
.dzs-pick > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.dzs-pick strong { font-size: 16px; }
.dzs-pick small { opacity: .65; font-size: 12.5px; line-height: 1.35; }
.dzs-pick-ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: linear-gradient(150deg, #00c6ff, #0088ff 55%, #0047e0); color: #fff; }
.dzs-pick-text .dzs-pick-ico { background: linear-gradient(160deg, #8e2de2, #4a00e0); }
.dzs-pick-ico svg { width: 26px; height: 26px; }
.dzs-picker-drop { opacity: .45; font-size: 13px; margin: 6px 0 0; }

.dzs-layers.is-edit { pointer-events: none; }
.dzs-layers.is-edit .dzs-layer { pointer-events: auto; cursor: grab; touch-action: none; }
.dzs-layers.is-edit .dzs-layer:active { cursor: grabbing; }
.dzs-layers.is-edit .dzs-layer.is-selected { outline: 1.5px dashed rgba(255, 255, 255, .85); outline-offset: 6px; }
.dzs-layers.is-edit .dzs-layer.is-trash { opacity: .45; }
.dzs-layers.is-edit .dzs-layer:focus-visible { outline: 2px solid #0a84ff; outline-offset: 6px; }
.dzs-trash {
    position: absolute; left: 50%; bottom: 22px; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; z-index: 5;
    display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .8);
    opacity: 0; transform: scale(.8); transition: all .15s; pointer-events: none;
}
.dzs-trash svg { width: 24px; height: 24px; }
.dzs-stage.is-dragging .dzs-trash { opacity: 1; transform: none; }
.dzs-trash.is-over { background: #ff3b30; transform: scale(1.15) !important; border-color: #ff3b30; }
.dzs-hint {
    position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 5; width: max-content; max-width: 90%;
    background: rgba(0, 0, 0, .6); padding: 7px 12px; border-radius: 99px; font-size: 12px; text-align: center; pointer-events: none; transition: opacity .4s;
}
.dzs-hint.out { opacity: 0; }

.dzs-texted { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; background: rgba(0, 0, 0, .28); touch-action: auto; }
.dzs-texted-top, .dzs-texted-bottom { background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
.dzs-texted-bottom { background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .45)); }
.dzs-texted-top { display: flex; align-items: center; gap: 6px; padding: 10px; }
.dzs-bgbtn { font-weight: 800; font-size: 18px; border: 2px solid #fff !important; width: 32px !important; height: 32px !important; border-radius: 8px !important; }
.dzs-bgbtn[data-v="solid"] { --dzsb: #fff; --dzsf: #111; }
.dzs-bgbtn[data-v="soft"] { --dzsb: rgba(255, 255, 255, .3); }
.dzs-done { border: 0; --dzsb: #fff; --dzsf: #111; --dzsbh: #e6f3ff; font-weight: 800; padding: 9px 18px; border-radius: 99px; cursor: pointer; font-size: 14px; }
.dzs-texted-mid { flex: 1; display: flex; align-items: center; min-height: 0; padding: 0 8px; }
.dzs-size-wrap { width: 28px; height: 50%; display: flex; align-items: center; justify-content: center; }
.dzs-size { -webkit-appearance: slider-vertical; writing-mode: vertical-lr; direction: rtl; width: 28px; height: 100%; accent-color: #fff; }
.dzs-texted-box { flex: 1; display: flex; align-items: center; justify-content: center; }
.dzs-texted-input {
    width: 86%; resize: none; border: 0 !important; outline: none !important; box-shadow: none !important; overflow: hidden;
    font-size: calc(var(--s) * 100cqw); line-height: 1.22; padding: .15em .35em !important; border-radius: .3em; min-height: 1.5em;
    caret-color: #fff;
}
.dzs-texted-input::placeholder { color: rgba(255, 255, 255, .55); }
.dzs-texted-bottom { padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.dzs-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.dzs-chip { border: 1.5px solid rgba(255, 255, 255, .5); --dzsb: rgba(0, 0, 0, .3); --dzsf: #fff; --dzsbh: rgba(0, 0, 0, .5); --dzsbc: #fff; padding: 6px 12px; border-radius: 99px; cursor: pointer; font-size: 13px !important; white-space: nowrap; }
.dzs-chip.st-neon { font-family: "Segoe Script", "Brush Script MT", cursive !important; }
.dzs-chip.st-bold { font-family: Impact, "Arial Black", sans-serif !important; }
.dzs-chip.st-typewriter { font-family: "Courier New", monospace !important; }
.dzs-chip.st-strong { font-family: Georgia, serif !important; font-style: italic; }
.dzs-chip.is-on { --dzsb: #fff; --dzsf: #111; --dzsbh: #fff; border-color: #fff; }
.dzs-colors { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dzs-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; --dzsbc: #fff; cursor: pointer; padding: 0; min-height: 0; }
.dzs-color.is-on { transform: scale(1.25); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }

.dzs-csheet { z-index: 9; max-height: 75%; touch-action: pan-y; }
.dzs-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 2px; padding: 4px 10px 16px; overflow-y: auto; }
.dzs-emoji { --dzsbh: rgba(255, 255, 255, .1); border: 0; font-size: 30px; padding: 6px 0; cursor: pointer; border-radius: 10px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.dzs-gif-wrap { display: flex; flex-direction: column; min-height: 0; padding: 0 10px 10px; gap: 8px; }
.dzs-gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; overflow-y: auto; min-height: 120px; }
.dzs-gif { border: 0; padding: 0; --dzsb: #2c2c2e;  border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.dzs-gif img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dzs-gif-grid .dzs-empty, .dzs-gif-grid .dzs-spinner { grid-column: 1 / -1; }
.dzs-giphy { opacity: .5; font-size: 11px; text-align: right; }
.dzs-input {
    width: 100%; background: #2c2c2e !important; border: 1px solid rgba(255, 255, 255, .12) !important; color: #fff !important;
    border-radius: 10px !important; padding: 11px 12px !important; font-size: 15px !important; outline: none; box-shadow: none !important;
}
.dzs-input:focus { border-color: rgba(255, 255, 255, .45) !important; }
.dzs-link-form { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 16px; }
.dzs-link-form .dzs-done { align-self: flex-end; }
.dzs-form-err { color: #ff6b61; margin: 0; font-size: 13px; }
.dzs-composer.is-busy .dzs-c-stage-wrap { pointer-events: none; opacity: .8; }

/* --------------------------------------------------------------- mobile */
@media (max-width: 640px) {
    .dzs-viewer { gap: 0; }
    .dzs-viewer .dzs-stage { width: 100vw; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; }
    .dzs-v-nav { display: none; }
    .dzs-v-close { top: calc(22px + env(safe-area-inset-top)); right: 4px; z-index: 5; }
    .dzs-viewer .dzs-top { padding-top: calc(8px + env(safe-area-inset-top)); }
    .dzs-viewer .dzs-head { padding-right: 40px; }
    .dzs-c-stage-wrap { padding: 0; }
    .dzs-c-stage { height: min(100%, calc(100vw * 16 / 9)); border-radius: 10px; }
    .dzs-c-top { flex-wrap: nowrap; }
    .dzs-tools .dzs-ibtn { width: 38px; height: 38px; }
    .dzs-item { width: 68px; }
    .dzs-ring { width: 64px; height: 64px; }
    .dzs-arrow { top: 36px; }
    .dzs-card { width: 100px !important; height: 178px; }
    .dzs-card-me { height: 62%; }
    .dzs-card-plus { top: 62%; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
    .dzs-card-create-label { font-size: 12px; bottom: 8px; }
    .dzs-card-name { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .dzs-viewer, .dzs-composer, .dzs-menu, .dzs-toast, .dzs-skel .dzs-circle, .dzs-ring::before { animation: none !important; }
    .dzs-sheet, .dzs-csheet { transition: none; }
}

/* ------------------------------------------------- 1.6 additions */
/* FluentShare window (z-index 100000) must be visible above the viewer while sharing */
.dzs-viewer.dzs-sharing { z-index: 99990; }

.dzs-text-prompt {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px; cursor: pointer;
    border: 1.5px dashed rgba(255, 255, 255, .75); --dzsb: rgba(0, 0, 0, .18); --dzsbh: rgba(0, 0, 0, .3); --dzsf: #fff;
    font-size: 16px; font-weight: 700; white-space: nowrap;
}
.dzs-text-prompt[hidden] { display: none; }
.dzs-text-prompt-ico { display: inline-flex; width: 22px; height: 22px; }
.dzs-text-prompt-ico svg { width: 100%; height: 100%; }

.dzs-report { padding: 4px 16px 16px; overflow-y: auto; touch-action: pan-y; display: flex; flex-direction: column; gap: 10px; }
.dzs-report-lead { margin: 0; font-size: 13px; opacity: .75; line-height: 1.4; }
.dzs-report-opts { display: flex; flex-direction: column; gap: 6px; }
.dzs-report-opt {
    text-align: left; padding: 11px 14px; border-radius: 10px; cursor: pointer; font-size: 14px;
    border: 1px solid rgba(255, 255, 255, .12); --dzsb: rgba(255, 255, 255, .04); --dzsbh: rgba(255, 255, 255, .09); --dzsf: #fff; --dzsbc: rgba(255, 255, 255, .3);
}
.dzs-report-opt.is-on { --dzsb: rgba(0, 136, 255, .22); --dzsbh: rgba(0, 136, 255, .28); border-color: var(--dzs-blue); }
.dzs-report-note { resize: vertical; min-height: 64px; font-family: inherit; }
.dzs-report-send { align-self: flex-end; }
.dzs-report-send:disabled { opacity: .45; cursor: default; }

/* ------------------------------------------------- 1.7: stickers, music, header close */
.dzs-h-close { display: none; }
@media (max-width: 640px) {
    .dzs-v-close { display: none !important; }
    .dzs-h-close { display: inline-flex; }
    .dzs-viewer .dzs-head { padding-right: 0; }
}
.dzs-head .dzs-ibtn, .dzs-bottom .dzs-ibtn { vertical-align: middle; }
.dzs-ibtn svg { display: block; margin: auto; }
.dzs-bottom { align-items: center; }
.dzs-bottom > * { align-self: center; }

.dzs-h-music {
    display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0 40px; max-width: calc(100% - 50px);
    font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden;
}
.dzs-h-music-ico { display: inline-flex; width: 13px; height: 13px; flex: 0 0 auto; }
.dzs-h-music-ico svg { width: 100%; height: 100%; }
.dzs-h-music-txt { overflow: hidden; text-overflow: ellipsis; }

.dzs-l-place, .dzs-l-mention {
    display: inline-flex; align-items: center; gap: .35em; font-size: calc(var(--s) * 100cqw); font-weight: 800;
    padding: .45em .85em; border-radius: 99em; text-decoration: none !important; box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
    max-width: 82cqw; overflow: hidden; text-overflow: ellipsis; pointer-events: auto;
}
.dzs-l-place { background: #fff; color: #7a2cff !important; }
.dzs-l-place .dzs-l-ico { display: inline-flex; width: 1.05em; height: 1.05em; color: #7a2cff; }
.dzs-l-place .dzs-l-ico svg { width: 100%; height: 100%; }
.dzs-l-mention { background: linear-gradient(135deg, #00b4ff, #0088ff 55%, #0047e0); color: #fff !important; }
.dzs-l-photo { width: calc(var(--s) * 100cqw); aspect-ratio: var(--ar, 1); background: #fff; padding: calc(var(--s) * 3cqw); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); border-radius: 4px; }
.dzs-l-photo img { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; display: block; border-radius: 2px !important; pointer-events: none; }
.dzs-layers .dzs-l-place:hover, .dzs-layers .dzs-l-mention:hover { filter: brightness(.96); }

.dzs-noprev { display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.5; background: #111; }

/* sticker tray */
.dzs-stk-wrap { display: flex; flex-direction: column; min-height: 0; padding: 0 12px 12px; gap: 10px; }
.dzs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dzs-tile {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; cursor: pointer;
    border: 0; --dzsb: rgba(255, 255, 255, .07); --dzsbh: rgba(255, 255, 255, .14); --dzsf: #fff; font-size: 12.5px; font-weight: 700;
}
.dzs-tile-ico { display: inline-flex; width: 26px; height: 26px; }
.dzs-tile-ico svg { width: 100%; height: 100%; }
.dzs-tile-gif { width: auto; height: 26px; align-items: center; font-weight: 900; font-size: 13px; padding: 0 6px; border: 2px solid currentColor; border-radius: 6px; }
.t-place .dzs-tile-ico { color: #b388ff; } .t-mention .dzs-tile-ico { color: #4fc3ff; } .t-link .dzs-tile-ico { color: #69a7ff; }
.t-photo .dzs-tile-ico { color: #ffb74d; } .t-music .dzs-tile-ico { color: #ff6b9a; } .t-gif .dzs-tile-ico { color: #7ee787; }
.dzs-emoji-box { display: flex; flex-direction: column; min-height: 0; gap: 6px; }
.dzs-emoji-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 4px; }
.dzs-emoji-tab { flex: 0 0 auto; width: 36px; height: 34px; border: 0; border-radius: 8px; cursor: pointer; font-size: 19px; line-height: 1; --dzsbh: rgba(255, 255, 255, .1); opacity: .6; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.dzs-emoji-tab.is-on { opacity: 1; --dzsb: rgba(0, 136, 255, .25); --dzsbh: rgba(0, 136, 255, .3); }
.dzs-stk-wrap > * { flex-shrink: 0; }
.dzs-emoji-box { flex-shrink: 0; }
/* one scroll area for the whole tray; the category bar sticks to its top */
.dzs-emoji-box .dzs-emoji-tabs { position: sticky; top: 0; z-index: 1; background: #1c1c1e; flex: 0 0 auto; min-height: 40px; padding-top: 2px; }
.dzs-emoji-box .dzs-emoji-grid { flex: 0 0 auto; max-height: none; padding: 2px 0 4px; overflow: visible; }
.dzs-emoji-box .dzs-emoji { font-size: 28px; padding: 7px 0; }
.dzs-csheet .dzs-stk-wrap, .dzs-csheet .dzs-search-wrap { overflow-y: auto; touch-action: pan-y; }

/* search lists (Místo, Zmínka, Hudba) */
.dzs-search-wrap { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; min-height: 0; }
.dzs-pick-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; max-height: 52vh; touch-action: pan-y; }
.dzs-pick-row {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; cursor: pointer;
    border: 0; --dzsbh: rgba(255, 255, 255, .08); --dzsf: #fff;
}
.dzs-pick-ico { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; flex: 0 0 auto; background: rgba(255, 255, 255, .1); }
.dzs-pick-ico svg { width: 18px; height: 18px; }
.dzs-pick-ava { width: 38px !important; height: 38px !important; border-radius: 50% !important; object-fit: cover; flex: 0 0 auto; margin: 0 !important; }
.dzs-pick-txt { display: flex; flex-direction: column; min-width: 0; gap: 1px; flex: 1; text-align: left; }
.dzs-pick-txt strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dzs-pick-txt small { font-size: 12px; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dzs-music-row { cursor: default; padding: 6px 8px; }
.dzs-music-pick { border: 0; padding: 4px 6px; border-radius: 8px; cursor: pointer; --dzsf: #fff; --dzsbh: rgba(255, 255, 255, .08); }
.dzs-music-credit { font-size: 11px !important; opacity: .45 !important; }
.dzs-music-prev { --dzsb: rgba(255, 255, 255, .1); --dzsbh: rgba(255, 255, 255, .2); }

.dzs-clip { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; }
.dzs-clip-head { display: flex; align-items: center; gap: 12px; }
.dzs-clip-range { width: 100%; accent-color: var(--dzs-blue); }
.dzs-clip-label { font-size: 13px; opacity: .75; text-align: center; }
.dzs-clip .dzs-done { align-self: flex-end; }

.dzs-c-music {
    position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 4px;
    max-width: 92%; padding: 3px 4px 3px 4px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 700;
}
.dzs-c-music .dzs-ibtn { width: 30px; height: 30px; }
.dzs-c-music .dzs-ibtn svg { width: 16px; height: 16px; }
.dzs-c-music-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }

/* ------------------------------------------------- 1.8 */
/* FluentCommunity toasts (z-index 9999999999) would cover an open story or the editor */
html.dzs-lock:not(.dzs-peek-on) .el-notification { visibility: hidden !important; pointer-events: none !important; }
/* FC member sheet (mobile peek) opens above the paused story */
html.dzs-peek-on .el-overlay:has(.fcom_profile_peek) { z-index: 2147483100 !important; }

/* composer: audience picker + publish button */
.dzs-c-bottom { justify-content: space-between; }
.dzs-publish { margin-left: auto; line-height: 1; }
.dzs-publish > span { display: inline-flex; align-items: center; line-height: 1; }
.dzs-publish-ico svg { display: block; width: 18px; height: 18px; transform: translateY(1px); }
.dzs-privacy {
    display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 52%; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px;
    padding: 9px 12px 9px 11px; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1;
    --dzsb: rgba(255, 255, 255, .08); --dzsbh: rgba(255, 255, 255, .15); --dzsf: #fff; --dzsbc: rgba(255, 255, 255, .3);
}
.dzs-privacy > span { display: inline-flex; align-items: center; }
.dzs-priv-ico, .dzs-priv-chev { flex: 0 0 auto; width: 18px; height: 18px; }
.dzs-priv-chev { width: 16px; height: 16px; opacity: .7; }
.dzs-priv-ico svg, .dzs-priv-chev svg { width: 100%; height: 100%; display: block; }
.dzs-priv-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block !important; }
.dzs-composer.is-busy .dzs-privacy { display: none; }
.dzs-priv-list { display: flex; flex-direction: column; gap: 6px; padding: 2px 12px 16px; }
.dzs-priv-opt {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 12px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .1); --dzsb: rgba(255, 255, 255, .04); --dzsbh: rgba(255, 255, 255, .09); --dzsf: #fff; --dzsbc: rgba(255, 255, 255, .25);
}
.dzs-priv-opt.is-on { --dzsb: rgba(0, 136, 255, .18); --dzsbh: rgba(0, 136, 255, .24); border-color: var(--dzs-blue); }
.dzs-priv-opt-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.dzs-priv-opt.is-on .dzs-priv-opt-ico { background: var(--dzs-blue); }
.dzs-priv-opt-ico svg { width: 20px; height: 20px; }
.dzs-priv-opt-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dzs-priv-opt-txt strong { font-size: 15px; }
.dzs-priv-opt-txt small { font-size: 12.5px; opacity: .7; line-height: 1.35; }
.dzs-priv-opt-check { flex: 0 0 auto; width: 22px; height: 22px; color: var(--dzs-blue); }
.dzs-priv-opt-check svg { width: 100%; height: 100%; }
@media (max-width: 380px) { .dzs-priv-txt { max-width: 92px; } .dzs-publish { padding: 12px 18px; } }
/* no double-tap gesture detection on controls → every tap is a click right away (fast taps after dragging a sticker) */
.dzs-tray button, .dzs-viewer button, .dzs-composer button, .dzs-viewer a, .dzs-composer a { touch-action: manipulation; }

/* composer safe zones: top = name, time and buttons in the viewer, bottom = reply field / reactions */
.dzs-safe {
    position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none; display: flex; justify-content: center; padding: 6px 10px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .09) 0 6px, rgba(255, 255, 255, 0) 6px 14px), rgba(0, 0, 0, .16);
    opacity: .7; transition: opacity .15s, background-color .15s, border-color .15s;
}
.dzs-safe-top { top: 0; align-items: flex-end; border-bottom: 1px dashed rgba(255, 255, 255, .45); }
.dzs-safe-bottom { bottom: 0; align-items: flex-start; border-top: 1px dashed rgba(255, 255, 255, .45); }
.dzs-safe span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px rgba(0, 0, 0, .55); white-space: nowrap; }
.dzs-stage.is-dragging .dzs-safe { opacity: 1; }
.dzs-safe.is-hit { background-color: rgba(255, 59, 48, .3); border-color: #ff6b61; opacity: 1; }
.dzs-layer.is-snap { transition: left .22s cubic-bezier(.2, .8, .3, 1), top .22s cubic-bezier(.2, .8, .3, 1); }
@media (prefers-reduced-motion: reduce) { .dzs-layer.is-snap { transition: none; } }
.dzs-stage.is-dragging .dzs-safe-bottom span { opacity: 0; }

/* centre guides while dragging */
.dzs-guide { position: absolute; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .12s; background: #0088ff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 0 6px rgba(0, 136, 255, .7); }
.dzs-guide-v { top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px; }
.dzs-guide-h { left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; }
.dzs-guide.is-on { opacity: .55; }
.dzs-guide.is-snap { opacity: 1; }
.dzs-guide-v.is-snap { width: 2px; margin-left: -1px; }
.dzs-guide-h.is-snap { height: 2px; margin-top: -1px; }

/* "+" on own profile avatar */
.user_header .object_avatar { position: relative; }
button.dzs-profile-plus {
    position: absolute; left: 6%; bottom: 6%; z-index: 3; width: 30px; height: 30px; box-sizing: border-box; padding: 0; margin: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1;
    /* same rim as FluentCommunity's camera button (identical in light and dark mode) */
    border: 1px solid rgba(255, 255, 255, .6) !important; background: #0088ff !important; color: #fff !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: transform .15s;
}
button.dzs-profile-plus:hover, button.dzs-profile-plus:focus-visible { transform: scale(1.1); background: #0a7ae6 !important; color: #fff !important; }
button.dzs-profile-plus svg { width: 16px; height: 16px; display: block; }

/* ------------------------------------------------- 1.9 freehand drawing */
.dzs-l-draw { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; pointer-events: none; z-index: 1; }
.dzs-layers { z-index: 2; }
.dzs-draw-surface { position: absolute; inset: 0; z-index: 7; touch-action: none; cursor: crosshair; }
.dzs-drawui { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; pointer-events: none; }
.dzs-drawui > * { pointer-events: auto; }
.dzs-drawui-mid { flex: 1; display: flex; align-items: center; min-height: 0; padding: 0 8px; pointer-events: none; position: relative; }
.dzs-drawui-mid .dzs-size-wrap { pointer-events: auto; }
.dzs-drawui-top { display: flex; align-items: center; gap: 6px; padding: 10px; background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
.dzs-drawui-bottom { padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .5)); }
.dzs-drawui.is-busy .dzs-drawui-top, .dzs-drawui.is-busy .dzs-drawui-bottom, .dzs-drawui.is-busy .dzs-size-wrap { opacity: 0; pointer-events: none; transition: opacity .15s; }
.dzs-drawui-top, .dzs-drawui-bottom, .dzs-size-wrap { transition: opacity .2s; }
.dzs-draw-tools { display: flex; justify-content: center; gap: 10px; }
.dzs-draw-tool {
    width: 44px; height: 44px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    --dzsb: rgba(0, 0, 0, .45); --dzsbh: rgba(0, 0, 0, .6); --dzsf: #fff; border: 2px solid transparent;
}
.dzs-draw-tool svg { width: 22px; height: 22px; }
.dzs-draw-tool.is-on { --dzsb: #fff; --dzsbh: #fff; --dzsf: #111; --dzsfh: #111; }
.dzs-draw-colors.is-off { opacity: .35; }
.dzs-draw-undo:disabled { opacity: .35; }
.dzs-draw-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s; pointer-events: none; }
.dzs-draw-dot.is-show { opacity: 1; }
.dzs-draw-dot.is-eraser { border-style: dashed; }
.dzs-stage.is-drawmode .dzs-layers { opacity: .55; }
.dzs-stage.is-drawmode .dzs-music-chip, .dzs-stage.is-drawmode .dzs-text-prompt { visibility: hidden; }

/* ------------------------------------------------- 1.9 transitions */
.dzs-viewer.is-cube { perspective: var(--dzs-persp, 1200px); }
.dzs-viewer.is-cube .dzs-v-nav { opacity: 0; }
.dzs-fx-face { z-index: 1; pointer-events: none; backface-visibility: hidden; transform-origin: 50% 50%; }
.dzs-viewer.is-cube .dzs-stage { backface-visibility: hidden; transform-origin: 50% 50%; }

/* tray: first render – items arrive one after another from the left */
.dzs-scroller.is-intro > .dzs-item { animation: dzs-tray-in .36s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes dzs-tray-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
/* just watched: the blue ring fades to grey */
.dzs-ring.was-new::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: var(--dzs-ring); pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    filter: drop-shadow(0 0 5px rgba(0, 136, 255, .55));
    animation: dzs-seen-fade .8s ease calc(.2s + var(--fd, 0ms)) forwards;
}
@keyframes dzs-seen-fade { to { opacity: 0; filter: none; } }
.dzs-card.was-new .dzs-card-ava { animation: dzs-card-seen .8s ease calc(.2s + var(--fd, 0ms)) backwards; }
@keyframes dzs-card-seen { from { background: var(--dzs-blue); box-shadow: 0 0 0 2px rgba(0, 136, 255, .4); } }
/* just posted: own circle "pops" and the blue ring draws itself around it */
@property --dzs-draw { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
.dzs-ring.is-posted { animation: dzs-own-pop .5s cubic-bezier(.3, 1.6, .5, 1) var(--fd, 0ms) both; }
.dzs-ring.is-posted::before {
    -webkit-mask: conic-gradient(#000 var(--dzs-draw), transparent 0), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: source-in, xor;
    mask: conic-gradient(#000 var(--dzs-draw), transparent 0), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: intersect, exclude;
    animation: dzs-draw-ring .75s cubic-bezier(.5, 0, .2, 1) calc(.1s + var(--fd, 0ms)) both;
}
@keyframes dzs-own-pop { 0% { transform: scale(1); } 35% { transform: scale(.86); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes dzs-draw-ring { from { --dzs-draw: 0deg; } to { --dzs-draw: 360deg; } }
.dzs-card.is-posted { animation: dzs-own-pop .5s cubic-bezier(.3, 1.6, .5, 1) var(--fd, 0ms) both; }
/* background upload: progress ring around your avatar */
.dzs-ring.is-uploading::before { display: none; }
.dzs-up {
    position: absolute; inset: 0; border-radius: 50%; padding: 3px; pointer-events: none;
    background: conic-gradient(#0088ff var(--p, 0deg), rgba(140, 150, 165, .35) 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    transition: --p .3s;
}
@property --p { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.dzs-ring.is-uploading .dzs-circle { opacity: .75; }
.dzs-up-track { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; z-index: 3; }
.dzs-up-bar { display: block; height: 100%; background: #0088ff; transition: width .3s; }
.dzs-composer.is-bg { display: none !important; }

/* trash: grows under the finger, the sticker shrinks; dropped stickers vanish with a puff */
.dzs-trash { transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), background .15s, border-color .15s; }
.dzs-trash.is-over { transform: scale(1.3) !important; }
.dzs-layers.is-edit .dzs-layer.is-trash { opacity: .5; scale: .55; transition: scale .15s, opacity .15s; }
@media (prefers-reduced-motion: reduce) {
    .dzs-scroller.is-intro > .dzs-item, .dzs-ring.was-new::after, .dzs-ring.is-posted, .dzs-ring.is-posted::before, .dzs-card.is-posted { animation: none !important; }
}
.dzs-trash.is-gulp { animation: dzs-gulp .3s ease; }
@keyframes dzs-gulp { 0% { transform: scale(1.3); } 50% { transform: scale(.9); } 100% { transform: scale(1); } }
.dzs-stage.is-drawmode .dzs-safe span { opacity: 0; }

/* editor closes with the same soft fade it opens with */
.dzs-composer.is-closing { animation: dzs-out .17s ease-in forwards; pointer-events: none; }
@keyframes dzs-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.98); } }
/* viewer closes with a soft fade (it keeps catching taps meanwhile) */
.dzs-viewer.is-closing { animation: dzs-out .18s ease-in forwards; }
.dzs-peek-face { overflow: hidden; border-radius: inherit; }
.dzs-peek-head { position: absolute; left: 12px; top: calc(22px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 8px; color: #fff; font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.dzs-peek-head img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
/* cards: upload progress as a ring in place of the "+" */
/* uploading: the blue "+" stays, an arc spins around it */
.dzs-card-plus.is-uploading { overflow: visible; }
.dzs-spin {
    position: absolute; inset: -8px; border-radius: 50%; padding: 3px; pointer-events: none;
    background: conic-gradient(from 0deg, rgba(0, 136, 255, 0) 0deg, rgba(0, 136, 255, .15) 90deg, #0088ff 300deg, rgba(0, 136, 255, 0) 301deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: dzs-spin 1s linear infinite;
}
@keyframes dzs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dzs-spin { animation-duration: 3s; } }
.dzs-card-create:has(.dzs-card-plus.is-uploading) .dzs-card-me img { filter: brightness(.7); }

/* ------------------------------------------------- 1.9.7 resize/rotate handle + photo framing */
.dzs-handle { display: none; }
.dzs-layers.is-edit .dzs-layer.is-selected .dzs-handle {
    display: block; position: absolute; right: -19px; bottom: -19px; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box;
    border: 2px solid #0088ff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: nwse-resize; touch-action: none; pointer-events: auto; z-index: 2;
    font-size: 0; line-height: 0; padding: 0; margin: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 5h5v5M10 19H5v-5M19 5l-6 6M5 19l6-6' fill='none' stroke='%230088ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (pointer: coarse) { .dzs-layers.is-edit .dzs-layer.is-selected .dzs-handle { width: 30px; height: 30px; right: -21px; bottom: -21px; background-size: 16px; } }
.dzs-stage .dzs-media-el { transform-origin: 50% 50%; }
.dzs-c-stage.is-framing .dzs-media-el { will-change: transform; }
.dzs-card-plus.is-uploading ~ .dzs-card-create-label { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* photo/video edges flush with the story's edges */
.dzs-guide-edge { opacity: 0; }
.dzs-guide-l, .dzs-guide-r { top: 0; bottom: 0; width: 3px; }
.dzs-guide-l { left: 0; } .dzs-guide-r { right: 0; }
.dzs-guide-t, .dzs-guide-b { left: 0; right: 0; height: 3px; }
.dzs-guide-t { top: 0; } .dzs-guide-b { bottom: 0; }

/* ------------------------------------------------- 1.10 follow the author (bottom bar, between like and share) */
.dzs-follow svg { width: 23px; height: 23px; display: block; }
.dzs-follow.is-busy { opacity: .5; }
.dzs-follow { transition: opacity .25s, transform .25s; }
.dzs-follow.is-gone { opacity: 0; transform: scale(.6); }
.dzs-toast { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.dzs-toast-ico { display: inline-flex; width: 18px; height: 18px; color: #4cd964; }
.dzs-toast-ico svg { width: 100%; height: 100%; display: block; }
