/* Emzak: spoločný vzhľad okna klienta a backoffice. Identita „značkovač“ (brand manuál: emzak.sk/brand):
   atrament a biela, modrá Emzaka len ako zvýrazňovač, nadpisy Bricolage Grotesque, texty IBM Plex Sans. */
/* Písma (OFL) na vlastnom serveri, bez Google Fonts. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  font-stretch: 75% 100%; src: url(/static/fonts/bricolage-grotesque-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: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  font-stretch: 75% 100%; src: url(/static/fonts/bricolage-grotesque-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: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/static/fonts/ibm-plex-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: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/static/fonts/ibm-plex-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: #15171c;
  --navy-900: #15171c;
  --navy-800: #23262d;
  --navy-700: #2f333b;
  --ink: #15171c;             /* atrament: text a hlavné tlačidlo */
  --text: #15171c;
  --muted: #5a6069;           /* grafit: vedľajší text */
  --faint: #81868e;
  --bg: #ffffff;              /* papier */
  --fog: #f1f2ee;             /* hmla: polia, vedľajšie plochy */
  --card: #ffffff;
  --line: #e3e5e0;
  --line-strong: #cfd2cb;
  --sky: #e3f5fc;
  --sky-strong: #bfe9fa;
  --marker: #22b5ea;          /* značkovač: vaše slová, zmeny, ďalší krok */
  --accent: #15171c;          /* odkazy sú atramentové a podčiarknuté */
  --accent-bright: #22b5ea;
  --on-accent: #15171c;
  --primary: #15171c;         /* hlavné tlačidlo (jedno na obrazovke) */
  --primary-hover: #2a2e36;
  --ok: #1d7a4e;
  --ok-bg: #e6f4ec;
  --warn: #a65b00;
  --warn-bg: #fff2de;
  --danger: #c03a2b;
  --danger-bg: #fcebe8;
  --radius: 20px;
  --shadow: none;
  --display: "Bricolage Grotesque", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", 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). */

/* Emzákov papier (brand manuál: Papier). Okno manažéra je linajkový zošit, backoffice štvorčekový, vľavo okraj
   ako v zošite. Čiary sú svetlý tón značkovača, texty a karty ležia na nich, nič sa podľa nich nezarovnáva. */
:root { --ruling: #dbecf5; --rule-gap: 32px; --margin-line: rgba(34, 181, 234, .38); }
body.app { background-color: var(--bg);
  background-image: linear-gradient(var(--ruling) 1px, transparent 1px);
  background-size: 100% var(--rule-gap); background-position: 0 calc(var(--rule-gap) - 1px); }
body.app:has(.admin-nav) { --ruling: #e6f2f8; background-image: linear-gradient(90deg, var(--ruling) 1px, transparent 1px),
  linear-gradient(var(--ruling) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
@media (min-width: 900px) {
  body.app::before { content: ""; position: fixed; top: 0; bottom: 0; left: 28px; width: 2px; background: var(--margin-line);
    pointer-events: none; z-index: 0; }
}

* { 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); text-underline-offset: .18em; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .4em; }
h1, h2 { font-family: var(--display); font-stretch: 75%; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
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; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* malý štítok sekcie */
.label { font: 600 .85rem/1.2 var(--font); color: var(--muted); }

/* tlačidlá: hlavné (atrament, jedno na obrazovke), bežné (hmla), textové */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px;
       padding: .7em 1.35em; border-radius: 999px; 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, .55); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-marker { background: var(--marker); color: var(--ink); }
.btn-marker:hover { background: #4cc4ef; }
.btn-light { background: var(--fog); color: var(--text); }
.btn-light:hover { background: #e6e8e3; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(21, 23, 28, .05); }
.btn-danger { background: transparent; color: var(--danger); border-color: #f0b4b4; }
.btn-small { min-height: 38px; padding: .5em 1em; font-size: .9rem; }
.btn-link { min-height: 0; padding: .4em .2em; background: none; color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: .28em; border-radius: 6px; }
.btn-link:hover { color: var(--muted); }
.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: var(--fog); 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: slovo emzak a bublina, v ktorej Emzák práve píše (_ui.html logo) */
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand .client { font-weight: 500; color: var(--muted); font-size: .95rem; }
.wm { display: inline-flex; align-items: flex-start; font: 800 1.5rem/1 var(--display); font-stretch: 75%;
  letter-spacing: -.035em; color: var(--ink); }
.wm-bubble { position: relative; display: inline-flex; align-items: center; gap: .045em; margin-left: .06em;
  padding: .075em .095em; border-radius: .13em; background: var(--marker); font-size: 1.9em; letter-spacing: 0; }
.wm-bubble i { display: block; width: .075em; height: .075em; border-radius: 50%; background: var(--ink); }
.wm-bubble::after { content: ""; position: absolute; left: .04em; bottom: -.07em; width: .12em; height: .09em;
  background: var(--marker); clip-path: polygon(0 0, 100% 0, 0 100%); }
.wm-lg .wm-bubble { font-size: 1em; margin-top: .02em; }
.wm.typing .wm-bubble i { animation: wm-dot 1.2s ease-in-out infinite; }
.wm.typing .wm-bubble i:nth-child(2) { animation-delay: .15s; }
.wm.typing .wm-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes wm-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-.05em); } }
@media (prefers-reduced-motion: reduce) { .wm.typing .wm-bubble i { animation: none; } }

/* ── ú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 img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.li-logo { width: 18px; height: 18px; flex: none; border-radius: 3px; }
.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; }
.photo-credit { position: absolute; right: 8px; bottom: 6px; color: #fff; font: 500 .62rem/1 var(--font);
                text-shadow: 0 0 2px rgba(0, 0, 0, .8), 0 1px 3px rgba(0, 0, 0, .6); }   /* autor fotky z fotobanky */
.photo-credit a, .li-credit a, .stock-grid .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.li-post .li-credit { margin-top: 10px; }

.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, .94); 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 .wm { font-size: 1.4rem; }
.app main { padding: 28px 0 56px; }
.app h1 { font-size: clamp(2rem, 6vw, 2.6rem); }
.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: 18px 20px; background: var(--fog); border: 0; }
.kpi .value { font: 800 2.2rem/1 var(--display); font-stretch: 75%; 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: 600 .85rem/1.2 var(--font); color: var(--muted); }
.filters select { min-width: 160px; font: 500 .95rem/1.2 var(--font); color: var(--text);
  background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 9px 10px; }
.filters select:focus-visible { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(34, 181, 234, .18); }
.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; } }

/* Emzák píše (_parts.html progress, progress.js): celá obrazovka je animácia, nadpis a ukazovateľ priebehu.
   Stále sa niečo hýbe (vznáša sa, lúč, riadky, lesk na pruhu, hodiny), aby nikto nemal pocit, že to zamrzlo. */
.writing { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0 12px; }
.writing-stage { position: relative; width: min(342px, 100%); height: 470px; }
.writing-emzak { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.writing-beam { position: absolute; left: 0; top: 128px; width: 100%; height: 160px; fill: var(--marker); opacity: .22;
  animation: writing-beam 1.4s ease-in-out infinite; }
.writing-spark { position: absolute; left: var(--x); top: 280px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--marker); opacity: 0; animation: writing-rise 2.4s ease-out var(--d) infinite; }
.writing-card { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(280px, 92%); height: 200px;
  display: flex; flex-direction: column; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; box-shadow: 0 22px 44px -28px rgba(21, 23, 28, .45); }
.writing-card .who { display: flex; gap: 10px; align-items: center; margin-bottom: 3px; }
.writing-card .who i { width: 28px; height: 28px; border-radius: 50%; background: var(--line); }
.writing-card .who b { width: 96px; height: 8px; border-radius: 4px; background: var(--line); }
.writing-card .line { display: block; align-self: flex-start; width: var(--w); height: 7px; border-radius: 4px;
  background: #c9cdc6; animation: writing-line 8s ease-out var(--d) infinite; }
.writing-card .line.last { background: var(--marker); }
.writing-card .photo { flex: 1; border-radius: 10px; background: #dfe5e8; animation: writing-photo 8s ease-out infinite; }
.writing-title { margin: 0; text-align: center; font-size: clamp(2.1rem, 9vw, 2.6rem); }
.writing-bar { width: 100%; height: 10px; border-radius: 5px; background: var(--fog); overflow: hidden; }
.writing-bar span { position: relative; display: block; width: 0; height: 100%; border-radius: 5px; background: var(--marker);
  overflow: hidden; transition: width .5s ease-out; }
.writing-bar i { position: absolute; inset: 0 auto 0 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: writing-shine 1.6s ease-in-out infinite; }
.writing-meta { width: 100%; display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--muted); }
.writing-meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-filler { margin: 0; color: var(--ink); font-weight: 500; min-height: 1.5em; }
.progress-filler.swap { animation: progress-in .45s ease-out; }
.writing.finished .writing-bar span { background: var(--ok); }
@keyframes writing-beam { 0%, 100% { opacity: .16; } 30% { opacity: .3; } 55% { opacity: .2; } 80% { opacity: .34; } }
@keyframes writing-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; }
  100% { transform: translateY(-150px) scale(1); opacity: 0; } }
@keyframes writing-line { 0% { width: 0; opacity: 1; } 12%, 92% { width: var(--w); opacity: 1; } 100% { width: var(--w); opacity: 0; } }
@keyframes writing-photo { 0%, 54% { opacity: 0; transform: scale(.94); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes writing-shine { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
@keyframes progress-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .writing-beam, .writing-spark, .writing-card .line, .writing-card .photo, .writing-bar i, .progress-filler.swap { animation: none; }
  .writing-spark { display: none; }
}

/* Emzák, mimozemšťan v tvare bubliny (_ui.html mascot). Režimy: „work“ píše, „party“ sa teší. */
.mz { display: block; overflow: visible; }
.mz-body { fill: var(--marker); }
.mz-ant path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.mz-ant circle { fill: var(--ink); }
.mz-ant { transform-box: fill-box; }
.mz-ant-l { transform-origin: 100% 100%; }
.mz-ant-r { transform-origin: 0 100%; }
.mz-cheek { fill: #ff9db5; opacity: .7; }
.mz-smile { fill: var(--ink); transform-box: fill-box; transform-origin: 50% 0; }
.mz-float { transform-box: view-box; transform-origin: 24px 26px; }
.mz-eye { transform-box: fill-box; transform-origin: center; animation: mz-blink 5s ease-in-out infinite; }
.mz-work .mz-float { animation: mz-hover 3s ease-in-out infinite; }
.mz-work .mz-look { animation: mz-scan 1.6s ease-in-out infinite; }          /* číta, čo píše */
.mz-work .mz-ant circle { animation: mz-glow 1.2s ease-in-out infinite; }
.mz-work .mz-ant-r circle { animation-delay: .6s; }
.mz-party .mz-float { animation: mz-in .9s cubic-bezier(.34, 1.4, .6, 1) both, mz-idle 2.8s ease-in-out .9s infinite; }
.mz-party .mz-ant-l { animation: mz-sway-l 1.6s ease-in-out infinite; }
.mz-party .mz-ant-r { animation: mz-sway-r 1.6s ease-in-out infinite; }
.mz-party .mz-smile { animation: mz-smile .5s cubic-bezier(.34, 1.5, .6, 1) .5s both; }
.mz-party .mz-cheek { animation: mz-cheek .8s ease-out .6s both; }
@keyframes mz-blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.15); } }
@keyframes mz-hover { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }
@keyframes mz-scan { 0%, 100% { transform: translateX(-1.8px); } 50% { transform: translateX(1.8px); } }
@keyframes mz-glow { 0%, 100% { fill: #15171c; } 50% { fill: #22b5ea; } }
@keyframes mz-in { 0% { transform: translateY(8px) scale(.7); opacity: 0; } 55% { transform: translateY(-3px) scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; } }
@keyframes mz-idle { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-2px) rotate(2deg); } }
@keyframes mz-sway-l { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(7deg); } }
@keyframes mz-sway-r { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-7deg); } }
@keyframes mz-smile { from { transform: scale(0); } }
@keyframes mz-cheek { from { opacity: 0; } }
@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; }
.admin-nav form { display: inline; }
.admin-nav button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
@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 .photo-edit { position: relative; }
.li-edit .photo-edit.removed img { opacity: .25; }
.li-edit .photo-tools { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.li-edit .photo-edit.empty .photo-tools { top: 12px; bottom: 0; align-content: center; justify-content: center; }
.li-edit .photo-tools .btn { cursor: pointer; }
.li-edit .photo-tools .btn-light { background: rgba(255, 255, 255, .94); color: #191919; }
@media (max-width: 560px) {   /* na mobile tlačidlá pod fotkou, aby ju nezakryli */
  .li-edit .photo-edit:not(.empty) .photo-tools { position: static; margin-top: 8px; }
}
.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: var(--fog); }
.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: var(--fog); 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: var(--fog); 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; }

/* Knižnica podkladov (stránka marketingu klienta aj backoffice) */
.lib-list { display: grid; gap: 12px; }
.lib-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.lib-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.lib-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.lib-actions form { margin: 0; }
.lib-approve { display: grid; gap: 8px; margin-top: 10px; }
.lib-approve .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 560px) { .lib-item { flex-direction: column; } .lib-thumb { width: 100%; height: 160px; } }
.lib-approve input[type=text], .lib-approve textarea { font: inherit; width: 100%; box-sizing: border-box;
  padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); }

/* ── Backoffice: prehľad (čo čaká na Erika, týždeň ľudí, bočný panel) ── */
.admin-nav a { padding: 6px 0; color: var(--muted); }
.admin-nav a:hover, .admin-nav a[aria-current] { color: var(--ink); }
.admin-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--marker); }
.bo { display: flex; flex-wrap: wrap; gap: 48px; }
.bo-main { flex: 999 1 640px; min-width: 0; display: grid; gap: 44px; }
.bo-main h2, .bo-side h2 { margin: 0 0 12px; }
.bo-main h2 { font-size: 1.9rem; }
.bo-date { margin: 0; color: var(--muted); }
.bo-main h1 { margin: 4px 0 18px; font-size: clamp(2.4rem, 5vw, 3.2rem); }
.bo-todo { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.bo-todo li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.bo-what { flex: 1 1 320px; min-width: 0; }
.bo-what b { display: block; font-size: 1.08rem; }
.bo-what small { color: var(--muted); font-size: .9rem; }
.bo-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); margin-right: 7px; }
.bo-dot.ok { background: var(--ok); } .bo-dot.warn { background: var(--warn); } .bo-dot.danger { background: var(--danger); }
.bo-todo .bo-dot { margin: 0; }
.bo-week { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.bo-week thead th { text-align: left; font-weight: 600; font-size: .82rem; color: var(--muted); padding: 0 6px 10px; }
.bo-week thead th:first-child { padding-left: 0; width: 28%; }
.bo-week tbody th { text-align: left; font-weight: 600; padding: 13px 12px 13px 0; }
.bo-week tbody tr { border-top: 1px solid var(--line); }
.bo-week td { padding: 0 6px; }
.bo-week .bo-client td { padding: 22px 0 8px; font-size: .85rem; font-weight: 600; color: var(--muted); border: 0; }
.bo-week .bo-client a { color: var(--ink); }
.bo-cell { display: block; height: 10px; border-radius: 3px; background: var(--fog); }
.bo-cell.done { background: var(--ink); }
.bo-cell.now { background: var(--marker); }
.bo-state { white-space: nowrap; color: var(--muted); padding-left: 12px !important; }
.bo-state a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.bo-state a:hover { color: var(--ink); text-decoration: underline; }
.bo-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.bo-legend span { display: inline-flex; align-items: center; gap: 7px; }
.bo-legend .bo-cell { width: 18px; height: 8px; }
.bo-side { flex: 1 1 300px; min-width: 0; align-self: flex-start; display: grid; gap: 30px; padding: 26px; border-radius: 22px;
  background: var(--fog); }
.bo-side h2 { font: 700 1rem/1.3 var(--font); }
.bo-big { font: 800 2.6rem/1 var(--display); font-stretch: 75%; }
.bo-bar { height: 8px; margin: 12px 0 10px; border-radius: 4px; background: #fff; overflow: hidden; }
.bo-bar span { display: block; height: 100%; background: var(--ink); }
.bo-note { margin: 0 0 6px; font-size: .92rem; color: var(--muted); }
.bo-next { margin: 0 0 10px; display: grid; font-size: .95rem; }
.bo-next a { color: var(--muted); text-decoration: none; }
.bo-next a:hover { color: var(--ink); text-decoration: underline; }
.bo-link { font-size: .92rem; font-weight: 600; }

/* ── Backoffice: detail postu (text vľavo, výhrady, priebeh a zdroj vpravo) ── */
.bo-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.bo-back svg { width: 16px; height: 16px; }
.bo-title { margin: 10px 0 8px; font-size: clamp(2.2rem, 5vw, 3rem); }
.bo-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; color: var(--muted); margin: 0 0 22px; }
.bo-meta b { color: var(--ink); }
.bo-meta span { display: inline-flex; align-items: center; }
.bo-post { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 24px; }
.bo-post-text { flex: 999 1 520px; min-width: 0; max-width: 680px; }
.bo-post-side { flex: 1 1 320px; min-width: 0; display: grid; gap: 28px; align-content: start; }
.bo-post-side h2 { font: 700 1rem/1.3 var(--font); margin: 0 0 10px; }
.bo-post-side p { margin: 0 0 8px; }
.bo-flag { border-left: 4px solid var(--marker); padding: 2px 0 2px 18px; }
.bo-flag ul { margin: 0 0 8px; padding-left: 18px; }
.bo-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.bo-timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.bo-timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.bo-quote { font-weight: 500; }

/* ── backoffice: prezentácie (admin_deck.html) ───────────── */
.deck-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; }
.deck-bar .muted { font-size: .9rem; }
.deck-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.deck-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.deck-help { font-size: .88rem; margin: 10px 0 22px; }
.deck-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.deck-cols form { display: grid; gap: 10px; }
.deck-cols table.data form { display: inline; }
@media (max-width: 860px) { .deck-cols { grid-template-columns: 1fr; } }
