:root {
  --blue: #013A8A;
  --orange: #F39A1F;
  --ink: #102033;
  --muted: #617089;
  --line: #dce5f2;
  --bg: #f5f8fc;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(1, 58, 138, .10);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(243,154,31,.12), transparent 32rem), var(--bg);
  line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.skip-link { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width:auto; height:auto; padding:.7rem 1rem; background:#fff; z-index:99; border-radius:12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: .65rem 1rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.brand { display:flex; align-items:center; gap:.65rem; font-weight: 900; color: var(--blue); letter-spacing: .02em; }
.brand img { border-radius: 14px; }
.main-nav { display:flex; align-items:center; justify-content:center; gap:.2rem; flex-wrap: wrap; }
.main-nav a { padding: .55rem .75rem; border-radius: 999px; color: var(--ink); font-weight: 650; }
.main-nav a.active, .main-nav a:hover { background: rgba(1,58,138,.08); color: var(--blue); text-decoration:none; }
.nav-icon-link { font-size: 1.08rem; line-height: 1; min-width: 2.4rem; text-align:center; }
.header-user { display:flex; align-items:center; gap:.5rem; justify-content:flex-end; }
.menu-toggle { display:none; border:1px solid var(--line); background:#fff; border-radius:999px; padding:.55rem .8rem; font-weight:700; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 1.2rem 1rem 2.5rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1rem; color: var(--muted); display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; max-width:1180px; margin:0 auto; }
.footer-links { display:flex; gap:.9rem; flex-wrap:wrap; }
.hero { display:grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap:1rem; align-items:stretch; margin: 1rem 0; }
.hero-text, .hero-card, .card, .recipe-card, .stat-card, .sponsor-box { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.hero-text { padding: clamp(1.2rem, 3vw, 2.2rem); }
.hero h1 { font-size: clamp(1.4rem, 3.5vw, 2.94rem); line-height: 1.02; margin: .2rem 0 1rem; color: var(--blue); letter-spacing: -.04em; }
.hero p { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.hero-actions, .action-row { display:flex; gap:.7rem; flex-wrap:wrap; align-items:center; margin-top:1rem; }
.hero-card { padding: 1.2rem; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.hero-card img { width: min(220px, 80%); filter: drop-shadow(0 20px 32px rgba(1,58,138,.16)); }
.hero-card strong { font-size:1.25rem; color:var(--blue); margin-top:.7rem; }
.eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size:.78rem; margin:0 0 .35rem; }
.btn { display:inline-flex; align-items:center; justify-content:center; border:0; background: var(--blue); color:#fff; border-radius: 999px; padding: .78rem 1.05rem; font-weight: 800; cursor:pointer; box-shadow: 0 12px 25px rgba(1,58,138,.18); }
.btn:hover { text-decoration:none; filter: brightness(1.04); }
.btn-secondary { background: var(--orange); color:#201000; }
.btn-small { padding: .5rem .75rem; font-size:.9rem; }
.link-muted { color: var(--muted); font-size:.9rem; }
.notification-pill { min-width: 1.8rem; height: 1.8rem; padding:0 .45rem; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-weight:900; }
.notification-pill-empty { background:#013a8a; color:#fff; }
.notification-pill-active { background:#f28c00; color:#fff; }
.user-chip { background:rgba(1,58,138,.08); padding:.45rem .65rem; border-radius:999px; color:var(--blue); font-weight:800; }
.stats-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1rem 0; }
.stat-card { padding: 1rem; }
.stat-card strong { display:block; color: var(--blue); font-size: clamp(1.8rem, 4vw, 3rem); line-height:1; }
.stat-card span { color: var(--muted); font-weight:650; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin: 1.4rem 0 .8rem; }
.section-head h1, .section-head h2 { margin:0; color: var(--blue); letter-spacing:-.03em; }
.recipe-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem; }
.recipe-card { overflow:hidden; transition: transform .16s ease, box-shadow .16s ease; }
.recipe-card:hover { transform: translateY(-3px); }
.recipe-card a { color:inherit; display:block; height:100%; }
.recipe-card a:hover { text-decoration:none; }
.recipe-card img { width:100%; aspect-ratio: 4/3; object-fit:cover; background:#eaf0f8; }
.recipe-card-body { padding: .9rem; }
.recipe-card h2, .recipe-card h3 { margin:.45rem 0; color:var(--blue); line-height:1.15; }
.recipe-card p { color:var(--muted); margin:.4rem 0 .65rem; }
.badge { display:inline-flex; align-items:center; width:max-content; border-radius:999px; padding:.28rem .55rem; color:#281400; background:rgba(243,154,31,.22); font-size:.82rem; font-weight:900; }
.card { padding: 1rem; }
.narrow { max-width: 780px; margin: 1rem auto; }
.alert { padding: .8rem 1rem; border-radius: 16px; margin: .8rem 0; border: 1px solid var(--line); background:#fff; }
.alert-warning { background:#fff7e8; border-color:#ffd89e; }
.alert-info { background:#edf5ff; border-color:#cfe3ff; }
.alert-success { background:#eefaf2; border-color:#c4ecd1; }
.alert-error { background:#fff0f0; border-color:#ffcccc; }
.search-bar { display:flex; gap:.6rem; margin: .8rem 0 1rem; }
.search-bar input, input, textarea, select { width:100%; border:1px solid var(--line); border-radius: 16px; padding:.8rem .9rem; font:inherit; background:#fff; }
.recipe-detail { display:grid; gap: .9rem; }
.detail-header { display:flex; justify-content:space-between; gap:1rem; align-items:start; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:1rem; box-shadow:var(--shadow); }
.detail-header h1 { margin:.35rem 0; color:var(--blue); font-size:clamp(2rem, 4vw, 3.4rem); line-height:1; letter-spacing:-.04em; }
.rating-box { min-width: 145px; text-align:center; border-radius: 18px; padding:.8rem; background:rgba(1,58,138,.08); }
.rating-box strong { display:block; font-size:2rem; color:var(--blue); }
.muted { color: var(--muted); }
.detail-photo { width:100%; max-height: 560px; object-fit:cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.two-col { display:grid; grid-template-columns: .75fr 1.25fr; gap: .9rem; }
.preline { white-space: pre-line; }
.ingredient-list { margin:.2rem 0 0; padding-left:1.15rem; display:grid; gap:.35rem; }
.ingredient-list li { line-height:1.35; }
.sponsor-box { padding:1rem; display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.sponsor-box span { color:var(--muted); }
.comments .comment { border-left: 4px solid rgba(1,58,138,.16); padding:.6rem .8rem; margin-top:.7rem; background:#f8fbff; border-radius: 0 14px 14px 0; }
.comment time { color:var(--muted); font-size:.88rem; margin-left:.5rem; }
.list-stack { display:grid; gap:.8rem; }
.legal h1, .legal h2 { color:var(--blue); }
.profile-card { text-align:center; }
.profile-card img { width:150px; height:150px; border-radius:50%; object-fit:cover; margin:0 auto .8rem; }
.offline-card { text-align:center; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
code { background:#eef3fb; padding:.12rem .32rem; border-radius:8px; }
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto auto; }
  .menu-toggle { display:inline-flex; justify-self:end; }
  .main-nav { display:none; grid-column:1 / -1; justify-content:flex-start; }
  .main-nav.open { display:flex; }
  .header-user { grid-column:1 / -1; justify-content:flex-start; flex-wrap:wrap; }
  .hero, .two-col { grid-template-columns:1fr; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .page-shell { padding:.8rem .7rem 1.5rem; }
  .recipe-grid, .stats-grid { grid-template-columns:1fr; }
  .search-bar, .detail-header, .section-head { flex-direction:column; align-items:stretch; }
  .site-footer { display:block; }
}
@media print {
  .site-header, .site-footer, .no-print, .btn { display:none !important; }
  body { background:#fff; }
  .page-shell { max-width:none; padding:0; }
  .card, .detail-header { box-shadow:none; border-color:#ddd; }
}

/* Etapa 1 — recepty */
.form-grid, .filter-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:.85rem; align-items:start; }
.filter-grid { grid-template-columns: repeat(5, minmax(145px, 1fr)); }
.two-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recipe-form label, .filter-panel label, .rating-form label { display:grid; gap:.28rem; font-weight:750; }
.recipe-form label span, .filter-panel label span, .rating-form label span { color:var(--blue); font-size:.94rem; }
.recipe-form textarea { resize:vertical; }
.switch-row, .badge-row { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; margin:.8rem 0; }
.checkline { display:inline-flex !important; grid-template-columns:auto 1fr; align-items:center; gap:.45rem; width:max-content; padding:.45rem .65rem; border:1px solid var(--line); border-radius:999px; background:#fff; }
.checkline input { width:auto; }
.status { display:inline-flex; border-radius:999px; padding:.25rem .55rem; background:#edf3fb; color:var(--muted); font-size:.82rem; font-weight:900; }
.status-approved { background:#e8f7ed; color:#17632a; }
.status-pending { background:#fff5de; color:#7b4a00; }
.status-rejected { background:#ffecec; color:#8d1d1d; }
.recipe-row { display:grid; grid-template-columns: 180px 1fr; gap:1rem; align-items:start; }
.recipe-row img { width:180px; aspect-ratio:4/3; object-fit:cover; border-radius:18px; background:#eaf0f8; }
.recipe-row h2 { margin:.4rem 0; color:var(--blue); }
.result-count { margin:.9rem .2rem; }
.current-photo { display:flex; gap:.7rem; align-items:center; margin:.7rem 0; }
.current-photo img { border-radius:16px; box-shadow:var(--shadow); }
.rating-form { display:flex; gap:.7rem; flex-wrap:wrap; align-items:end; }
.rating-form select { min-width:150px; }
.table-wrap { overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; min-width:620px; }
.data-table th, .data-table td { padding:.65rem .7rem; border-bottom:1px solid var(--line); text-align:left; }
.data-table th { color:var(--blue); background:#f1f6fd; }
@media (max-width: 980px) { .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .form-grid, .filter-grid, .two-even, .recipe-row { grid-template-columns:1fr; }
  .recipe-row img { width:100%; }
  .rating-form { display:grid; }
}
.soft-separator { border:0; border-top:1px solid var(--line); margin:1.2rem 0; }
.compact-form { display:grid; gap:.75rem; margin-top:.85rem; }
.compact-form label { display:grid; gap:.28rem; font-weight:750; }
.compact-form label span { color:var(--blue); font-size:.94rem; }

/* Etapa 2 — používatelia, profily, Google login */
.profile-layout { display:grid; grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr); gap: .9rem; align-items:start; }
.profile-hero { display:grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; align-items:center; margin: 1rem 0; }
.profile-hero img, .user-cell img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background:#eef3fb; }
.user-cell { display:flex; align-items:center; gap:.55rem; min-width: 190px; }
.user-cell img { width:42px; height:42px; box-shadow: none; }
.setup-box { border:1px dashed var(--line); border-radius:18px; padding:.9rem; background:#fbfdff; }
.inline-admin-form { display:flex; gap:.45rem; flex-wrap:wrap; align-items:center; }
.inline-admin-form select { min-width: 130px; padding:.55rem .65rem; border-radius:12px; }
.users-table td { vertical-align:middle; }
@media (max-width: 760px) {
  .profile-layout, .profile-hero { grid-template-columns:1fr; }
  .profile-hero img { margin:0 auto; }
}

/* Profil — súhrn bodov a index kvality verejných receptov */
.profile-stats-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:.6rem;
  margin-top:.9rem;
}
.profile-stat {
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:.7rem .8rem;
  min-width:0;
}
.profile-stat strong {
  display:block;
  color:var(--blue);
  font-size:clamp(1.25rem, 2.7vw, 2rem);
  line-height:1.05;
  white-space:nowrap;
}
.profile-stat span {
  display:block;
  color:var(--muted);
  font-size:.86rem;
  font-weight:800;
  margin-top:.18rem;
}
.profile-stat-quality strong { color:var(--orange); }
.profile-stats-grid-compact { grid-template-columns:1fr; text-align:left; }
@media (max-width: 640px) {
  .profile-stats-grid { grid-template-columns:1fr; }
}


/* Úpravy detailu receptu a tlače do PDF */
.annotation-card p { margin:0; font-size:1.04rem; line-height:1.55; }
.recipe-media-grid { display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap:.9rem; align-items:stretch; }
.recipe-photo-panel { margin:0; min-width:0; }
.recipe-media-grid .detail-photo { width:100%; height:100%; max-height:520px; min-height:260px; object-fit:cover; display:block; }
.method-card { width:100%; }
.compact-rating-card { padding:.75rem 1rem; }
.rating-inline { display:flex; gap:.8rem; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.rating-summary-inline { display:inline-flex; align-items:baseline; gap:.35rem; white-space:nowrap; }
.rating-summary-inline strong { color:var(--blue); font-size:1.35rem; }
.rating-form-inline { margin:0; }
.login-note { margin: .85rem 0 0; padding:.75rem .9rem; border:1px solid var(--line); border-radius:18px; background:#fff; color:var(--muted); font-weight:650; }
.login-note a { font-weight:950; color:var(--blue); }
.nav-icon-link { min-width:2.2rem; text-align:center; }
@media (max-width: 760px) {
  .recipe-media-grid { grid-template-columns:1fr; }
  .recipe-photo-panel { order:-1; }
  .recipe-media-grid .detail-photo { height:auto; min-height:0; max-height:420px; }
  .rating-inline { align-items:flex-start; justify-content:flex-start; }
}
@media print {
  .recipe-media-grid { grid-template-columns:1fr 1fr; }
  .recipe-photo-panel { order:0; }
  .recipe-media-grid .detail-photo { max-height:420px; min-height:0; }
}

/* Jednotné stránkovanie receptov — 24 receptov na stránku */
.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.35rem;
  flex-wrap:wrap;
  margin:1.15rem 0 .4rem;
}
.pagination-link,
.pagination-ellipsis {
  min-width:2.35rem;
  min-height:2.35rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.48rem .72rem;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--blue);
  font-weight:850;
  box-shadow:0 8px 20px rgba(1,58,138,.08);
}
.pagination-link:hover,
.pagination-link.active {
  background:var(--blue);
  color:#fff;
  text-decoration:none;
  border-color:var(--blue);
}
.pagination-prev,
.pagination-next { min-width:auto; }
.pagination-ellipsis { color:var(--muted); box-shadow:none; background:transparent; border-color:transparent; }
@media (max-width: 560px) {
  .pagination { justify-content:flex-start; }
  .pagination-link,
  .pagination-ellipsis { min-width:2.15rem; min-height:2.15rem; padding:.42rem .62rem; }
}

/* Administrátorské doplnky: verzie receptov a optimalizácia */
.btn-danger { background:#b42318; color:#fff; border-color:#b42318; }
.btn-danger:hover { filter:brightness(.96); }
.admin-danger-zone { border-color:#ffd0c9; background:linear-gradient(180deg,#fff,#fff7f6); }
.version-list { display:grid; gap:.65rem; margin-top:1rem; }
.version-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem .85rem; border:1px solid var(--line); border-radius:16px; background:#fff; }
.version-row form { margin:0; }
.version-actions { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
@media (max-width: 680px) {
    .version-row { align-items:flex-start; flex-direction:column; }
}

/* Admin štatistiky */
.stat-card strong.stat-value-orange { color: var(--orange); }

/* Administrácia — klikateľné štatistiky a zoznam neaktívnych verzií */
.stat-card-link {
  display:block;
  color:inherit;
  text-decoration:none;
  background:#fff6c9;
  border-color:#eadb8a;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.stat-card-link:hover {
  text-decoration:none;
  transform: translateY(-3px);
  background:#fff1ad;
  border-color: rgba(243,154,31,.65);
  box-shadow: 0 18px 44px rgba(243,154,31,.18);
}
.inactive-version-list { display:grid; gap:.85rem; margin-top:1rem; }
.inactive-version-item { display:grid; grid-template-columns: 170px 1fr; gap:1rem; align-items:start; border:1px solid var(--line); border-radius:18px; padding:.85rem; background:#fff; }
.inactive-version-item img { width:170px; aspect-ratio:4/3; object-fit:cover; border-radius:16px; background:#eaf0f8; }
.inactive-version-body h2 { margin:.35rem 0; color:var(--blue); line-height:1.15; }
@media (max-width: 640px) {
  .inactive-version-item { grid-template-columns:1fr; }
  .inactive-version-item img { width:100%; }
}

/* Etapa 3 — komentáre, reakcie, hlásenia a notifikácie */
.comment-add-section { margin:1rem 0 1.1rem; }
.comment-form, .comment-report-form { display:grid; gap:.6rem; }
.comment-form label, .comment-report-form label, .admin-comment-actions label { display:grid; gap:.28rem; font-weight:750; }
.comment-form label span:not(.sr-only), .comment-report-form label span:not(.sr-only), .admin-comment-actions label span:not(.sr-only) { color:var(--blue); font-size:.94rem; }
.comment-form-main .btn { justify-self:start; margin-bottom:.65rem; }
.comment-approval-note { margin:.15rem 0 0; }
.comments { margin-top:0; }
.comments h2 { margin:.1rem 0 .75rem; color:var(--blue); }
.comment-tree { display:grid; gap:.75rem; margin-top:.25rem; }
.comment-node { margin-left: calc(var(--depth, 0) * 20px); scroll-margin-top: 5.5rem; }
.comment-card { border-left:4px solid rgba(1,58,138,.22); background:#f8fbff; border-radius:0 18px 18px 0; padding:.68rem .86rem; }
.comment-node.comment-pending .comment-card { background:#fffaf0; border-left-color:#F39A1F; }
.comment-node.comment-hidden .comment-card { background:#fff4f2; border-left-color:#b42318; }
.comment-head { display:flex; align-items:flex-start; justify-content:space-between; gap:.6rem; margin-bottom:.08rem; line-height:1.25; }
.comment-head strong { display:inline-block; }
.comment-head time { color:var(--muted); font-size:.88rem; margin-left:.45rem; }
.comment-text { margin:.08rem 0 0; line-height:1.45; }
.comment-card > .muted { margin:.1rem 0 0; }
.comment-actions { display:flex; gap:.7rem; align-items:center; flex-wrap:wrap; margin-top:.45rem; }
.link-button { border:0; background:transparent; color:var(--blue); padding:0; font:inherit; font-weight:850; cursor:pointer; }
.link-button:hover { text-decoration:underline; }
.inline-details { border:1px solid var(--line); border-radius:16px; padding:.42rem .62rem; background:#fff; }
.inline-details summary { cursor:pointer; color:var(--blue); font-weight:850; }
.inline-details[open] { display:block; width:min(100%, 680px); }
.inline-details[open] summary { margin-bottom:.55rem; }
.comment-children { display:grid; gap:.75rem; margin-top:.75rem; }
.compact-badges { margin:0; }
.comment-reply-modal { position:fixed; inset:0; z-index:80; display:flex; align-items:center; justify-content:center; padding:1rem; background:rgba(16,32,51,.38); backdrop-filter:blur(2px); }
.comment-reply-modal[hidden] { display:none; }
body.modal-open { overflow:hidden; }
.comment-reply-dialog { position:relative; width:min(92vw, 620px); border:1px solid var(--line); border-radius:22px; padding:1.1rem; box-shadow:0 24px 70px rgba(16,32,51,.24); background:#fff; }
.comment-reply-dialog h2 { margin:.1rem 2rem .25rem 0; color:var(--blue); }
.dialog-close { position:absolute; top:.7rem; right:.8rem; width:2rem; height:2rem; border:1px solid var(--line); border-radius:999px; background:#fff; cursor:pointer; font-size:1.25rem; line-height:1; }
.dialog-actions { display:flex; gap:.55rem; flex-wrap:wrap; align-items:center; }
.reply-context { margin:.15rem 0 .75rem; }
.notifications-panel h2 { margin:.25rem 0; color:var(--blue); font-size:1.15rem; }
.notification-list { display:grid; gap:.75rem; margin-top:.9rem; }
.notification-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1rem; align-items:start; border:1px solid var(--line); border-radius:18px; padding:.85rem; background:#fff; }
.notification-item.unread { border-color:#f6ca62; background:#fffdf6; box-shadow:0 12px 28px rgba(243,154,31,.12); }
.notification-body p { margin:.3rem 0 0; color:var(--muted); }
.notification-actions { display:flex; gap:.45rem; align-items:center; justify-content:flex-end; flex-wrap:wrap; }
.notification-actions form { margin:0; }
.admin-comment-list { display:grid; gap:.9rem; margin-top:1rem; }
.admin-comment-item { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.45fr); gap:1rem; border:1px solid var(--line); border-radius:20px; background:#fff; padding:1rem; scroll-margin-top:5.5rem; }
.admin-comment-main h2 { margin:.35rem 0; color:var(--blue); }
.admin-comment-text { white-space:pre-line; padding:.8rem .9rem; border:1px solid var(--line); border-radius:16px; background:#f8fbff; }
.admin-comment-actions { display:grid; gap:.65rem; align-content:start; }
.admin-comment-stats { grid-template-columns:repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .notification-item, .admin-comment-item { grid-template-columns:1fr; }
  .notification-actions { justify-content:flex-start; }
}
@media (max-width: 560px) {
  .comment-head { flex-direction:column; align-items:stretch; }
  .admin-comment-stats { grid-template-columns:1fr; }
}

.card.recipe-row-private, .recipe-row.recipe-row-private, article.recipe-row-private { background-color:#FAACAC !important; background-image:none !important; }
.recipe-row-private .muted { color:#50313a; }
.recipe-row-private img { background:#fff; }
.danger-link { color:#b42318; font-weight:800; }
.inline-comment-delete { display:inline; margin:0; }
.transfer-summary-card strong, .transfer-confirm-card strong { color:var(--blue); }
.transfer-search-form { display:flex; gap:.7rem; align-items:end; flex-wrap:wrap; }
.transfer-search-form label { display:grid; gap:.3rem; min-width:min(100%, 320px); font-weight:750; }
.transfer-user-list { display:grid; gap:.65rem; margin-top:.8rem; }
.transfer-user-item { display:flex; gap:.8rem; align-items:center; justify-content:space-between; border:1px solid var(--line); border-radius:16px; padding:.75rem .9rem; background:#fff; }
.transfer-user-current { background:#fff7e8; border-color:rgba(243,154,31,.45); }
.inline-transfer-form { margin:0; display:inline-flex; align-items:center; }
.user-transfer-link { font-weight:850; color:var(--blue); text-decoration:none; }
.user-transfer-link:hover { text-decoration:underline; }
@media (max-width: 720px) {
  .transfer-user-item { align-items:flex-start; flex-direction:column; }
}

/* Verzia 8 — admin import receptov zo starého SFK HTML */
.sfk-import-source-form textarea { min-height: 420px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size:.9rem; }
.sfk-import-summary h2 { margin:.1rem 0 .75rem; color:var(--blue); }
.sfk-import-summary-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:.7rem; }
.sfk-import-summary-grid p { margin:0; padding:.7rem .8rem; border:1px solid var(--line); border-radius:16px; background:#fbfdff; overflow-wrap:anywhere; }
.sfk-import-image-preview { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:1rem; align-items:start; margin-top:.9rem; padding-top:.9rem; border-top:1px solid var(--line); }
.sfk-import-image-preview a { overflow-wrap:anywhere; }
.sfk-import-image-preview img { width:220px; aspect-ratio:4/3; object-fit:cover; border-radius:16px; border:1px solid var(--line); background:#eaf0f8; }
.sfk-import-image-option { display:grid; gap:.28rem; font-weight:750; }
.sfk-import-image-option > span { color:var(--blue); font-size:.94rem; }
.sfk-import-image-option p { margin:.2rem 0 0; }
@media (max-width: 760px) {
  .sfk-import-summary-grid, .sfk-import-image-preview { grid-template-columns:1fr; }
  .sfk-import-image-preview img { width:100%; }
}

/* Verzia 12 — schvaľovanie čakajúcich receptov */
.admin-pending-recipe-list { display:grid; gap:.9rem; margin-top:1rem; }
.admin-pending-recipe-item {
  display:grid;
  grid-template-columns: 180px minmax(0,1fr) minmax(180px,.28fr);
  gap:1rem;
  align-items:start;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  padding:1rem;
}
.admin-pending-recipe-photo img { width:180px; aspect-ratio:4/3; object-fit:cover; border-radius:16px; background:#eaf0f8; border:1px solid var(--line); }
.admin-pending-recipe-main h2 { margin:.35rem 0; color:var(--blue); line-height:1.15; }
.admin-pending-recipe-preview { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:.75rem; margin-top:.65rem; }
.admin-pending-recipe-preview > div { border:1px solid var(--line); border-radius:16px; background:#f8fbff; padding:.75rem .85rem; }
.admin-pending-recipe-preview strong { color:var(--blue); }
.admin-pending-recipe-preview p { margin:.3rem 0 0; color:var(--muted); }
.admin-pending-recipe-actions { display:grid; gap:.55rem; align-content:start; }
@media (max-width: 980px) {
  .admin-pending-recipe-item { grid-template-columns:1fr; }
  .admin-pending-recipe-photo img { width:100%; }
  .admin-pending-recipe-actions { display:flex; flex-wrap:wrap; }
}
@media (max-width: 640px) {
  .admin-pending-recipe-preview { grid-template-columns:1fr; }
}

/* Verzia 14 — profilové neverejné položky a video odkazy receptov */
.recipe-video-card h2 { margin-top:0; color:var(--blue); }
.recipe-video-links { display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.admin-private-head { margin-top:1.4rem; }
.private-profile-item { border-color:#f4a3a3 !important; background:#fff7f7 !important; }
.recipe-card.private-profile-item { background:#fff7f7 !important; }
.badge-private { background:#FAACAC; color:#5b1e1e; border-color:#ee8f8f; margin-left:.35rem; }

.inline-admin-delete-recipe { display:inline; margin:0; }

/* Etapa 4B + 4C — moje kuchárske knihy a správa receptov */
.card-title-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.card-title-row h2 { margin:.15rem 0; color:var(--blue); }
.btn:disabled,
.btn[disabled] {
  opacity:.42;
  cursor:not-allowed;
  box-shadow:none;
  filter:none;
}
.cookbook-status-draft { background:#edf2f8; color:#42526a; }
.cookbook-status-pending { background:#fff3d6; color:#7a4b00; }
.cookbook-status-approved { background:#e7f8ed; color:#166534; }
.cookbook-status-rejected { background:#ffe8e8; color:#9b1c1c; }
.cookbook-status-hidden { background:#ece7f7; color:#5b3b82; }

.cookbook-limit-note {
  display:inline-flex;
  align-items:baseline;
  gap:.45rem;
  padding:.65rem .9rem;
  margin-bottom:.4rem;
}
.cookbook-limit-note strong { color:var(--blue); font-size:1.2rem; }
.cookbook-limit-note span { color:var(--muted); font-weight:700; }
.cookbook-owner-list { display:grid; gap:.85rem; }
.cookbook-owner-card {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:1rem;
  align-items:start;
}
.cookbook-owner-main h2 { margin:.45rem 0; color:var(--blue); }
.cookbook-owner-main p { margin:.4rem 0; }
.cookbook-owner-actions {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.5rem;
  min-width:190px;
}
.cookbook-owner-actions form { margin:0; }
.cookbook-owner-actions .btn { width:100%; }
.cookbook-empty-state { text-align:center; }
.cookbook-empty-state h2 { color:var(--blue); }

.cookbook-form { display:grid; gap:1rem; max-width:840px; }
.cookbook-form > label { display:grid; gap:.32rem; font-weight:800; }
.cookbook-form > label > span { color:var(--blue); }
.cookbook-visibility-options {
  border:1px solid var(--line);
  border-radius:18px;
  padding:.8rem;
  display:grid;
  gap:.65rem;
}
.cookbook-visibility-options legend { color:var(--blue); font-weight:900; padding:0 .35rem; }
.cookbook-visibility-option {
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:.7rem;
  align-items:start;
  border:1px solid var(--line);
  border-radius:16px;
  padding:.75rem;
  background:#fff;
  cursor:pointer;
}
.cookbook-visibility-option:has(input:checked) {
  border-color:rgba(1,58,138,.5);
  background:#f4f8ff;
  box-shadow:0 8px 20px rgba(1,58,138,.08);
}
.cookbook-visibility-option input { width:auto; margin-top:.25rem; }
.cookbook-visibility-option strong,
.cookbook-visibility-option small { display:block; }
.cookbook-visibility-option small { color:var(--muted); margin-top:.14rem; }
.cookbook-immutable-info {
  display:grid;
  grid-template-columns:auto auto 1fr;
  gap:.65rem;
  align-items:center;
  border:1px solid var(--line);
  border-radius:16px;
  padding:.75rem .9rem;
  background:#f8fbff;
}
.cookbook-immutable-info span { color:var(--muted); font-weight:750; }
.cookbook-immutable-info strong { color:var(--blue); }
.cookbook-immutable-info small { color:var(--muted); }
.cookbook-prefill-recipe {
  display:flex;
  gap:.5rem;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:.8rem;
}
.cookbook-prefill-recipe strong { color:var(--blue); }

.cookbook-selected-recipe {
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:1rem;
  align-items:start;
  margin-bottom:1rem;
}
.cookbook-selected-recipe img {
  width:180px;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:16px;
  background:#eaf0f8;
}
.cookbook-selected-recipe h2 { color:var(--blue); margin:.35rem 0; }
.cookbook-choice-list { display:grid; gap:.75rem; }
.cookbook-choice-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:1rem;
  align-items:center;
}
.cookbook-choice-card h2 { color:var(--blue); margin:.35rem 0; }
.cookbook-choice-card form { margin:0; }
.cookbook-choice-disabled { opacity:.7; background:#f7f9fc; }
.cookbook-choice-disabled > strong { color:var(--muted); }

.cookbook-current-recipes,
.cookbook-add-panel { margin-top:1rem; }
.cookbook-recipe-list { display:grid; gap:.7rem; margin-top:.8rem; }
.cookbook-recipe-item {
  display:grid;
  grid-template-columns:42px 150px minmax(0,1fr) auto;
  gap:.8rem;
  align-items:center;
  border:1px solid var(--line);
  border-radius:18px;
  padding:.75rem;
  background:#fff;
}
.cookbook-recipe-unavailable {
  background:#fff8f8;
  border-color:#f2baba;
}
.cookbook-order-number {
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  font-weight:900;
}
.cookbook-recipe-item > img {
  width:150px;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:14px;
  background:#eaf0f8;
}
.cookbook-recipe-main h3 { margin:.35rem 0; color:var(--blue); }
.cookbook-recipe-main p { margin:.35rem 0; color:var(--muted); }
.cookbook-recipe-actions {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.45rem;
  min-width:125px;
}
.cookbook-recipe-actions form { margin:0; }
.cookbook-recipe-actions .btn { width:100%; }
.cookbook-order-actions { display:grid; grid-template-columns:1fr 1fr; gap:.35rem; }
.cookbook-empty-inline { text-align:center; padding:1rem; }
.cookbook-empty-inline h3 { color:var(--blue); }
.cookbook-recipe-search { align-items:center; }
.cookbook-recipe-search input { flex:1 1 320px; }
.cookbook-recipe-search .btn { flex:0 0 auto; }
.cookbook-candidate-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:.75rem;
  margin-top:.8rem;
}
.cookbook-candidate-card {
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:.7rem;
  align-items:start;
  border:1px solid var(--line);
  border-radius:17px;
  padding:.7rem;
  background:#fff;
}
.cookbook-candidate-card > img {
  width:110px;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:13px;
  background:#eaf0f8;
}
.cookbook-candidate-card h3 { color:var(--blue); margin:.3rem 0; line-height:1.2; }
.cookbook-candidate-card p { color:var(--muted); margin:.25rem 0; }
.cookbook-candidate-card form { grid-column:1 / -1; margin:0; }

.recipe-card-with-actions { display:flex; flex-direction:column; }
.recipe-card-with-actions > .recipe-card-main-link { flex:1 1 auto; height:auto; }
.recipe-card-actions {
  padding:0 .9rem .9rem;
  margin-top:auto;
}
.recipe-card-actions a { display:inline-flex; height:auto; }

@media (max-width: 900px) {
  .cookbook-recipe-item { grid-template-columns:42px 120px minmax(0,1fr); align-items:start; }
  .cookbook-recipe-item > img { width:120px; }
  .cookbook-recipe-actions { grid-column:2 / -1; flex-direction:row; flex-wrap:wrap; min-width:0; }
  .cookbook-recipe-actions .btn { width:auto; }
  .cookbook-order-actions { display:flex; }
}
@media (max-width: 760px) {
  .cookbook-owner-card,
  .cookbook-choice-card,
  .cookbook-selected-recipe { grid-template-columns:1fr; }
  .cookbook-owner-actions { min-width:0; flex-direction:row; flex-wrap:wrap; }
  .cookbook-owner-actions .btn { width:auto; }
  .cookbook-selected-recipe img { width:100%; max-height:300px; }
  .cookbook-candidate-grid { grid-template-columns:1fr; }
  .cookbook-immutable-info { grid-template-columns:1fr; gap:.2rem; }
}
@media (max-width: 560px) {
  .cookbook-recipe-item { grid-template-columns:38px minmax(0,1fr); }
  .cookbook-recipe-item > img { grid-column:2; width:100%; max-height:240px; }
  .cookbook-recipe-main { grid-column:1 / -1; }
  .cookbook-recipe-actions { grid-column:1 / -1; }
  .cookbook-candidate-card { grid-template-columns:90px minmax(0,1fr); }
  .cookbook-candidate-card > img { width:90px; }
}
.cookbook-batch-form { display:grid; gap:.8rem; }
.cookbook-batch-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.75rem .9rem;
}
.cookbook-batch-toolbar strong,
.cookbook-batch-toolbar span { display:block; }
.cookbook-batch-toolbar strong { color:var(--blue); }
.cookbook-batch-toolbar span { color:var(--muted); font-size:.9rem; margin-top:.12rem; }
.cookbook-batch-bottom { display:flex; justify-content:flex-end; }
.recipe-card-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.55rem;
  flex-wrap:wrap;
}
.cookbook-select-recipe {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:var(--blue);
  font-weight:850;
  cursor:pointer;
}
.cookbook-select-recipe input { width:auto; }
@media (max-width: 620px) {
  .cookbook-batch-toolbar { align-items:stretch; flex-direction:column; }
  .cookbook-batch-toolbar .btn,
  .cookbook-batch-bottom .btn { width:100%; }
}

/* Etapa 4B + 4C — vizuálne zjednotenie kníh a receptov, verzia 2 */
.cookbook-choice-grid,
.cookbook-recipe-tile-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:.9rem;
  align-items:stretch;
}
.cookbook-choice-tile,
.cookbook-recipe-tile {
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.cookbook-choice-tile > img,
.cookbook-tile-media > img {
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  background:#eaf0f8;
}
.cookbook-choice-tile-body,
.cookbook-recipe-tile-body {
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  min-width:0;
}
.cookbook-choice-tile-body h2,
.cookbook-recipe-tile-body h3 {
  overflow-wrap:anywhere;
}
.cookbook-choice-tile-body small,
.cookbook-recipe-tile-body small {
  display:block;
  margin-top:auto;
  padding-top:.35rem;
}
.cookbook-choice-tile-action {
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.75rem .9rem .9rem;
  border-top:1px solid var(--line);
  background:#fbfdff;
}
.cookbook-choice-tile-action form { width:100%; margin:0; }
.cookbook-choice-tile-action .btn { width:100%; }
.cookbook-choice-tile-action strong {
  color:var(--muted);
  text-align:center;
}
.cookbook-choice-disabled {
  opacity:1;
  background:#f7f9fc;
}
.cookbook-choice-disabled > img { filter:saturate(.55); opacity:.72; }

.cookbook-manage-hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:1.25rem;
  align-items:end;
  margin:1rem 0;
  padding:clamp(1.15rem, 3vw, 2rem);
  border:1px solid rgba(1,58,138,.18);
  border-radius:var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(243,154,31,.24), transparent 19rem),
    linear-gradient(135deg, #ffffff 0%, #f3f8ff 58%, #fff7ea 100%);
  box-shadow:0 20px 48px rgba(1,58,138,.14);
}
.cookbook-manage-hero::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:7px;
  background:linear-gradient(180deg, var(--orange), var(--blue));
  z-index:-1;
}
.cookbook-manage-hero h1 {
  margin:.12rem 0 .65rem;
  color:var(--blue);
  font-size:clamp(2rem, 5vw, 3.8rem);
  line-height:.98;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.cookbook-manage-description {
  max-width:72ch;
  margin:0;
  color:#31435d;
  font-size:clamp(1rem, 1.7vw, 1.14rem);
  line-height:1.6;
  white-space:pre-line;
}
.cookbook-manage-hero-actions {
  display:flex;
  flex-direction:column;
  gap:.55rem;
  min-width:210px;
}
.cookbook-manage-hero-actions .btn { width:100%; }
.cookbook-content-heading { margin-top:1.35rem; }
.cookbook-content-heading h2 {
  margin:0;
  color:var(--blue);
  font-size:clamp(1.5rem, 3vw, 2.15rem);
}
.cookbook-content-heading .muted { margin:.2rem 0 0; }

.cookbook-tile-media {
  position:relative;
  overflow:hidden;
  background:#eaf0f8;
}
.cookbook-tile-media .cookbook-order-number {
  position:absolute;
  top:.7rem;
  left:.7rem;
  width:42px;
  height:42px;
  border:3px solid rgba(255,255,255,.94);
  box-shadow:0 8px 20px rgba(1,58,138,.28);
}
.cookbook-recipe-unavailable .cookbook-tile-media > img {
  filter:grayscale(.35) saturate(.6);
  opacity:.78;
}
.cookbook-recipe-tile-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.55rem;
  flex-wrap:wrap;
  min-height:68px;
  padding:.7rem .85rem .85rem;
  border-top:1px solid var(--line);
  background:#fbfdff;
}
.cookbook-recipe-tile-actions form { margin:0; }
.cookbook-order-actions {
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:.4rem;
}
.cookbook-order-button {
  width:42px;
  min-width:42px;
  height:38px;
  padding:0;
  font-size:1.15rem;
  line-height:1;
}
.cookbook-recipe-secondary-actions {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:.4rem;
  flex-wrap:wrap;
}

@media (max-width: 900px) {
  .cookbook-choice-grid,
  .cookbook-recipe-tile-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .cookbook-manage-hero { grid-template-columns:1fr; align-items:start; }
  .cookbook-manage-hero-actions { min-width:0; flex-direction:row; flex-wrap:wrap; }
  .cookbook-manage-hero-actions .btn { width:auto; }
}
@media (max-width: 560px) {
  .cookbook-choice-grid,
  .cookbook-recipe-tile-grid { grid-template-columns:1fr; }
  .cookbook-manage-hero-actions { flex-direction:column; }
  .cookbook-manage-hero-actions .btn { width:100%; }
  .cookbook-recipe-tile-actions { align-items:stretch; }
  .cookbook-recipe-secondary-actions { margin-left:auto; }
}

/* Etapa 4B + 4C — verzia 3: detail knihy, obálky a meniteľná verejnosť */
.main-nav a { white-space:nowrap; }
.cookbook-library-head { align-items:flex-start; }
.cookbook-library-intro {
  max-width:82ch;
  margin:.35rem 0 0;
  color:#31435d;
  font-size:1.02rem;
  line-height:1.65;
}
.cookbook-library-intro strong { color:var(--blue); }
.cookbook-public-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:.9rem;
  align-items:stretch;
}
.cookbook-public-card { height:100%; display:flex; flex-direction:column; overflow:hidden; }
.cookbook-public-cover { display:block; background:#eaf0f8; }
.cookbook-public-cover img {
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}
.cookbook-public-body { flex:1 1 auto; display:flex; flex-direction:column; }
.cookbook-public-body h2 { margin:.45rem 0; }
.cookbook-public-body h2 a,
.cookbook-owner-main h2 a,
.cookbook-choice-tile-body h2 a { color:var(--blue); text-decoration:none; }
.cookbook-public-body h2 a:hover,
.cookbook-owner-main h2 a:hover,
.cookbook-choice-tile-body h2 a:hover { text-decoration:underline; }
.cookbook-public-body small { margin-top:auto; padding-top:.45rem; }
.cookbook-public-action {
  padding:.75rem .9rem .9rem;
  border-top:1px solid var(--line);
  background:#fbfdff;
}
.cookbook-public-action .btn { width:100%; }

.cookbook-owner-card-with-cover {
  grid-template-columns:170px minmax(0,1fr) auto;
  align-items:stretch;
}
.cookbook-owner-cover { display:block; min-height:130px; }
.cookbook-owner-cover img {
  width:100%;
  height:100%;
  min-height:130px;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:16px;
  background:#eaf0f8;
}

.cookbook-manage-hero-with-cover {
  grid-template-columns:minmax(220px, 32%) minmax(0,1fr) auto;
  align-items:center;
}
.cookbook-hero-cover img {
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:20px;
  box-shadow:0 14px 34px rgba(1,58,138,.18);
  background:#eaf0f8;
}
.cookbook-current-cover {
  display:grid;
  grid-template-columns:minmax(180px, 320px) minmax(0,1fr);
  gap:1rem;
  align-items:center;
  border:1px solid var(--line);
  border-radius:18px;
  padding:.8rem;
  background:#f8fbff;
}
.cookbook-current-cover img {
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:14px;
}
.cookbook-current-cover .checkline { align-self:center; }

@media (max-width: 1050px) {
  .cookbook-manage-hero-with-cover { grid-template-columns:220px minmax(0,1fr); }
  .cookbook-manage-hero-with-cover .cookbook-manage-hero-actions { grid-column:1 / -1; }
}
@media (max-width: 900px) {
  .cookbook-public-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .cookbook-owner-card-with-cover { grid-template-columns:140px minmax(0,1fr); }
  .cookbook-owner-card-with-cover .cookbook-owner-actions { grid-column:1 / -1; }
}
@media (max-width: 640px) {
  .cookbook-public-grid { grid-template-columns:1fr; }
  .cookbook-owner-card-with-cover,
  .cookbook-manage-hero-with-cover,
  .cookbook-current-cover { grid-template-columns:1fr; }
  .cookbook-owner-cover img { max-height:280px; }
  .cookbook-manage-hero-with-cover .cookbook-manage-hero-actions { grid-column:auto; }
}
.cookbook-public-body h3 { margin:.45rem 0; }
.cookbook-public-body h3 a { color:var(--blue); text-decoration:none; }
.cookbook-public-body h3 a:hover { text-decoration:underline; }

/* Etapa 4B + 4C — verzia 4: kompaktné knihy, recepty a PDF export */
.cookbook-public-grid {
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.8rem;
}
.cookbook-public-card {
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto;
  height:200px;
  max-height:200px;
  min-height:0;
}
.cookbook-public-cover {
  grid-row:1 / 3;
  min-width:0;
  height:200px;
  overflow:hidden;
}
.cookbook-public-cover img {
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:cover;
}
.cookbook-public-body {
  min-height:0;
  padding:.65rem .75rem .35rem;
  overflow:hidden;
}
.cookbook-public-body .badge-row { gap:.25rem; }
.cookbook-public-body .badge,
.cookbook-public-body .status { padding:.22rem .45rem; font-size:.72rem; }
.cookbook-public-body h2 { margin:.3rem 0 .22rem; font-size:1.08rem; line-height:1.08; }
.cookbook-public-body p {
  margin:.2rem 0;
  font-size:.82rem;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cookbook-public-body small {
  padding-top:.25rem;
  font-size:.73rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cookbook-public-action {
  padding:.35rem .7rem .55rem;
  background:#fff;
}
.cookbook-public-action .btn-cookbook-open {
  min-height:34px;
  padding:.38rem .65rem;
  border:1px solid rgba(243,154,31,.58);
  background:#fff8ed;
  color:var(--orange) !important;
  font-weight:900;
}
.cookbook-public-action .btn-cookbook-open:hover {
  background:var(--orange);
  color:#fff !important;
}

.cookbook-manage-hero-with-cover {
  grid-template-columns:220px minmax(0,1fr) auto;
  min-height:190px;
  max-height:220px;
  padding:1rem 1.1rem;
}
.cookbook-hero-cover {
  height:180px;
  min-height:0;
  overflow:hidden;
  border-radius:18px;
}
.cookbook-hero-cover img {
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:cover;
}
.cookbook-manage-hero h1 {
  font-size:clamp(1.85rem, 4vw, 3rem);
  margin:.05rem 0 .45rem;
}
.cookbook-manage-description {
  font-size:.98rem;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cookbook-manage-hero-actions { min-width:180px; }
.cookbook-pdf-button {
  background:var(--orange);
  border-color:var(--orange);
  color:#fff;
}
.cookbook-pdf-button:hover { filter:brightness(.94); }

.cookbook-recipe-tile-grid {
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.8rem;
}
.cookbook-recipe-tile {
  display:grid;
  grid-template-columns:165px minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto;
  height:200px;
  max-height:200px;
  min-height:0;
}
.cookbook-tile-media {
  grid-row:1 / 3;
  width:165px;
  height:200px;
}
.cookbook-tile-media > img,
.cookbook-tile-media .cookbook-recipe-image-link,
.cookbook-tile-media .cookbook-recipe-image-link img {
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:cover;
}
.cookbook-recipe-image-link { overflow:hidden; }
.cookbook-recipe-image-link:hover img { transform:scale(1.035); }
.cookbook-recipe-image-link img { transition:transform .18s ease; }
.cookbook-recipe-tile-body {
  min-height:0;
  padding:.62rem .72rem .25rem;
  overflow:hidden;
}
.cookbook-recipe-tile-body h3 { margin:.28rem 0 .18rem; font-size:1.02rem; line-height:1.08; }
.cookbook-recipe-tile-body p {
  margin:.18rem 0;
  font-size:.8rem;
  line-height:1.22;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cookbook-recipe-tile-body small {
  font-size:.72rem;
  padding-top:.18rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cookbook-recipe-tile-actions {
  min-height:48px;
  padding:.34rem .55rem .45rem;
  gap:.35rem;
}
.cookbook-order-button { width:34px; min-width:34px; height:32px; }
.cookbook-recipe-secondary-actions .btn { min-height:32px; padding:.3rem .52rem; }
.cookbook-tile-media .cookbook-order-number {
  width:34px;
  height:34px;
  top:.5rem;
  left:.5rem;
  font-size:.86rem;
  pointer-events:none;
}

.admin-pending-recipe-actions {
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  gap:.45rem;
}
.admin-pending-recipe-actions .btn { width:auto; }

@media (max-width: 1050px) {
  .cookbook-public-grid,
  .cookbook-recipe-tile-grid { grid-template-columns:1fr; }
  .cookbook-manage-hero-with-cover {
    grid-template-columns:190px minmax(0,1fr);
    max-height:none;
  }
  .cookbook-manage-hero-with-cover .cookbook-manage-hero-actions {
    grid-column:1 / -1;
  }
}
@media (max-width: 680px) {
  .cookbook-public-card {
    grid-template-columns:125px minmax(0,1fr);
    height:190px;
    max-height:190px;
  }
  .cookbook-public-cover { height:190px; }
  .cookbook-public-body p { -webkit-line-clamp:2; }
  .cookbook-manage-hero-with-cover {
    grid-template-columns:1fr;
    max-height:none;
  }
  .cookbook-hero-cover { height:190px; }
  .cookbook-manage-hero-with-cover .cookbook-manage-hero-actions { grid-column:auto; }
  .cookbook-recipe-tile {
    grid-template-columns:125px minmax(0,1fr);
    height:190px;
    max-height:190px;
  }
  .cookbook-tile-media { width:125px; height:190px; }
  .cookbook-recipe-tile-actions { align-items:center; }
  .cookbook-recipe-secondary-actions { margin-left:0; }
}
@media (max-width: 430px) {
  .cookbook-public-card,
  .cookbook-recipe-tile {
    grid-template-columns:105px minmax(0,1fr);
  }
  .cookbook-tile-media { width:105px; }
  .cookbook-public-body p,
  .cookbook-recipe-tile-body p { display:none; }
  .cookbook-public-body small { white-space:normal; }
}
.cookbook-public-body h2 a,
.cookbook-choice-tile-body h2 a {
  display:inline;
  height:auto;
}
.cookbook-recipe-secondary-actions a,
.cookbook-public-action a {
  height:auto;
}

/* Etapa 4B + 4C — verzia 5: celá karta knihy je klikateľná */
.cookbook-public-card-link {
  grid-template-rows:1fr;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  border:1px solid var(--line);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cookbook-public-card-link:hover,
.cookbook-public-card-link:focus-visible {
  color:inherit;
  text-decoration:none;
  transform:translateY(-2px);
  border-color:rgba(243,154,31,.72);
  box-shadow:0 14px 30px rgba(1,58,138,.16);
}
.cookbook-public-card-link:focus-visible {
  outline:3px solid rgba(243,154,31,.34);
  outline-offset:3px;
}
.cookbook-public-card-link .cookbook-public-cover {
  grid-row:1;
}
.cookbook-public-body {
  padding:.8rem .85rem;
  gap:.32rem;
}
.cookbook-public-title-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.55rem;
  min-width:0;
}
.cookbook-public-title {
  display:block;
  color:var(--blue);
  font-size:1.08rem;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cookbook-public-description {
  display:-webkit-box;
  margin:.08rem 0;
  color:#52627a;
  font-size:.82rem;
  line-height:1.3;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cookbook-public-meta {
  display:flex;
  align-items:center;
  gap:.55rem;
  flex-wrap:wrap;
  margin-top:auto;
  color:#52627a;
  font-size:.78rem;
}
.cookbook-public-author {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cookbook-public-author strong { color:var(--blue); }
.cookbook-public-count {
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:.24rem .52rem;
  border:1px solid #d6deea;
  border-radius:999px;
  background:#f1f4f8;
  color:#5b6b80;
  font-size:.73rem;
  font-weight:900;
  white-space:nowrap;
}
.cookbook-public-card-link:hover .cookbook-public-title,
.cookbook-public-card-link:focus-visible .cookbook-public-title {
  color:var(--orange);
}

@media (max-width: 430px) {
  .cookbook-public-title { white-space:normal; }
  .cookbook-public-description { -webkit-line-clamp:2; }
  .cookbook-public-meta { align-items:flex-start; gap:.35rem; }
  .cookbook-public-author { white-space:normal; }
}

/* Etapa 4B+4C v6: celý recept v kuchárskej knihe je klikateľná dlaždica. */
.cookbook-recipe-tile { position:relative; }
.cookbook-recipe-tile-clickable { cursor:pointer; transition:transform .16s ease, box-shadow .16s ease; }
.cookbook-recipe-tile-clickable:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(1,58,138,.14); }
.cookbook-recipe-card-link {
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:inherit;
}
.cookbook-recipe-card-link:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:3px;
}
.cookbook-recipe-tile-clickable:hover .cookbook-tile-media > img { transform:scale(1.035); }
.cookbook-tile-media > img { transition:transform .18s ease; }
.cookbook-recipe-tile-actions,
.cookbook-recipe-tile-actions form,
.cookbook-recipe-tile-actions button {
  position:relative;
  z-index:2;
}
.cookbook-order-number { z-index:2; }

/* Etapa 4B+4C v7: spoľahlivo klikateľná celá plocha receptu v knihe. */
.cookbook-recipe-card-link {
  display:block !important;
  position:absolute !important;
  top:0;
  right:0;
  bottom:0;
  left:0;
  width:100% !important;
  height:100% !important;
  z-index:5;
  pointer-events:auto;
}
.cookbook-recipe-tile-clickable > .cookbook-tile-media,
.cookbook-recipe-tile-clickable > .cookbook-recipe-tile-body {
  pointer-events:none;
}
.cookbook-recipe-tile-actions {
  z-index:10;
  pointer-events:none;
}
.cookbook-recipe-tile-actions form,
.cookbook-recipe-tile-actions button,
.cookbook-recipe-tile-actions a,
.cookbook-recipe-tile-actions input,
.cookbook-recipe-tile-actions select,
.cookbook-recipe-tile-actions textarea {
  pointer-events:auto;
}

/* Etapa 4B+4C v8: skutočne klikateľná celá dlaždica receptu. */
a.cookbook-recipe-tile-direct {
  color:inherit;
  text-decoration:none;
}
a.cookbook-recipe-tile-direct:hover,
a.cookbook-recipe-tile-direct:focus-visible {
  color:inherit;
  text-decoration:none;
}
a.cookbook-recipe-tile-direct:focus-visible,
.cookbook-recipe-tile[data-card-url]:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:3px;
}
.cookbook-recipe-tile[data-card-url] {
  cursor:pointer;
}
/* Starý prázdny prekryv už verzia 8 nepoužíva. */
.cookbook-recipe-card-link { display:none !important; }
.cookbook-recipe-tile-clickable > .cookbook-tile-media,
.cookbook-recipe-tile-clickable > .cookbook-recipe-tile-body {
  pointer-events:auto;
}

/* Etapa 4B+4C v9: zarovnanie päty knihy a hromadné pridávanie receptov. */
.cookbook-public-meta {
  width:100%;
  justify-content:space-between;
  flex-wrap:nowrap;
  margin-top:auto;
  padding-top:.35rem;
}
.cookbook-public-author {
  flex:1 1 auto;
  text-align:left;
}
.cookbook-public-count {
  flex:0 0 auto;
  margin-left:auto;
}
.cookbook-batch-bottom {
  gap:.7rem;
  flex-wrap:wrap;
}
.cookbook-batch-bottom .btn {
  min-height:44px;
}
.cookbook-bulk-selection-summary {
  margin-bottom:1rem;
}
.cookbook-bulk-selection-summary h2 {
  margin-top:0;
  color:var(--blue);
}
.cookbook-bulk-recipe-list {
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}
.cookbook-bulk-recipe-chip {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:.3rem .62rem;
  border:1px solid #d6deea;
  border-radius:999px;
  background:#f3f6fa;
  color:#34445d;
  font-size:.8rem;
  font-weight:800;
}
.cookbook-bulk-book-grid .cookbook-choice-tile-action strong {
  display:block;
  line-height:1.25;
}
@media (max-width: 700px) {
  .cookbook-batch-bottom {
    flex-direction:column;
    align-items:stretch;
  }
  .cookbook-batch-bottom .btn {
    width:100%;
  }
}
@media (max-width: 430px) {
  .cookbook-public-meta {
    align-items:center;
    flex-wrap:nowrap;
  }
  .cookbook-public-author {
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* Etapa 5A — sponzori a partneri. */
.sponsor-section {
  margin:1.2rem 0;
  padding:1rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:var(--shadow);
}
.sponsor-section-head { margin-bottom:.8rem; }
.sponsor-section-head h2 { margin:.15rem 0 0; color:var(--blue); }
.sponsor-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:.8rem;
}
.sponsor-grid-single { grid-template-columns:minmax(0,560px); }
.sponsor-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid #dce5f0;
  border-radius:18px;
  background:#fff;
}
.sponsor-banner-link { display:block; background:#fff; }
.sponsor-banner {
  display:block;
  width:100%;
  height:150px;
  object-fit:contain;
  padding:.7rem;
  background:#fff;
  border-bottom:1px solid #edf1f6;
}
.sponsor-card-body { display:grid; gap:.35rem; padding:.8rem .9rem .9rem; }
.sponsor-card-body strong { color:var(--blue); font-size:1.02rem; }
.sponsor-card-body p { margin:0; color:var(--muted); font-size:.92rem; }
.sponsor-card-body a { width:max-content; max-width:100%; font-weight:800; }
.sponsor-assignment-panel { display:grid; gap:.8rem; margin-top:1rem; border-color:#cbdcf2; }
.sponsor-assignment-panel h2 { margin:.15rem 0; color:var(--blue); }
.sponsor-assignment-form { display:flex; gap:.65rem; flex-wrap:wrap; align-items:end; }
.sponsor-assignment-form label { display:grid; gap:.35rem; flex:1 1 340px; font-weight:800; color:var(--blue); }
.sponsor-assignment-form select { width:100%; }
.sponsor-stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.sponsor-admin-thumb {
  display:block;
  width:150px;
  height:72px;
  object-fit:contain;
  padding:.3rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}
.sponsor-admin-placeholder {
  display:inline-flex;
  width:150px;
  height:72px;
  align-items:center;
  justify-content:center;
  border:1px dashed #b9c7d8;
  border-radius:12px;
  color:var(--muted);
  background:#f8fafc;
  font-size:.82rem;
}
.sponsor-admin-description { margin:.35rem 0 0; max-width:440px; }
.sponsor-admin-view-total {
  display:grid;
  gap:.15rem;
  width:150px;
  margin-top:.6rem;
  justify-items:center;
  text-align:center;
}
.sponsor-admin-view-total span {
  color:var(--muted);
  font-size:.8rem;
  font-weight:700;
  line-height:1.2;
}
.sponsor-admin-view-total strong {
  color:var(--blue);
  font-size:1.2rem;
  line-height:1.1;
}
.sponsor-admin-table td .sponsor-admin-actions {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  row-gap:10px !important;
  min-width:170px;
  padding:10px 0 !important;
  align-items:stretch;
}
.sponsor-admin-table td .sponsor-admin-overview-actions { min-width:205px; }
.sponsor-admin-table td .sponsor-admin-action-item {
  display:block !important;
  width:100%;
  margin:0 !important;
}
.sponsor-admin-table td .sponsor-admin-action-item .btn {
  display:flex !important;
  width:100% !important;
  justify-content:center;
  white-space:normal;
  text-align:center;
}
.sponsor-admin-table td .sponsor-admin-action-item form {
  display:block !important;
  width:100%;
  margin:0 !important;
}
.sponsor-admin-table td .sponsor-admin-action-item form .btn {
  width:100% !important;
}
.sponsor-statistics-summary {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-bottom:1rem;
}
.sponsor-statistics-summary > div {
  display:grid;
  gap:.25rem;
  padding:.75rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
}
.sponsor-statistics-summary strong { color:var(--blue); }
.sponsor-statistics-month { margin-bottom:1rem; }
.compact-section-head { margin-bottom:.75rem; align-items:center; }
.sponsor-month-total { display:grid; justify-items:end; gap:.1rem; }
.sponsor-month-total strong { color:var(--blue); font-size:1.5rem; line-height:1; }
.sponsor-month-total span { color:var(--muted); font-size:.85rem; }
.sponsor-statistics-table .weekend-row { background:#fffaf2; }
.sponsor-statistics-table .today-row { box-shadow:inset 4px 0 0 var(--orange); }
.sponsor-statistics-table td:last-child,
.sponsor-statistics-table th:last-child { text-align:right; }
.sponsor-bulk-toolbar { display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:.8rem; }
.sponsor-bulk-toolbar .result-count { margin:0; }
.sponsor-recipe-checkbox { width:1%; text-align:center; }
.sponsor-recipe-checkbox input { width:20px; height:20px; cursor:pointer; accent-color:var(--blue); }
.sponsor-bulk-submit { display:flex; gap:.65rem; flex-wrap:wrap; align-items:center; margin-top:1rem; }
.sponsor-bulk-submit .muted { margin:0; }
.sponsor-current-banner { display:grid; gap:.55rem; justify-items:start; }
.sponsor-current-banner img { width:min(100%,800px); max-height:260px; object-fit:contain; border:1px solid var(--line); border-radius:16px; background:#fff; padding:.55rem; }
.sponsor-form > label { display:grid; gap:.35rem; }

@media (max-width: 820px) {
  .sponsor-stats-grid { grid-template-columns:1fr; }
  .sponsor-statistics-summary { grid-template-columns:1fr; }
  .sponsor-grid-single { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .sponsor-section { padding:.75rem; }
  .sponsor-grid { grid-template-columns:1fr; }
  .sponsor-banner { height:130px; }
  .sponsor-assignment-form { align-items:stretch; flex-direction:column; }
  .sponsor-assignment-form .btn { width:100%; }
}

/* Etapa 6 — Kalendár gastronomických udalostí */
.event-page-head { align-items:center; }
.event-quick-filters, .admin-event-tabs { display:flex; flex-wrap:wrap; gap:.45rem; margin:.7rem 0 1rem; }
.event-quick-filters a, .admin-event-tabs a { display:inline-flex; align-items:center; min-height:38px; padding:.45rem .75rem; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--blue); font-weight:800; }
.event-quick-filters a:hover, .admin-event-tabs a:hover, .admin-event-tabs a.active { text-decoration:none; border-color:var(--blue); background:#eef5ff; }
.event-filter-panel { margin-bottom:1rem; }
.event-filter-grid { grid-template-columns:repeat(4,minmax(140px,1fr)); }
.event-free-check { align-self:end; min-height:42px; padding:.65rem .8rem; border:1px solid var(--line); border-radius:10px; background:#f8fafc; }
.event-month-card { padding:.75rem; overflow:hidden; }
.event-month-head { display:flex; justify-content:center; align-items:center; gap:1rem; margin-bottom:.6rem; }
.event-month-head h2 { margin:0; color:var(--blue); min-width:130px; text-align:center; }
.event-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.event-calendar-weekdays { margin-bottom:4px; }
.event-calendar-weekdays strong { padding:.35rem; text-align:center; color:var(--blue); font-size:.82rem; }
.event-calendar-day { min-height:88px; padding:.35rem; border:1px solid var(--line); border-radius:8px; background:#fbfcfe; overflow:hidden; }
.event-calendar-day.empty { border-color:transparent; background:transparent; }
.event-calendar-day.today { box-shadow:inset 0 0 0 2px var(--orange); }
.event-calendar-day.has-events { background:#f2f7ff; }
.event-day-number { display:block; margin-bottom:.25rem; color:var(--blue); font-weight:900; }
.event-calendar-day a { display:block; margin:.12rem 0; padding:.12rem .24rem; border-radius:5px; background:#fff; color:#163c70; font-size:.72rem; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.event-calendar-day small { color:var(--muted); font-size:.7rem; }
.event-list { display:grid; gap:.75rem; }
.event-card { position:relative; display:grid; grid-template-columns:180px 72px minmax(0,1fr) auto; align-items:stretch; min-height:165px; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); transition:transform .16s ease, box-shadow .16s ease; }
.event-card:hover { transform:translateY(-2px); }
.event-card.cancelled { opacity:.82; background:#fff7f7; }
.event-card.compact { grid-template-columns:140px minmax(0,1fr) auto; min-height:135px; }
.event-card.compact .event-card-date { display:none; }
.event-card-image { display:block; min-height:100%; background:#e9eef5; }
.event-card-image img { width:100%; height:100%; min-height:165px; object-fit:cover; display:block; }
.event-card.compact .event-card-image img { min-height:135px; }
.event-card-date { display:flex; flex-direction:column; justify-content:center; align-items:center; border-right:1px solid var(--line); background:#f7faff; color:var(--blue); text-align:center; }
.event-card-date strong { font-size:2rem; line-height:1; }
.event-card-date span { margin-top:.35rem; font-size:.75rem; font-weight:800; }
.event-card-body { padding:.85rem 1rem; min-width:0; }
.event-card-body h2 { margin:.35rem 0; color:var(--blue); font-size:1.3rem; }
.event-card-body h2 a { color:inherit; }
.event-card-body p { margin:.35rem 0; }
.event-period { color:#183d6f; font-weight:850; }
.event-card-action { display:flex; align-items:center; justify-content:center; padding:.75rem; border-left:1px solid var(--line); }
.event-moderator-actions { flex-direction:column; gap:.45rem; align-items:stretch; min-width:145px; }
.event-moderator-actions form { margin:0; width:100%; }
.event-moderator-actions .btn { width:100%; justify-content:center; }
.event-owner-actions { flex-direction:column; gap:.4rem; align-items:stretch; min-width:135px; }
.event-owner-actions form { margin:0; }
.event-owner-actions .btn { width:100%; justify-content:center; }
.event-version-old { opacity:.64; background:#f4f5f7; }
.event-hidden { opacity:.66; }
.event-status-live { background:#e2f8eb; color:#11612b; }
.event-status-soon { background:#fff0d0; color:#754400; }
.event-status-ended { background:#edf0f4; color:#5b6573; }
.event-status-cancelled { background:#ffe2e2; color:#941f1f; }
.event-detail-hero { display:grid; grid-template-columns:minmax(260px,420px) minmax(0,1fr); gap:1.2rem; padding:1rem; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.event-detail-hero.cancelled { background:#fff7f7; }
.event-detail-poster img { width:100%; max-height:560px; object-fit:contain; border-radius:12px; background:#eef2f7; }
.event-detail-main { padding:.35rem .35rem .35rem 0; }
.event-detail-main h1 { margin:.45rem 0; color:var(--blue); font-size:clamp(2rem,4vw,3.3rem); line-height:1.05; letter-spacing:-.04em; }
.event-detail-lead { font-size:1.12rem; line-height:1.55; }
.event-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin:1rem 0; }
.event-facts div { padding:.65rem .75rem; border:1px solid var(--line); border-radius:10px; background:#f8fbff; }
.event-facts dt { color:var(--muted); font-size:.75rem; font-weight:850; text-transform:uppercase; letter-spacing:.04em; }
.event-facts dd { margin:.18rem 0 0; color:#153a6d; font-weight:800; }
.event-detail-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:.9rem; margin-top:.9rem; }
.event-description .prose { line-height:1.7; }
.event-contact-card h2, .event-description h2 { margin-top:0; color:var(--blue); }
.event-report-box { margin-top:.9rem; }
.event-form { display:grid; gap:.85rem; }
.admin-event-tabs { margin-bottom:.85rem; }
.event-reject-form { display:grid; gap:.35rem; min-width:180px; }
.event-reject-form textarea { width:100%; }

@media (max-width:980px) {
  .event-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .event-card { grid-template-columns:145px 60px minmax(0,1fr); }
  .event-card-action { grid-column:1/-1; justify-content:flex-end; border-left:0; border-top:1px solid var(--line); padding:.55rem .75rem; }
  .event-card.compact { grid-template-columns:120px minmax(0,1fr); }
  .event-owner-actions { flex-direction:row; flex-wrap:wrap; min-width:0; }
  .event-owner-actions .btn { width:auto; }
  .event-detail-hero { grid-template-columns:1fr; }
  .event-detail-main { padding:0; }
}
@media (max-width:680px) {
  .event-filter-grid { grid-template-columns:1fr; }
  .event-calendar-day { min-height:54px; padding:.2rem; }
  .event-calendar-day a { width:7px; height:7px; padding:0; border-radius:50%; background:var(--orange); color:transparent; }
  .event-calendar-day small { display:none; }
  .event-card, .event-card.compact { grid-template-columns:92px minmax(0,1fr); min-height:120px; }
  .event-card-date { display:none; }
  .event-card-image img, .event-card.compact .event-card-image img { min-height:120px; }
  .event-card-body { padding:.65rem .75rem; }
  .event-card-body h2 { font-size:1.08rem; }
  .event-detail-grid, .event-facts { grid-template-columns:1fr; }
  .event-detail-actions .btn { flex:1 1 100%; justify-content:center; }
}
.event-category-admin-grid { display:grid; gap:.55rem; }
.event-category-admin-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.45rem; align-items:center; padding:.55rem; border:1px solid var(--line); border-radius:10px; background:#fafcff; }
.event-category-admin-row { display:grid; grid-template-columns:minmax(150px,1fr) minmax(220px,2fr) 90px auto; gap:.45rem; align-items:center; }
.event-category-toggle-form { margin:0; }
.event-category-new { margin-top:.55rem; }
@media (max-width:760px) {
  .event-category-admin-item, .event-category-admin-row { grid-template-columns:1fr; }
  .event-category-toggle-form .btn { width:100%; justify-content:center; }
}

/* Etapa 7 — súkromné správy */
.nav-mail-link { display:inline-flex !important; align-items:center; gap:.35rem; }
.nav-count { display:inline-flex; align-items:center; justify-content:center; min-width:1.35rem; height:1.35rem; padding:0 .32rem; border-radius:999px; background:var(--orange); color:#251400; font-size:.72rem; font-weight:950; }
.profile-contact-actions { margin:.7rem 0; }
.mail-page-head { align-items:center; }
.mail-page-head .btn.active { box-shadow:0 0 0 3px rgba(1,58,138,.14); }
.mail-shell { display:grid; grid-template-columns:minmax(280px,360px) minmax(0,1fr); gap:.9rem; align-items:start; }
.mail-sidebar { position:sticky; top:82px; max-height:calc(100vh - 100px); overflow:auto; padding:.75rem; }
.mail-user-search { display:grid; gap:.4rem; padding:.25rem .25rem .8rem; border-bottom:1px solid var(--line); }
.mail-user-search label { color:var(--blue); font-weight:850; }
.search-inline { display:flex; gap:.4rem; align-items:center; }
.search-inline input { min-width:0; }
.mail-sidebar-section { padding:.75rem .15rem .15rem; }
.mail-sidebar-section + .mail-sidebar-section { border-top:1px solid var(--line); margin-top:.6rem; }
.mail-sidebar-section h2 { margin:0 0 .5rem; color:var(--blue); font-size:1rem; }
.mail-thread-row, .mail-user-result { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:.55rem; align-items:center; padding:.55rem; border-radius:14px; color:var(--ink); }
.mail-user-result { grid-template-columns:44px minmax(0,1fr); }
.mail-thread-row:hover, .mail-thread-row.active, .mail-user-result:hover { background:#eef5ff; text-decoration:none; }
.mail-thread-row.active { box-shadow:inset 3px 0 0 var(--blue); }
.mail-thread-row img, .mail-user-result img { width:44px; height:44px; border-radius:50%; object-fit:cover; background:#edf2f8; }
.mail-thread-copy, .mail-user-result span { display:grid; min-width:0; }
.mail-thread-copy strong, .mail-user-result strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.mail-thread-copy small, .mail-user-result small { color:var(--muted); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.mail-thread-meta { display:grid; justify-items:end; gap:.2rem; color:var(--muted); font-size:.7rem; }
.mail-thread-meta b { min-width:1.35rem; height:1.35rem; display:inline-flex; align-items:center; justify-content:center; padding:0 .3rem; border-radius:999px; background:#ffcf3f; color:#301d00; }
.mail-conversation { min-height:620px; padding:.8rem; overflow:hidden; }
.mail-empty-state { min-height:540px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; color:var(--muted); }
.mail-empty-state h2 { color:var(--blue); margin:.7rem 0 .2rem; }
.mail-conversation-head { display:flex; justify-content:space-between; gap:.8rem; align-items:center; padding:.35rem .35rem .75rem; border-bottom:1px solid var(--line); }
.mail-partner { display:flex; align-items:center; gap:.65rem; color:var(--ink); }
.mail-partner:hover { text-decoration:none; }
.mail-partner img { width:52px; height:52px; border-radius:50%; object-fit:cover; }
.mail-partner span { display:grid; }
.mail-partner strong { color:var(--blue); font-size:1.1rem; }
.mail-partner small { color:var(--muted); }
.mail-thread-actions { display:flex; flex-wrap:wrap; gap:.35rem; justify-content:flex-end; }
.mail-thread-actions form { margin:0; }
.mail-preferences { display:flex; flex-wrap:wrap; gap:.35rem; align-items:center; padding:.55rem .4rem; font-size:.88rem; border-bottom:1px solid var(--line); }
.mail-preferences form { margin:0; }
.mail-composer { display:grid; gap:.45rem; margin:.75rem 0; padding:.75rem; border:1px solid #cfe0f7; border-radius:18px; background:#f7fbff; }
.mail-composer > label { color:var(--blue); font-weight:900; }
.mail-composer textarea { resize:vertical; min-height:92px; }
.mail-composer-row { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.mail-composer-row .muted { flex:1 1 260px; font-size:.82rem; }
.file-button { position:relative; display:inline-flex; align-items:center; justify-content:center; padding:.55rem .8rem; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--blue); font-weight:850; cursor:pointer; }
.file-button input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.mail-message-list { display:flex; flex-direction:column; gap:.55rem; padding:.2rem 0 .7rem; }
.mail-message { display:flex; width:100%; }
.mail-message.mine { justify-content:flex-end; }
.mail-message.theirs { justify-content:flex-start; }
.mail-message-bubble { width:min(78%,680px); border:1px solid var(--line); border-radius:18px; padding:.65rem .75rem; box-shadow:0 6px 18px rgba(16,32,51,.06); overflow-wrap:anywhere; }
.mail-message.mine .mail-message-bubble { background:#eaf3ff; border-bottom-right-radius:5px; }
.mail-message.theirs .mail-message-bubble { background:#fff8eb; border-bottom-left-radius:5px; }
.mail-message-bubble > header { display:flex; gap:.55rem; justify-content:space-between; align-items:center; color:var(--muted); font-size:.72rem; margin-bottom:.35rem; }
.mail-message-text { line-height:1.55; }
.mail-message-image { display:block; margin-top:.5rem; border-radius:13px; overflow:hidden; background:#eef2f7; }
.mail-message-image img { width:auto; max-width:100%; max-height:520px; object-fit:contain; }
.mail-message-placeholder { margin:.25rem 0; color:var(--muted); font-style:italic; }
.mail-message-actions { display:flex; justify-content:flex-end; margin-top:.38rem; min-height:1rem; font-size:.76rem; }
.mail-message-actions form { margin:0; }
.mail-report { position:relative; }
.mail-report summary { color:var(--muted); cursor:pointer; list-style:none; }
.mail-report summary::-webkit-details-marker { display:none; }
.mail-report[open] form { display:grid; gap:.35rem; width:min(330px,72vw); margin-top:.35rem; padding:.55rem; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow); }
.mail-report textarea, .mail-report select { padding:.55rem .65rem; border-radius:10px; font-size:.86rem; }
.mail-no-messages { text-align:center; color:var(--muted); padding:2.5rem 1rem; }
.mail-load-older { text-align:center; margin:.4rem 0 1rem; }
.mail-danger-actions { display:flex; justify-content:flex-end; padding-top:.7rem; border-top:1px solid var(--line); }
.mail-danger-actions form { margin:0; }
.admin-tabs { display:flex; flex-wrap:wrap; gap:.4rem; margin:.7rem 0; }
.admin-tabs a { display:inline-flex; padding:.5rem .75rem; border:1px solid var(--line); border-radius:999px; background:#fff; font-weight:800; }
.admin-tabs a.active { background:#eef5ff; border-color:var(--blue); }
.message-report-list { display:grid; gap:.55rem; }
.message-report-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.8rem; align-items:center; padding:.75rem; border:1px solid var(--line); border-radius:14px; background:#fbfdff; }
.message-report-row.active { border-color:var(--blue); box-shadow:0 0 0 2px rgba(1,58,138,.1); }
.message-report-row h2 { margin:.25rem 0; color:var(--blue); font-size:1.08rem; }
.message-report-row p { margin:.2rem 0; }
.message-report-detail { margin-bottom:.9rem; }
.section-head.compact { margin:.1rem 0 .8rem; align-items:center; }
.detail-list { display:grid; gap:.45rem; margin:.6rem 0 1rem; }
.detail-list div { display:grid; grid-template-columns:130px minmax(0,1fr); gap:.55rem; padding:.5rem; border:1px solid var(--line); border-radius:10px; }
.detail-list dt { color:var(--muted); font-weight:850; }
.detail-list dd { margin:0; }
.moderation-message-context { display:grid; gap:.45rem; margin:.6rem 0 1rem; }
.moderation-context-message { padding:.65rem; border:1px solid var(--line); border-radius:12px; background:#fafcff; }
.moderation-context-message.reported { border:2px solid var(--orange); background:#fff8eb; }
.moderation-context-message header { display:flex; gap:.55rem; align-items:center; flex-wrap:wrap; }
.moderation-context-message time { color:var(--muted); font-size:.8rem; }
.moderation-context-message p { margin:.45rem 0 0; }
.moderation-attachment img { max-width:360px; max-height:300px; object-fit:contain; margin-top:.5rem; border-radius:10px; }
.message-report-resolution { display:grid; gap:.6rem; padding-top:.75rem; border-top:1px solid var(--line); }
.message-report-resolution label { display:grid; gap:.3rem; font-weight:800; color:var(--blue); }

@media (max-width: 920px) {
  .mail-shell { grid-template-columns:1fr; }
  .mail-sidebar { position:static; max-height:none; }
  .mail-conversation { min-height:420px; }
}
@media (max-width: 620px) {
  .mail-conversation-head { align-items:flex-start; flex-direction:column; }
  .mail-thread-actions { justify-content:flex-start; }
  .mail-message-bubble { width:92%; }
  .mail-composer-row { align-items:stretch; }
  .mail-composer-row .btn, .file-button { width:100%; }
  .search-inline { flex-direction:column; align-items:stretch; }
  .message-report-row, .detail-list div { grid-template-columns:1fr; }
}

/* Etapa 7.1 — obľúbený používateľ priamo z verejného profilu. */
.profile-relationship-panel {
  margin:.75rem 0;
  padding:.7rem .8rem;
  border:1px solid #d6e3f4;
  border-radius:14px;
  background:#f8fbff;
}
.profile-favorite-status {
  margin:0 0 .55rem;
  color:var(--blue);
  line-height:1.4;
}
.profile-favorite-status span {
  color:var(--muted);
  font-size:.9rem;
}
.profile-contact-actions form {
  margin:0;
}
@media (max-width: 620px) {
  .profile-contact-actions .btn,
  .profile-contact-actions form {
    width:100%;
  }
  .profile-contact-actions form .btn {
    width:100%;
  }
}

/* Etapa 8 — Tržnica */
.market-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(1, 58, 138, .14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(1, 58, 138, .07), rgba(243, 154, 31, .10));
}
.market-hero h1 { margin: 0 0 6px; }
.market-hero p:last-child { max-width: 850px; margin-bottom: 0; }
.market-filter { margin-bottom: 22px; }
.market-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(5, minmax(130px, 1fr));
    gap: 12px;
    align-items: end;
}
.market-filter label,
.marketplace-form label,
.marketplace-settings-form label,
.market-report-resolution label,
.moderation-reason-form,
.admin-inline-editor label { display: grid; gap: 6px; }
.market-filter label > span,
.marketplace-form label > span,
.marketplace-settings-form label > span,
.market-report-resolution label > span,
.admin-inline-editor label > span { font-weight: 700; color: #17385f; }
.market-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.market-results-head { margin-top: 8px; }
.market-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.market-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe7f1;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(25, 54, 92, .07);
    transition: transform .16s ease, box-shadow .16s ease;
}
.market-card:hover { transform: translateY(-2px); box-shadow: 0 11px 28px rgba(25, 54, 92, .12); }
.market-card-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef3f8; }
.market-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.market-card:hover .market-card-image img { transform: scale(1.025); }
.market-ribbon,
.market-photo-count {
    position: absolute;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    box-shadow: 0 2px 9px rgba(0,0,0,.16);
}
.market-ribbon { left: 10px; color: #422600; background: #ffc867; }
.market-photo-count { right: 10px; color: #fff; background: rgba(1, 35, 80, .84); }
.market-card-body { display: grid; gap: 8px; padding: 14px; }
.market-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.market-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.market-card h3 a { color: #102f55; text-decoration: none; }
.market-price { color: #013A8A; font-size: 1.14rem; }
.market-card-description { min-height: 3.5em; margin: 0; color: #4d6075; font-size: .91rem; line-height: 1.45; }
.market-card-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; margin: 2px 0 0; }
.market-card-meta div { min-width: 0; }
.market-card-meta dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: #78889b; }
.market-card-meta dd { margin: 1px 0 0; font-size: .79rem; color: #283d54; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-author-link { font-size: .84rem; color: #013A8A; font-weight: 700; }
.market-empty { grid-column: 1 / -1; text-align: center; }
.status-success { background: #d9f5e7; color: #17623d; }
.status-warning { background: #fff0c9; color: #805200; }
.status-pending { background: #dce9fb; color: #174e91; }
.status-danger { background: #fde0e0; color: #982d2d; }
.status-muted { background: #edf0f3; color: #5b6775; }
.status-info { background: #e2eef8; color: #245c88; }
.marketplace-form {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.marketplace-form > *,
.marketplace-form fieldset,
.marketplace-form label,
.marketplace-form input,
.marketplace-form textarea,
.marketplace-form select,
.marketplace-form .form-grid {
    min-width: 0;
    max-width: 100%;
}
.marketplace-form fieldset { min-inline-size: 0; }
.marketplace-form label,
.marketplace-form small,
.marketplace-form .checkline { overflow-wrap: anywhere; }
.market-price-input { width: min(100%, 14rem); max-width: 14rem; }
.marketplace-form .market-rules-box .checkline {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
}
.market-contact-section,
.market-rules-box,
.market-existing-photos {
    border: 1px solid #dce5ef;
    border-radius: 14px;
    padding: 16px;
    background: #fbfdff;
}
.market-contact-section h2,
.market-rules-box h2,
.market-existing-photos h2 { margin-top: 0; font-size: 1.1rem; }
.market-rules-box { border-color: rgba(243, 154, 31, .45); background: #fffaf2; }
.market-rules-box .checkline { align-items: flex-start; font-weight: 600; }
.market-photo-editor { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.market-photo-editor article { display: grid; gap: 7px; padding: 8px; border: 1px solid #dce5ef; border-radius: 11px; background: #fff; }
.market-photo-editor img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
/* Ovládanie uložených fotografií: vstup aj text ostávajú v jednom riadku. */
.market-photo-editor label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    width: auto;
    max-width: 100%;
    gap: 7px;
    font-size: .82rem;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    cursor: pointer;
}
.market-photo-editor label input[type="radio"],
.market-photo-editor label input[type="checkbox"] {
    flex: 0 0 auto;
    width: auto;
    min-width: 1rem;
    margin: 0;
    padding: 0;
}
.market-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid #dbe4ef; }
.market-tabs a { padding: 9px 12px; border-radius: 9px 9px 0 0; color: #35506d; text-decoration: none; font-weight: 700; }
.market-tabs a:hover,
.market-tabs a.active { background: #013A8A; color: #fff; }
.market-manage-list { display: grid; gap: 16px; }
.market-manage-card { padding: 12px; }
.market-manage-summary .market-card { display: grid; grid-template-columns: 230px 1fr; box-shadow: none; border: 0; }
.market-manage-summary .market-card:hover { transform: none; }
.market-manage-summary .market-card-image { height: 100%; min-height: 180px; }
.market-manage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #e2e8ef; }
.market-manage-actions form { display: flex; gap: 6px; align-items: center; }
.market-manage-actions select { min-width: 135px; }
.market-watched-item { display: grid; align-content: start; gap: 8px; }
.market-watched-item > form { justify-self: start; }
.market-status-alert { margin-bottom: 14px; }
.market-detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .78fr); gap: 18px; align-items: start; }
.market-detail-main { display: grid; gap: 18px; }
.market-gallery { padding: 12px; }
.market-gallery-main { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: #eef3f8; }
.market-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.market-gallery-thumbs { display: flex; gap: 9px; overflow-x: auto; padding-top: 10px; }
.market-gallery-thumbs button { flex: 0 0 86px; padding: 3px; border: 2px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; }
.market-gallery-thumbs button.active { border-color: #013A8A; }
.market-gallery-thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; }
.market-detail-copy { display: grid; gap: 18px; }
.market-detail-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.market-detail-heading h1 { margin: 9px 0 0; }
.market-detail-heading .status { margin-left: 6px; }
.market-detail-price { flex: 0 0 auto; color: #013A8A; font-size: clamp(1.35rem, 3vw, 2rem); white-space: nowrap; }
.market-description { color: #283f58; line-height: 1.65; }
.market-detail-meta { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin: 0; }
.market-detail-meta div { padding: 9px; border-radius: 10px; background: #f3f7fb; }
.market-detail-meta dt { color: #6e7f91; font-size: .72rem; text-transform: uppercase; }
.market-detail-meta dd { margin: 3px 0 0; color: #183b61; font-weight: 800; }
.market-detail-side { position: sticky; top: 82px; display: grid; gap: 14px; }
.market-author-card { display: grid; gap: 14px; }
.market-author-profile { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.market-author-profile img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; }
.market-author-profile span { display: grid; }
.market-author-profile small { color: #76879a; }
.market-author-profile strong { color: #12375e; font-size: 1.08rem; }
.market-author-profile em { color: #5d7188; font-style: normal; font-size: .82rem; }
.market-contact-button { width: 100%; text-align: center; }
.market-login-contact { padding: 12px; border-radius: 11px; background: #f2f7fd; }
.market-login-contact p { margin-top: 0; }
.market-public-contact { padding-top: 12px; border-top: 1px solid #e2e8ef; }
.market-public-contact h2 { margin: 0 0 8px; font-size: 1rem; }
.market-public-contact p { margin: 5px 0; }
.market-liability-note { margin: 0; padding-top: 12px; border-top: 1px solid #e2e8ef; color: #69798a; font-size: .8rem; line-height: 1.45; }
.market-report-box summary,
.market-history summary { cursor: pointer; color: #013A8A; font-weight: 800; }
.market-report-box form { display: grid; gap: 12px; padding-top: 14px; }
.market-history { margin-top: 20px; }
.market-history .table-wrap { margin-top: 14px; }
.compact-stats { margin-bottom: 16px; }
.admin-filter-row { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto auto; gap: 10px; align-items: end; }
.admin-filter-row label { display: grid; gap: 5px; }
.admin-filter-row label span { font-weight: 700; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.market-admin-preview { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.market-admin-preview img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.market-moderation-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.moderation-reason-form { align-content: start; }
.moderation-reason-form textarea { min-height: 76px; }
.market-report-admin-list { display: grid; gap: 14px; }
.market-report-admin-list article > header { display: flex; justify-content: space-between; gap: 12px; }
.market-report-admin-list h2 { margin: 6px 0; font-size: 1.15rem; }
.market-report-resolution { display: grid; grid-template-columns: minmax(180px,.6fr) minmax(260px,1.4fr) auto; gap: 12px; align-items: end; }
.admin-inline-editor { display: grid; grid-template-columns: 2fr 1fr .6fr auto auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.marketplace-settings-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.marketplace-settings-form button { align-self: end; justify-self: start; }

@media (max-width: 1180px) {
    .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .market-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .market-filter-search { grid-column: span 2; }
    .market-photo-editor { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .admin-filter-row { grid-template-columns: repeat(3, 1fr); }
    .marketplace-settings-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
    .market-hero { align-items: stretch; flex-direction: column; }
    .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-detail-layout { grid-template-columns: 1fr; }
    .market-detail-side { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .market-detail-meta { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .market-photo-editor { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .market-manage-summary .market-card { grid-template-columns: 180px 1fr; }
    .market-moderation-actions { grid-template-columns: 1fr 1fr; }
    .market-report-resolution { grid-template-columns: 1fr; }
    .admin-inline-editor { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .market-filter-grid { grid-template-columns: 1fr 1fr; }
    .market-filter-search { grid-column: 1 / -1; }
    .market-filter-actions { align-items: stretch; flex-direction: column; }
    .market-grid { grid-template-columns: 1fr; }
    .market-card-meta { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .market-detail-heading { flex-direction: column; }
    .market-detail-price { white-space: normal; }
    .market-detail-meta { grid-template-columns: 1fr 1fr; }
    .market-detail-side { grid-template-columns: 1fr; }
    .market-photo-editor { grid-template-columns: 1fr 1fr; }
    .market-manage-summary .market-card { grid-template-columns: 1fr; }
    .market-manage-actions { align-items: stretch; flex-direction: column; }
    .market-manage-actions form { width: 100%; }
    .market-manage-actions .btn { width: 100%; }
    .market-moderation-actions { grid-template-columns: 1fr; }
    .market-admin-preview { grid-template-columns: 1fr; }
    .admin-filter-row,
    .admin-inline-editor,
    .marketplace-settings-form { grid-template-columns: 1fr; }
}

/* ADMIN: súkromné recepty v zozname všetkých receptov */
.recipe-card.recipe-card-admin-private {
    background: #fff4bf;
    border-color: #e0b93f;
}
.recipe-card.recipe-card-admin-private .recipe-card-body,
.recipe-card.recipe-card-admin-private .recipe-card-actions {
    background: transparent;
}
.status-private {
    background: #8a6511;
    color: #fff;
}

/* Mesačný prehľad pridaných receptov */
.recipe-stats-table tr.is-weekend td {
    background: #eef3ff;
    font-weight: 700;
}
.recipe-stats-table tr.is-today td {
    border-top: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
}

/* BLOG administrácia: zreteľné oddelenie jednotlivých článkov */
.blog-admin-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent;
}
.blog-admin-table thead th {
    border-bottom: 0;
}
.blog-admin-table tbody tr {
    background: #fff;
    box-shadow: 0 2px 10px rgba(1, 58, 138, .08);
}
.blog-admin-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
    border-top: 1px solid #d8e2ef;
    border-bottom: 1px solid #d8e2ef;
    vertical-align: middle;
}
.blog-admin-table tbody td:first-child {
    border-left: 1px solid #d8e2ef;
    border-radius: 10px 0 0 10px;
}
.blog-admin-table tbody td:last-child {
    border-right: 1px solid #d8e2ef;
    border-radius: 0 10px 10px 0;
}
.blog-admin-table .admin-row-actions {
    align-items: center;
}

/* BLOG administrácia 10.5.3: každý článok je samostatná karta */
.blog-admin-list {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}
.blog-admin-item {
    display: grid;
    grid-template-columns: 58px minmax(280px, 1fr) minmax(310px, auto);
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border: 1px solid #d6e1ef;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(1, 58, 138, .08);
}
.blog-admin-item.is-history {
    background: #f7f9fc;
    border-style: dashed;
}
.blog-admin-id {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding-right: 14px;
    border-right: 1px solid #dbe4ef;
}
.blog-admin-id span {
    color: #60708a;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}
.blog-admin-id strong {
    color: var(--blue);
    font-size: 1.45rem;
}
.blog-admin-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.blog-admin-title-line h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
}
.blog-admin-main > .muted {
    margin: 6px 0 10px;
}
.blog-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: .9rem;
}
.blog-admin-actions {
    justify-content: flex-end;
    align-content: center;
    max-width: 430px;
}
.blog-admin-actions form {
    margin: 0;
}
@media (max-width: 1050px) {
    .blog-admin-item {
        grid-template-columns: 52px 1fr;
    }
    .blog-admin-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        max-width: none;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
    }
}
@media (max-width: 600px) {
    .blog-admin-item {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    .blog-admin-id {
        display: flex;
        justify-content: flex-start;
        align-items: baseline;
        gap: 8px;
        padding: 0 0 10px;
        border-right: 0;
        border-bottom: 1px solid #dbe4ef;
    }
    .blog-admin-actions .btn,
    .blog-admin-actions form {
        width: 100%;
    }
}

/* BLOG administrácia 10.5.4 – vynútené vizuálne oddelenie kariet.
   Vyššia špecificita a !important chránia vzhľad pred všeobecnými admin štýlmi. */
.page-shell .blog-admin-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
}
.page-shell .blog-admin-list > article.blog-admin-item {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 58px minmax(280px, 1fr) minmax(310px, auto) !important;
    gap: 18px !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 2px solid #c9d8eb !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 24px rgba(1, 58, 138, .10) !important;
}
.page-shell .blog-admin-list > article.blog-admin-item.is-history {
    background: #f7f9fc !important;
    border: 2px dashed #9fb4ce !important;
}
.page-shell .blog-admin-list > article.blog-admin-item + article.blog-admin-item {
    margin-top: 0 !important;
}
@media (max-width: 1050px) {
    .page-shell .blog-admin-list > article.blog-admin-item {
        grid-template-columns: 52px minmax(0, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .page-shell .blog-admin-list > article.blog-admin-item {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 15px !important;
    }
}

/* BLOG 10.7 – vyhľadávanie a titulná stránka */
.blog-filter-grid {
    grid-template-columns: minmax(260px, 2fr) minmax(220px, 1fr);
}
.search-blog-heading {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 2px solid #d8e3f0;
}
.search-blog-results {
    margin-bottom: 24px;
}
.home-blog-featured,
.home-blog-latest {
    margin: 34px 0;
}
.home-blog-featured-card {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8e3f0;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(1, 58, 138, .10);
}
.home-blog-featured-image {
    min-height: 320px;
    background: #edf3f9;
}
.home-blog-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}
.home-blog-featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
}
.home-blog-featured-body h2 {
    margin: 8px 0 14px;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.12;
}
.home-blog-featured-body h2 a {
    color: inherit;
    text-decoration: none;
}
.home-blog-featured-body .btn {
    margin-top: 8px;
}
@media (max-width: 760px) {
    .blog-filter-grid,
    .home-blog-featured-card {
        grid-template-columns: 1fr;
    }
    .home-blog-featured-image,
    .home-blog-featured-image img {
        min-height: 220px;
        max-height: 300px;
    }
}
