:root {
  --bg: #f6f8f5;
  --panel: #ffffff;
  --text: #18231a;
  --muted: #66736a;
  --brand: #1f7a3f;
  --brand-dark: #13542b;
  --brand-soft: #e8f4ec;
  --accent: #f2bd2f;
  --danger: #b42318;
  --border: #dde6df;
  --shadow: 0 18px 45px rgba(22, 40, 24, .08);
  --radius: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }

.front-body { min-height: 100vh; }
.front-body.has-site-background {
  background-color: var(--bg);
  position: relative;
  overflow-x: hidden;
}
.site-background-decoration {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}
.site-background-decoration img {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
  object-fit: contain;
  opacity: var(--site-background-opacity, 1);
}
.front-body main, .front-body .site-footer { position: relative; z-index: 1; }
.site-background-preview { width: min(360px, 100%); max-height: 180px; object-fit: contain; border-radius: 14px; border: 1px solid var(--border); background: #f7faf6; padding: 6px; }
@media (max-width: 920px) {
  .site-background-decoration {
    margin-top: 0;
  }
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img, iframe { max-width: 100%; }
main { min-height: 65vh; }
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px clamp(18px, 4vw, 54px); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.brand, .admin-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.front-body .site-header .brand { transform-origin: left center; animation: logoIntro .7s cubic-bezier(.2,.85,.25,1.15) both; }
.brand-visual { display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; flex: 0 0 auto; line-height: 1; }
.brand-coop { display: block; color: var(--brand-dark); font-size: 8.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-align: right; opacity: .86; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--brand); color: white; font-weight: 800; font-size: 24px; box-shadow: 0 8px 20px rgba(31,122,63,.24); }
.brand-logo { display: block; width: auto; max-width: 190px; height: 48px; object-fit: contain; }
.front-body .brand-logo, .front-body .brand-mark, .front-body .brand-coop { transform-origin: center; transition: transform .22s ease, color .22s ease; will-change: transform; }
.front-body .brand:hover .brand-logo, .front-body .brand:focus-visible .brand-logo { transform: translateY(-2px) rotate(-1.5deg) scale(1.045); }
.front-body .brand:hover .brand-mark, .front-body .brand:focus-visible .brand-mark { transform: translateY(-2px) rotate(-1.5deg) scale(1.06); }
.front-body .brand:hover .brand-coop, .front-body .brand:focus-visible .brand-coop { color: var(--brand); }
@keyframes logoIntro {
  0% { opacity: 0; transform: translateY(-10px) scale(.94); }
  60% { opacity: 1; transform: translateY(1px) scale(1.035); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .front-body .site-header .brand { animation: none; }
  .front-body .brand-logo, .front-body .brand-mark { transition: none; }
  .front-body .brand:hover .brand-logo, .front-body .brand:focus-visible .brand-logo,
  .front-body .brand:hover .brand-mark, .front-body .brand:focus-visible .brand-mark { transform: none; filter: none; }
  .hero-store-slide, .hero-store-slide.active { animation: none; transition: opacity .2s ease; transform: none; }
}
.brand-logo-admin { max-width: 150px; height: 42px; background: rgba(255,255,255,.95); border-radius: 12px; padding: 5px; }
.main-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { color: var(--text); padding: 10px 12px; border-radius: 999px; font-size: 14px; }
.main-nav a.active, .main-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav-toggle { display: none; border: 0; background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; font-size: 22px; }
.hero, .page-title, .section, .store-hero, .content-card { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 28px; align-items: stretch; padding: clamp(42px, 7vw, 90px) 0 34px; }
.hero-content, .hero-card, .card, .content-card, .notice, .admin-panel, .stat-card, .map-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-content { padding: clamp(26px, 5vw, 56px); background: linear-gradient(135deg, #fff 0%, #eef8f1 100%); }
h1 { font-size: clamp(31px, 4.35vw, 54px); line-height: 1.08; margin: 8px 0 16px; letter-spacing: -.035em; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 12px; }
h3 { margin: 0 0 10px; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.hero-content p, .page-title p { font-size: 18px; color: var(--muted); max-width: 780px; }
.hero-actions, .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 12px 18px; background: var(--brand); color: white; font-weight: 750; box-shadow: 0 10px 24px rgba(31,122,63,.2); }
.btn:hover { color: white; background: var(--brand-dark); }
.btn-secondary { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
.btn-secondary:hover { background: #d7ecde; color: var(--brand-dark); }
.btn-small { padding: 8px 12px; font-size: 14px; }

.admin-public-tools { margin: 24px 0 18px; padding: 12px 14px; border: 1px dashed rgba(31,122,63,.35); background: rgba(31,122,63,.06); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); }
.admin-public-tools strong { display: block; color: var(--brand-dark); font-size: 14px; }
.admin-public-tools span { font-size: 13px; }
.btn-admin-edit { background: rgba(31,122,63,.10); color: var(--brand-dark); box-shadow: none; border: 1px solid rgba(31,122,63,.25); }
.btn-admin-edit:hover { background: rgba(31,122,63,.16); }
@media (max-width: 640px) { .admin-public-tools { align-items: flex-start; flex-direction: column; } }
.hero-card { padding: 30px; display: flex; flex-direction: column; justify-content: center; }

.hero-store-card { position: relative; overflow: hidden; min-height: 360px; padding: 0; isolation: isolate; background: linear-gradient(135deg, #f7fbf8, #e8f4ec); }
.hero-store-card-has-photos { background: #142a1b; color: white; }
.hero-store-slideshow { position: absolute; inset: 0; z-index: -1; background: #142a1b; }
.hero-store-slideshow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,28,14,.18), rgba(8,28,14,.74)); }
.hero-store-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04) rotate(-.35deg); transform-origin: center center; transition: opacity 1.45s ease; will-change: opacity, transform; }
.hero-store-slide.active { opacity: 1; animation: heroStoreSlideDrift 8.8s ease-in-out forwards; }
@keyframes heroStoreSlideDrift {
  0% { transform: scale(1.04) rotate(-.35deg); }
  50% { transform: scale(1.07) rotate(.18deg); }
  100% { transform: scale(1.085) rotate(.42deg); }
}
.hero-store-card-content { min-height: 360px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.hero-store-stat { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero-store-stat strong { font-size: clamp(58px, 8vw, 96px); line-height: .88; color: var(--brand); }
.hero-store-card-has-photos .hero-store-stat strong { color: white; text-shadow: 0 8px 28px rgba(0,0,0,.28); }
.hero-store-stat span { color: var(--muted); text-transform: none; letter-spacing: -.03em; font-size: clamp(28px, 4vw, 42px); font-weight: 850; }
.hero-store-card-has-photos .hero-store-stat span, .hero-store-card-has-photos .rich-text, .hero-store-card-has-photos .rich-text p { color: rgba(255,255,255,.92); }
.hero-store-card .rich-text { font-size: 16px; }
.hero-card strong, .stat-card strong { font-size: clamp(46px, 7vw, 74px); line-height: 1; color: var(--brand); }
.hero-card span, .stat-card span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
.hero-card .hero-store-stat strong { font-size: clamp(58px, 8vw, 96px); line-height: .88; }
.hero-card .hero-store-stat span { color: var(--muted); text-transform: none; letter-spacing: -.03em; font-size: clamp(28px, 4vw, 42px); font-weight: 850; }
.hero-store-card-has-photos .hero-store-stat strong { color: white; text-shadow: 0 8px 28px rgba(0,0,0,.28); }
.hero-store-card-has-photos .hero-store-stat span { color: rgba(255,255,255,.92); }
.section { padding: 34px 0; }
.section-head, .admin-head, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cards { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 24px; }
.card h2 { font-size: 24px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 750; margin-bottom: 12px; }
.store-card { position: relative; overflow: visible; display: flex; flex-direction: column; min-height: 100%; }
.store-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.store-card-top .badge { margin-bottom: 0; }
.store-number { color: var(--muted); font-size: 13px; font-weight: 650; margin: -4px 0 10px; letter-spacing: .01em; }
.store-title-link { display: inline-block; transform-origin: left center; transition: transform .18s ease, color .18s ease; }
.store-title-link:hover, .store-title-link:focus-visible { transform: scale(1.035); }
.store-number-card-bottom { margin: auto 0 0; align-self: flex-end; text-align: right; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid rgba(43, 127, 72, .14); border-radius: 999px; padding: 5px 9px; }
.store-number-detail { margin: -6px 0 14px; }
.store-card-icon { width: 48px; height: 48px; flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid rgba(43, 127, 72, .18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.65); font-size: 26px; line-height: 1; }
.store-card-icon img { width: 30px; height: 30px; object-fit: contain; display: block; }
.store-card-icon-preview { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border); border-radius: 18px; padding: 12px; background: white; }

.notice { width: min(1180px, calc(100% - 32px)); margin: 22px auto; padding: 24px; }
.notice-important { border-color: #f2d36b; background: #fff9e7; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.service-cloud, .service-list, .mini-services { display: flex; gap: 10px; flex-wrap: wrap; }
.store-card .mini-services { margin-bottom: 14px; }
.service-badge { display: inline-flex; align-items: center; gap: 8px; background: white; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; font-weight: 750; line-height: 1.2; }
.service-badge-name { color: inherit; }
.service-badge-icon-only { padding: 6px 8px; }
.mini-services > span, .service-icon-size-preview .service-tooltip { display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 6px; min-width: calc(var(--store-service-icon-size, 32px) + 14px); min-height: calc(var(--store-service-icon-size, 32px) + 14px); }
.service-tooltip { position: relative; cursor: help; outline: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.service-tooltip:hover, .service-tooltip:focus-visible { transform: translateY(-1px); border-color: rgba(31,122,63,.36); box-shadow: 0 8px 22px rgba(22, 50, 32, .12); }
.service-tooltip-bubble { position: absolute; left: 50%; bottom: calc(100% + 9px); z-index: 40; width: max-content; max-width: min(280px, calc(100vw - 40px)); transform: translate(-50%, 4px); opacity: 0; pointer-events: none; background: rgba(28, 36, 30, .96); color: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 16px 34px rgba(0,0,0,.20); font-size: 13px; line-height: 1.35; text-align: left; transition: opacity .12s ease, transform .12s ease; }
.service-tooltip-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: rgba(28, 36, 30, .96); }
.service-tooltip-bubble strong { display: block; margin-bottom: 3px; font-size: 13px; line-height: 1.25; }
.service-tooltip-bubble span { display: block; color: rgba(255,255,255,.86); font-weight: 500; }
.service-tooltip:hover .service-tooltip-bubble, .service-tooltip:focus-visible .service-tooltip-bubble { opacity: 1; transform: translate(-50%, 0); }
.admin-table-description { max-width: 280px; line-height: 1.35; }
.service-icon-settings-panel .panel-head { align-items: center; }
.service-icon-size-preview { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border: 1px dashed var(--border); border-radius: 16px; background: var(--bg); }
.service-icon-size-preview .service-tooltip { position: relative; }
.filter-bar { width: min(1180px, calc(100% - 32px)); margin: 0 auto 22px; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; box-shadow: var(--shadow); }
.filter-actions { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.filter-actions .btn { white-space: nowrap; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; font: inherit; background: white; color: var(--text); }
textarea { resize: vertical; }
label { display: grid; gap: 6px; font-weight: 700; }
fieldset { border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
legend { font-weight: 800; padding: 0 8px; }
/* v119: kompaktnější úvodní část vnitřních veřejných stránek */
.page-title { padding: 38px 0 12px; }
.page-title h1 { margin-bottom: 10px; }
.page-title p { margin: 0; }
.page-title + .section { padding-top: 16px; }
.page-title + .content-card,
.page-title + .notice { margin-top: 12px; }
.store-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; padding: 36px 0; }
.store-hero > div:first-child { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 46px); box-shadow: var(--shadow); }
.map-card { overflow: hidden; min-height: 360px; }
.map-card iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.map-placeholder { min-height: 360px; display: grid; place-items: center; color: var(--muted); background: var(--brand-soft); padding: 24px; text-align: center; }
.address-line { color: var(--muted); font-weight: 700; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hours-table th { width: 40%; }
.content-card { padding: clamp(24px, 4vw, 42px); white-space: normal; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkbox-grid label, .switch { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checkbox-grid input, .switch input { width: auto; }
.honeypot { position: absolute; left: -5000px; }
.flash { width: min(1180px, calc(100% - 32px)); margin: 16px auto; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--border); background: white; font-weight: 700; }
.flash-success { background: #e8f7ee; color: #145c2f; border-color: #bde7c8; }
.flash-error { background: #fdecec; color: var(--danger); border-color: #f5b5b5; }
.flash-warning { background: #fff8e4; color: #7a5200; border-color: #eed47e; }
.muted { color: var(--muted); }
.site-footer { margin-top: 50px; display: flex; justify-content: space-between; gap: 24px; padding: 30px clamp(18px, 4vw, 54px); background: #132318; color: white; }
.site-footer a { color: #d9f5e1; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.install-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #e7f7ec 0, transparent 36%), var(--bg); }
.install-card { width: min(620px, 100%); background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 42px); }
.install-card h1 { font-size: 34px; }
.admin-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: #f5f6f4; }
.admin-sidebar { position: sticky; top: 0; min-height: 100vh; background: #102116; color: white; padding: 18px; display: flex; flex-direction: column; gap: 20px; }
.admin-sidebar a { color: #edf8f0; }
.admin-sidebar nav { display: grid; gap: 16px; }
.admin-nav-group { display: grid; gap: 5px; }
.admin-nav-title { padding: 4px 12px 2px; font-size: 11px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.54); }
.admin-sidebar nav a { padding: 9px 12px; border-radius: 12px; color: #dbeade; font-size: 14px; line-height: 1.25; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { background: rgba(255,255,255,.12); color: white; }
.admin-brand { color: white; }
.admin-user { margin-top: auto; display: grid; gap: 8px; color: #c7d8cc; }
.admin-main { padding: clamp(18px, 3vw, 36px); }
.admin-head { width: 100%; margin-bottom: 22px; }
.admin-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { padding: 22px; }
.admin-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-panel { padding: 20px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.admin-table td.row-actions { display: table-cell; vertical-align: top; white-space: nowrap; line-height: 1.4; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-table td.row-actions a, .admin-table td.row-actions form, .admin-table td.row-actions button { display: inline-flex; align-items: center; vertical-align: middle; line-height: inherit; }
.admin-table td.row-actions form { margin: 0 0 0 8px; }
.admin-table td.row-actions form:first-child { margin-left: 0; }
.admin-table td.row-actions button { line-height: inherit; }
.row-actions:not(td) a, .row-actions:not(td) form, .row-actions:not(td) button { display: inline-flex; align-items: center; vertical-align: middle; }
.row-actions:not(td) form { margin: 0; }
.row-actions:not(td) button { line-height: 1.2; }
.link-danger { border: 0; background: transparent; color: var(--danger); padding: 0; cursor: pointer; font: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
@media (max-width: 980px) {
  .hero, .store-hero, .split, .admin-grid-2 { grid-template-columns: 1fr; }
  .cards-2, .cards-3, .homepage-photo-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-actions { grid-column: 1 / -1; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; min-height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .site-header { flex-wrap: wrap; }
  .cards-2, .cards-3, .filter-bar, .form-row, .checkbox-grid, .admin-stats, .homepage-photo-grid, .homepage-photo-item { grid-template-columns: 1fr; }
  .filter-actions { flex-direction: column; }
  .homepage-photo-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .site-footer { flex-direction: column; }
  .admin-sidebar nav { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}

/* Obrázkové ikony služeb a náhledy letáků */
.service-icon { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; vertical-align: middle; }
.service-icon-emoji { display: inline-grid; place-items: center; line-height: 1; font-size: 20px; }
.mini-services .service-icon, .service-icon-size-preview .service-icon { width: var(--store-service-icon-size, 32px); height: var(--store-service-icon-size, 32px); }
.mini-services .service-icon-emoji, .service-icon-size-preview .service-icon-emoji { font-size: calc(var(--store-service-icon-size, 32px) - 2px); }
.service-icon-admin { width: 34px; height: 34px; }
.service-icon-large { width: 72px; height: 72px; border: 1px solid var(--border); border-radius: 18px; padding: 10px; background: white; }
.service-style-preview { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px dashed var(--border); border-radius: 16px; background: var(--bg); }
.service-style-preview > span:first-child { color: var(--muted); font-weight: 800; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
input[type="color"] { min-height: 48px; height: 48px; padding: 4px; border-radius: 14px; cursor: pointer; background: white; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 10px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 10px; }
.current-upload { display: grid; gap: 10px; align-items: start; border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: #fafafa; }

.homepage-photo-admin { margin-top: 18px; }
.homepage-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.homepage-photo-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; border: 1px solid var(--border); border-radius: 18px; padding: 12px; background: #fafafa; }
.homepage-photo-item img { width: 180px; height: 135px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); background: white; }
.homepage-photo-fields { display: grid; gap: 10px; min-width: 0; }
.homepage-photo-fields a { overflow-wrap: anywhere; font-size: 13px; }
.homepage-photo-delete-list { display: flex; gap: 10px; flex-wrap: wrap; }

.flyer-card { display: flex; flex-direction: column; gap: 12px; }
.flyer-preview { width: 100%; aspect-ratio: 3 / 4; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #f7faf7, #eaf5ee); display: grid; place-items: center; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.flyer-preview img, .flyer-preview canvas { max-width: 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.flyer-preview canvas { height: auto; align-self: start; }
.pdf-preview canvas { display: none; }
.pdf-preview-ready canvas { display: block; }
.pdf-preview-ready .pdf-preview-fallback { display: none; }
.pdf-preview-fallback { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.flyer-preview-admin { width: 74px; height: 98px; aspect-ratio: auto; border-radius: 12px; }
.flyer-preview-form { max-width: 260px; }
.flyer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.flyer-viewer-section { padding-top: 10px; }

.pdf-viewer { width: min(1280px, calc(100% - 24px)); margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pdf-toolbar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 12px; background: #f7faf7; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 3; }
.pdf-page-info, .pdf-zoom-info { font-weight: 800; color: var(--brand-dark); padding: 0 8px; white-space: nowrap; }
.pdf-help { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fbfdfb; color: var(--muted); font-size: 14px; text-align: center; }
.pdf-stage { height: min(82vh, 980px); min-height: 520px; padding: 14px; overflow: auto; background: #eef5ef; cursor: default; overscroll-behavior: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; text-align: center; }
.pdf-stage.is-zoomed { cursor: grab; }
.pdf-stage.is-dragging { cursor: grabbing; user-select: none; }
.pdf-stage.is-pinching { user-select: none; }
.pdf-sheet { display: inline-block; max-width: none; background: white; border-radius: 8px; box-shadow: 0 12px 30px rgba(16,33,22,.18); vertical-align: top; }
.pdf-canvas { display: block; max-width: none; border-radius: 8px; }
.pdf-fallback { padding: 18px; border-top: 1px solid var(--border); background: white; }
.pdf-fallback iframe { width: 100%; min-height: 760px; border: 1px solid var(--border); border-radius: 16px; background: white; }
.pdf-ready .pdf-fallback { display: none; }
.pdf-error .pdf-fallback { display: block; }
.pdf-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.site-logo-preview { width: min(260px, 100%); max-height: 120px; object-fit: contain; border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: white; }

@media (max-width: 720px) {
  .brand-logo { max-width: 150px; height: 42px; }
  .brand-coop { font-size: 7.5px; letter-spacing: .035em; }
  .pdf-viewer { width: calc(100% - 8px); border-radius: 16px; }
  .pdf-stage { height: 76vh; min-height: 380px; padding: 6px; }
  .pdf-toolbar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 10px 8px; }
  .pdf-help { text-align: left; font-size: 13px; padding: 9px 10px; }
  .pdf-toolbar .btn-small { padding: 9px 12px; }
  .pdf-fallback iframe { min-height: 520px; }
}


/* Spolehlivý stránkový prohlížeč letáků v45 */
.flyer-reader { width: min(1320px, calc(100% - 24px)); margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.flyer-reader-toolbar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 12px; background: #f7faf7; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 8; }
.flyer-reader-status, .flyer-reader-zoom-info { font-weight: 800; color: var(--brand-dark); padding: 0 8px; white-space: nowrap; }
.flyer-reader-help { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fbfdfb; color: var(--muted); font-size: 14px; text-align: center; }
.flyer-reader-stage { height: min(84vh, 1100px); min-height: 560px; overflow: auto; background: #eef5ef; overscroll-behavior: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.flyer-reader-pages { width: max-content; min-width: 100%; margin: 0 auto; padding: 18px; transform-origin: 0 0; }
.flyer-reader-page { margin: 0 auto 18px; background: white; border-radius: 10px; box-shadow: 0 12px 30px rgba(16,33,22,.18); overflow: hidden; }
.flyer-reader-page:last-child { margin-bottom: 0; }
.flyer-reader-page canvas { display: block; width: 100%; height: auto; background: white; user-select: none; -webkit-user-drag: none; }
.flyer-reader-loading { display: grid; place-items: center; min-height: 420px; padding: 18px; font-weight: 800; color: var(--brand-dark); text-align: center; }
.flyer-reader-fallback { display: none; padding: 18px; border-top: 1px solid var(--border); background: white; }
.flyer-reader-fallback iframe { width: 100%; min-height: 760px; border: 1px solid var(--border); border-radius: 16px; background: white; }
.flyer-reader-error .flyer-reader-fallback { display: block; }
.flyer-reader-error .flyer-reader-stage { display: none; }
.flyer-reader-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.flyer-reader-stage.is-zoomed { cursor: grab; }
.flyer-reader-stage.is-dragging { cursor: grabbing; user-select: none; }
.flyer-reader-stage.is-pinching { user-select: none; }
.flyer-reader:fullscreen { width: 100%; height: 100%; border-radius: 0; border: 0; display: flex; flex-direction: column; background: var(--panel); }
.flyer-reader:fullscreen .flyer-reader-stage { flex: 1 1 auto; height: auto; min-height: 0; }
.flyer-reader:fullscreen .flyer-reader-toolbar { position: relative; top: auto; }

@media (max-width: 720px) {
  .flyer-reader { width: calc(100% - 8px); border-radius: 16px; }
  .flyer-reader-toolbar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 10px 8px; }
  .flyer-reader-help { text-align: left; font-size: 13px; padding: 9px 10px; }
  .flyer-reader-stage { height: 78vh; min-height: 420px; }
  .flyer-reader-pages { padding: 8px; }
  .flyer-reader-page { margin-bottom: 10px; border-radius: 8px; }
  .flyer-reader-toolbar .btn-small { padding: 9px 12px; }
  .flyer-reader-fallback iframe { min-height: 520px; }
}


/* Soutěže a úvodní stránka */
.brand-logo-only { min-width: auto; }
.contest-card { display: flex; flex-direction: column; gap: 12px; }
.contest-image { width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid var(--border); object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; }
.contest-image-placeholder { color: var(--brand-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.contest-image-admin { width: 96px; height: 64px; aspect-ratio: auto; border-radius: 12px; }
.contest-image-form { max-width: 360px; aspect-ratio: 16 / 10; }
.contest-image-detail { max-height: 420px; object-fit: cover; margin-bottom: 24px; }
.lead { font-size: 20px; color: var(--muted); }
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }


/* TinyMCE editor v administraci a bezpečné zobrazení formátovaného obsahu */
.rich-text p:first-child, .rich-text h2:first-child, .rich-text h3:first-child, .rich-text h4:first-child, .rich-text ul:first-child, .rich-text ol:first-child, .rich-text table:first-child { margin-top: 0; }
.rich-text p:last-child, .rich-text ul:last-child, .rich-text ol:last-child, .rich-text blockquote:last-child, .rich-text table:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { padding-left: 1.35em; }
.rich-text blockquote { margin: 14px 0; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 12px; color: var(--brand-dark); }
.rich-text h2 { font-size: clamp(22px, 2.4vw, 30px); margin-top: 1.1em; }
.rich-text h3 { font-size: 22px; margin-top: 1em; }
.rich-text h4 { font-size: 18px; margin-top: 1em; }
.rich-text a { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 16px 0; overflow: hidden; border-radius: 12px; }
.rich-text th, .rich-text td { border: 1px solid var(--border); padding: 10px 12px; vertical-align: top; }
.rich-text th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 850; }
.rich-text hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.rich-text pre { white-space: pre-wrap; background: #f7faf7; border: 1px solid var(--border); border-radius: 12px; padding: 12px; overflow: auto; }
.document-file-actions { display: flex; justify-content: flex-end; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.document-file-actions .btn { text-align: center; }
@media (max-width: 640px) { .document-file-actions { justify-content: stretch; } .document-file-actions .btn { width: 100%; } }
.hero-rich-text { font-size: 18px; color: var(--muted); max-width: 780px; }
.hero-rich-text p { font-size: inherit; color: inherit; }

.tox-tinymce { border-radius: 16px !important; border-color: var(--border) !important; overflow: hidden; }
.tox .tox-toolbar, .tox .tox-toolbar__primary, .tox .tox-toolbar__overflow { background: #f7faf7 !important; }
.tox .tox-statusbar { border-top-color: var(--border) !important; }
.wysiwyg-fallback-textarea { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.wysiwyg-cdn-warning { display: block; margin-top: 6px; color: #8a5b00; font-weight: 750; }


/* Cookie lišta a nastavení souhlasů */
.cookie-consent { position: fixed; inset: auto 18px 18px 18px; z-index: 9999; display: flex; justify-content: center; pointer-events: none; }
.cookie-consent[hidden] { display: none !important; }
.cookie-panel { width: min(980px, 100%); background: #ffffff; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 22px 80px rgba(16,33,22,.28); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; pointer-events: auto; }
.cookie-copy h2 { margin: 0 0 8px; font-size: 24px; }
.cookie-copy p { margin: 8px 0; color: var(--muted); }
.cookie-preferences { grid-column: 1 / -1; display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.cookie-preferences[hidden] { display: none !important; }
.cookie-category { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: #f8fbf8; }
.cookie-category input { width: auto; margin-top: 3px; }
.cookie-category strong { display: block; color: var(--brand-dark); }
.cookie-category small { display: block; color: var(--muted); line-height: 1.45; }
.cookie-category-disabled { opacity: .8; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.cookie-save[hidden] { display: none !important; }
.footer-cookie-btn { border: 0; padding: 0; background: transparent; color: #d9f5e1; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-cookie-btn:hover { color: #ffffff; }
@media (max-width: 780px) {
  .cookie-consent { inset: auto 10px 10px 10px; }
  .cookie-panel { grid-template-columns: 1fr; border-radius: 18px; max-height: calc(100vh - 20px); overflow: auto; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { width: 100%; justify-content: center; }
}@media (max-width: 760px) { .form-row-3 { grid-template-columns: 1fr; } }


/* Dotační/projektové dokumenty u prodejen */
.store-documents-admin .store-document-preview,
.store-document-preview {
    width: 86px;
    min-height: 64px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    color: #475569;
    font-weight: 800;
}
.store-document-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.store-document-preview-pdf span,
.store-document-preview-file span {
    padding: .75rem;
}
.store-document-card {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 1rem;
    align-items: start;
}
.store-document-card .store-document-preview {
    width: 100%;
    min-height: 150px;
}
.store-document-card .store-document-preview-pdf,
.store-document-card .store-document-preview-file {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}
@media (max-width: 640px) {
    .store-document-card {
        grid-template-columns: 1fr;
    }
}


/* Členské schůze jako pozvánka ve stylu A4 */
.meeting-list { display: grid; gap: 28px; justify-items: center; }
.meeting-sheet {
  width: min(210mm, calc(100% - 16px));
  min-height: 297mm;
  background: linear-gradient(180deg, #fffefb 0%, #ffffff 18%, #fffefb 100%);
  border: 1px solid #e8e0cf;
  border-radius: 10px;
  box-shadow: 0 22px 56px rgba(16,33,22,.14), 0 2px 0 rgba(255,255,255,.7) inset;
  padding: 24mm 18mm 22mm;
  position: relative;
}
.meeting-sheet::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(120,96,52,.10);
  border-radius: 6px;
  pointer-events: none;
}
.meeting-sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #efe5cf;
}
.meeting-sheet-kicker {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.meeting-sheet-date {
  font-size: 15px;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}
.meeting-sheet h2 {
  text-align: center;
  margin: 0 0 24px;
  font-size: clamp(28px, 3.2vw, 42px);
  color: #13281b;
}
.meeting-sheet-content {
  font-size: 18px;
  line-height: 1.7;
  color: #1a241d;
}
.meeting-sheet-content p,
.meeting-sheet-content li,
.meeting-sheet-content td,
.meeting-sheet-content th { font-size: inherit; }
@media (max-width: 920px) {
  .meeting-sheet {
    width: min(100%, calc(100% - 4px));
    min-height: 0;
    padding: 24px 18px;
  }
  .meeting-sheet::before { inset: 8px; }
}
@media (max-width: 640px) {
  .meeting-list { gap: 18px; }
  .meeting-sheet-header { flex-direction: column; align-items: flex-start; }
  .meeting-sheet-date { text-align: left; }
  .meeting-sheet h2 { text-align: left; font-size: 28px; }
  .meeting-sheet-content { font-size: 16px; }
}


/* Členská schůze v20: A4 pozvánka obsahuje pouze textové pole z administrace */
.meeting-sheet .meeting-sheet-content { margin: 0; }
.meeting-sheet .meeting-sheet-content > :first-child { margin-top: 0; }
.meeting-sheet .meeting-sheet-content > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .meeting-sheet .meeting-sheet-content { font-size: 16px; }
}


.page-texts-grid { display: grid; gap: 18px; }
.page-text-admin-card { border: 1px solid var(--border); border-radius: 18px; padding: 18px; background: #fff; }
.page-text-admin-card legend { font-weight: 900; padding: 0 8px; color: var(--ink); }
.page-text-admin-card .muted { margin-top: 0; }

/* Automaticky ukládaný náhled letáku při uploadu PDF */
.generated-thumb-box { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: center; border: 1px dashed var(--border); border-radius: 16px; padding: 14px; background: #fbfdfb; }
.generated-thumb-box[hidden] { display: none; }
.generated-thumb-preview { width: 112px; aspect-ratio: 3 / 4; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 10px 22px rgba(16,33,22,.08); }
.generated-thumb-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.generated-thumb-box [data-state="success"] { color: var(--brand-dark); font-weight: 750; }
.generated-thumb-box [data-state="warning"] { color: #9a5b00; font-weight: 750; }
.generated-thumb-box [data-state="pending"] { color: var(--muted); font-weight: 750; }
@media (max-width: 680px) {
  .generated-thumb-box { grid-template-columns: 1fr; }
}



/* Status ukládání letáku a serverového generování obrázků stran */
.flyer-save-actions { display: grid; gap: 12px; align-items: start; }
.flyer-save-status { border: 1px solid rgba(31,122,63,.28); border-radius: 18px; padding: 14px 16px; background: linear-gradient(180deg, #f4fff6, #ffffff); box-shadow: 0 14px 34px rgba(16,33,22,.10); color: var(--brand-dark); }
.flyer-save-status[hidden] { display: none; }
.flyer-save-status-main { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.flyer-save-spinner { width: 20px; height: 20px; border: 3px solid rgba(31,122,63,.18); border-top-color: var(--brand); border-radius: 50%; animation: flyer-save-spin .8s linear infinite; flex: 0 0 auto; }
.flyer-save-progress { position: relative; height: 8px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: rgba(31,122,63,.12); }
.flyer-save-progress span { position: absolute; inset: 0 auto 0 0; width: 42%; border-radius: inherit; background: linear-gradient(90deg, rgba(31,122,63,.2), var(--brand), rgba(31,122,63,.2)); animation: flyer-save-progress 1.15s ease-in-out infinite; }
form.is-saving-flyer { cursor: wait; }
form.is-saving-flyer input,
form.is-saving-flyer select,
form.is-saving-flyer textarea,
form.is-saving-flyer label,
form.is-saving-flyer fieldset { cursor: wait; }
@keyframes flyer-save-spin { to { transform: rotate(360deg); } }
@keyframes flyer-save-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(240%); } }
@media (max-width: 680px) {
  .flyer-save-status { padding: 13px 14px; }
}

/* Nenápadná maska data narození v registraci zákazníka */
.date-mask-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

/* Dvoukroková registrace zákaznické kartičky */
.registration-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.registration-steps span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: #fff;
  font-weight: 750;
  font-size: .9rem;
}
.registration-steps span.active {
  color: var(--brand-dark);
  border-color: rgba(53, 116, 72, .35);
  background: #edf7ef;
}
.registration-steps span.done {
  color: #3d6e4e;
  background: #f5faf6;
}
.registration-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfdfb;
}
.registration-verify-card h2 { margin-bottom: 6px; }
.date-verify-input {
  max-width: 220px;
  font-size: 1.35rem;
  text-align: center;
}
.registration-cancel-form { margin-top: -4px; }
.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 700;
}


/* BILLA-style katalogovy prohlizec letaku v46 */
.flyer-billa-head { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 18px; }
.flyer-billa-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin-bottom: 10px; }
.flyer-billa-head h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; color: var(--brand-dark); }
.flyer-billa-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; margin: 0 0 10px; scrollbar-width: thin; }
.flyer-billa-tabs a { min-width: 172px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--brand-dark); text-decoration: none; box-shadow: 0 8px 22px rgba(16,33,22,.06); }
.flyer-billa-tabs a span { display: block; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flyer-billa-tabs a small { display: block; margin-top: 2px; color: var(--muted); font-weight: 750; white-space: nowrap; }
.flyer-billa-tabs a.active { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 12px 28px rgba(31,122,63,.24); }
.flyer-billa-tabs a.active small { color: rgba(255,255,255,.84); }
.flyer-billa-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.flyer-billa-date { display: inline-flex; align-items: center; padding: 9px 13px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 900; }
.flyer-billa-chain { color: var(--muted); font-weight: 750; margin-right: auto; }
.flyer-catalog-section { padding-top: 12px; }
.flyer-catalog { width: min(1420px, calc(100% - 24px)); margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.flyer-catalog-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #ffffff, #f7faf7); position: sticky; top: 0; z-index: 12; }
.flyer-catalog-page-info, .flyer-catalog-zoom-info { min-width: 86px; text-align: center; font-weight: 900; color: var(--brand-dark); white-space: nowrap; }
.flyer-catalog-toolbar .flyer-catalog-page-info { margin-right: auto; text-align: left; }
.flyer-catalog-zoom-info { min-width: 62px; }
.flyer-catalog-zoom-toggle { min-width: 124px; }
.flyer-catalog-separator { width: 1px; height: 28px; background: var(--border); margin: 0 4px; }
.flyer-catalog-viewer { position: relative; background: radial-gradient(circle at top, #f9fff9 0, #edf5ef 42%, #dfece3 100%); }
.flyer-catalog-stage { position: relative; height: min(78vh, 900px); min-height: 560px; overflow: auto; background: transparent; overscroll-behavior: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.flyer-catalog-stage.is-zoomed { cursor: grab; }
.flyer-catalog-stage.is-dragging { cursor: grabbing; user-select: none; }
.flyer-catalog-stage.is-pinching { user-select: none; }
.flyer-catalog-spread { min-width: 100%; min-height: 100%; width: max-content; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 64px; box-sizing: border-box; }
.flyer-catalog-stage.is-zoomed .flyer-catalog-spread { align-items: flex-start; }
.flyer-catalog-page { background: #fff; border-radius: 10px; box-shadow: 0 16px 46px rgba(16,33,22,.22); overflow: hidden; flex: 0 0 auto; }
.flyer-catalog-page canvas, .flyer-catalog-page img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; background: #fff; }
.flyer-catalog-loading { min-width: min(520px, 80vw); padding: 70px 24px; text-align: center; font-weight: 900; color: var(--brand-dark); }
.flyer-catalog-side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 48px; height: 76px; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--brand-dark); font-size: 42px; line-height: 1; box-shadow: 0 12px 32px rgba(16,33,22,.2); cursor: pointer; display: grid; place-items: center; }
.flyer-catalog-side:disabled { opacity: .32; cursor: not-allowed; }
.flyer-catalog-side-prev { left: 14px; }
.flyer-catalog-side-next { right: 14px; }
.flyer-catalog-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px; border-top: 1px solid var(--border); background: #fbfdfb; scrollbar-width: thin; }
.flyer-catalog-thumb { flex: 0 0 auto; width: 74px; border: 2px solid transparent; border-radius: 12px; padding: 5px; background: #fff; box-shadow: 0 8px 18px rgba(16,33,22,.1); cursor: pointer; text-align: center; color: var(--muted); font-weight: 850; font-size: 12px; }
.flyer-catalog-thumb canvas, .flyer-catalog-thumb img { width: 100%; height: auto; display: block; border-radius: 7px; background: #fff; margin-bottom: 4px; }
.flyer-catalog-thumb.active { border-color: var(--brand); color: var(--brand-dark); }
.flyer-catalog-hint { position: fixed; left: 50%; bottom: 24px; z-index: 9999; max-width: min(520px, calc(100vw - 28px)); padding: 12px 16px; border-radius: 999px; background: rgba(16, 33, 22, .92); color: #fff; font-size: 14px; font-weight: 800; line-height: 1.35; text-align: center; box-shadow: 0 16px 44px rgba(16,33,22,.28); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .28s ease, transform .28s ease; }
.flyer-catalog-hint.is-visible { opacity: 1; transform: translate(-50%, 0); }
.flyer-catalog-fallback { display: none; padding: 18px; border-top: 1px solid var(--border); background: #fff; }
.flyer-catalog-fallback iframe { width: 100%; min-height: 760px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.flyer-catalog-error .flyer-catalog-fallback { display: block; }
.flyer-catalog-error .flyer-catalog-stage, .flyer-catalog-error .flyer-catalog-thumbs { display: none; }
.flyer-catalog-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.flyer-catalog:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; display: flex; flex-direction: column; }
.flyer-catalog:fullscreen .flyer-catalog-viewer { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.flyer-catalog:fullscreen .flyer-catalog-stage { flex: 1 1 auto; height: auto; min-height: 0; }
.flyer-catalog:fullscreen .flyer-catalog-toolbar { position: relative; top: auto; }

@media (max-width: 760px) {
  .flyer-billa-head { width: calc(100% - 22px); padding-top: 28px; }
  .flyer-billa-tabs a { min-width: 148px; padding: 10px 13px; }
  .flyer-billa-meta { align-items: stretch; }
  .flyer-billa-chain { flex-basis: 100%; margin-right: 0; }
  .flyer-billa-meta .btn { flex: 1 1 auto; text-align: center; }
  .flyer-catalog { width: calc(100% - 8px); border-radius: 18px; }
  .flyer-catalog-toolbar { justify-content: flex-end; overflow-x: auto; flex-wrap: nowrap; padding: 10px 8px; }
  .flyer-catalog-page-info { min-width: 72px; }
  .flyer-catalog-stage { height: 74vh; min-height: 420px; }
  .flyer-catalog-spread { padding: 12px 12px 18px; gap: 0; align-items: flex-start; }
  .flyer-catalog-page { border-radius: 8px; }
  .flyer-catalog-side { display: none; }
  .flyer-catalog-thumbs { padding: 9px 8px; gap: 8px; }
  .flyer-catalog-thumb { width: 58px; border-radius: 10px; padding: 4px; }
  .flyer-catalog-zoom-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 128px; }
  .flyer-catalog-hint { bottom: 14px; border-radius: 18px; font-size: 13px; }
  .flyer-catalog-fallback iframe { min-height: 520px; }
}


/* v47 - rychly prohlizec letaku z predgenerovanych obrazku */
.flyer-catalog-stage.is-magnifier { cursor: zoom-in; }
.flyer-catalog-stage.is-zoomed { cursor: grab; }
.flyer-catalog-stage.is-dragging { cursor: grabbing; }
.flyer-catalog-page img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; background: #fff; }
.flyer-catalog-thumb img { width: 100%; height: auto; display: block; border-radius: 7px; background: #fff; margin-bottom: 4px; user-select: none; -webkit-user-drag: none; }
.flyer-catalog-zoom-info { min-width: 126px; }
.flyer-catalog-stage.is-zoomed .flyer-catalog-page img { cursor: grab; }
.flyer-catalog-stage.is-dragging .flyer-catalog-page img { cursor: grabbing; }


/* v48 - jednodussi zoom letaku dvojklikem */
.flyer-catalog-stage.is-magnifier { cursor: zoom-in; }
.flyer-catalog-stage.is-zoomed { cursor: grab; touch-action: none; }
.flyer-catalog-stage.is-dragging { cursor: grabbing; user-select: none; }
.flyer-catalog-stage.is-zoomed .flyer-catalog-page img,
.flyer-catalog-stage.is-zoomed .flyer-catalog-page canvas { cursor: grab; }
.flyer-catalog-stage.is-dragging .flyer-catalog-page img,
.flyer-catalog-stage.is-dragging .flyer-catalog-page canvas { cursor: grabbing; }

/* v57 - mobil: svisly tah scrolluje stranku, vodorovny tah listuje mezi stranami */
@media (max-width: 760px) {
  .flyer-catalog-stage {
    height: auto;
    min-height: 0;
    overflow: visible;
    overscroll-behavior: auto;
    touch-action: pan-y;
  }
  .flyer-catalog-stage.is-zoomed {
    height: 74vh;
    min-height: 420px;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
  }
  .flyer-catalog-stage.is-zoomed .flyer-catalog-spread {
    padding-right: 12px;
  }
}


/* v62 - pri zoomu se mobil nesmi posouvat k nahledum */
.flyer-catalog,
.flyer-catalog-viewer,
.flyer-catalog-stage,
.flyer-catalog-spread,
.flyer-catalog-page,
.flyer-catalog-thumbs {
  overflow-anchor: none;
}

@media (max-width: 760px) {
  .flyer-catalog.is-flyer-zoomed .flyer-catalog-thumbs {
    display: none;
  }
}

/* v63 - pri zoomu musi jit letak pretahnout az na horní hranu */
.flyer-catalog-stage.is-zoomed .flyer-catalog-spread {
  padding-top: clamp(72px, 14vh, 150px);
  padding-bottom: clamp(72px, 14vh, 150px);
}

@media (max-width: 760px) {
  .flyer-catalog-stage.is-zoomed .flyer-catalog-spread {
    padding-top: clamp(84px, 20vh, 170px);
    padding-bottom: clamp(84px, 20vh, 170px);
  }
}

/* v64 - nezazoomovany letak nesmi na desktopu blokovat scroll koleckem mysi */
.flyer-catalog-stage:not(.is-zoomed) {
  overflow: visible;
  overscroll-behavior: auto;
}

.flyer-catalog-stage.is-zoomed {
  overflow: auto;
  overscroll-behavior: contain;
}

.flyer-catalog:fullscreen .flyer-catalog-stage:not(.is-zoomed) {
  overflow: auto;
}

.flyer-conversion-cell { vertical-align: top !important; white-space: nowrap; }
.conversion-status { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 30px; border-radius: 999px; font-weight: 850; line-height: 1; }
.conversion-status-ok { background: rgba(43, 127, 72, .12); color: var(--brand-dark); border: 1px solid rgba(43, 127, 72, .22); }
.conversion-status-missing { min-width: 30px; color: var(--danger); background: rgba(185, 28, 28, .08); border: 1px solid rgba(185, 28, 28, .2); }
.conversion-generate-form { display: inline-flex; margin: 0 0 0 6px; vertical-align: middle; }
.conversion-generate-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(43, 127, 72, .28); background: var(--brand-soft); color: var(--brand-dark); font-weight: 900; cursor: pointer; padding: 0; line-height: 1; }
.conversion-generate-btn:hover { background: white; box-shadow: 0 8px 20px rgba(43, 127, 72, .13); }

/* Administrace úvodní stránky - vizuální bloky a správa fotek */
.admin-homepage-canvas { display: grid; gap: 20px; }
.admin-homepage-block { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; overflow: hidden; }
.admin-homepage-block-head { margin-bottom: 16px; }
.admin-homepage-block-head h2 { margin: 2px 0 6px; }
.admin-homepage-block-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.admin-homepage-hero-preview, .admin-homepage-services-preview { border: 1px dashed rgba(31,122,63,.26); border-radius: 20px; background: linear-gradient(135deg, #fff 0%, #eef8f1 100%); padding: clamp(18px, 3vw, 30px); margin-bottom: 18px; }
.admin-homepage-hero-preview h3, .admin-homepage-services-preview h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; margin: 8px 0 12px; }
.admin-homepage-preview-text { color: var(--muted); }
.admin-homepage-preview-actions { margin-top: 16px; }
.admin-homepage-fields { border-top: 1px solid var(--border); padding-top: 16px; }
.admin-homepage-store-layout { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-homepage-store-preview { min-height: 340px; border: 1px dashed rgba(31,122,63,.26); border-radius: 22px; background: linear-gradient(135deg, #f7fbf8, #e8f4ec); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; background-size: cover; background-position: center; overflow: hidden; }
.admin-homepage-store-preview.has-photo { color: white; border-color: rgba(255,255,255,.34); box-shadow: inset 0 0 0 1px rgba(255,255,255,.20); }
.admin-homepage-store-stat { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.admin-homepage-store-stat strong { font-size: clamp(56px, 8vw, 86px); line-height: .88; color: var(--brand); }
.admin-homepage-store-stat span { color: var(--muted); letter-spacing: -.03em; font-size: clamp(26px, 4vw, 38px); font-weight: 850; }
.admin-homepage-store-preview.has-photo .admin-homepage-store-stat strong, .admin-homepage-store-preview.has-photo .admin-homepage-store-stat span, .admin-homepage-store-preview.has-photo .admin-homepage-store-copy, .admin-homepage-store-preview.has-photo .admin-homepage-store-copy p { color: rgba(255,255,255,.94); text-shadow: 0 8px 24px rgba(0,0,0,.24); }
.admin-homepage-photo-manager { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.homepage-photo-upload { margin-bottom: 16px; }
.homepage-photo-sort-list { display: grid; gap: 14px; }
.homepage-photo-sort-list .homepage-photo-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; border: 1px solid var(--border); border-radius: 18px; padding: 12px; background: #fafafa; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease; cursor: grab; }
.homepage-photo-sort-list .homepage-photo-item:hover { border-color: rgba(31,122,63,.35); box-shadow: 0 10px 24px rgba(22, 40, 24, .08); }
.homepage-photo-sort-list .homepage-photo-item.is-dragging { opacity: .58; transform: scale(.99); border-color: var(--brand); box-shadow: 0 14px 34px rgba(31,122,63,.16); }
.homepage-photo-thumb-wrap { position: relative; min-width: 0; }
.homepage-photo-thumb-wrap img { width: 190px; height: 142px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); background: white; display: block; }
.homepage-photo-order-badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 28px; padding: 0 9px; border-radius: 999px; background: rgba(16,33,22,.78); color: white; font-size: 12px; font-weight: 850; backdrop-filter: blur(6px); }
.homepage-photo-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.homepage-photo-card-head strong { margin-right: auto; }
.homepage-photo-drag-handle { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: white; color: var(--brand-dark); cursor: grab; font-size: 18px; line-height: 1; }
.homepage-photo-drag-handle:active { cursor: grabbing; }
.homepage-photo-card-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.admin-homepage-services-preview { background: #fff; }
.admin-homepage-service-cloud { margin-top: 14px; }
.admin-homepage-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding: 14px 16px; background: rgba(255,255,255,.94); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 -10px 28px rgba(16,33,22,.08); backdrop-filter: blur(12px); }

@media (max-width: 980px) {
  .admin-homepage-store-layout { grid-template-columns: 1fr; }
  .homepage-photo-sort-list .homepage-photo-item { grid-template-columns: 160px minmax(0, 1fr); }
  .homepage-photo-thumb-wrap img { width: 160px; height: 120px; }
}

@media (max-width: 720px) {
  .homepage-photo-sort-list .homepage-photo-item { grid-template-columns: 1fr; }
  .homepage-photo-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .admin-homepage-savebar { align-items: stretch; flex-direction: column; }
  .admin-homepage-savebar .btn { width: 100%; }
}


/* v70 - Úvodní stránka: klasický editor, reálný náhled a funkční řazení fotek */
.admin-homepage-editor-panel,
.admin-homepage-preview-panel,
.admin-panel.admin-homepage-photo-manager {
  margin-top: 20px;
}
.admin-homepage-editor-panel h3 {
  margin: 12px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--brand-dark);
}
.admin-homepage-editor-panel h3:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.admin-front-preview-frame {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.admin-front-preview-frame .hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.admin-front-preview-frame .section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.admin-homepage-real-preview {
  pointer-events: none;
}
.admin-homepage-real-preview .btn,
.admin-homepage-services-real-preview .btn {
  pointer-events: none;
}
.admin-services-preview-frame {
  padding: 10px 0;
}
.admin-panel.admin-homepage-photo-manager {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.homepage-photo-sort-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.homepage-photo-sort-list .homepage-photo-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: #fafafa;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
  cursor: default;
}
.homepage-photo-sort-list .homepage-photo-item:hover {
  border-color: rgba(31,122,63,.35);
  box-shadow: 0 10px 24px rgba(22, 40, 24, .08);
}
.homepage-photo-sort-list .homepage-photo-item.is-dragging {
  opacity: .74;
  transform: scale(.995);
  border-color: var(--brand);
  box-shadow: 0 14px 34px rgba(31,122,63,.16);
}
.homepage-photo-drag-handle {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(31,122,63,.25);
  border-radius: 999px;
  background: white;
  color: var(--brand-dark);
  cursor: grab;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  touch-action: none;
  user-select: none;
}
.homepage-photo-drag-handle:active,
.is-homepage-photo-sorting .homepage-photo-drag-handle {
  cursor: grabbing;
}
.is-homepage-photo-sorting {
  user-select: none;
}
.homepage-photo-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.homepage-photo-card-head strong {
  margin-right: auto;
}
.homepage-photo-card-actions .link-danger,
button.link-danger {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 750;
}
.homepage-photo-card-actions .link-danger:hover,
button.link-danger:hover {
  text-decoration: underline;
}
@media (max-width: 980px) {
  .homepage-photo-sort-list .homepage-photo-item {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .homepage-photo-sort-list .homepage-photo-item {
    grid-template-columns: 1fr;
  }
}

/* v72 - Nabídka zaměstnání */
.jobs-section { padding-top: 18px; }
.job-list { display: grid; gap: 16px; }
.job-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.job-summary { display: block; cursor: pointer; padding: 20px 22px; list-style: none; }
.job-summary::-webkit-details-marker { display: none; }
.job-summary:hover { background: rgba(31,122,63,.05); }
.summary-top { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; }
.summary-title { margin: 0; color: var(--brand-dark); font-size: clamp(22px, 2.5vw, 30px); }
.summary-hint { flex: 0 0 auto; color: var(--muted); font-weight: 800; font-size: 14px; padding-top: 4px; }
details[open] .summary-hint::before { content: "Sbalit"; }
details:not([open]) .summary-hint::before { content: "Rozbalit"; }
.summary-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); border: 1px solid rgba(31,122,63,.16); color: var(--text); font-size: 14px; }
.chip strong { color: var(--brand-dark); }
.job-body { padding: 20px 22px 22px; border-top: 1px solid var(--border); }
.job-meta-grid, .meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: #f8fbf9; margin-bottom: 16px; }
.meta-item strong { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.source-link { margin: 16px 0; }
.job-text-block { white-space: normal; overflow-wrap: break-word; }
.empty-state { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 42px); text-align: center; }
.job-empty-state { width: min(820px, 100%); margin: 0 auto; }
.choice-card { border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; background: #fafafa; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.choice-card input { width: auto; }
.choice-card:has(input:checked) { border-color: rgba(31,122,63,.34); background: var(--brand-soft); color: var(--brand-dark); }
@media (max-width: 640px) {
  .summary-top { display: block; }
  .summary-hint { display: inline-block; margin-top: 8px; }
  .job-summary, .job-body { padding: 16px; }
}

/* v73 - přehlednější administrace */
.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;
}
.admin-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(31,122,63,.10) 0, transparent 28%),
    linear-gradient(180deg, #f7faf7 0%, #f1f5f2 100%);
}
.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,0) 18%),
    linear-gradient(180deg, #0f2517 0%, #0b1710 100%);
  box-shadow: 16px 0 38px rgba(15, 35, 23, .10);
  border-right: 1px solid rgba(255,255,255,.10);
}
.admin-brand {
  min-height: 58px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.admin-brand strong {
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.admin-nav-search {
  position: relative;
  margin-top: -6px;
}
.admin-nav-search::before {
  content: "⌕";
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.58);
  font-weight: 900;
  pointer-events: none;
}
.admin-nav-search input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.075);
  color: #fff;
  border-radius: 15px;
  padding: 11px 12px 11px 36px;
  outline: none;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.admin-nav-search input::placeholder { color: rgba(255,255,255,.52); }
.admin-nav-search input:focus {
  border-color: rgba(242,189,47,.55);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 3px rgba(242,189,47,.14), inset 0 1px 0 rgba(255,255,255,.10);
}
.admin-sidebar nav {
  gap: 13px;
  overflow-y: auto;
  padding-right: 3px;
}
.admin-nav-group {
  padding: 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.admin-nav-group.is-active {
  background: rgba(31,122,63,.30);
  border-color: rgba(242,189,47,.22);
  box-shadow: inset 3px 0 0 var(--accent);
}
.admin-nav-group.is-hidden { display: none; }
.admin-nav-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: rgba(255,255,255,.66);
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.admin-sidebar nav a:hover {
  transform: translateX(2px);
  border-color: rgba(255,255,255,.12);
}
.admin-sidebar nav a.active {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(255,255,255,.70);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.admin-nav-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}
.admin-sidebar nav a.active .admin-nav-icon {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.admin-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-user {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.admin-user span {
  font-weight: 850;
  color: #fff;
}
.admin-user a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #d9f5e1;
  font-size: 14px;
}
.admin-main {
  max-width: 1480px;
  width: 100%;
}
.admin-head {
  padding: 2px 0 8px;
  border-bottom: 1px solid rgba(31,122,63,.10);
}
.admin-head h1 {
  color: #102116;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.admin-panel,
.stat-card {
  border-color: rgba(31,122,63,.12);
  box-shadow: 0 18px 42px rgba(16,33,22,.075);
}
.admin-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(232,244,236,.45), rgba(255,255,255,0) 115px),
    #fff;
}
.admin-panel > h2:first-child,
.admin-panel > h3:first-child,
.panel-head h2,
.panel-head h3 {
  color: var(--brand-dark);
}
.panel-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31,122,63,.12);
}
.panel-head a:not(.btn) {
  font-weight: 850;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
}
.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  background: linear-gradient(135deg, #ffffff 0%, #eef8f1 100%);
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: rgba(31,122,63,.10);
}
.stat-card strong { position: relative; z-index: 1; }
.admin-main input,
.admin-main select,
.admin-main textarea {
  border-color: #d4e2d7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.70);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.admin-main input:focus,
.admin-main select:focus,
.admin-main textarea:focus {
  outline: none;
  border-color: rgba(31,122,63,.55);
  box-shadow: 0 0 0 4px rgba(31,122,63,.12), inset 0 1px 0 rgba(255,255,255,.85);
}
.admin-main label {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
}
.admin-main label input,
.admin-main label select,
.admin-main label textarea {
  margin-top: 2px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.admin-main .checkbox-grid label,
.admin-main .switch,
.admin-main label.choice-card {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}
.admin-main fieldset {
  background: rgba(248,251,249,.80);
  border-color: rgba(31,122,63,.14);
}
.admin-main legend {
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid rgba(31,122,63,.12);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(16,33,22,.06);
}
.admin-table {
  border-collapse: separate;
  border-spacing: 0;
}
.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f7f3;
  color: var(--brand-dark);
  border-bottom-color: rgba(31,122,63,.18);
}
.admin-table th:first-child { border-top-left-radius: 12px; }
.admin-table th:last-child { border-top-right-radius: 12px; }
.admin-table td {
  background: rgba(255,255,255,.78);
}
.admin-table tr:hover td {
  background: #fbfefc;
}
.admin-table tr:last-child td {
  border-bottom-color: transparent;
}
.row-actions a,
.row-actions button,
.admin-table td.row-actions a,
.admin-table td.row-actions button {
  border-radius: 999px;
}
.row-actions a:not(.btn),
.admin-table td.row-actions a:not(.btn) {
  font-weight: 850;
  padding: 5px 9px;
  background: rgba(31,122,63,.08);
}
button.link-danger,
.link-danger {
  font-weight: 850;
}
.flash {
  width: 100%;
  margin: 0 0 18px;
  box-shadow: 0 12px 28px rgba(16,33,22,.08);
}
.btn {
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.admin-main .muted {
  color: #6f7c72;
}
.admin-main .empty-state,
.admin-main .notice {
  border-color: rgba(31,122,63,.14);
}
@media (max-width: 980px) {
  .admin-sidebar {
    position: relative;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .admin-nav-search { max-width: 520px; }
  .admin-sidebar nav { max-height: none; overflow: visible; }
}
@media (max-width: 720px) {
  .admin-nav-group { padding: 7px; }
  .admin-sidebar nav a { min-height: 38px; }
  .admin-main { padding: 18px 14px 28px; }
  .admin-panel { padding: 16px; }
}

/* v74: oprávnění správců */
.admin-role-badge {
    display: inline-flex;
    align-items: center;
    margin-left: .35rem;
    padding: .12rem .45rem;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: .68rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.admin-role-limited {
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.78);
}
.permission-superadmin-box {
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(36, 97, 58, .10), rgba(232, 245, 237, .85));
    border: 1px solid rgba(36, 97, 58, .18);
}
.permission-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}
.permission-matrix.is-disabled {
    opacity: .55;
}
.permission-matrix-compact {
    margin-top: .8rem;
}
.permission-group-card {
    margin: 0;
    padding: .95rem;
    border: 1px solid rgba(18, 66, 38, .14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 66, 38, .06);
}
.permission-group-card legend {
    padding: 0 .45rem;
    color: var(--green-dark);
    font-weight: 800;
}
.permission-choice {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: .45rem 0;
    padding: .45rem .55rem;
    border-radius: 12px;
    background: rgba(244, 249, 246, .75);
    color: var(--text);
    font-weight: 650;
}
.permission-choice input {
    width: auto;
    min-width: 1rem;
}
.permission-choice small {
    margin-left: auto;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
}
.permission-choice.is-locked {
    opacity: .65;
}
.permission-create-details {
    border: 1px solid rgba(18, 66, 38, .12);
    border-radius: 18px;
    padding: .9rem 1rem;
    background: rgba(250, 252, 250, .85);
}
.permission-create-details summary {
    cursor: pointer;
    color: var(--green-dark);
    font-weight: 800;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #eef2f0;
    color: #315141;
    font-size: .8rem;
    font-weight: 800;
}
.status-pill.status-ok {
    background: #e2f4e7;
    color: #166534;
}

/* v75: dvojí ověření správců */
.status-pill.status-warn {
    background: #fff3d7;
    color: #92400e;
}
.security-status-panel p {
    margin-top: .65rem;
}
.security-steps {
    margin: .25rem 0 1rem 1.2rem;
    color: var(--text);
}
.security-steps li {
    margin: .35rem 0;
}
.secret-box {
    display: grid;
    gap: .35rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(36, 97, 58, .32);
    background: linear-gradient(135deg, rgba(36, 97, 58, .08), rgba(255,255,255,.92));
}
.secret-box span {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.secret-box code {
    display: block;
    padding: .65rem .75rem;
    border-radius: 12px;
    background: #10251a;
    color: #e7ffef;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
}
.inline-form {
    display: inline;
    margin: 0;
}
.link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--green-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.link-button:hover {
    color: var(--green);
}

/* v76: QR kód pro nastavení 2FA */
.totp-setup-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1rem;
    align-items: stretch;
}
.totp-qr-card {
    display: grid;
    gap: .7rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(36, 97, 58, .18);
    background: linear-gradient(135deg, rgba(36, 97, 58, .07), rgba(255,255,255,.96));
    box-shadow: 0 12px 28px rgba(20, 56, 36, .08);
}
.totp-qr-card > span {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.totp-qr-box {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: .8rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(16, 37, 26, .08);
}
.totp-qr-svg {
    width: min(100%, 220px);
    height: auto;
    display: block;
    image-rendering: pixelated;
}
.totp-uri-details {
    padding: .8rem 1rem;
    border-radius: 16px;
    background: #f6f8f5;
    border: 1px solid rgba(36, 97, 58, .12);
}
.totp-uri-details summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--green-dark);
}
.totp-uri-details textarea {
    margin-top: .7rem;
}
@media (max-width: 720px) {
    .totp-setup-grid {
        grid-template-columns: 1fr;
    }
    .totp-qr-box {
        min-height: 200px;
    }
}

/* v78: stránka O nás */
.about-section {
    display: grid;
    gap: 1.5rem;
}
.about-lead-box {
    background: linear-gradient(135deg, rgba(18, 125, 74, .1), rgba(255, 255, 255, .94));
    border: 1px solid rgba(18, 125, 74, .16);
    border-radius: 24px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}
.about-lead-box p {
    margin: 0;
    color: #244034;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.7;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.about-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 24px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}
.about-card h2 {
    margin-top: 0;
    color: #0f6b3d;
}
.about-card-wide {
    border-left: 6px solid #0f7a44;
}
.about-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.about-admin-form hr {
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, .1);
    width: 100%;
}
.about-admin-preview-panel .about-section {
    margin: 0;
}
.about-admin-preview {
    background: #f7faf8;
    border-radius: 24px;
    padding: 1rem;
}
@media (max-width: 800px) {
    .about-grid { grid-template-columns: 1fr; }
}


/* v79: vedení na stránce O nás */
.about-leadership-grid {
    display: grid;
    gap: 1.25rem;
}
.about-leader-card {
    display: grid;
    grid-template-columns: minmax(130px, 180px) 1fr;
    gap: clamp(1rem, 3vw, 1.75rem);
    align-items: start;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 24px;
    padding: clamp(1.1rem, 3vw, 1.6rem);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}
.about-leader-card img,
.about-leader-photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 122, 68, .12), rgba(15, 122, 68, .04));
    border: 1px solid rgba(15, 122, 68, .12);
}
.about-leader-photo-placeholder {
    display: grid;
    place-items: center;
    color: #0f6b3d;
    font-size: 3rem;
    font-weight: 800;
}
.about-leader-role {
    margin: 0 0 .35rem;
    color: #0f6b3d;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .82rem;
}
.about-leader-card h2,
.about-leader-card h3 {
    margin-top: 0;
    color: #163126;
}
.about-admin-leadership-editor {
    border: 1px solid rgba(15, 122, 68, .12);
    background: rgba(15, 122, 68, .035);
    border-radius: 24px;
    padding: 1rem;
}
.about-admin-leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.about-admin-leader-card {
    display: grid;
    gap: .85rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    padding: 1rem;
}
.about-admin-leader-card h3 {
    margin: 0;
    color: #0f6b3d;
}
.about-admin-current-photo img {
    display: block;
    width: 110px;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
    margin: .5rem 0;
}
@media (max-width: 980px) {
    .about-admin-leadership-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .about-leader-card {
        grid-template-columns: 1fr;
    }
    .about-leader-card img,
    .about-leader-photo-placeholder {
        max-width: 220px;
    }
}

/* v80 - obrázky vložené přímo ve WYSIWYG obsahu */
.rich-text img,
.tox-edit-area img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    margin: 18px auto;
    box-shadow: 0 12px 30px rgba(20, 45, 26, .12);
}

.rich-text p img,
.tox-edit-area p img {
    margin-top: 10px;
    margin-bottom: 10px;
}
.form-help {
    margin: -8px 0 10px;
    color: var(--muted);
    font-size: .95rem;
    background: #f4faf5;
    border: 1px solid #dceade;
    border-radius: 14px;
    padding: 10px 12px;
}

/* v84 - soutěže z CoopClub.cz */
.source-notice {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(15, 122, 68, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 122, 68, .08), rgba(255, 255, 255, .85));
    color: var(--text);
}
.source-notice strong {
    white-space: nowrap;
    color: var(--brand-dark);
}
.coopclub-contest-card .coopclub-detail {
    border-top: 1px solid var(--border);
    padding-top: .65rem;
}
.coopclub-contest-card .coopclub-detail summary {
    cursor: pointer;
    color: var(--brand-dark);
    font-weight: 800;
}
.coopclub-pdfs {
    background: var(--brand-soft);
    border-radius: 14px;
    padding: .85rem;
}
.coopclub-pdfs ul {
    margin: .4rem 0 0;
    padding-left: 1.2rem;
}
.admin-contests-source-settings .admin-cache-info {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
@media (max-width: 700px) {
    .source-notice { display: block; }
    .source-notice strong { display: block; margin-bottom: .35rem; }
}

/* Administrace letáků - prošlé položky a hromadné mazání */
.expired-flyers-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-color: rgba(185, 28, 28, .20);
  background: linear-gradient(135deg, rgba(254, 242, 242, .92), rgba(255, 255, 255, .94));
}
.expired-flyers-toolbar p { margin: 6px 0 0; }
.expired-flyers-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.expired-flyers-toolbar-actions form { margin: 0; }
.btn-danger {
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 10px 22px rgba(185, 28, 28, .18);
}
.btn-danger:hover {
  background: #991b1b;
  color: #fff;
}
.flyers-admin-table .flyer-select-column {
  width: 56px;
  text-align: center;
  white-space: nowrap;
}
.flyers-admin-table .flyer-select-column input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--danger);
}
.flyer-expiry-settings-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
  border-color: rgba(203, 151, 21, .22);
  background: linear-gradient(135deg, rgba(255, 249, 231, .72), rgba(255, 255, 255, .98));
}
.flyer-expiry-settings-panel p {
  margin: 6px 0 0;
}
.flyer-expiry-settings-panel label {
  margin: 0;
}
.inline-input-with-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.inline-input-with-unit input {
  max-width: 104px;
}
.admin-table tr.is-expiring-flyer td {
  background: rgba(255, 247, 223, .86);
  border-bottom-color: rgba(203, 151, 21, .20);
}
.admin-table tr.is-expiring-flyer:hover td {
  background: rgba(254, 240, 177, .82);
}
.admin-table tr.is-expired-flyer td,
.admin-table tr.is-invalid-flyer td {
  background: rgba(254, 242, 242, .82);
  border-bottom-color: rgba(185, 28, 28, .14);
}
.admin-table tr.is-expired-flyer:hover td,
.admin-table tr.is-invalid-flyer:hover td {
  background: rgba(254, 226, 226, .82);
}
.flyer-expired-badge,
.flyer-expiring-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: middle;
}
.flyer-expired-badge {
  background: rgba(185, 28, 28, .10);
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, .20);
}
.flyer-expiring-badge {
  background: #fff7df;
  color: #76530d;
  border: 1px solid rgba(203, 151, 21, .30);
}
.flyer-expired-note {
  color: #991b1b;
  font-weight: 750;
}
.flyer-expiring-note {
  color: #76530d;
  font-weight: 750;
}
@media (max-width: 760px) {
  .flyer-expiry-settings-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .flyer-expiry-settings-panel .btn {
    width: 100%;
  }
  .expired-flyers-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .expired-flyers-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .expired-flyers-toolbar-actions .btn,
  .expired-flyers-toolbar-actions form,
  .expired-flyers-toolbar-actions form .btn {
    width: 100%;
  }
}

.flyer-type-manager {
  margin-top: 1.5rem;
}
.flyer-types-table {
  margin-top: 1rem;
}
.flyer-types-table th,
.flyer-types-table td {
  vertical-align: middle;
}
.flyer-types-table .compact-input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(27, 59, 47, .18);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.flyer-types-table .compact-number {
  max-width: 92px;
}
.flyer-type-name-cell {
  min-width: 240px;
}
.flyer-type-order-cell {
  width: 110px;
}
.flyer-type-active-cell {
  width: 130px;
}
.flyer-type-used-cell {
  width: 90px;
  white-space: nowrap;
}
.flyer-type-actions {
  width: 190px;
  white-space: nowrap;
}
.compact-switch {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  white-space: nowrap;
}
.flyer-type-new-row td {
  background: rgba(79, 163, 91, .07);
}
.flyer-type-hidden-forms {
  display: none;
}
@media (max-width: 900px) {
  .flyer-type-manager .table-responsive {
    overflow-x: auto;
  }
  .flyer-types-table {
    min-width: 760px;
  }
}
.flyer-type-chain-cell {
  min-width: 230px;
  width: 250px;
}
.compact-chain-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  line-height: 1.25;
}
.compact-chain-checks label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: .9rem;
  color: #274235;
}
.compact-chain-checks small {
  flex-basis: 100%;
  font-size: .78rem;
}
.form-help-box {
  border: 1px solid rgba(27, 59, 47, .14);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(79, 163, 91, .08);
  color: #274235;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .flyer-types-table {
    min-width: 980px;
  }
}

/* v91: svetlejsi administracni menu a kompaktnejsi ciselnik druhu letaku */
/* v92: nezvoleny retezec u druhu letaku znamena nezobrazovat */
.admin-sidebar {
  background:
    radial-gradient(circle at 0 0, rgba(31,122,63,.10) 0, transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f4f8f5 100%) !important;
  color: #173321 !important;
  border-right: 1px solid rgba(31,122,63,.14) !important;
  box-shadow: 12px 0 32px rgba(16,33,22,.07) !important;
}
.admin-sidebar a { color: #244533 !important; }
.admin-brand {
  color: #102116 !important;
  border-bottom-color: rgba(31,122,63,.13) !important;
}
.admin-nav-search::before { color: rgba(27,59,47,.48) !important; }
.admin-nav-search input {
  background: #fff !important;
  color: #102116 !important;
  border-color: rgba(31,122,63,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 8px 18px rgba(16,33,22,.04) !important;
}
.admin-nav-search input::placeholder { color: rgba(27,59,47,.46) !important; }
.admin-nav-search input:focus {
  border-color: rgba(31,122,63,.42) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(31,122,63,.10), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.admin-nav-group {
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(31,122,63,.12) !important;
  box-shadow: 0 8px 20px rgba(16,33,22,.035) !important;
}
.admin-nav-group.is-active {
  background: #eaf6ee !important;
  border-color: rgba(31,122,63,.28) !important;
  box-shadow: inset 3px 0 0 var(--brand), 0 10px 24px rgba(16,33,22,.05) !important;
}
.admin-nav-title { color: #67806f !important; }
.admin-sidebar nav a {
  color: #244533 !important;
  border-color: transparent !important;
}
.admin-sidebar nav a:hover {
  background: #f2f7f4 !important;
  border-color: rgba(31,122,63,.16) !important;
  color: #102116 !important;
}
.admin-sidebar nav a.active {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: rgba(31,122,63,.46) !important;
  box-shadow: 0 10px 22px rgba(31,122,63,.18) !important;
}
.admin-nav-icon {
  background: #e9f3ed !important;
  color: var(--brand-dark) !important;
}
.admin-sidebar nav a.active .admin-nav-icon {
  background: rgba(255,255,255,.22) !important;
  color: #fff !important;
}
.admin-user {
  background: rgba(255,255,255,.78) !important;
  border-color: rgba(31,122,63,.13) !important;
  color: #526c5b !important;
  box-shadow: 0 8px 20px rgba(16,33,22,.04) !important;
}
.admin-user span { color: #102116 !important; }
.admin-user a { color: var(--brand-dark) !important; }

.flyer-types-table {
  table-layout: fixed;
}
.flyer-type-col-name { width: 18%; }
.flyer-type-col-chains { width: 42%; }
.flyer-type-col-order { width: 92px; }
.flyer-type-col-active { width: 118px; }
.flyer-type-col-used { width: 82px; }
.flyer-type-col-actions { width: 158px; }
.flyer-type-name-cell {
  min-width: 0 !important;
}
.flyer-type-chain-cell {
  min-width: 420px !important;
  width: auto !important;
}
.flyer-types-table .compact-input {
  min-height: 34px;
  padding: 7px 9px;
}
.flyer-types-table .compact-number {
  max-width: 72px;
  text-align: right;
}
.compact-chain-checks {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px !important;
  align-items: stretch !important;
}
.compact-chain-checks label {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(31,122,63,.16);
  border-radius: 999px;
  background: #fff;
  color: #244533 !important;
  font-size: 13px !important;
  line-height: 1.15;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.compact-chain-checks label:hover {
  background: #f4faf6;
  border-color: rgba(31,122,63,.30);
}
.compact-chain-checks input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
}
.compact-chain-checks label:has(input:checked) {
  background: #e6f5eb;
  border-color: rgba(31,122,63,.42);
  box-shadow: inset 0 0 0 1px rgba(31,122,63,.08);
  font-weight: 800;
}
.compact-chain-checks small {
  grid-column: 1 / -1;
  margin-top: 1px;
  font-size: 12px !important;
}

.chain-none-badge {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fef2f2;
  border: 1px solid rgba(185,28,28,.22);
  color: #991b1b;
  font-size: 12px;
  font-weight: 850;
}
.chain-all-badge {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff7df;
  border: 1px solid rgba(203,151,21,.28);
  color: #76530d;
  font-size: 12px;
  font-weight: 850;
}
.flyer-type-actions {
  width: auto !important;
}
.flyer-type-actions .btn-small {
  padding: 7px 10px;
}
.flyer-types-table th,
.flyer-types-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}
@media (max-width: 900px) {
  .flyer-types-table {
    min-width: 1120px !important;
  }
}

/* Dashboard - upozornění na končící letáky */
.dashboard-flyer-expiry-panel {
  margin-bottom: 18px;
  border-color: rgba(203, 151, 21, .26);
  background: linear-gradient(135deg, rgba(255, 249, 231, .88), rgba(255, 255, 255, .96));
}
.dashboard-flyer-expiry-panel .panel-head p {
  margin: 6px 0 0;
  max-width: 920px;
}
.dashboard-flyer-expiry-row.is-urgent td {
  background: rgba(254, 242, 242, .72);
}
.flyer-expiry-warning-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff7df;
  border: 1px solid rgba(203, 151, 21, .30);
  color: #76530d;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.dashboard-flyer-expiry-row.is-urgent .flyer-expiry-warning-badge {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, .24);
  color: #991b1b;
}
@media (max-width: 760px) {
  .dashboard-flyer-expiry-panel .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v95 - sbalená konfigurace letáků */
.admin-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.flyer-configuration-panel {
  margin-top: 18px;
  padding: 0;
  overflow: visible;
}
.flyer-configuration-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232,244,236,.72), rgba(255,255,255,.96));
}
.flyer-configuration-summary::-webkit-details-marker {
  display: none;
}
.flyer-configuration-summary-main {
  display: grid;
  gap: 4px;
}
.flyer-configuration-summary-main strong {
  color: var(--brand-dark);
  font-size: 18px;
}
.flyer-configuration-summary-main small {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}
.flyer-configuration-summary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(31,122,63,.18);
  color: var(--brand-dark);
  font-weight: 850;
  white-space: nowrap;
}
.flyer-configuration-summary-button::before {
  content: '▾';
  display: inline-block;
  margin-right: 7px;
  transition: transform .18s ease;
}
.flyer-configuration-panel[open] .flyer-configuration-summary {
  border-bottom: 1px solid rgba(31,122,63,.12);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.flyer-configuration-panel[open] .flyer-configuration-summary-button::before {
  transform: rotate(180deg);
}
.flyer-configuration-content {
  display: grid;
  gap: 18px;
  padding: 20px;
}
.flyer-configuration-content .flyer-expiry-settings-panel {
  margin-bottom: 0;
}
.flyer-configuration-content .flyer-type-manager {
  margin-top: 0;
  padding: 0;
}
@media (max-width: 760px) {
  .admin-head-actions,
  .admin-head-actions .btn {
    width: 100%;
  }
  .flyer-configuration-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .flyer-configuration-summary-button {
    width: 100%;
  }
  .flyer-configuration-content {
    padding: 16px;
  }
}
.flyer-configuration-content .flyer-expiry-settings-panel,
.flyer-configuration-content .flyer-type-manager {
  border: 1px solid rgba(31,122,63,.12);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(16,33,22,.045);
}
.flyer-configuration-content .flyer-type-manager .table-responsive {
  overflow-x: auto;
}

/* v99 - skutecne kompaktní blok nejaktualnejsiho letaku na homepage */
.homepage-flyer-mini-section {
  margin-top: 14px;
  margin-bottom: 14px;
}
.homepage-flyer-mini-card {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff9e8 100%);
  border: 1px solid rgba(242, 189, 47, .46);
  box-shadow: 0 8px 22px rgba(70, 45, 5, .08);
  overflow: hidden;
}
.homepage-flyer-mini-preview {
  display: block;
  width: 84px;
  justify-self: center;
  transform: rotate(-1.5deg);
  transition: transform .18s ease, filter .18s ease;
}
.homepage-flyer-mini-preview:hover {
  transform: rotate(0deg) translateY(-1px);
  filter: brightness(1.02);
}
.flyer-preview-homepage-mini {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(70, 45, 5, .13);
}
.flyer-preview-homepage-mini img,
.flyer-preview-homepage-mini canvas {
  max-height: 118px;
  object-fit: contain;
}
.homepage-flyer-mini-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.homepage-flyer-mini-content h2 {
  font-size: clamp(19px, 2.2vw, 24px);
  margin: 0;
  line-height: 1.15;
}
.homepage-flyer-mini-content .rich-text,
.homepage-flyer-mini-content .rich-text p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  margin: 0;
}
.homepage-flyer-mini-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.homepage-flyer-mini-footer .badge {
  margin-bottom: 0;
  background: rgba(242, 189, 47, .20);
  color: #7a4d05;
}
@media (max-width: 560px) {
  .homepage-flyer-mini-card {
    width: 100%;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .homepage-flyer-mini-preview {
    width: 72px;
  }
  .flyer-preview-homepage-mini img,
  .flyer-preview-homepage-mini canvas {
    max-height: 104px;
  }
  .homepage-flyer-mini-content h2 {
    font-size: 20px;
  }
  .homepage-flyer-mini-content .rich-text,
  .homepage-flyer-mini-content .rich-text p {
    font-size: 13px;
  }
}
@media (max-width: 390px) {
  .homepage-flyer-mini-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .homepage-flyer-mini-preview {
    width: 92px;
  }
  .homepage-flyer-mini-footer {
    justify-content: center;
  }
}

/* v98 - Úvodní stránka: pořadí bloků, kompaktní galerie a výraznější členění nastavení */
.admin-homepage-block-order-panel { margin-top: 20px; }
.homepage-block-order-list { display: grid; gap: 10px; }
.homepage-block-order-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #fff 0%, #f7fbf8 100%);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
.homepage-block-order-item:hover { border-color: rgba(31,122,63,.35); box-shadow: 0 10px 24px rgba(22, 40, 24, .08); }
.homepage-block-order-item.is-dragging { opacity: .72; transform: scale(.995); border-color: var(--brand); box-shadow: 0 14px 34px rgba(31,122,63,.16); }
.homepage-block-order-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 13px;
}
.homepage-block-order-item strong { display: block; color: var(--text); }
.homepage-block-order-item p { margin: 3px 0 0; }
.homepage-admin-config-block {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16,33,22,.045);
}
.homepage-admin-config-block + .homepage-admin-config-block { margin-top: 14px; }
.homepage-admin-config-block-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.homepage-admin-config-block-head span {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-homepage-editor-panel .homepage-admin-config-block h3 {
  margin: 0;
  padding: 0;
  border-top: 0;
  color: var(--text);
}
.homepage-photo-upload-compact {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px dashed rgba(31,122,63,.28);
  border-radius: 16px;
  background: #f8fcf9;
}
.homepage-photo-upload-compact label { flex: 1 1 320px; margin: 0; }
.homepage-photo-gallery-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.homepage-photo-gallery-compact .homepage-photo-tile {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16,33,22,.045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
.homepage-photo-gallery-compact .homepage-photo-tile:hover { border-color: rgba(31,122,63,.35); box-shadow: 0 10px 24px rgba(22,40,24,.08); }
.homepage-photo-gallery-compact .homepage-photo-tile.is-dragging { opacity: .72; transform: scale(.99); border-color: var(--brand); box-shadow: 0 14px 34px rgba(31,122,63,.16); }
.homepage-photo-gallery-compact .homepage-photo-tile.is-disabled { background: #f9fafb; opacity: .72; }
.homepage-photo-gallery-compact .homepage-photo-thumb-wrap img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  display: block;
}
.homepage-photo-gallery-compact .homepage-photo-order-badge { top: 7px; left: 7px; }
.homepage-photo-mini-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.homepage-photo-mini-controls .homepage-photo-drag-handle {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 12px;
}
.homepage-photo-mini-switch { margin-right: auto; font-size: 13px; }
.homepage-photo-mini-details {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: 13px;
}
.homepage-photo-mini-details summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 800;
}
.homepage-photo-mini-details label { margin-top: 8px; }
.btn-danger-soft {
  border-color: rgba(185,28,28,.20);
  background: #fef2f2;
  color: #991b1b;
}
.btn-danger-soft:hover { background: #fee2e2; color: #7f1d1d; }
@media (max-width: 720px) {
  .homepage-block-order-item { grid-template-columns: 1fr; align-items: stretch; }
  .homepage-block-order-number { justify-content: flex-start; padding: 0 12px; }
  .homepage-photo-gallery-compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* v100 - homepage leták jako běžný blok a živý editor úvodní stránky v administraci */
.homepage-flyer-mini-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}
.homepage-flyer-mini-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.homepage-flyer-mini-preview {
  width: 116px;
}
.flyer-preview-homepage-mini img,
.flyer-preview-homepage-mini canvas {
  max-height: 156px;
}
.homepage-flyer-mini-content h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.homepage-flyer-mini-content .rich-text,
.homepage-flyer-mini-content .rich-text p {
  font-size: 16px;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .homepage-flyer-mini-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .homepage-flyer-mini-preview {
    width: 92px;
  }
  .flyer-preview-homepage-mini img,
  .flyer-preview-homepage-mini canvas {
    max-height: 128px;
  }
  .homepage-flyer-mini-content h2 {
    font-size: 22px;
  }
  .homepage-flyer-mini-content .rich-text,
  .homepage-flyer-mini-content .rich-text p {
    font-size: 14px;
  }
}
@media (max-width: 420px) {
  .homepage-flyer-mini-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .homepage-flyer-mini-preview {
    width: 112px;
  }
}

.admin-homepage-live-editor {
  overflow: visible;
}
.homepage-live-form {
  display: grid;
  gap: 18px;
}
.homepage-live-canvas {
  display: grid;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(31,122,63,.14);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fcf9 0%, #ffffff 100%);
}
.homepage-live-block {
  border: 1px solid rgba(22,40,24,.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16,33,22,.06);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
.homepage-live-block:hover {
  border-color: rgba(31,122,63,.32);
}
.homepage-live-block.is-dragging {
  opacity: .78;
  transform: scale(.995);
  border-color: var(--brand);
  box-shadow: 0 18px 38px rgba(31,122,63,.15);
}
.homepage-live-block-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(22,40,24,.09);
  background: rgba(247,251,248,.96);
}
.homepage-live-block-toolbar strong {
  display: block;
  line-height: 1.2;
}
.homepage-live-block-toolbar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}
.homepage-live-drag-handle,
.homepage-photo-drag-handle-overlay {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  border: 1px solid rgba(31,122,63,.22);
  background: #fff;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: move;
  touch-action: none;
  user-select: none;
  box-shadow: 0 8px 18px rgba(16,33,22,.06);
}
.homepage-live-drag-handle:active,
.homepage-photo-drag-handle-overlay:active {
  cursor: grabbing;
}
.homepage-live-block-preview {
  padding: 0;
  background: var(--bg);
}
.homepage-live-block-preview .hero,
.homepage-live-block-preview .section,
.homepage-live-block-preview .notice {
  width: min(1180px, calc(100% - 32px));
}
.homepage-live-block-preview .hero {
  padding-top: 28px;
  padding-bottom: 28px;
}
.homepage-live-block-preview .section {
  padding-top: 26px;
  padding-bottom: 26px;
}
.homepage-live-block-preview .notice {
  margin-top: 26px;
  margin-bottom: 26px;
}
.homepage-live-field,
.homepage-live-button-edit input,
.homepage-live-url {
  width: 100%;
  border: 1px dashed rgba(31,122,63,.25);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: inherit;
  font: inherit;
  line-height: inherit;
  padding: 8px 10px;
  outline: none;
  box-shadow: none;
  resize: vertical;
}
.homepage-live-field:focus,
.homepage-live-button-edit input:focus,
.homepage-live-url:focus {
  border-style: solid;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31,122,63,.10);
}
.homepage-live-eyebrow {
  display: inline-block;
  width: min(360px, 100%);
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 900;
}
.homepage-live-title {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .98;
  margin-top: 12px;
}
.homepage-live-section-title {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.homepage-live-text {
  color: var(--muted);
  margin-top: 12px;
}
.homepage-live-button-edit-row {
  align-items: center;
  gap: 9px;
}
.homepage-live-button-edit {
  padding: 7px;
  cursor: default;
}
.homepage-live-button-edit input {
  min-width: 120px;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.16);
  color: inherit;
  text-align: center;
  font-weight: 850;
  padding: 5px 7px;
}
.homepage-live-url {
  max-width: 220px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.88);
}
.hero-store-card-has-photos .homepage-live-field {
  color: rgba(255,255,255,.95);
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.34);
}
.hero-store-card-has-photos .homepage-live-field:focus {
  color: #102116;
  background: #fff;
}
.homepage-live-stat-label {
  width: min(240px, 100%);
  color: inherit;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
  letter-spacing: -.03em;
  text-transform: none;
}
.homepage-live-stat-text {
  color: inherit;
  margin-top: 0;
}
.admin-homepage-dynamic-section .cards,
.homepage-live-block-preview .cards {
  width: min(1180px, calc(100% - 32px));
}
.admin-homepage-empty-preview {
  border-style: dashed;
  color: var(--muted);
  background: #fff;
}
.admin-homepage-empty-preview h2 {
  color: var(--text);
}
.homepage-live-flyer-placeholder {
  display: grid;
  place-items: center;
  width: 116px;
  height: 150px;
  border-radius: 14px;
  border: 1px dashed rgba(31,122,63,.28);
  background: #fff;
  color: var(--brand-dark);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(70,45,5,.10);
}
.homepage-live-save-actions {
  position: sticky;
  bottom: 12px;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid rgba(31,122,63,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.homepage-photo-gallery-compact .homepage-photo-tile {
  position: relative;
  padding-top: 12px;
}
.homepage-photo-drag-handle-overlay {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  background: rgba(255,255,255,.94);
}
.homepage-photo-gallery-compact .homepage-photo-thumb-wrap img {
  height: 128px;
}
.homepage-photo-gallery-compact .homepage-photo-tile.is-dragging {
  cursor: grabbing;
}
@media (max-width: 980px) {
  .homepage-live-block-preview .hero {
    grid-template-columns: 1fr;
  }
  .homepage-live-url {
    max-width: 100%;
  }
}
@media (max-width: 720px) {
  .homepage-live-canvas {
    padding: 8px;
  }
  .homepage-live-block-toolbar {
    align-items: flex-start;
  }
  .homepage-live-title {
    font-size: 34px;
  }
  .homepage-live-section-title {
    font-size: 26px;
  }
}

.homepage-live-order-controls,
.homepage-photo-order-buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.homepage-live-order-index {
  display: inline-grid !important;
  place-items: center;
  min-width: 42px;
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(31,122,63,.08);
  color: var(--brand-dark) !important;
  font-weight: 900;
  font-size: 13px !important;
  margin: 0 !important;
}
.homepage-live-order-btn,
.homepage-photo-order-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(31,122,63,.22);
  background: #fff;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(16,33,22,.06);
}
.homepage-live-order-btn:hover:not(:disabled),
.homepage-photo-order-btn:hover:not(:disabled) {
  border-color: rgba(31,122,63,.48);
  background: rgba(247,251,248,.98);
}
.homepage-live-order-btn:disabled,
.homepage-photo-order-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}
.homepage-photo-order-buttons {
  gap: 4px;
}
.homepage-photo-order-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 16px;
}

/* v104 Kontakt */
.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 22px;
  align-items: start;
}
.contact-office-card {
  overflow: hidden;
  padding: 0;
}
.contact-office-photo {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  background: #f3f6f1;
}
.contact-office-card-content {
  padding: 24px;
}
.contact-company-name {
  margin-top: 4px;
  color: var(--brand-dark);
}
.contact-address-block {
  margin: 12px 0 18px;
}
.contact-detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.contact-detail-list p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(30, 65, 44, .10);
}
.contact-detail-list span {
  color: var(--muted);
  font-weight: 700;
}
.contact-office-hours {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(31, 122, 63, .07);
}
.contact-office-hours h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.contact-form-card h2 {
  margin-top: 0;
}
.admin-fieldset-soft {
  border: 1px solid rgba(31, 122, 63, .16);
  border-radius: 18px;
  padding: 18px;
  background: rgba(247, 251, 248, .72);
}
.admin-fieldset-soft legend {
  padding: 0 8px;
  font-weight: 900;
  color: var(--brand-dark);
}
.contact-admin-photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 20px;
  align-items: start;
}
.contact-admin-photo-preview {
  display: grid;
  gap: 8px;
}
.contact-admin-photo-preview img,
.contact-admin-preview-card .contact-office-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(31, 122, 63, .14);
  background: #f6f6f1;
}
.contact-admin-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed rgba(31, 122, 63, .28);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}
.contact-admin-preview-card {
  max-width: 760px;
}
@media (max-width: 900px) {
  .contact-page-grid,
  .contact-admin-photo-layout {
    grid-template-columns: 1fr;
  }
  .contact-detail-list p {
    display: block;
  }
  .contact-detail-list span {
    display: block;
    margin-bottom: 2px;
  }
}

/* v105 - Správa správců: formulář a seznam pod sebou, seznam přes celou šířku */
.admin-admins-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.admin-admins-create {
  max-width: 760px;
}

.admin-admins-list {
  width: 100%;
}

.admin-admins-table {
  min-width: 0;
}

.admin-admins-table th,
.admin-admins-table td {
  white-space: normal;
}

.admin-admins-table td:nth-child(2),
.admin-admins-table td:nth-child(3) {
  overflow-wrap: anywhere;
}

.admin-admins-table td:nth-child(4),
.admin-admins-table td:nth-child(5),
.admin-admins-table td:nth-child(6),
.admin-admins-table td:nth-child(7) {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-admins-create {
    max-width: none;
  }

  .admin-admins-table td:nth-child(4),
  .admin-admins-table td:nth-child(5),
  .admin-admins-table td:nth-child(6),
  .admin-admins-table td:nth-child(7) {
    white-space: normal;
  }
}


/* v112 - Spodni obrazek webu, sjednoceni sluzeb a pruhlednost homepage bloku */
.homepage-page .hero-content,
.homepage-page .notice,
.homepage-page .card:not(.hero-store-card) {
  background-color: rgba(255,255,255,var(--homepage-block-alpha, 1));
}
.homepage-page .hero-content {
  background: linear-gradient(135deg, rgba(255,255,255,var(--homepage-block-alpha, 1)) 0%, rgba(238,248,241,var(--homepage-block-alpha, 1)) 100%);
}
.homepage-page .hero-store-card:not(.hero-store-card-has-photos) {
  background: linear-gradient(135deg, rgba(247,251,248,var(--homepage-block-alpha, 1)) 0%, rgba(232,244,236,var(--homepage-block-alpha, 1)) 100%);
}
.homepage-services-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.homepage-services-card {
  width: 100%;
  align-items: center;
  background: rgba(255,255,255,var(--homepage-block-alpha, 1));
}
.homepage-services-card .service-cloud {
  justify-content: flex-start;
  align-content: center;
}
.homepage-live-settings-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px);
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(31,122,63,.24);
  border-radius: 18px;
  background: #f8fcf9;
}
.homepage-live-canvas .hero-content,
.homepage-live-canvas .notice,
.homepage-live-canvas .card:not(.hero-store-card) {
  background-color: rgba(255,255,255,var(--homepage-block-alpha, 1));
}
.homepage-live-canvas .hero-content {
  background: linear-gradient(135deg, rgba(255,255,255,var(--homepage-block-alpha, 1)) 0%, rgba(238,248,241,var(--homepage-block-alpha, 1)) 100%);
}
.homepage-live-canvas .hero-store-card:not(.hero-store-card-has-photos) {
  background: linear-gradient(135deg, rgba(247,251,248,var(--homepage-block-alpha, 1)) 0%, rgba(232,244,236,var(--homepage-block-alpha, 1)) 100%);
}
.admin-homepage-edit-services.homepage-services-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 760px) {
  .homepage-services-card {
    grid-template-columns: 1fr;
  }
  .homepage-live-settings-row {
    grid-template-columns: 1fr;
  }
}

.homepage-page .homepage-flyer-mini-card,
.homepage-live-canvas .homepage-flyer-mini-card {
  background: linear-gradient(135deg, rgba(255,255,255,var(--homepage-block-alpha, 1)) 0%, rgba(255,249,232,var(--homepage-block-alpha, 1)) 100%);
}

/* v114 - okamžité filtrování prodejen */
.store-filter-bar .store-live-search-label {
  display: block;
  gap: 0;
  font-weight: 400;
}
.store-live-filter-info,
.store-live-empty {
  width: min(1180px, calc(100% - 32px));
  margin: -10px auto 18px;
  color: var(--muted);
  font-size: 14px;
}
.store-live-empty {
  margin-top: 0;
  padding: 18px 20px;
  background: #fff9e7;
  border: 1px solid #f2d36b;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #7a5a08;
  font-weight: 700;
}
.store-card[hidden] {
  display: none !important;
}

/* v120 - Kompaktnejsi horni mezera uvodni stranky */
.homepage-page > .hero:first-child {
  padding-top: clamp(22px, 3.6vw, 48px);
}
.homepage-page > .section:first-child {
  padding-top: clamp(18px, 3vw, 30px);
}
.homepage-page > .notice:first-child {
  margin-top: clamp(18px, 3vw, 30px);
}
@media (max-width: 760px) {
  .homepage-page > .hero:first-child {
    padding-top: 22px;
  }
  .homepage-page > .section:first-child {
    padding-top: 20px;
  }
}


/* v121 - Úvodní blok s počtem prodejen: text níž a kompaktnější číslo s popiskem */
.hero-store-card-content {
  justify-content: flex-end;
  gap: 12px;
  padding-top: clamp(80px, 12vw, 150px);
  padding-bottom: clamp(22px, 4vw, 34px);
}

/* v122 - Statistický blok s počtem prodejen je opravdu přisazený dolů v celé kartě */
.hero-store-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
}

.hero-store-card-content {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  justify-content: flex-end;
  padding-top: 30px;
  padding-bottom: clamp(16px, 3vw, 26px);
}

.hero-store-stat {
  align-items: flex-end;
  gap: 6px;
  line-height: .9;
  margin-bottom: -2px;
}

.hero-store-stat strong,
.hero-card .hero-store-stat strong {
  line-height: .78;
}

.hero-store-stat span,
.hero-card .hero-store-stat span,
.homepage-live-stat-label {
  line-height: .95;
}

.hero-store-card .rich-text,
.hero-store-card .rich-text p,
.homepage-live-stat-text {
  margin-top: 0;
}

.homepage-live-stat-label {
  width: min(190px, 100%);
  padding-top: 5px;
  padding-bottom: 5px;
}

.admin-homepage-store-preview {
  justify-content: flex-end;
  gap: 12px;
  padding-top: clamp(70px, 10vw, 130px);
}

.admin-homepage-store-stat {
  align-items: flex-end;
  gap: 6px;
  line-height: .9;
}

.admin-homepage-store-stat strong {
  line-height: .78;
}

.admin-homepage-store-stat span {
  line-height: .95;
}

@media (max-width: 760px) {
  .hero-store-card-content {
    padding-top: 76px;
    gap: 10px;
  }

  .hero-store-stat {
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-title-link { transition: none; }
  .store-title-link:hover, .store-title-link:focus-visible { transform: none; }
}


/* v130 - Mobilni aplikace na homepage a titulky stranek */
.homepage-mobile-app-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.homepage-mobile-app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
  align-items: stretch;
  gap: clamp(18px, 3vw, 34px);
  min-height: 330px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,var(--homepage-block-alpha, 1)) 0%, rgba(239,249,243,var(--homepage-block-alpha, 1)) 100%);
}
.homepage-mobile-app-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.homepage-mobile-app-content h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.homepage-mobile-app-content .rich-text,
.homepage-mobile-app-content .rich-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.homepage-mobile-app-content .btn {
  align-self: flex-start;
  margin-top: 4px;
}
.homepage-mobile-app-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 40%, rgba(31,122,63,.16), rgba(31,122,63,.04) 58%, rgba(31,122,63,0));
  overflow: hidden;
}
.homepage-mobile-app-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 310px;
  object-fit: contain;
}
.homepage-mobile-app-placeholder {
  display: grid;
  place-items: center;
  width: min(210px, 70%);
  aspect-ratio: 1;
  border-radius: 34px;
  border: 1px dashed rgba(31,122,63,.28);
  background: rgba(255,255,255,.68);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 10px rgba(31,122,63,.04);
}
.homepage-mobile-app-placeholder span {
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1;
}
.homepage-live-upload-inline {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed rgba(31,122,63,.20);
  border-radius: 16px;
  background: rgba(255,255,255,.66);
}
.browser-title-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 16px;
}
@media (max-width: 820px) {
  .homepage-mobile-app-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .homepage-mobile-app-visual {
    min-height: 220px;
  }
  .homepage-mobile-app-content .btn {
    align-self: stretch;
    justify-content: center;
  }
}

.info-page-card {
  max-width: 920px;
  margin: 0 auto;
}
.info-page-content {
  font-size: 17px;
  line-height: 1.72;
}
.info-page-form textarea[name="content"] {
  min-height: 420px;
}
.badge-ok {
  background: #e8f6ee;
  color: #0d6b3b;
}
.badge-muted {
  background: #eef2f5;
  color: #596773;
}

/* v135 - Promo blok clenske schuze na uvodni strance */
.homepage-meeting-promo-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.homepage-meeting-promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
  align-items: stretch;
  gap: clamp(18px, 3vw, 32px);
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(135deg, rgba(255,255,255,var(--homepage-block-alpha, 1)) 0%, rgba(255,248,225,var(--homepage-block-alpha, 1)) 100%);
  border-color: rgba(242, 189, 47, .42);
}
.homepage-meeting-promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.homepage-meeting-promo-content h2 {
  margin: 0;
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.homepage-meeting-promo-content .rich-text,
.homepage-meeting-promo-content .rich-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
  margin-bottom: 0;
}
.homepage-meeting-promo-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.homepage-meeting-promo-footer .badge {
  margin: 0;
  background: rgba(242, 189, 47, .20);
  color: #7a4d05;
}
.homepage-meeting-promo-visual {
  display: grid;
  place-items: center;
  min-height: 230px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(242,189,47,.22), rgba(242,189,47,.06) 60%, rgba(242,189,47,0));
}
.homepage-meeting-promo-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}
.homepage-meeting-promo-placeholder {
  display: grid;
  place-items: center;
  width: min(210px, 72%);
  aspect-ratio: 1.25;
  border-radius: 28px;
  border: 1px dashed rgba(180,130,20,.30);
  background: rgba(255,255,255,.62);
  color: #9a6608;
  box-shadow: inset 0 0 0 10px rgba(242,189,47,.06);
}
.homepage-meeting-promo-placeholder span {
  font-size: clamp(52px, 7vw, 78px);
  line-height: 1;
}
.meeting-homepage-current-image img {
  display: block;
  width: min(360px, 100%);
  max-height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}
@media (max-width: 760px) {
  .homepage-meeting-promo-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .homepage-meeting-promo-visual {
    order: -1;
    min-height: 190px;
  }
  .homepage-meeting-promo-visual img {
    min-height: 190px;
  }
  .homepage-meeting-promo-content h2 {
    font-size: clamp(24px, 8vw, 32px);
  }
}

/* v136 - menší ilustrační obrázek členské schůze a jemný efekt jako u letáku */
.homepage-meeting-promo-visual img {
  width: min(280px, 88%);
  height: auto;
  min-height: 0;
  max-height: 205px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(70, 45, 5, .13);
  transform: rotate(-1.5deg);
  transition: transform .18s ease, filter .18s ease;
}
.homepage-meeting-promo-card:hover .homepage-meeting-promo-visual img,
.homepage-meeting-promo-card:focus-within .homepage-meeting-promo-visual img {
  transform: rotate(0deg) translateY(-2px) scale(1.02);
  filter: brightness(1.02);
}
@media (max-width: 760px) {
  .homepage-meeting-promo-visual img {
    width: min(250px, 82%);
    max-height: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .homepage-meeting-promo-visual img {
    transition: none;
    transform: none;
  }
  .homepage-meeting-promo-card:hover .homepage-meeting-promo-visual img,
  .homepage-meeting-promo-card:focus-within .homepage-meeting-promo-visual img {
    transform: none;
  }
}


.site-favicon-preview {
    width: 48px;
    height: 48px;
    object-fit: contain;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--admin-border, #dbe4ef);
    background: #fff;
}
