/* Emzak: spoločný vzhľad (úvodná stránka, okno klienta, backoffice).
   Predloha: prezentácia „LinkedIn asistent“ (tmavomodrá, tyrkysový akcent, svetlé karty). */
/* Písma (OFL) na vlastnom serveri, bez Google Fonts. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/static/fonts/jetbrains-mono-latin-ext-500.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/static/fonts/jetbrains-mono-latin-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-950: #0b121a;
  --navy-900: #0f1a24;
  --navy-800: #14202c;
  --navy-700: #1c2c3b;
  --ink: #0f1720;
  --text: #0f1720;
  --muted: #5d6b77;
  --faint: #8a97a3;
  --bg: #f5f7f9;
  --card: #ffffff;
  --line: #e4e9ee;
  --line-strong: #cfd8e0;
  --sky: #e6f6fc;
  --sky-strong: #c9e9f5;
  --accent: #0a84b5;          /* odkazy a akcent na svetlom pozadí */
  --accent-bright: #22b5ea;   /* farba Emzaka: kroky, zvýraznenie, focus */
  --on-accent: #06212d;
  --primary: #0f1a24;         /* hlavné tlačidlo (jedno na obrazovke) */
  --primary-hover: #1f2e3c;
  --ok: #12805a;
  --ok-bg: #e7f6ef;
  --warn: #a35f00;
  --warn-bg: #fff4e0;
  --danger: #c23b3b;
  --danger-bg: #fdecec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 32, .04), 0 4px 16px rgba(15, 23, 32, .05);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

/* Okno klienta aj backoffice sú vždy svetlé (firemné počítače, jednotný vzhľad). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: var(--bg);
       -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* malý štítok s číslom sekcie, ako v prezentácii */
.label { font: 500 .78rem/1 var(--mono); color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }

/* tlačidlá: hlavné (tmavé, jedno na obrazovke), bežné (biele s okrajom), textové */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px;
       padding: .65em 1.2em; border-radius: 12px; border: 1px solid transparent; font: 600 .98rem/1.1 var(--font);
       text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn:focus-visible { outline: 3px solid rgba(34, 181, 234, .45); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-light { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--faint); background: #fbfcfd; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(15, 23, 32, .04); }
.btn-danger { background: transparent; color: var(--danger); border-color: #f0b4b4; }
.btn-small { min-height: 36px; padding: .45em .9em; font-size: .9rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* karty a dlaždice s ikonou */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow); padding: 20px; }
a.card:hover { border-color: var(--line-strong); }
.tile { width: 40px; height: 40px; border-radius: 12px; background: var(--sky); color: var(--accent);
        display: grid; place-items: center; flex: none; }
.tile svg { width: 22px; height: 22px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4, .grid-5 { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: 28px; min-height: 150px; }
.step .top { display: flex; justify-content: space-between; align-items: flex-start; }
.step .num { font: 500 .8rem var(--mono); color: var(--muted); }
.step h3 { margin: 0; }
.panel { background: var(--sky); border-radius: var(--radius); padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .28em .7em; border-radius: 999px;
        background: #f1f4f7; border: 0; font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.chip.ok { color: var(--ok); background: var(--ok-bg); } .chip.warn { color: var(--warn); background: var(--warn-bg); }
.chip.danger { color: var(--danger); background: var(--danger-bg); } .chip.info { color: var(--accent); background: var(--sky); }

/* logo Emzak */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem;
         letter-spacing: -.02em; color: inherit; text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.brand .client { font-weight: 600; color: var(--muted); font-size: .95rem; }

/* ── úvodná stránka ─────────────────────────────────────── */
.site-nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 18, 26, .86);
            backdrop-filter: saturate(140%) blur(10px); color: #fff; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.site-nav nav { display: flex; gap: 24px; align-items: center; }
.site-nav nav a { color: #c9d6df; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav nav a:hover { color: #fff; }
@media (max-width: 760px) { .site-nav nav a:not(.btn) { display: none; } }

.dark { color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #0d3a4d 0%, rgba(13, 58, 77, 0) 60%), var(--navy-950); }
.dark .muted { color: #9fb1bd; }
.dark .label, .dark .accent { color: var(--accent-bright); }
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .accent { display: block; }
.hero .lead { font-size: 1.2rem; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 48px 0 64px; } }

.section { padding: 88px 0; }
.section.alt { background: var(--card); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { margin-top: 10px; }
@media (max-width: 760px) { .section { padding: 56px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden;
         background: var(--bg); border: 1px solid var(--line); }
.split > div { padding: 40px; }
.split .visual { background: var(--sky); display: grid; place-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > div { padding: 28px 20px; } }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.time-bar { margin-top: 20px; display: flex; gap: 14px; align-items: center; padding: 18px 20px;
            border-radius: var(--radius); border: 1px solid rgba(34, 181, 234, .35); background: rgba(34, 181, 234, .08);
            font-weight: 700; font-size: 1.1rem; }

.price { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.price .amount { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price.featured { color: #fff; background: linear-gradient(160deg, #0d3a4d, var(--navy-950) 70%); border-color: transparent; }
.price.featured .muted { color: #9fb1bd; }
.price.extra { background: var(--sky); border: 1px dashed #8fd3ee; box-shadow: none; }

.site-footer { padding: 40px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }

/* makety: LinkedIn post, telefón, formulár */
.li-post { background: #fff; color: #191919; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
           padding: 16px; font-size: .9rem; line-height: 1.45; max-width: 440px; justify-self: end; position: relative; }
.li-post .who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.li-post .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sky-strong); color: var(--accent);
                   display: grid; place-items: center; font-weight: 800; flex: none; }
.li-post .name { font-weight: 700; } .li-post .role { color: #666; font-size: .78rem; }
.li-post .text { white-space: pre-line; }
.li-post .tags { color: #0a66c2; margin-top: 8px; }
.li-post .image { margin-top: 12px; border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 1200 / 627;
                  background: linear-gradient(135deg, #cfe9f3, #eaf6fb); }
.li-post .image img { width: 100%; height: 100%; object-fit: cover; }
.li-post .actions { display: flex; justify-content: space-around; border-top: 1px solid #e8e8e8; margin-top: 12px;
                    padding-top: 10px; color: #666; font-size: .8rem; font-weight: 600; }
.li-post .approve { position: absolute; left: -28px; bottom: 56px; }
@media (max-width: 900px) { .li-post { justify-self: stretch; max-width: none; } .li-post .approve { left: 12px; bottom: 60px; } }
.badge-source { position: absolute; right: 8px; bottom: 8px; background: rgba(11, 18, 26, .82); color: #fff;
                font: 600 .7rem/1 var(--font); padding: 5px 8px; border-radius: 6px; }

.phone { width: min(320px, 100%); background: var(--navy-950); border-radius: 40px; padding: 12px; box-shadow: var(--shadow); }
.phone .screen { background: #eef3f6; border-radius: 30px; padding: 18px 12px; display: grid; gap: 8px; }
.phone .row { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px;
              font-size: .82rem; font-weight: 600; color: var(--ink); }
.phone .thumb { width: 56px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, #b9dceb, #e5f4fa); flex: none; }

.mock-form { width: min(420px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; color: var(--ink); }
.mock-form .field { border: 1.5px solid var(--sky-strong); border-radius: 10px; height: 54px; margin: 6px 0 14px; }
.mock-form .field.active { border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(34, 181, 234, .15); }

/* ── okno klienta a backoffice ─────────────────────────── */
.app-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(8px);
               border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; }
.app-header .brand { font-size: 1.05rem; }
.app-header .brand svg { width: 28px; height: 28px; }
.app main { padding: 28px 0 56px; }
.app h1 { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 750; }
.app-footer { color: var(--faint); font-size: .82rem; padding: 20px 0 32px; }
.app-footer a { color: inherit; }
.stack { display: grid; gap: 14px; }
.proposal { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; text-decoration: none; color: inherit; }
.proposal:hover { border-color: var(--accent-bright); }
.proposal .image { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1200 / 627;
                   background: linear-gradient(135deg, var(--sky-strong), var(--sky)); }
.proposal .image img { width: 100%; height: 100%; object-fit: cover; }
.proposal h3 { margin: 0 0 6px; }
.proposal p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) { .proposal { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; margin: 18px 0 6px; }
.form .hint { color: var(--muted); font-size: .9rem; margin: -2px 0 8px; }
.form textarea, .form input[type=text], .form input[type=email], .form input[type=password], .form select,
.form input[type=number], .form input[type=time] {
  width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.form textarea::placeholder, .form input::placeholder { color: var(--faint); }
.form textarea { min-height: 140px; resize: vertical; }
.form textarea:focus, .form input:focus, .form select:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(34, 181, 234, .18); }
.form .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.inline-icon svg { width: 18px; height: 18px; vertical-align: -3px; }
.notice { border-radius: 12px; padding: 12px 14px; background: var(--sky); border: 0; color: #0b4a63; }
.notice.warn { background: var(--warn-bg); color: #6b4300; }
.notice.error { background: var(--danger-bg); color: #7a1f1f; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font: 600 .8rem var(--font); color: var(--faint); padding: 8px 10px;
                border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { padding: 16px 18px; }
.kpi .value { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; }
.kpi .label { font: 600 .85rem/1.3 var(--font); color: var(--muted); text-transform: none; letter-spacing: 0; }

/* Štatistiky v backoffice */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filters label { display: grid; gap: 6px; font: 500 .72rem/1 var(--mono); color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; }
.filters select { min-width: 160px; font: 500 .95rem/1.2 var(--font); color: var(--text);
  background: var(--card); border: 1.5px solid var(--sky-strong); border-radius: 10px; padding: 9px 10px;
  text-transform: none; letter-spacing: 0; }
.kpi .hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.kpi.alert .value { color: var(--danger); }
.funnel { display: grid; gap: 12px; }
.funnel .row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 12px; align-items: center; }
.funnel .track { background: var(--sky); border-radius: 999px; height: 12px; overflow: hidden; }
.funnel .fill { height: 100%; background: var(--accent-bright); border-radius: 999px; }
.funnel .num { text-align: right; font-weight: 700; }
.chart { display: flex; gap: 16px; align-items: stretch; height: 190px; overflow-x: auto; padding-top: 8px; }
.chart .week { display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 52px; }
.chart .bars { display: flex; gap: 4px; align-items: flex-end; justify-content: center; }
.chart .bar { width: 13px; min-height: 2px; border-radius: 4px 4px 0 0; }
.chart .day { font: 500 .72rem var(--mono); color: var(--muted); text-align: center; }
.b-prop { background: var(--sky-strong); } .b-post { background: var(--accent-bright); } .b-ok { background: var(--ok); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.errors { display: grid; gap: 10px; }
.errors .item { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; }
.errors .msg { grid-column: 2; color: var(--muted); font-size: .92rem; word-break: break-word; }
@media (max-width: 600px) { .funnel .row { grid-template-columns: 100px 1fr 36px; } }

/* Ukazovateľ priebehu písania: kruh s percentami, otáčajúci sa oblúk ukazuje, že Emzak pracuje */
.progress { margin-top: 16px; display: flex; gap: 22px; align-items: center; }
.progress-ring { position: relative; width: 128px; height: 128px; flex: none; }
.progress-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring > svg circle { fill: none; stroke-width: 9; }
.ring-track { stroke: var(--sky); }
.ring-fill { stroke: var(--accent-bright); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .4s ease-out; }
.ring-spin { stroke: rgba(255, 255, 255, .55); stroke-linecap: round; stroke-dasharray: 6 94; transform-origin: 60px 60px;
  animation: ring-spin 1.4s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.ring-center .mz { margin: 4px 0 -2px; }
.progress-ring strong { font-size: .95rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.progress-body { min-width: 0; }
.progress-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0;
  font-size: .88rem; color: var(--muted); }
.progress-steps li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 7px; background: var(--sky-strong); vertical-align: 1px; }
.progress-steps li.done { color: var(--text); }
.progress-steps li.done::before { background: var(--ok); }
.progress-steps li.now { color: var(--text); font-weight: 700; }
.progress-steps li.now::before { background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(34, 181, 234, .2);
  animation: progress-pulse 1.2s ease-in-out infinite; }
@keyframes progress-pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 181, 234, .08); } }
.progress-filler { margin: 12px 0 0; min-height: 1.5em; }
.progress-filler.swap { animation: progress-in .45s ease-out; }
@keyframes progress-in { from { opacity: 0; transform: translateY(4px); } }
.progress.finished .ring-fill { stroke: var(--ok); }
.progress.finished .ring-spin { display: none; }
@media (max-width: 480px) { .progress { flex-direction: column; text-align: center; } .progress-steps { justify-content: center; } }
@media (prefers-reduced-motion: reduce) {
  .ring-fill, .ring-spin, .progress-steps li.now::before, .progress-filler.swap { animation: none; transition: none; }
}

/* Emzak ako postavička (_ui.html mascot), pohyby ako na emzak.sk */
.mz { display: block; overflow: visible; }
.mz .mz-shadow { fill: rgba(11, 18, 26, .14); transform-box: fill-box; transform-origin: center; }
.mz .mz-float { transform-box: view-box; transform-origin: 100px 110px; }
.mz .mz-antenna { fill: #7fdcfb; }
.mz .mz-eye { transform-box: fill-box; transform-origin: center; animation: mz-blink 5.5s infinite; }
.mz-work .mz-float { animation: mz-float 2.2s ease-in-out infinite; }
.mz-work .mz-shadow { animation: mz-shadow 2.2s ease-in-out infinite; }
.mz-work .mz-look { animation: mz-read 2.6s ease-in-out infinite; }            /* číta zľava doprava */
.mz-work .mz-antenna { animation: mz-antenna .9s ease-in-out infinite; }
.mz-party .mz-float { animation: mz-pop .9s cubic-bezier(.3, .7, .3, 1) both, mz-float 3s ease-in-out .9s infinite; }
.mz-party .mz-eye-left { animation: mz-wink .8s ease-in-out 1s both; }         /* žmurkne */
.mz-party .mz-antenna { animation: mz-antenna .6s ease-in-out 4; }
.progress.finished .mz-look { animation: none; }
.progress.finished .mz-eye-left { animation: mz-wink .6s ease-in-out both; }
@keyframes mz-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes mz-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.82); opacity: .6; } }
@keyframes mz-read { 0%, 100% { transform: translateX(-7px); } 45%, 55% { transform: translateX(7px); } }
@keyframes mz-antenna { 0%, 100% { fill: #7fdcfb; } 50% { fill: #ffd85e; } }
@keyframes mz-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes mz-wink { 0%, 100% { transform: scaleY(1); } 30%, 70% { transform: scaleY(.08); } }
@keyframes mz-pop { 0% { transform: translateY(40px) scale(0, 0); opacity: 0; } 35% { transform: translateY(6px) scale(1.12, .86); opacity: 1; }
  60% { transform: translateY(-36px) scale(.94, 1.08); } 82% { transform: translateY(0) scale(1.08, .92); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mz *, .mz-party .mz-float { animation: none !important; } }

/* Hodnotenie postu */
.rate { margin-top: 20px; }
.rate .hint { color: var(--muted); margin: 0 0 8px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 0; }
.stars button { font-size: 2.2rem; line-height: 1; padding: 2px; border: 0; background: none; cursor: pointer;
  color: var(--muted); opacity: .4; transition: transform .15s, color .15s, opacity .15s; }
.stars button.on { color: #f5b316; opacity: 1; }
.stars:hover button { color: var(--muted); opacity: .4; }                 /* pri prechode myšou platí len ukazovateľ */
.stars:hover button:hover, .stars:hover button:hover ~ button { color: #f5b316; opacity: 1; }
.stars button:hover { transform: scale(1.15); }
.stars button:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: 6px; }
.rate-done { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 8px; }
.stars-static span { color: var(--muted); opacity: .4; font-size: 1.4rem; }
.stars-static span.on { color: #f5b316; opacity: 1; }
.dist { display: grid; gap: 8px; }
.dist .row { display: grid; grid-template-columns: 56px 1fr 32px; gap: 10px; align-items: center; }
.dist .fill { height: 10px; border-radius: 999px; background: #f5b316; }

/* ── Backoffice: nastavenia klienta ── */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: 20px; display: grid; gap: 4px; }
.settings-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.settings-nav a:hover { background: var(--sky); color: var(--text); }
.settings section { scroll-margin-top: 20px; }
.settings > *, .settings .stack > * { min-width: 0; }
.settings h2 { font-size: 1.15rem; margin: 0 0 4px; }
.settings .sub { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form .field-inline { display: grid; gap: 6px; margin: 0; font-weight: 400; }
.field-inline span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.form input.short, .form select.short { width: 150px; max-width: 100%; padding: 10px 12px; }
.switch-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.switch-row:first-of-type { border-top: 0; }
.switch-row .text strong { display: block; }
.switch-row .text span { color: var(--muted); font-size: .92rem; }
.switch { position: relative; flex: none; width: 46px; height: 26px; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent-bright); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(34, 181, 234, .35); outline-offset: 2px; }
.day-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pills label { position: relative; margin: 0; }
.day-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day-pills span { display: inline-block; min-width: 46px; text-align: center; padding: 7px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: .88rem; color: var(--muted); }
.day-pills input:checked + span { background: var(--sky); border-color: var(--accent-bright); color: var(--text); }
.day-pills input:focus-visible + span { outline: 3px solid rgba(34, 181, 234, .35); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week-grid .day { border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 96px; background: var(--card); }
.week-grid .day b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ev { display: block; margin-top: 6px; padding: 4px 6px; border-radius: 8px; font-size: .78rem; line-height: 1.3; font-weight: 600; }
.ev time { display: block; font-family: var(--mono); font-weight: 500; }
.ev.weekly { background: var(--sky); } .ev.publish { background: #e4f5ec; color: #0d5c3d; }
.ev.nudge { background: #fff3dd; color: #6b4300; }
.next-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.next-list .card { padding: 12px 14px; box-shadow: none; }
.next-list .card span { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); box-shadow: 0 -6px 24px rgba(11, 18, 26, .08); }
.danger-zone { border-color: #f2b8b8; }
@media (max-width: 860px) {
  .settings { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; display: flex; flex-wrap: wrap; }
  .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-nav { display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  font-weight: 600; font-size: .95rem; }
.admin-nav a { color: inherit; text-decoration: none; }
@media (max-width: 520px) { .admin-nav { font-size: .85rem; gap: 4px 12px; } }

/* ── Post manažéra: úprava priamo v okne postu ── */
.post-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.li-edit { max-width: none; width: 100%; justify-self: stretch; }
.li-edit .edit-text { display: block; width: 100%; min-height: 220px; resize: vertical; font: inherit; line-height: 1.45;
  color: #191919; background: #f6fafc; border: 1.5px dashed #b9d3e0; border-radius: 10px; padding: 10px 12px; overflow: hidden; }
.li-edit .edit-tags { display: block; width: 100%; margin-top: 8px; font: inherit; color: #0a66c2; background: #f6fafc;
  border: 1.5px dashed #b9d3e0; border-radius: 10px; padding: 8px 12px; }
.li-edit .edit-text:focus, .li-edit .edit-tags:focus { outline: none; border-style: solid; border-color: var(--accent-bright); }
.li-edit .image.empty { display: grid; place-items: center; }
.li-edit .image.removed img { opacity: .25; }
.li-edit .photo-tools { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.li-edit .image.empty .photo-tools { position: static; }
.li-edit .photo-tools .btn { cursor: pointer; background: rgba(255, 255, 255, .94); color: #191919; }
.li-edit .edit-hint { color: #666; font-size: .78rem; margin: 6px 0 0; }
.li-edit .edit-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e8e8e8;
  margin-top: 12px; padding-top: 12px; }
.li-edit .notice { font-size: .85rem; margin: 0 0 10px; }
.send-bar { margin-top: 20px; }
.btn-block { width: 100%; justify-content: center; padding-top: 14px; padding-bottom: 14px; font-size: 1.05rem; }
summary svg, label svg { width: 18px; height: 18px; vertical-align: -3px; }   /* ikona mimo tlačidla nesmie narásť */
.li-edit [hidden] { display: none !important; }

/* ── Backoffice: ľudia ako riadky, akcie v menu „⋯“ ── */
.people { list-style: none; margin: 0; padding: 0; }
.person-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto; gap: 12px; align-items: center;
  padding: 12px 18px; }
.person-row + .person-row { border-top: 1px solid var(--line); }
.person-row .who { display: grid; min-width: 0; }
.person-row .who .muted { font-size: .85rem; }
.person-row .facts { display: flex; gap: 6px; flex-wrap: wrap; }
.person-row .facts a.chip { text-decoration: none; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); font-weight: 800; color: var(--muted); }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { border-color: var(--faint); color: var(--text); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; display: grid; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 32, .12); }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0;
  background: none; font: 600 .92rem var(--font); color: var(--text); text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: #f1f4f7; }
.menu-list form { margin: 0; }
section.card .people { margin: 10px -20px -8px; }
@media (max-width: 760px) {
  .person-row { grid-template-columns: minmax(0, 1fr) auto; }
  .person-row .facts { grid-column: 1 / -1; grid-row: 2; }
}

/* ── Backoffice: nástenka postov ── */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto;
  padding-bottom: 8px; align-items: start; }
.board-col { background: #eef2f5; border-radius: var(--radius); padding: 10px; display: grid; gap: 10px; }
.board-col h2 { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; margin: 2px 4px 2px;
  font-weight: 700; letter-spacing: 0; }
.board-col h2 .count { color: var(--faint); font-weight: 600; }
.board-empty { color: var(--faint); font-size: .88rem; margin: 4px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 32, .04); }
.post-card-main { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; text-decoration: none; color: inherit; }
.post-card-main .m-thumb { width: 44px; height: 44px; border-radius: 10px; }
.post-card .m-thumb { overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #d9eff8, #eef7fb);
  color: var(--accent); }
.post-card .m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .m-thumb svg { width: 20px; height: 20px; opacity: .7; }
.post-card .who { display: block; font-size: .8rem; color: var(--faint); font-weight: 600; }
.post-card .title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 650; font-size: .92rem; line-height: 1.3; }
.post-card-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.post-card-meta .chip svg { width: 14px; height: 14px; }
.post-card-meta .menu { margin-left: auto; }
.post-card-meta .menu > summary { width: 30px; height: 30px; }
.menu-form { display: grid; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); margin: 0; }
.menu-form label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.menu-form label.check { display: flex; gap: 6px; align-items: center; }
.menu-form input[type=datetime-local] { font: inherit; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; }
.menu-list .menu-form button { padding: 7px 10px; background: #f1f4f7; text-align: center; }
.menu-list .menu-form button.danger { color: var(--danger); background: var(--danger-bg); }
.board-col .menu-list { min-width: 230px; }
/* v posúvanej nástenke sa menu otvorí priamo v karte (absolútne by ho orezal okraj stĺpca) */
.post-card-meta .menu[open] { flex-basis: 100%; display: grid; justify-items: end; }
.post-card .menu-list { position: static; width: 100%; min-width: 0; margin-top: 6px; box-shadow: none; }
