/*!
 * ZENIT — customer theme for HESK
 * One file, no build step. Light + dark, fluid type, glass header, bento layout.
 * Accent colour = Admin → Look & Feel → "primary" (falls back to the violet below).
 */

/* ───────── 1. Tokens ───────── */
:root {
    color-scheme: light dark;
    --z-accent: var(--primary, #6247f5);
    --z-accent-2: #00bfb3;
    --z-accent-ink: #fff;
    --z-accent-soft: color-mix(in srgb, var(--z-accent) 11%, transparent);
    --z-accent-line: color-mix(in srgb, var(--z-accent) 38%, transparent);
    --z-grad: linear-gradient(135deg, var(--z-accent), color-mix(in srgb, var(--z-accent) 55%, var(--z-accent-2)));

    --z-bg: #f5f6fb;
    --z-surface: #ffffff;
    --z-surface-2: #eef0f8;
    --z-text: #0e1224;
    --z-muted: #596079;
    --z-line: rgba(14, 18, 36, .10);
    --z-line-strong: rgba(14, 18, 36, .18);
    --z-glass: rgba(255, 255, 255, .72);
    --z-input: #fff;

    --z-ok: #0f9d6b;   --z-ok-bg: color-mix(in srgb, var(--z-ok) 11%, var(--z-surface));
    --z-info: #2f6df6; --z-info-bg: color-mix(in srgb, var(--z-info) 10%, var(--z-surface));
    --z-warn: #c77700; --z-warn-bg: color-mix(in srgb, var(--z-warn) 12%, var(--z-surface));
    --z-err: #d92d4b;  --z-err-bg: color-mix(in srgb, var(--z-err) 10%, var(--z-surface));

    --z-shadow-1: 0 1px 2px rgba(14, 18, 36, .06), 0 1px 1px rgba(14, 18, 36, .04);
    --z-shadow-2: 0 10px 30px -12px rgba(14, 18, 36, .22), 0 2px 6px rgba(14, 18, 36, .05);
    --z-shadow-3: 0 30px 60px -24px rgba(14, 18, 36, .35);
    --z-glow: 0 0 0 4px color-mix(in srgb, var(--z-accent) 24%, transparent);

    --z-r-sm: 10px; --z-r-md: 14px; --z-r-lg: 22px; --z-r-xl: 30px;
    --z-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --z-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
    --z-ease: cubic-bezier(.2, .8, .2, 1);
    --z-w: 1120px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --z-bg: #080a14; --z-surface: #12152a; --z-surface-2: #1a1e38;
        --z-text: #eef0fb; --z-muted: #9aa2c0;
        --z-line: rgba(255, 255, 255, .09); --z-line-strong: rgba(255, 255, 255, .17);
        --z-glass: rgba(12, 14, 28, .66); --z-input: #0d1022;
        --z-accent: var(--primary, #8b78ff);
        --z-ok: #3ddc9a; --z-info: #6c9bff; --z-warn: #ffb54a; --z-err: #ff6b84;
        --z-shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
        --z-shadow-2: 0 14px 34px -14px rgba(0, 0, 0, .7);
        --z-shadow-3: 0 30px 60px -24px rgba(0, 0, 0, .8);
    }
}
:root[data-theme="dark"] {
    --z-bg: #080a14; --z-surface: #12152a; --z-surface-2: #1a1e38;
    --z-text: #eef0fb; --z-muted: #9aa2c0;
    --z-line: rgba(255, 255, 255, .09); --z-line-strong: rgba(255, 255, 255, .17);
    --z-glass: rgba(12, 14, 28, .66); --z-input: #0d1022;
    --z-accent: var(--primary, #8b78ff);
    --z-ok: #3ddc9a; --z-info: #6c9bff; --z-warn: #ffb54a; --z-err: #ff6b84;
    --z-shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --z-shadow-2: 0 14px 34px -14px rgba(0, 0, 0, .7);
    --z-shadow-3: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@view-transition { navigation: auto; }

/* ───────── 2. Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    font: 400 16px/1.6 var(--z-font);
    color: var(--z-text); background: var(--z-bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    position: relative; overflow-x: hidden;
}
/* soft aurora behind the page */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60rem 32rem at 12% -8%, color-mix(in srgb, var(--z-accent) 20%, transparent), transparent 70%),
        radial-gradient(48rem 28rem at 92% -4%, color-mix(in srgb, var(--z-accent-2) 16%, transparent), transparent 70%);
}
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--z-accent); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--z-line); margin: 24px 0; }
code, pre, kbd, samp { font-family: var(--z-mono); font-size: .9em; }
pre { background: var(--z-surface-2); border: 1px solid var(--z-line); border-radius: var(--z-r-sm); padding: 14px 16px; overflow: auto; }
code { background: var(--z-surface-2); padding: .1em .4em; border-radius: 6px; }
pre code { background: none; padding: 0; }
::selection { background: color-mix(in srgb, var(--z-accent) 30%, transparent); }
:focus-visible { outline: 2px solid var(--z-accent); outline-offset: 2px; border-radius: 6px; }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; vertical-align: middle; }
[hidden] { display: none !important; }

/* utilities used by HESK templates */
.link { color: var(--z-accent); font-weight: 600; }
.lightgrey, .subtext { color: var(--z-muted); }
.ml-1 { margin-left: 8px; } .ml5 { margin-left: 6px; }
.text-center, .center { text-align: center; }
.text-bold, .font-weight-bold { font-weight: 700; }
.text-success, .green { color: var(--z-ok); } .text-danger, .red { color: var(--z-err); } .orange { color: var(--z-warn); }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.naked { background: none; border: 0; padding: 0; }
.no-click { pointer-events: none; }
.flex, .d-flex { display: flex; } .grid { display: grid; }
.left { float: none; text-align: left; } .right { text-align: right; }
.divider { height: 1px; background: var(--z-line); margin: 24px 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skiplink { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--z-accent); color: #fff; border-radius: var(--z-r-sm); transition: top .2s; }
.skiplink:focus { top: 12px; }
.noscroll { overflow: hidden; }
.timeago, time { white-space: nowrap; }

/* ───────── 3. Layout ───────── */
.wrapper { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1; display: flex; flex-direction: column; width: 100%; }
.contr { width: 100%; max-width: var(--z-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.main__content { width: 100%; padding-bottom: 56px; }
.main__content .main__content, .notice-flash { padding: 0; }
.wider .contr { max-width: 1280px; }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--z-ease), transform .6s var(--z-ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ───────── 4. Header ───────── */
.z-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--z-glass);
    -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.z-header.is-scrolled { border-bottom-color: var(--z-line); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .25); }
.header__inner { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.z-brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; color: var(--z-text); }
.z-brand:hover { text-decoration: none; }
.z-brand__mark { display: grid; place-items: center; filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--z-accent) 40%, transparent)); transition: transform .3s var(--z-ease); }
.z-brand:hover .z-brand__mark { transform: rotate(-6deg) scale(1.06); }
.z-brand__name { font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.header__nav { display: flex; align-items: center; gap: 6px; }
.header__nav .nav-item a {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: var(--z-text); transition: background .15s, color .15s;
}
.header__nav .nav-item a:hover { background: var(--z-surface-2); text-decoration: none; }
.header__nav .nav-item:last-child:not(:first-child) a { background: var(--z-grad); color: #fff; box-shadow: 0 8px 20px -8px var(--z-accent); }
.header__nav .nav-item:last-child:not(:first-child) a:hover { filter: brightness(1.08); }
.z-theme-toggle {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
    color: var(--z-text); background: transparent; border: 1px solid var(--z-line); transition: background .15s, transform .3s var(--z-ease);
}
.z-theme-toggle:hover { background: var(--z-surface-2); transform: rotate(18deg); }
.z-ico-sun { display: none; }
:root[data-theme="dark"] .z-ico-sun { display: block; } :root[data-theme="dark"] .z-ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .z-ico-sun { display: block; }
    :root:not([data-theme="light"]) .z-ico-moon { display: none; }
}
/* language select (HESK custom select) */
.header__lang { position: relative; }
.header__lang form { margin: 0; }
.dropdown-select { position: relative; }
.dropdown-select > select { display: none; }
.select-selected {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 34px 0 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--z-line); background: var(--z-surface); font-size: 14px; font-weight: 600; position: relative; white-space: nowrap;
}
.select-selected::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border: solid var(--z-muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.select-selected.select-arrow-active::after { transform: translateY(-20%) rotate(-135deg); }
.select-items {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 100%; z-index: 60; padding: 6px; max-height: 320px; overflow: auto;
    background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-md); box-shadow: var(--z-shadow-2);
}
.select-items div { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.select-items div:hover { background: var(--z-accent-soft); }
.select-items .same-as-selected { background: var(--z-accent-soft); color: var(--z-accent); font-weight: 700; }
.select-hide { display: none !important; }
/* profile menu */
.profile__user { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--z-line); background: var(--z-surface); }
.user__ava { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--z-grad); color: #fff; font-weight: 800; font-size: 14px; }
.user__name p { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; max-width: 150px; }
.user__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user__name .icon { width: 14px; height: 14px; color: var(--z-muted); transition: transform .2s; }
.profile__user.active .user__name .icon { transform: rotate(180deg); }
.profile__menu {
    display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 240px; padding: 8px; z-index: 60;
    background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-md); box-shadow: var(--z-shadow-3); cursor: default;
}
.profile--view { margin: 0 0 4px; }
.profile__menu .btn { width: 100%; justify-content: flex-start; background: transparent; color: var(--z-text); border: 0; box-shadow: none; height: 42px; border-radius: 10px; font-weight: 600; }
.profile__menu .btn:hover { background: var(--z-accent-soft); color: var(--z-accent); transform: none; }
.profile--logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--z-line); }
.profile--logout a { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 10px; color: var(--z-err); font-weight: 600; }
.profile--logout a:hover { background: var(--z-err-bg); text-decoration: none; }

/* ───────── 5. Hero · bento ───────── */
.z-hero { padding: clamp(36px, 7vw, 84px) 0 clamp(20px, 3vw, 36px); text-align: center; }
.z-hero--compact { padding-bottom: 8px; }
.z-hero__inner { max-width: 760px; margin: 0 auto; }
.z-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--z-accent);
    background: var(--z-accent-soft); border: 1px solid var(--z-accent-line);
}
.z-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--z-accent-2); box-shadow: 0 0 0 0 var(--z-accent-2); animation: z-pulse 2.4s infinite; }
@keyframes z-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--z-accent-2) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.z-hero__title, .search__title {
    font-size: clamp(32px, 6vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -.045em;
    background: linear-gradient(180deg, var(--z-text) 30%, color-mix(in srgb, var(--z-text) 62%, var(--z-accent)));
    -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance;
}
.z-hero__messages:empty { display: none; }
.z-hero__messages { max-width: 760px; margin: 0 auto 20px; text-align: left; }

.z-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 20px 0 8px; }
.navlink {
    position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 24px 56px 24px 24px; min-height: 132px;
    color: var(--z-text); background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-lg);
    box-shadow: var(--z-shadow-1); overflow: hidden; isolation: isolate;
    transition: transform .35s var(--z-ease), box-shadow .35s var(--z-ease), border-color .2s;
}
.navlink::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(24rem 12rem at 100% 0, var(--z-accent-soft), transparent 70%); }
.navlink::after {
    content: ""; position: absolute; right: 22px; top: 24px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--z-surface-2) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
    transition: transform .35s var(--z-ease), background-color .2s;
}
.navlink:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--z-accent-line); box-shadow: var(--z-shadow-2); }
.navlink:hover::before { opacity: 1; }
.navlink:hover::after { transform: rotate(45deg); background-color: var(--z-accent-soft); }
.navlink__title { font-size: 19px; letter-spacing: -.025em; margin: 2px 0 6px; }
.navlink__descr { font-size: 14.5px; color: var(--z-muted); line-height: 1.5; }
.navlink--primary { color: #fff; border-color: transparent; background: var(--z-grad); box-shadow: 0 24px 50px -22px var(--z-accent); }
.navlink--primary::before { background: radial-gradient(22rem 14rem at 90% -10%, rgba(255, 255, 255, .28), transparent 70%); opacity: 1; }
.navlink--primary .navlink__descr { color: rgba(255, 255, 255, .86); }
.navlink--primary .icon-in-circle { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.navlink--primary::after { background-color: rgba(255, 255, 255, .22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.z-bento--cats .navlink { align-items: center; min-height: 104px; }
.z-bento--cats .navlink::after { top: 50%; margin-top: -14px; }
.icon-in-circle {
    flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px;
    color: var(--z-accent); background: var(--z-accent-soft); box-shadow: inset 0 0 0 1px var(--z-accent-line);
}
.icon-in-circle .icon { width: 24px; height: 24px; }
.z-cat-form { max-width: 440px; margin: 28px auto; }
.z-cat-form__field { margin: 0 0 18px; }

/* ───────── 6. Search ───────── */
.search__form { position: relative; max-width: 680px; margin: 30px auto 0; }
.search__form .form-group {
    display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 6px 6px 8px; position: relative;
    background: var(--z-surface); border: 1px solid var(--z-line-strong); border-radius: 999px;
    box-shadow: var(--z-shadow-2); transition: box-shadow .2s, border-color .2s;
}
.search__form .form-group:focus-within { border-color: var(--z-accent); box-shadow: var(--z-shadow-2), var(--z-glow); }
.search__submit { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; color: var(--z-muted); cursor: pointer; flex: none; }
.search__submit .icon { width: 22px; height: 22px; }
#kb_search, .search__form input.form-control {
    flex: 1 1 auto; width: auto !important; min-width: 0; height: 46px; padding: 0 6px; border: 0 !important;
    background: transparent !important; box-shadow: none !important; font-size: 17px; border-radius: 0;
}
#search-button { flex: none; width: auto !important; margin: 0 !important; height: 46px !important; padding: 0 26px; }
.kb-suggestions.boxed {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; display: none; text-align: left; padding: 8px;
    background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-lg); box-shadow: var(--z-shadow-3);
}
.type--list { margin: 0; }
.suggest-preview { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--z-r-md); color: var(--z-text); }
.suggest-preview:hover { background: var(--z-accent-soft); text-decoration: none; }
.suggest-preview .icon-in-circle { width: 40px; height: 40px; border-radius: 12px; }
.suggest-preview__title { margin: 0; font-weight: 700; font-size: 15px; }
.suggest-preview__text p:not(.suggest-preview__title) { margin: 2px 0 0; font-size: 13.5px; color: var(--z-muted); }
.no-articles-found { padding: 16px; color: var(--z-muted); text-align: center; }

/* ───────── 7. Buttons ───────── */
.btn, button.btn, input[type=submit].btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px;
    font: 700 15px/1 var(--z-font); letter-spacing: -.005em; color: var(--z-text); cursor: pointer; white-space: nowrap;
    background: var(--z-surface); border: 1px solid var(--z-line-strong); border-radius: 999px;
    transition: transform .2s var(--z-ease), box-shadow .2s, background .2s, border-color .2s, filter .2s;
}
.btn:hover { text-decoration: none; border-color: var(--z-accent-line); background: var(--z-accent-soft); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-full, button.btn-full {
    color: #fff; border-color: transparent; background: var(--z-grad);
    box-shadow: 0 10px 24px -10px var(--z-accent), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-full:hover { color: #fff; border-color: transparent; background: var(--z-grad); filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 16px 30px -12px var(--z-accent); }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn--blue-border, .btn-border { color: var(--z-accent); border-color: var(--z-accent-line); background: transparent; }
.btn-link { background: none; border: 0; color: var(--z-accent); padding: 0 8px; min-height: 0; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-action { width: 42px; padding: 0; }
.btn-refresh { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-toggler { display: none; width: 36px; min-height: 36px; padding: 0; }
.btn-full[ripple], [ripple] { position: relative; overflow: hidden; }
.ripple-effect, .rippleContainer * { pointer-events: none; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.form-footer .link { font-size: 14px; }
.article__footer { display: flex; justify-content: center; margin-top: 22px; }

/* ───────── 8. Forms ───────── */
.form-groups { display: grid; gap: 20px; }
.form-group, .param { position: relative; margin: 0 0 20px; }
.form-groups > .form-group { margin: 0; }
.label, .form-group > label, .form-group label.label, .param > label {
    display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--z-text); letter-spacing: -.005em;
}
.form-group.required > .label::after, label.required::after, .label.required::after { content: " *"; color: var(--z-err); }
.article-heading-tip .label.required::after { content: "*"; }
.form-control, input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], input[type=date], textarea, select.form-control {
    display: block; width: 100%; min-height: 50px; padding: 12px 16px; font: 400 16px/1.4 var(--z-font); color: var(--z-text);
    background: var(--z-input); border: 1px solid var(--z-line-strong); border-radius: var(--z-r-md); box-shadow: var(--z-shadow-1);
    transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
textarea, textarea.form-control { min-height: 170px; resize: vertical; line-height: 1.55; }
.form-control::placeholder, input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--z-muted) 70%, transparent); }
.form-control:hover, textarea:hover { border-color: color-mix(in srgb, var(--z-accent) 45%, var(--z-line-strong)); }
.form-control:focus, input:focus, textarea:focus { outline: none; border-color: var(--z-accent); box-shadow: var(--z-glow); }
select.form-control { padding-right: 42px; cursor: pointer; background: var(--z-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 14px no-repeat; }
.form-control.isError, .isError, .form-control.error, .invalid .form-control:invalid { border-color: var(--z-err); box-shadow: 0 0 0 4px color-mix(in srgb, var(--z-err) 16%, transparent); }
.form-control__error { display: none; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--z-err); }
.form-group.error .form-control__error, .isError ~ .form-control__error, .invalid .form-control:invalid ~ .form-control__error { display: block; }
.form-group.error .form-control { border-color: var(--z-err); }
.form-submit-ticket, .form-submit-ticket + * { }
.form-submit-ticket {
    max-width: 720px; margin: 0 auto 56px; padding: clamp(20px, 4vw, 40px);
    background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-xl); box-shadow: var(--z-shadow-2);
}
.article__heading--form, h1.article__heading--form {
    display: flex; align-items: center; justify-content: center; gap: 12px; margin: clamp(28px, 5vw, 56px) auto 10px;
    font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.04em; text-align: center;
}
.article__heading--form .icon-in-circle { width: 46px; height: 46px; }
.article-heading-tip { display: flex; justify-content: center; gap: 4px; margin: 0 auto 26px; font-size: 14px; color: var(--z-muted); }
.article-heading-tip .label { display: inline; margin: 0; }
/* login, register and other narrow forms */
.main__content > .contr > .form, .main__content > .contr > form.form {
    max-width: 520px; margin: 0 auto 40px; padding: clamp(20px, 4vw, 36px);
    background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-xl); box-shadow: var(--z-shadow-2);
}
.form-groups.centered { max-width: 100%; }
.main__content > .contr > .form.form-submit-ticket { max-width: 720px; }
/* radios + checkboxes */
.radio-custom, .checkbox-custom { position: relative; margin: 8px 0; }
.radio-custom input, .checkbox-custom input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.radio-custom label, .checkbox-custom label { position: relative; display: inline-block; padding-left: 34px; margin: 0; min-height: 22px; font-size: 15px; font-weight: 500; cursor: pointer; line-height: 1.45; }
.radio-custom label::before, .checkbox-custom label::before {
    content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--z-input);
    border: 1.5px solid var(--z-line-strong); border-radius: 7px; transition: all .15s;
}
.radio-custom label::before { border-radius: 50%; }
.radio-custom input:checked + label::before { border-color: var(--z-accent); background: radial-gradient(circle, var(--z-accent) 0 38%, var(--z-input) 42%); }
.checkbox-custom input:checked + label::before { border-color: transparent; background-color: var(--z-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-position: center; background-size: 14px; background-repeat: no-repeat; }
.radio-custom input:focus-visible + label::before, .checkbox-custom input:focus-visible + label::before { box-shadow: var(--z-glow); }
.radio-list { display: grid; gap: 2px; }
/* captcha */
.captcha-block, .captcha-remind { margin-top: 8px; padding: 18px; background: var(--z-surface-2); border-radius: var(--z-r-md); }
.captcha-block h3 { font-size: 15px; margin-bottom: 12px; }
.captcha-block img { border-radius: 8px; }
.email-suggestion { margin-top: 6px; font-size: 13.5px; color: var(--z-warn); }
.input-group-append--icon { position: absolute; right: 8px; top: 38px; }
/* tooltips */
.tooltype { position: relative; display: inline-block; }
.tooltype__content { display: none; position: absolute; z-index: 40; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px; padding: 8px 12px; font-size: 13px; color: #fff; background: #11142a; border-radius: 8px; }
.tooltype:hover .tooltype__content { display: block; }
.ZebraTooltip, .Zebra_Tooltip { background: #11142a !important; color: #fff !important; border-radius: 8px !important; padding: 6px 10px !important; font: 500 13px var(--z-font) !important; }
/* date field + attachments */
.calendar { position: relative; }
.calendar--button, .calendar button { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid var(--z-line-strong); border-radius: var(--z-r-md); background: var(--z-input); color: var(--z-muted); cursor: pointer; }
.calendar--button.active, .calendar button.active { color: var(--z-accent); border-color: var(--z-accent); }
.calendar--value { display: none; margin-left: 10px; font-weight: 600; }
.dropzone { min-height: 120px; padding: 22px; text-align: center; color: var(--z-muted); background: var(--z-surface-2); border: 2px dashed var(--z-line-strong) !important; border-radius: var(--z-r-md); transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.dz-drag-hover { border-color: var(--z-accent) !important; background: var(--z-accent-soft); }
.dropzone .dz-message { margin: 1.4em 0; font-weight: 600; }
.dropzone .dz-preview .dz-image { border-radius: 12px; }
.dropzone .dz-preview.dz-error .dz-error-message { background: var(--z-err); }
/* selectize */
.selectize-control { position: relative; }
.selectize-input {
    position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 50px; padding: 8px 40px 8px 16px; cursor: text; overflow: hidden;
    color: var(--z-text); background: var(--z-input); border: 1px solid var(--z-line-strong); border-radius: var(--z-r-md); box-shadow: var(--z-shadow-1);
    transition: border-color .15s, box-shadow .15s;
}
.selectize-input > * { display: inline-block; }
.selectize-input > input { flex: 1 0 4px; min-width: 4px; max-width: 100%; padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: auto !important; border: 0 !important; background: none !important; box-shadow: none !important; font: inherit; color: inherit; }
.selectize-input.focus, .selectize-input.input-active { border-color: var(--z-accent); box-shadow: var(--z-glow); }
.selectize-control.single .selectize-input { cursor: pointer; }
.selectize-control.single .selectize-input::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--z-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.selectize-control.single .selectize-input.dropdown-active::after { transform: translateY(5px) rotate(-135deg); }
.selectize-control.single .selectize-input .item { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selectize-control.multi .selectize-input .item { padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--z-accent); background: var(--z-accent-soft); }
.selectize-input.input-hidden > input { opacity: 0; position: absolute; left: -10000px; }
.selectize-dropdown {
    position: absolute; z-index: 80; margin-top: 8px; padding: 6px; text-align: left;
    background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-md); box-shadow: var(--z-shadow-3);
}
.selectize-dropdown-content { max-height: 280px; overflow-y: auto; }
.selectize-dropdown .option, .selectize-dropdown .optgroup-header, .selectize-dropdown .create, .selectize-dropdown .no-results { padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; }
.selectize-dropdown .active { background: var(--z-accent-soft); color: var(--z-accent); }
.selectize-dropdown .selected { font-weight: 700; }
.selectize-dropdown [data-selectable].option { cursor: pointer; }
.selectize-dropdown .optgroup-header { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--z-muted); cursor: default; }
.selectize-control.single .selectize-input.input-active { cursor: text; }

/* ───────── 9. Notifications ───────── */
.notification {
    position: relative; margin: 0 0 20px; padding: 16px 20px 16px 52px; border-radius: var(--z-r-md); font-size: 15px;
    color: var(--z-text); background: var(--z-surface); border: 1px solid var(--z-line);
}
.notification::before { content: "i"; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font: 800 13px/1 var(--z-font); color: #fff; background: var(--z-info); }
.notification p { margin: 0 0 .4em; } .notification p:last-child { margin-bottom: 0; }
.notification.blue { background: var(--z-info-bg); border-color: color-mix(in srgb, var(--z-info) 30%, transparent); }
.notification.green { background: var(--z-ok-bg); border-color: color-mix(in srgb, var(--z-ok) 32%, transparent); } .notification.green::before { content: "✓"; background: var(--z-ok); }
.notification.orange { background: var(--z-warn-bg); border-color: color-mix(in srgb, var(--z-warn) 34%, transparent); } .notification.orange::before { content: "!"; background: var(--z-warn); }
.notification.red { background: var(--z-err-bg); border-color: color-mix(in srgb, var(--z-err) 34%, transparent); } .notification.red::before { content: "✕"; background: var(--z-err); }
.notification.white::before { display: none; } .notification.white { padding-left: 20px; }
.notification a { font-weight: 700; text-decoration: underline; }
.notice-flash { margin: 0 auto; max-width: 100%; }

/* ───────── 10. Cards: articles, tabs, previews ───────── */
.article { margin: 28px 0; padding: clamp(14px, 2.5vw, 28px); background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-xl); box-shadow: var(--z-shadow-1); }
.article__heading { font-size: 24px; font-weight: 800; letter-spacing: -.035em; margin: 4px 4px 14px; }
.article__heading a { display: inline-flex; align-items: center; gap: 12px; color: var(--z-text); }
.article__heading a:hover { text-decoration: none; color: var(--z-accent); }
.tabbed__head { margin: 0 0 14px; }
.tabbed__head_tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--z-surface-2); border-radius: 999px; }
.tabbed__head_tabs li { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--z-muted); cursor: pointer; transition: all .2s; }
.tabbed__head_tabs li:hover { color: var(--z-text); }
.tabbed__head_tabs li.current { color: var(--z-text); background: var(--z-surface); box-shadow: var(--z-shadow-1); }
.tabbed__tabs_tab { display: none; }
.tabbed__tabs_tab.is-visible { display: block; animation: z-fade .35s var(--z-ease); }
@keyframes z-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.preview { display: flex; align-items: center; gap: 16px; padding: 16px; margin: 0 -4px; border-radius: var(--z-r-md); color: var(--z-text); transition: background .15s, transform .25s var(--z-ease); }
.preview:hover { background: var(--z-accent-soft); text-decoration: none; transform: translateX(4px); }
.preview + .preview { border-top: 1px solid var(--z-line); border-top-left-radius: 0; border-top-right-radius: 0; }
.preview__text { flex: 1; min-width: 0; }
.preview__title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 2px; }
.preview__text p { margin: 0 0 2px; font-size: 14px; }
.preview .navlink__descr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rate { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--z-muted); flex: none; }
.rate .icon-eye-close { width: 16px; height: 16px; margin-right: 4px; }
.star-rate { position: relative; display: inline-flex; color: color-mix(in srgb, var(--z-muted) 45%, transparent); }
.star-rate .icon { width: 16px; height: 16px; }
.star-rate .star-filled { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f5a524; white-space: nowrap; }
.star-rate .icon-star-stroke { width: 80px; height: 16px; }
.star-rate .star-filled .icon { width: 80px; height: 16px; }
.star-rate .icon-star-stroke, .star-rate .icon-star-filled { fill: currentColor; }
.block__head { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.h-3 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.help-search { margin-bottom: 20px; }
.page-my-tickets .help-search, .page-view-category .help-search { text-align: left; margin: 36px 0 18px; }
.content { margin: 20px 0; }
.kb--folder { display: flex; align-items: center; gap: 10px; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin: 0 0 24px; }
.topics__block { width: auto !important; margin: 0; padding: 22px; background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-lg); box-shadow: var(--z-shadow-1); transition: transform .3s var(--z-ease), box-shadow .3s; }
.topics__block:hover { transform: translateY(-3px); box-shadow: var(--z-shadow-2); }
.topics__title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 12px; }
.title-link { color: var(--z-text); } .title-link:hover { color: var(--z-accent); text-decoration: none; }
.topics__list li { padding: 8px 0; border-top: 1px solid var(--z-line); font-size: 15px; }
.topics__list li a { color: var(--z-muted); } .topics__list li a:hover { color: var(--z-accent); }
.topics__list li.text-bold a { color: var(--z-accent); }
.ticket--article, .article-content, .browser-default { overflow-wrap: anywhere; }
.browser-default img { border-radius: var(--z-r-sm); height: auto; }
.browser-default h1, .browser-default h2, .browser-default h3 { margin: 1.2em 0 .5em; }
.browser-default ul { list-style: disc; padding-left: 1.4em; } .browser-default ol { list-style: decimal; padding-left: 1.4em; }
.browser-default table { border-collapse: collapse; } .browser-default td, .browser-default th { border: 1px solid var(--z-line); padding: 6px 10px; }
.browser-default blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--z-accent); color: var(--z-muted); }

/* ───────── 11. Tickets: table · pager · detail ───────── */
.table-wrap { overflow-x: auto; margin: 0 0 20px; background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-lg); box-shadow: var(--z-shadow-1); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.table th { padding: 14px 18px; text-align: left; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--z-muted); background: var(--z-surface-2); white-space: nowrap; }
.table td { padding: 16px 18px; border-top: 1px solid var(--z-line); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--z-accent-soft); }
.table td a:not(.btn) { font-weight: 600; }
.sort { display: inline-flex; align-items: center; gap: 6px; }
.sort a { color: inherit; } .sort a:hover { color: var(--z-text); text-decoration: none; }
.handle { display: inline-block; width: 8px; height: 12px; position: relative; opacity: .45; }
.handle::before, .handle::after { content: ""; position: absolute; left: 0; border: 4px solid transparent; }
.handle::before { top: 0; border-bottom-color: currentColor; border-top: 0; } .handle::after { bottom: 0; border-top-color: currentColor; border-bottom: 0; }
th.asc .handle, th.desc .handle { opacity: 1; color: var(--z-accent); }
th.asc .handle::after, th.desc .handle::before { opacity: .2; }
.has-flex-item { display: table-cell; }
.priority { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--z-surface-2); }
.priority_img { width: 10px; height: 10px; border-radius: 50%; background-size: contain; background-repeat: no-repeat; }
.customer-count { margin-left: 6px; font-size: 12px; color: var(--z-muted); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 8px 0 0; }
.pagination__list { display: flex; gap: 4px; }
.pagination__link { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; font-weight: 700; color: var(--z-text); }
.pagination__link:hover { background: var(--z-accent-soft); text-decoration: none; }
.pagination__item.is-current .pagination__link { color: #fff; background: var(--z-grad); box-shadow: 0 8px 18px -8px var(--z-accent); }
.pagination__nav-btn { width: 40px; min-height: 40px; padding: 0; }
.pagination__nav-btn .icon { width: 16px; height: 16px; }

.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 28px; }
.ticket__body { display: grid; gap: 16px; min-width: 0; }
.ticket__body_block, .ticket__params, .params--block, .form--reply {
    padding: clamp(18px, 3vw, 28px); background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-lg); box-shadow: var(--z-shadow-1);
}
.ticket__params { padding: 0; border: 0; background: none; box-shadow: none; position: sticky; top: 92px; display: grid; gap: 16px; }
.ticket__body_block.response { border-left: 4px solid var(--z-accent); }
.ticket__body_block.original-message { border-left: 4px solid var(--z-accent-2); }
.block--head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--z-line); }
.block--head .d-flex { justify-content: space-between; gap: 16px; align-items: flex-start; }
.contact { font-size: 14px; color: var(--z-muted); }
.contact .requester-header, .contact .cc-header { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.requester, .cc { font-size: 16px; font-weight: 700; color: var(--z-text); }
.block--description { font-size: 16px; line-height: 1.7; }
.ticket__block-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--z-line); font-size: 14px; }
.block--uploads, .attach { margin-top: 14px; font-size: 14px; }
.attach { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--z-surface-2); margin-right: 6px; }
.accordion-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 18px; margin-bottom: 14px; }
.params--block .row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--z-line); font-size: 14.5px; }
.params--block .row:first-child { border-top: 0; }
.params--block .row .title { color: var(--z-muted); font-weight: 600; flex: none; }
.params--block .row .value { text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.params--block .row .value.center { text-align: right; }
.dropdown { position: relative; display: inline-block; }
.dropdown-list { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; padding: 8px; background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-md); box-shadow: var(--z-shadow-3); text-align: left; font-size: 14px; }
.dropdown-list li { padding: 6px 10px; display: flex; gap: 8px; }
.dropdown-list .title { color: var(--z-muted); }
.form--reply .form-group { margin-bottom: 16px; }

/* ───────── 12. Profile · register · MFA ───────── */
.step-bar { display: flex; justify-content: center; gap: 10px; margin: 0 0 28px; }
.step-item { width: 44px; height: 6px; border-radius: 99px; background: var(--z-surface-2); transition: background .3s; }
.step-item.current, .step-item.is-current { background: var(--z-grad); }
.profile__info, .profile__edit, .profile__control { margin-bottom: 18px; }
.profile__control { display: flex; flex-wrap: wrap; gap: 12px; }
.mfa-alt-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px; color: var(--z-accent); background: var(--z-accent-soft); }
.mfa-alt-text { text-align: center; color: var(--z-muted); }
.shield-icon { color: var(--z-accent); }
.verify-back, .go-back { margin-top: 14px; }
.reg__checkboxes { margin-top: 14px; }

/* ───────── 13. Modal · loader · datepicker ───────── */
.jquery-modal.blocker { z-index: 200; background: rgba(6, 8, 20, .55) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
    width: min(480px, calc(100vw - 32px)) !important; max-width: none; padding: 28px !important;
    color: var(--z-text); background: var(--z-surface) !important; border: 1px solid var(--z-line); border-radius: var(--z-r-xl) !important; box-shadow: var(--z-shadow-3) !important;
}
.modal a.close-modal { top: 14px !important; right: 14px !important; width: 32px; height: 32px; border-radius: 50%; background-color: var(--z-surface-2) !important; }
.loading-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: color-mix(in srgb, var(--z-bg) 78%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.loading-message { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100vw - 32px); text-align: center; font-weight: 700; font-size: 18px; }
.spinner, .loading-overlay .spinner { width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--z-accent-soft); border-top-color: var(--z-accent); animation: z-spin .8s linear infinite; }
@keyframes z-spin { to { transform: rotate(360deg); } }
.datepicker { position: absolute; left: -100000px; z-index: 120; width: 280px; padding: 6px; opacity: 0; color: var(--z-text); font: 14px var(--z-font); background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-md); box-shadow: var(--z-shadow-3); transition: opacity .2s, left 0s .2s, top 0s .2s; }
.datepicker.active { opacity: 1; transition: opacity .2s, left 0s, top 0s; }
.datepicker-inline .datepicker { position: static; opacity: 1; box-shadow: none; }
.datepicker--pointer { display: none; }
.datepicker--nav { display: flex; justify-content: space-between; align-items: center; padding: 6px; border-bottom: 1px solid var(--z-line); min-height: 44px; }
.datepicker--nav-title { padding: 6px 10px; border-radius: 8px; font-weight: 800; cursor: pointer; } .datepicker--nav-title:hover { background: var(--z-accent-soft); }
.datepicker--nav-title i { font-style: normal; color: var(--z-muted); margin-left: 4px; }
.datepicker--nav-action { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; } .datepicker--nav-action:hover { background: var(--z-accent-soft); }
.datepicker--nav-action svg { width: 28px; height: 28px; } .datepicker--nav-action path { fill: none; stroke: var(--z-text); stroke-width: 1.6; }
.datepicker--days-names { display: flex; flex-wrap: wrap; margin: 8px 0 4px; }
.datepicker--day-name { width: 14.28%; text-align: center; font-size: 12px; font-weight: 700; color: var(--z-muted); text-transform: uppercase; }
.datepicker--cells { display: flex; flex-wrap: wrap; }
.datepicker--cell { display: flex; align-items: center; justify-content: center; height: 36px; width: 14.28%; border-radius: 10px; cursor: pointer; }
.datepicker--cells-months .datepicker--cell { width: 33.33%; height: 52px; } .datepicker--cells-years .datepicker--cell { width: 25%; height: 52px; }
.datepicker--cell:hover, .datepicker--cell.-focus- { background: var(--z-accent-soft); }
.datepicker--cell.-current- { color: var(--z-accent); font-weight: 800; }
.datepicker--cell.-selected-, .datepicker--cell.-selected-.-focus- { color: #fff; background: var(--z-grad); }
.datepicker--cell.-other-month-, .datepicker--cell.-other-decade- { color: var(--z-muted); opacity: .55; }
.datepicker--cell.-disabled- { opacity: .3; cursor: default; }
.datepicker--buttons { display: flex; padding: 6px; border-top: 1px solid var(--z-line); }
.datepicker--button { flex: 1; padding: 8px; text-align: center; border-radius: 8px; font-weight: 700; cursor: pointer; color: var(--z-accent); } .datepicker--button:hover { background: var(--z-accent-soft); }
.datepicker--time { padding: 8px; border-top: 1px solid var(--z-line); }
.datepicker--time-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.datepicker--time-row input[type=range] { flex: 1; min-height: 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--z-accent); }

/* ───────── 14. Pre-ticket helpers (rules, templates, category chip) ───────── */
.nx-cat-header { display: flex; align-items: center; gap: 14px; max-width: 720px; margin: clamp(24px, 4vw, 44px) auto 0; padding: 14px 18px; background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-lg); box-shadow: var(--z-shadow-1); }
.nx-cat-header__text { min-width: 0; }
.nx-kicker { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--z-accent); }
.nx-cat-header__name { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.nx-cat-header__change { margin-left: auto; padding: 9px 16px; border: 1px solid var(--z-line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--z-text); white-space: nowrap; }
.nx-cat-header__change:hover { text-decoration: none; border-color: var(--z-accent-line); background: var(--z-accent-soft); }
.nx-cat-header + h1.article__heading--form { margin-top: 24px; }
.nx-rules { margin: 0 0 26px; padding: 20px 22px 10px; background: var(--z-accent-soft); border: 1px solid var(--z-accent-line); border-radius: var(--z-r-lg); }
.nx-rules__title { margin: 0 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.nx-rules__lead, .nx-rules__note p { margin: 0 0 10px; font-size: 14.5px; color: var(--z-muted); }
.nx-rules__label { margin: 14px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--z-accent); }
.nx-rules ul { list-style: disc; margin: 0 0 12px; padding-left: 1.3em; } .nx-rules ol { list-style: decimal; margin: 0 0 12px; padding-left: 1.4em; }
.nx-rules li { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; } .nx-rules li::marker { color: var(--z-accent); }
.nx-rules__note { margin: 6px 0 12px; padding: 12px 16px; background: var(--z-warn-bg); border: 1px solid color-mix(in srgb, var(--z-warn) 35%, transparent); border-radius: var(--z-r-md); }
.nx-rules__note strong { display: block; margin-bottom: 4px; font-size: 13px; color: var(--z-warn); }
.nx-rules__note p { margin: 0; color: var(--z-text); }
.nx-template-box { margin: 0 0 14px; } .nx-template-box--below { margin: 14px 0 0; }
.nx-example, .nx-blank { margin: 0 0 10px; padding: 14px 16px; border-radius: var(--z-r-md); white-space: pre-wrap; font: 14.5px/1.55 var(--z-font); }
.nx-example { background: var(--z-info-bg); border: 1px solid color-mix(in srgb, var(--z-info) 38%, transparent); }
.nx-example__title { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--z-info); }
.nx-example p { margin: 0 0 4px; } .nx-example pre, .nx-blank { font-family: inherit; }
.nx-example pre { background: none; border: 0; padding: 0; margin: 0; }
.nx-blank { background: var(--z-surface-2); border: 1px dashed var(--z-line-strong); color: var(--z-muted); }
.nx-copy-template { width: 100%; margin-bottom: 10px; }

/* ───────── 15. Footer ───────── */
.footer { margin-top: auto; padding: 28px 16px 36px; text-align: center; font-size: 13.5px; color: var(--z-muted); border-top: 1px solid var(--z-line); }
.footer p { margin: 0; }
.footer a { color: var(--z-text); font-weight: 700; }

/* ───────── 16. Responsive · motion · print ───────── */
@media (max-width: 960px) {
    .ticket { grid-template-columns: 1fr; }
    .ticket__params { position: static; order: -1; }
    .btn-toggler { display: inline-flex; }
    .collapsed-on-xs .accordion-body { display: none; }
    .collapsed-on-xs.is-opened .accordion-body { display: block; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .header__inner { min-height: 60px; gap: 6px; }
    .z-brand__name { font-size: 17px; }
    .user__name { display: none; } .profile__user { padding: 4px; }
    .header__nav .nav-item a { padding: 0 12px; }
    .navlink { padding: 20px 52px 20px 20px; min-height: 0; }
    .search__form .form-group { border-radius: 22px; flex-wrap: wrap; padding: 6px; }
    #kb_search { flex-basis: calc(100% - 52px); }
    #search-button { width: 100% !important; }
    .preview { flex-wrap: wrap; } .rate { width: 100%; padding-left: 64px; }
    .nx-cat-header { flex-wrap: wrap; } .nx-cat-header__change { margin-left: 0; }
    .params--block .row { flex-direction: column; gap: 2px; } .params--block .row .value { text-align: left; }
    .table th, .table td { padding: 12px; }
    .form-footer .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
@media print {
    body::before, .z-header, .footer, .btn, .z-theme-toggle { display: none !important; }
    body { background: #fff; color: #000; }
    .ticket { display: block; } .ticket__body_block, .params--block { box-shadow: none; border-color: #ccc; }
}

/* star ratings */
.star-rate.rate-0 .star-filled { width: 0%; }
.star-rate.rate-5 .star-filled { width: 10%; }
.star-rate.rate-10 .star-filled { width: 20%; }
.star-rate.rate-15 .star-filled { width: 30%; }
.star-rate.rate-20 .star-filled { width: 40%; }
.star-rate.rate-25 .star-filled { width: 50%; }
.star-rate.rate-30 .star-filled { width: 60%; }
.star-rate.rate-35 .star-filled { width: 70%; }
.star-rate.rate-40 .star-filled { width: 80%; }
.star-rate.rate-45 .star-filled { width: 90%; }
.star-rate.rate-50 .star-filled { width: 100%; }

/* fixes */
.search__form .search__submit { width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 50%; }
.search__form .search__submit:hover { background: var(--z-accent-soft); }
.star-rate .icon { display: block; }
.star-rate .star-filled .icon { position: static; }
.z-brand__mark { flex: none; } .z-brand { flex: none; }

/* ───────── 19. "Twoje zgłoszenia" — list kept in the visitor's browser ───────── */
.zr { margin: 28px 0; background: var(--z-surface); border: 1px solid var(--z-line); border-radius: var(--z-r-xl); box-shadow: var(--z-shadow-1); overflow: hidden; }
.zr__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--z-line); background: color-mix(in srgb, var(--z-accent) 4%, var(--z-surface)); }
.zr__title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.zr__ico { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; font-weight: 900; color: var(--z-warn); background: var(--z-warn-bg); }
.zr__sub { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--z-muted); }
.zr__count { flex: none; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: var(--z-grad); }
.zr__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px 8px; font-size: 14px; color: var(--z-muted); }
.zr__size, .zr__search { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.zr__select, .zr__input { min-height: 38px; padding: 6px 12px; font: 400 14px var(--z-font); color: var(--z-text); background: var(--z-input); border: 1px solid var(--z-line-strong); border-radius: 10px; box-shadow: none; }
.zr__select { width: auto; min-height: 38px; padding-right: 30px; background-position: right 10px center; }
.zr__input { width: min(260px, 52vw); }
.zr__tablewrap { padding: 8px 24px 4px; overflow-x: auto; }
.zr__table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.zr__table th { padding: 0; text-align: left; background: var(--z-surface-2); }
.zr__table th:first-child { border-radius: 12px 0 0 12px; } .zr__table th:last-child { border-radius: 0 12px 12px 0; }
.zr__sort { position: relative; display: block; width: 100%; padding: 13px 26px 13px 16px; text-align: left; font: 800 12px/1 var(--z-font); letter-spacing: .07em; text-transform: uppercase; color: var(--z-muted); background: none; border: 0; cursor: pointer; }
.zr__sort::after { content: "↕"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: .35; }
.zr__sort.is-active { color: var(--z-text); } .zr__sort.is-active::after { opacity: 1; color: var(--z-accent); }
.zr__sort.asc::after { content: "↑"; } .zr__sort.desc::after { content: "↓"; }
.zr__table td { padding: 14px 16px; vertical-align: middle; border-top: 1px solid var(--z-line); }
.zr__table tbody tr:first-child td { border-top: 0; }
.zr__table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--z-surface-2) 55%, transparent); }
.zr__table tbody tr:hover td { background: var(--z-accent-soft); }
.zr__id { display: block; white-space: nowrap; font-weight: 800; color: var(--z-text); letter-spacing: -.01em; }
.zr__id:hover { color: var(--z-accent); }
.zr__date { display: block; margin-top: 2px; font-size: 12px; color: var(--z-muted); white-space: nowrap; }
.zr__cwrap { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.zr__avatar { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800; color: var(--z-accent); background: var(--z-accent-soft); border: 1px solid var(--z-line); }
.zr__ctext { display: flex; flex-direction: column; min-width: 0; max-width: 280px; }
.zr__subject { font-weight: 700; overflow-wrap: anywhere; } .zr__cat { font-size: 12.5px; color: var(--z-muted); }
.zr__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.zr__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.zr__kind--tv { color: var(--z-info); background: var(--z-info-bg); border-color: color-mix(in srgb, var(--z-info) 35%, transparent); }
.zr__kind--film { color: var(--z-accent); background: var(--z-accent-soft); border-color: var(--z-accent-line); }
.zr__kind--series { color: #d6409f; background: color-mix(in srgb, #d6409f 10%, var(--z-surface)); border-color: color-mix(in srgb, #d6409f 35%, transparent); }
.zr__kind--other { color: var(--z-muted); background: var(--z-surface-2); border-color: var(--z-line); }
.zr__status--ok { color: var(--z-ok); background: var(--z-ok-bg); border-color: color-mix(in srgb, var(--z-ok) 40%, transparent); }
.zr__status--ok::before { content: "✓"; width: auto; height: auto; background: none; font-size: 12px; font-weight: 900; }
.zr__status--warn { color: var(--z-warn); background: var(--z-warn-bg); border-color: color-mix(in srgb, var(--z-warn) 40%, transparent); }
.zr__status--info, .zr__status--sent { color: var(--z-accent); background: var(--z-accent-soft); border-color: var(--z-accent-line); }
.zr__status--muted { color: var(--z-muted); background: var(--z-surface-2); border-color: var(--z-line); }
.zr__by { position: relative; color: var(--z-muted); padding-right: 40px; }
.zr__remove { position: absolute; right: 8px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border: 0; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--z-muted); background: transparent; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.zr__table tr:hover .zr__remove, .zr__remove:focus-visible { opacity: 1; }
.zr__remove:hover { color: var(--z-err); background: var(--z-err-bg); }
.zr__empty { padding: 28px 16px !important; text-align: center; color: var(--z-muted); }
.zr__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 24px 22px; font-size: 14px; color: var(--z-muted); }
.zr__info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.zr__clear { padding: 0; border: 0; background: none; font: 600 13px var(--z-font); color: var(--z-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.zr__clear:hover { color: var(--z-err); }
.zr__pager { display: flex; align-items: center; gap: 6px; }
.zr__pbtn { min-width: 40px; height: 40px; padding: 0 10px; font: 700 14px var(--z-font); color: var(--z-text); background: var(--z-surface); border: 1px solid var(--z-line-strong); border-radius: 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.zr__pbtn:hover:not(:disabled) { background: var(--z-accent-soft); border-color: var(--z-accent-line); }
.zr__pbtn.is-current { color: #fff; background: var(--z-grad); border-color: transparent; }
.zr__pbtn:disabled { opacity: .4; cursor: default; }
.zr__dots { color: var(--z-muted); }
@media (max-width: 900px) {
    .zr__head, .zr__bar, .zr__foot { padding-left: 16px; padding-right: 16px; }
    .zr__tablewrap { padding: 8px 12px 4px; overflow: visible; }
    .zr__table { min-width: 0; display: block; }
    .zr__table thead { display: none; }
    .zr__table tbody { display: grid; gap: 12px; }
    .zr__table tr { display: grid; gap: 8px; padding: 14px; background: var(--z-surface); border: 1px solid var(--z-line); border-radius: 18px; }
    .zr__table td, .zr__table tbody tr:nth-child(even) td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 !important; border: 0; background: none !important; text-align: right; }
    .zr__table td::before { content: attr(data-label); flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--z-muted); }
    .zr__cwrap { min-width: 0; justify-content: flex-end; text-align: right; } .zr__ctext { max-width: none; }
    .zr__by { padding-right: 0 !important; } .zr__remove { position: static; margin: 0 0 0 8px; opacity: 1; }
    .zr__empty::before { display: none; }
}
.zr__table td:nth-child(4) { min-width: 150px; }
.zr-wrap .zr { margin: 24px 0 0; }
.zr-wrap:has(.zr:not([hidden])) + .z-hero { padding-top: clamp(24px, 4vw, 48px); }
.zr-wrap:not(:has(.zr:not([hidden]))) { display: none; }

/* compact table: fits a 1056px card without a horizontal scrollbar */
@media (min-width: 901px) {
    .zr__tablewrap { padding: 8px 16px 4px; }
    .zr__table { min-width: 0; table-layout: auto; font-size: 14px; }
    .zr__table td { padding: 12px 10px; }
    .zr__sort { padding: 12px 20px 12px 10px; letter-spacing: .05em; font-size: 11.5px; }
    .zr__sort::after { right: 6px; }
    .zr__cwrap { min-width: 0; gap: 10px; }
    .zr__avatar { width: 34px; height: 34px; border-radius: 10px; }
    .zr__ctext { max-width: 240px; }
    .zr__table td:nth-child(4) { min-width: 0; max-width: 150px; }
    .zr__badge { padding: 3px 10px; font-size: 12.5px; }
    .zr__by { padding-right: 34px; }
}
.zr__headr { display: flex; align-items: center; gap: 12px; flex: none; }
.zr__refresh { padding: 6px 12px; border: 1px solid var(--z-line-strong); border-radius: 999px; font: 700 13px var(--z-font); color: var(--z-text); background: var(--z-surface); cursor: pointer; transition: background .15s, border-color .15s; }
.zr__refresh:hover:not(:disabled) { background: var(--z-accent-soft); border-color: var(--z-accent-line); }
.zr__refresh.is-busy { color: var(--z-muted); cursor: progress; animation: z-fade 1s ease-in-out infinite alternate; }
.zr__checked { font-size: 13px; color: var(--z-muted); }
@media (max-width: 480px) { .zr__refresh { padding: 6px 10px; } .zr__sub { display: none; } }
