/* ČIRKES CMS – administrácia */

@font-face { font-family: "Inter"; src: url("../../assets/fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../assets/fonts/inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../assets/fonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../assets/fonts/inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../../assets/fonts/interdisplay-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../../assets/fonts/interdisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1c2226;
  --ink-2: #39434a;
  --muted: #5e686c;
  --faint: #8a9498;
  --line: #e1e6e4;
  --line-2: #cfd6d3;
  --bg: #f3f5f4;
  --panel: #ffffff;
  --hover: #eef2f1;
  --primary: #17434f;
  --primary-2: #0f3540;
  --primary-soft: #e3eeef;
  --accent: #d9a21b;
  --accent-soft: #fbf1d8;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #1e7a4f;
  --ok-soft: #e6f4ec;
  --warn: #9a5a06;
  --warn-soft: #fdf3e1;
  --side: #17262b;
  --side-ink: #b5c1c4;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(16 24 28 / 0.05), 0 1px 1px rgb(16 24 28 / 0.03);
  --shadow-lg: 0 20px 50px rgb(16 24 28 / 0.18), 0 4px 12px rgb(16 24 28 / 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font: 600 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
h2 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; }
code, .code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { flex: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -50px; z-index: 300; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; color: var(--ink); }
.block { display: block; }
.mt { margin-top: 12px; }
.mono-ish { font-variant-numeric: tabular-nums; word-break: break-all; }
.danger-text { color: var(--danger) !important; }
.warn-text { color: var(--warn); }
.page-lead { margin-bottom: 16px; }

/* ---------- Rozloženie ---------- */

.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  background: var(--side);
  color: var(--side-ink);
  overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; color: #fff; text-decoration: none !important; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--primary); display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.brand-mark span { width: 13px; height: 8px; border-radius: 2px; background: var(--accent); }
.brand-hex { width: 30px; height: 30px; flex: none; display: block; }
.sidebar-site { font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sidebar-nav { flex: 1; padding: 6px 10px; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav > ul > li { margin-bottom: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px;
  color: var(--side-ink);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none !important;
}
.sidebar-nav a:hover { color: #fff; background: rgb(255 255 255 / 0.06); }
.sidebar-nav li.is-active > a { color: #fff; background: rgb(255 255 255 / 0.09); box-shadow: inset 3px 0 0 var(--accent); }
.sidebar-sub { margin: 2px 0 6px 29px !important; }
.sidebar-sub a { padding: 5px 10px; font-size: 13px; }
.sidebar-sub li.is-active a { color: #fff; }
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; text-align: center; }
.sidebar-brand.has-logo { flex-direction: column; align-items: flex-start; gap: 10px; }
.sidebar-brand .brand-logo { display: block; max-width: 100%; max-height: 36px; width: auto; height: auto; }
.sidebar-brand .brand-logo-tile { max-height: 44px; padding: 6px 10px; border-radius: 8px; background: #fff; }
.sidebar-foot { padding: 12px 10px 16px; border-top: 1px solid rgb(255 255 255 / 0.08); }
.sidebar-foot a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--side-ink); border-radius: var(--radius-sm); }
.sidebar-foot a:hover { color: #fff; background: rgb(255 255 255 / 0.06); text-decoration: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  min-height: 60px;
  padding: 0 28px;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.topbar-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb::after { content: "/"; margin-left: 10px; color: var(--line-2); }
.topbar-user { flex: none; }
.btn.topbar-site { flex: none; margin-left: auto; gap: 7px; min-height: 34px; padding: 4px 13px; background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary); font-weight: 600; }
.btn.topbar-site:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }
.topbar-site-short { display: none; }
.admin-foot { margin-top: auto; padding: 14px 28px 20px; font-size: 12.5px; color: var(--muted); }
.admin-foot a { color: inherit; }
.admin-foot a:hover { color: var(--primary); }
.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; }
.btn.sidebar-toggle { display: none; }

.content { padding: 24px 28px 64px; width: 100%; max-width: 1280px; }
.content-wide { max-width: none; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform 0.2s ease; }
  .sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .btn.sidebar-toggle { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .content { padding: 18px 14px 56px; }
  .topbar-name { display: none; }
  .btn.topbar-site { padding: 4px 10px; }
  .topbar-site-long { display: none; }
  .topbar-site-short { display: inline; }
  .admin-foot { padding: 12px 14px 18px; }
  .hide-sm { display: none; }
  .show-sm { display: inline !important; }
}
.show-sm { display: none; }

/* ---------- Tlačidlá ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  font: 500 14px/1.2 var(--font);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #c79316; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn-lg { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-icon { padding: 0; width: 36px; }
.btn-sm.btn-icon { width: 30px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
details > summary.btn { list-style: none; }
details > summary.btn::-webkit-details-marker { display: none; }

/* ---------- Karty a mriežky ---------- */

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card > h2 { margin-bottom: 2px; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-tight { gap: 14px 16px; }
.grid-2.grid-tight > .field + .field, .grid-3 > .field + .field { margin-top: 0; }
.grid-side { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-side-right { grid-template-columns: minmax(0, 1fr) 300px; }
.form-narrow { max-width: 560px; }
@media (max-width: 1100px) { .grid-side, .grid-side-right { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head > p { max-width: 70ch; }
.page-head-main { flex: 1; min-width: 0; }

/* ---------- Formuláre ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-sm { max-width: 260px; }
label, .label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="search"],
input[type="datetime-local"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  font: 400 14px/1.4 var(--font);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
textarea { resize: vertical; line-height: 1.5; }
textarea.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; background: #fbfcfc; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e686c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.input-lg { font-size: 17px !important; font-weight: 600 !important; min-height: 44px !important; }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.check-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.input-prefix-text { display: flex; align-items: center; padding: 0 10px; background: var(--bg); color: var(--muted); font-size: 13px; border-right: 1px solid var(--line); max-width: 55%; overflow: hidden; white-space: nowrap; }
.input-prefix input { border: 0; border-radius: 0; box-shadow: none !important; }
.input-prefix-btn { border-radius: 0; border-left: 1px solid var(--line) !important; min-height: auto; }
.search-input { position: relative; flex: 1; min-width: 200px; max-width: 420px; }
.search-input .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-input input { padding-left: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters select { width: auto; }
.inline { display: inline; }
.counter-hint { font-size: 12px; color: var(--faint); text-align: right; margin-top: -2px; }
.counter-hint.is-over { color: var(--warn); }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-cards label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; }
.radio-cards label:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 14%, transparent); }
.radio-cards input { grid-row: span 2; margin-top: 3px; accent-color: var(--primary); }
.radio-cards b { font-weight: 600; }
@media (max-width: 760px) { .radio-cards { grid-template-columns: 1fr; } }

.lang-fields { display: grid; gap: 8px; }
.lang-field { display: flex; gap: 8px; align-items: flex-start; }
.lang-tag { flex: none; width: 34px; min-height: 38px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; color: var(--muted); }

.sticky-actions { position: sticky; bottom: 0; z-index: 5; padding: 14px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }

/* ---------- Upozornenia, odznaky ---------- */

.alert { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-soft); color: #134d33; border-color: #c4e5d2; }
.alert-error { background: var(--danger-soft); color: #7a1a12; border-color: #f6c9c3; }
.alert-warn { background: var(--warn-soft); color: #6b3e04; border-color: #f2dcb3; }
.alert-info { background: var(--primary-soft); color: var(--primary-2); border-color: #c9dcde; }
.alert-info a { color: inherit; }

/*demo*/
/* ukážka (demo režim) */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 9px 24px; background: var(--accent); color: #2b2003; font-size: 13.5px; line-height: 1.4; }
.demo-bar-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.demo-bar a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.demo-bar a.demo-bar-back { padding: 3px 10px; border-radius: 999px; background: #2b2003; color: #fff; text-decoration: none; }
.demo-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.demo-fieldset[disabled] { opacity: 0.6; }
.demo-locked-note { margin-bottom: 4px; }
.demo-points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.demo-points li { display: flex; gap: 8px; align-items: flex-start; }
.demo-points .icon { color: var(--ok); flex: none; margin-top: 2px; }
@media (max-width: 767px) { .demo-bar { padding: 9px 14px; } }
/*/demo*/
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #c4e5d2; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #f2dcb3; }
.badge-accent { background: var(--accent-soft); color: #7a5508; border-color: #f0dca5; margin-left: 6px; }

/* ---------- Taby ---------- */

.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; margin-bottom: -1px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; text-decoration: none !important; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--primary); }
.tabs-wide { margin-bottom: 20px; }
.tabs-small a { padding: 6px 10px; font-size: 13px; }
.tab-count { padding: 0 6px; border-radius: 8px; background: var(--bg); font-size: 11.5px; color: var(--muted); }

/* ---------- Tabuľky ---------- */

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px; background: #fafbfb; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfb; }
.table tr.is-unread td { background: #fffdf6; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions > * { vertical-align: middle; }
.row-actions .dropdown { display: inline-block; }
.col-check { width: 36px; }
.table-inputs td { padding: 8px 16px; }
.table-inputs input[type="text"] { min-width: 80px; }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bulk-bar select { width: auto; min-height: 30px; padding-top: 4px; padding-bottom: 4px; }
.pager { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.pager a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pager a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.lang-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.lang-pill { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 4px; font: 700 11px/1 var(--font); border: 1px solid var(--line-2); background: #fff; color: var(--muted); cursor: pointer; text-decoration: none !important; }
.lang-pill.is-ok { background: var(--primary-soft); border-color: #c4d9dc; color: var(--primary); }
.lang-pill.is-missing { border-style: dashed; }
.lang-pill.is-missing:hover { border-color: var(--primary); color: var(--primary); }
.lang-current { display: flex; align-items: center; gap: 8px; }

/* ---------- Rozbaľovacie menu ---------- */

.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 210px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px;
  font: 400 14px/1.3 var(--font);
  color: var(--ink);
  background: none; border: 0; border-radius: var(--radius-sm);
  cursor: pointer; text-align: left; text-decoration: none !important;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--hover); }
.dropdown-menu .danger { color: var(--danger); }
.dropdown-menu form { margin: 0; }

/* ---------- Nástenka ---------- */

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-hello { font: 600 26px/1.15 var(--font-display); letter-spacing: -0.025em; margin-bottom: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); }
.stat:hover { border-color: var(--line-2); }
.stat-num { font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-hot { border-color: #f0dca5; background: var(--accent-soft); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; }
.check-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; }
.checklist .is-done .check-dot { background: var(--ok); border-color: var(--ok); }
.checklist .is-done a { color: var(--muted); text-decoration: line-through; }
.empty { text-align: center; padding: 40px 20px; }
.empty h1, .empty h2 { margin-bottom: 8px; }
.empty p + p { margin-top: 16px; }

/* ---------- Úprava obsahu ---------- */

.edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .edit-layout { grid-template-columns: 1fr; } }
.edit-side { position: sticky; top: 80px; }
@media (max-width: 1100px) { .edit-side { position: static; } }
.builder-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, var(--primary-soft), #fff 70%); border-color: #cfe0e2; }
.builder-card-text { min-width: 0; }
.builder-card-text h2 { margin-bottom: 4px; font-size: 16px; }
@media (max-width: 760px) { .builder-card { flex-direction: column; align-items: stretch; } }
.seo-preview { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-family: Arial, sans-serif; }
.seo-url { font-size: 12.5px; color: #4d5156; margin-bottom: 2px; }
.seo-title { font-size: 18px; color: #1a0dab; line-height: 1.3; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-desc { font-size: 13.5px; color: #4d5156; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.revisions summary { cursor: pointer; list-style: none; }
.revisions summary h2 { display: inline-flex; align-items: center; gap: 8px; }
.revisions[open] summary { margin-bottom: 12px; }

.media-field { display: flex; flex-direction: column; gap: 10px; }
.media-field-preview { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: repeating-conic-gradient(#eef1f0 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); }
.media-field-preview img { width: 100%; height: 100%; object-fit: contain; }
.media-field-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.gallery-field { display: flex; flex-direction: column; gap: 12px; }
.gallery-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.gallery-thumbs:empty { display: none; }
.gallery-thumbs li { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); cursor: grab; border: 1px solid var(--line); }
.gallery-thumbs li.is-dragging { opacity: 0.4; }
.gallery-thumbs li.is-over { outline: 2px solid var(--primary); outline-offset: 2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gallery-remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(16 24 28 / 0.7); color: #fff; cursor: pointer; opacity: 0; transition: opacity 0.12s; }
.gallery-thumbs li:hover .gallery-remove, .gallery-remove:focus-visible { opacity: 1; }

/* ---------- Nastavenia ---------- */

.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.color-field { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.color-field input[type="color"] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; background: none; flex: none; }
.color-field > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.color-field input[type="text"] { min-height: 30px; padding: 4px 8px; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; word-break: break-word; }

/* ---------- Správy ---------- */

.message-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.message-fields div { min-width: 0; }
.message-fields .is-long { grid-column: 1 / -1; }
.message-fields dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.message-fields dd { margin: 0; font-size: 15px; word-break: break-word; }
.message-fields .is-long dd { padding: 14px 16px; background: var(--bg); border-radius: var(--radius-sm); line-height: 1.6; }

/* ---------- Menu editor ---------- */

.menu-source { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.menu-source summary { padding: 9px 12px; cursor: pointer; font-weight: 600; }
.menu-source-list { display: grid; gap: 7px; padding: 4px 12px 12px; max-height: 240px; overflow: auto; }
.menu-tree, .menu-tree ul { list-style: none; margin: 0; padding: 0; }
.menu-tree { display: grid; gap: 6px; margin-bottom: 16px; }
.menu-tree ul { display: grid; gap: 6px; margin: 6px 0 0 32px; }
.menu-item-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 4px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; }
.menu-item.is-dragging > .menu-item-row { opacity: 0.4; }
.menu-item.is-over > .menu-item-row { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 14%, transparent); }
.menu-item-grip { cursor: grab; color: var(--faint); display: grid; place-items: center; width: 24px; height: 28px; }
.menu-item-label { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item-kind { font-size: 12px; color: var(--muted); white-space: nowrap; }
.menu-item-edit { padding: 12px; margin-top: 4px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: #fbfcfc; display: grid; gap: 10px; }

/* ---------- Knižnica médií ---------- */

.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgb(16 24 28 / 0.55); }
.modal-box { width: min(1100px, 100%); height: min(760px, calc(100vh - 48px)); display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 16px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fafbfb; }
.modal-body { flex: 1; min-height: 0; display: flex; }
@media (max-width: 640px) { .modal { padding: 0; } .modal-box { height: 100vh; border-radius: 0; } }

.ml { display: grid; grid-template-columns: minmax(0, 1fr) 300px; flex: 1; min-height: 0; width: 100%; }
.ml-main { display: flex; flex-direction: column; min-height: 0; }
.ml-tools { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ml-tools select { width: auto; }
.ml-grid-wrap { flex: 1; overflow-y: auto; padding: 16px; position: relative; }
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.ml-item { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: repeating-conic-gradient(#f1f4f3 0 25%, #fff 0 50%) 0 0 / 14px 14px; cursor: pointer; }
.ml-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-item:hover { border-color: var(--line-2); }
.ml-item.is-selected { outline: 3px solid var(--primary); outline-offset: -3px; }
.ml-item-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: none; place-items: center; box-shadow: 0 0 0 2px #fff; }
.ml-item.is-selected .ml-item-check { display: grid; }
.ml-file { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: #f7f9f8; color: var(--muted); font-size: 12px; text-align: center; word-break: break-all; }
.ml-file b { font-size: 11px; color: var(--primary); background: var(--primary-soft); padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.ml-uploading { aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); display: grid; place-items: center; font-size: 12px; color: var(--muted); padding: 10px; text-align: center; background: #fbfcfc; }
.ml-uploading progress { width: 80%; }
.ml-uploading.is-error { color: var(--danger); border-color: #f6c9c3; background: var(--danger-soft); }
.ml-drop { position: absolute; inset: 8px; display: none; place-items: center; border: 2px dashed var(--primary); border-radius: var(--radius); background: rgb(227 238 239 / 0.92); color: var(--primary); font-weight: 600; font-size: 16px; z-index: 5; pointer-events: none; }
.ml.is-dragover .ml-drop { display: grid; }
.ml-side { border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; background: #fafbfb; }
.ml-side-empty { color: var(--muted); font-size: 13px; }
.ml-preview { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: repeating-conic-gradient(#eef1f0 0 25%, #fff 0 50%) 0 0 / 14px 14px; border: 1px solid var(--line); margin-bottom: 12px; display: grid; place-items: center; }
.ml-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ml-meta { font-size: 12.5px; color: var(--muted); word-break: break-all; margin-bottom: 12px; }
.ml-meta b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.ml-more { text-align: center; padding: 16px 0 4px; }
.media-page { height: calc(100vh - 170px); min-height: 520px; display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .ml { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .ml-side { border-left: 0; border-top: 1px solid var(--line); max-height: 40vh; }
}

/* ---------- Toast ---------- */

.toast-wrap { position: fixed; left: 50%; top: 68px; transform: translateX(-50%); z-index: 900; display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { padding: 11px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; max-width: 380px; animation: toast-in 0.2s ease; }
.toast-error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Prihlásenie ---------- */

.auth-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; background: var(--bg); }
.auth-box { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.auth-box h1 { font-size: 24px; margin-bottom: 16px; }
.auth-box .muted { margin-bottom: 16px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-brand b { display: block; font-size: 15px; line-height: 1.25; }
.auth-brand small { color: var(--muted); font-size: 12.5px; }
.auth-link { text-align: center; font-size: 13px; }
.auth-foot { margin-top: 16px; font-size: 13px; }
.auth-foot a { color: var(--muted); }
.auth-brand-foot { margin-top: 6px; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-brand-foot a { color: inherit; }
/* white-label: logo agentúry */
.auth-brand.has-logo { flex-direction: column; align-items: flex-start; gap: 14px; }
.auth-brand .brand-logo { display: block; max-width: 220px; max-height: 48px; width: auto; height: auto; }

/* ---------- Šablóny ---------- */
.tpl-hero { background: linear-gradient(135deg, var(--primary-soft), #fff 60%); border-color: #cfe0e2; }
.tpl-hero-title { font: 600 20px/1.25 var(--font-display); letter-spacing: -0.02em; margin-bottom: 4px; }
.tpl-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.tpl-steps > li { counter-increment: st; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tpl-steps > li::before { content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.tpl-steps > li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tpl-steps > li > .btn { align-self: center; }
.tpl-prompt { margin-top: 6px; background: #fbfcfc; font-size: 13px; resize: vertical; }
@media (max-width: 760px) { .tpl-steps > li { grid-template-columns: 32px 1fr; } .tpl-steps > li > .btn { grid-column: 2; justify-self: start; } }
.tpl-grid { margin: 20px 0; align-items: start; }
.tpl-drop { display: flex; align-items: center; gap: 14px; padding: 22px; border: 2px dashed var(--line-2); border-radius: var(--radius); background: #fbfcfc; cursor: pointer; font-weight: 400; }
.tpl-drop:hover, .tpl-drop.is-over { border-color: var(--primary); background: var(--primary-soft); }
.tpl-drop > span { display: flex; flex-direction: column; gap: 2px; }
.tpl-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpl-drop:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.tpl-paste summary { cursor: pointer; color: var(--primary); font-weight: 500; font-size: 13.5px; }
.tpl-paste[open] summary { margin-bottom: 8px; }
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tpl-group { margin: 0; padding: 10px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 7px; max-height: 280px; overflow: auto; }
.tpl-group legend { padding: 0 4px; font-weight: 600; }
.radio-cards-stack { grid-template-columns: 1fr; }
.tpl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tpl-stats > div { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 760px) { .tpl-stats { grid-template-columns: repeat(2, 1fr); } }
.tpl-warn { margin: 6px 0 0; padding-left: 18px; }
.tpl-swatches { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.tpl-swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(0 0 0 / 0.15); display: inline-block; }
.ml-item-ph { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; }
.dash-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Aktualizácia systému ---------- */
.upd-grid { align-items: start; }
.upd-current { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--primary-soft); }
.upd-current b { font-size: 20px; }
.upd-current a { align-self: flex-start; margin-top: 2px; }
.upd-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upd-points li { display: flex; gap: 10px; align-items: flex-start; }
.upd-points .icon { flex: none; margin-top: 2px; color: var(--ok); }
.upd-progress { display: grid; gap: 6px; }
.upd-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.upd-bar span { display: block; width: 0; height: 100%; background: var(--primary); transition: width 0.2s ease; }
.upd-versions { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding-bottom: 4px; }
.upd-v { display: inline-flex; align-items: center; gap: 8px; }
.upd-versions > .icon { margin-bottom: 6px; }
.upd-versions > div { display: flex; flex-direction: column; gap: 2px; }
.upd-versions b { font-size: 22px; }
.upd-versions .icon { color: var(--muted); }
.upd-sub { font-size: 15px; margin: 6px 0 6px; }
.upd-changes + * , .upd-changes { margin-bottom: 6px; }
.upd-changes { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.upd-pass-field { max-width: 360px; }
.upd-new { display: grid; gap: 10px; justify-items: start; padding: 16px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ok-soft) 55%, var(--panel)); }
.upd-new-locked { border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 45%, var(--panel)); }
.upd-new h2 { margin: 0; font-size: 20px; }
.upd-new .upd-changes { justify-self: stretch; font-size: 14px; }
.upd-new .btn-row { align-items: center; }
.upd-uptodate { display: flex; gap: 10px; align-items: flex-start; }
.upd-uptodate > .icon { flex: none; color: var(--ok); margin-top: 1px; }
.upd-uptodate > span { display: flex; flex-direction: column; gap: 2px; }
.upd-signed { display: flex; gap: 8px; align-items: center; color: var(--ok); font-size: 14px; }
.upd-signed .icon { flex: none; }
.upd-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; }
.upd-actions form { display: inline; }
.upd-rollback { position: relative; }
.upd-rollback > summary { list-style: none; cursor: pointer; }
.upd-rollback > summary::-webkit-details-marker { display: none; }
.upd-rollback[open] > summary { background: var(--bg); }
.upd-pass { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex !important; gap: 6px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.upd-pass input { min-width: 180px; }
.table-wrap { position: relative; overflow-x: auto; }

/* ---------- Ochrana formulárov ---------- */
.alert .icon { vertical-align: -3px; }
.plain-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

/* Hlavička a päta */
.parts-title { display: flex; align-items: center; gap: 10px; }
.parts-rows { display: grid; gap: 10px; }
.parts-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.parts-row-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.parts-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.parts-row-actions form { margin: 0; }

/* Oznámenie (oznamovacia lišta) – farby webu prichádzajú v premenných --np-* */
.notice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.notice-head h2 { margin: 0; }
.notice-link-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; }
.notice-link-row:not(:has(.lang-tag)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 760px) { .notice-link-row, .notice-link-row:not(:has(.lang-tag)) { grid-template-columns: 1fr; } }
.notice-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-style { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.notice-style:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.notice-style input { position: absolute; opacity: 0; pointer-events: none; }
.notice-style:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.notice-swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); }
.notice-swatch-primary, .notice-bar-primary { background: var(--np-primary); color: #fff; }
.notice-swatch-accent, .notice-bar-accent { background: var(--np-accent); color: var(--np-text); }
.notice-swatch-dark, .notice-bar-dark { background: var(--np-dark); color: #fff; }
.notice-swatch-alert, .notice-bar-alert { background: #b42318; color: #fff; }
.notice-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.notice-bar { position: relative; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 44px; font-size: 14.5px; line-height: 1.45; text-align: center; }
.notice-bar u { font-weight: 600; text-underline-offset: 3px; }
.notice-bar-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-grid; opacity: 0.85; }
.notice-bar [hidden] { display: none; }

/* Zdieľané bloky */
.blocks-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.blocks-new input[type=text] { flex: 1 1 260px; }
.blocks-new select { flex: 0 0 auto; width: auto; }
.blocks-info { flex: 1 1 320px; min-width: 0; }
.blocks-title { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.blocks-title .icon { color: var(--muted); }
.blocks-info p.small { margin: 0; }
.blocks-rename { position: relative; }
.blocks-rename > summary { list-style: none; }
.blocks-rename > summary::-webkit-details-marker { display: none; }
.blocks-rename[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; gap: 6px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.blocks-rename input { min-width: 220px; }
.inline-icon { display: inline-flex; vertical-align: -2px; }

/* Prílohy v správach z formulárov */
.message-fields .is-long dd:has(.msg-files) { padding: 0; background: none; }
.msg-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.msg-file { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.msg-file-thumb { flex: none; display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border-radius: 6px; background: var(--bg); color: var(--primary); }
.msg-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.msg-file-pdf { grid-template-rows: auto auto; gap: 2px; align-content: center; font-size: 11px; }
.msg-file-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.35; }
.msg-file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; font-size: 13px; }
.msg-file-actions a { display: inline-flex; align-items: center; gap: 4px; }
.msg-files-note { display: inline-flex; align-items: center; gap: 5px; flex-basis: 100%; }
.msg-clip { gap: 3px; margin-left: 4px; }

/* Kôš */
.nav-badge-muted { background: rgb(255 255 255 / 0.14); color: inherit; }
.trash-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trash-thumb { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 6px; background: var(--bg); color: var(--muted); }
.trash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trash-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trash-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-actions { text-align: right; white-space: nowrap; }
.trash-actions form + form { margin-left: 4px; }
.trash-empty { margin-top: 14px; text-align: right; }
@media (max-width: 760px) {
  .trash-table thead { display: none; }
  .trash-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .trash-table tr:last-child { border-bottom: 0; }
  .trash-table td { display: block; padding: 0; border: 0; }
  .trash-table td:first-child { flex: 1 1 100%; min-width: 0; }
  .trash-table td.hide-sm { display: none; }
  .trash-table .trash-actions { text-align: left; padding-left: 56px; }
  .trash-info b { white-space: normal; }
}

/* vyhľadávače a AI (?p=seo) */
.geo-checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.geo-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.geo-check:last-child { border-bottom: 0; }
.geo-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.geo-check.is-ok .geo-ico { background: var(--ok-soft); color: var(--ok); }
.geo-check.is-warn .geo-ico { background: var(--warn-soft); color: var(--warn); }
.geo-check.is-info .geo-ico { background: var(--primary-soft); color: var(--primary); }
.geo-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.geo-check > .btn { flex: none; margin-top: 2px; }
.geo-ai { grid-template-columns: repeat(3, 1fr); }
.geo-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.geo-link h2 { margin-bottom: 4px; }
.page-sub { font-size: 18px; margin-top: 4px; }
@media (max-width: 760px) {
  .geo-check { flex-wrap: wrap; padding: 12px 14px; }
  .geo-txt { flex: 1 1 calc(100% - 42px); }
  .geo-check > .btn { margin-left: 42px; }
  .geo-ai { grid-template-columns: 1fr; }
  .geo-link { flex-direction: column; align-items: flex-start; }
}

/* presmerovania a nenájdené adresy (?p=redirects) */
.card-pad { padding: 20px; }
.card-pad + .card-pad { padding-top: 0; }
.nf-table { border-top: 1px solid var(--line); }
.nf-path { min-width: 0; max-width: 340px; }
.nf-path a { display: block; overflow-wrap: anywhere; font-weight: 600; }
.nf-path .small { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.nf-hits { white-space: nowrap; }
.nf-hits .badge { margin-top: 4px; }
.nf-form { display: flex; gap: 6px; align-items: center; }
.nf-form input[type="text"] { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 260px; }
.nf-hide { width: 1%; text-align: right; }
.nf-bot-sm { display: none !important; }
.nf-foot { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; justify-content: flex-end; }
@media (max-width: 760px) {
  .nf-table thead { display: none; }
  .nf-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .nf-table tr:last-child { border-bottom: 0; }
  .nf-table td { display: block; padding: 0; border: 0; }
  .nf-table td.nf-path { flex: 1 1 0; max-width: none; order: 1; }
  .nf-table td.nf-hide { order: 2; width: auto; }
  .nf-table td.nf-to { flex: 1 1 100%; order: 3; }
  .nf-table td.hide-sm { display: none; }
  .nf-to .nf-bot-sm { display: inline-flex !important; margin-top: 6px; }
  .nf-form input[type="text"] { max-width: none; }
}

/* galéria šablón */
.tpl-gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tpl-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm, 10px); overflow: hidden; background: var(--panel, #fff); }
.tpl-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--bg); border-bottom: 1px solid var(--line); }
.tpl-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.tpl-card-body h3 { margin: 0; font-size: 16px; }
.tpl-card-body p { margin: 0; flex: 1; }
.tpl-card-cat { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }
.tpl-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
