/* Spotero – styly webu podle návrhu „Rajon – aplikace a web“ (Desktop*.dc.html). Font Inter. */
:root {
  --bg: #f6f2e8;
  --card: #fffdf7;
  --line: #ece5d4;
  --line2: #ddd5c2;
  --hdr-line: #eceae4;
  --ink: #1f281d;
  --ink2: #2b3328;
  --text2: #4a5246;
  --muted: #5d6658;
  --green: #2f6b3f;
  --green-dark: #1f3a28;
  --green-deep: #14281b;
  --green-soft: #eaf3e6;
  --green-ink: #1f4d2c;
  --mint: #8fd19e;
  --blue: #1d4f91;
  --blue-soft: #e3edf9;
  /* Oranžová pro štítky slev: tmavší než #e8622c z návrhu, aby bílý text měl kontrast 4,5 : 1. */
  --hot: #c84d1a;
  --hot-ink: #b8461a;
  /* Chybějící údaje (karta .missing): světle oranžová. */
  --missing-bg: #fdeee4;
  --missing-line: #f4cdb5;
  --missing-ink: #8a3511;
  --old: #c62828;
  --yellow: #ffd23e;
  --sand: #e7e1d1;
  --sand2: #efe8d7;
  --seg: #efe9db;
  --rate-bg: #2b2440;
  --rate-fg: #fff3cf;
  --star: #ffc93c;
  --cream: #f4efe2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Jedna šířka obsahu pro všechny stránky (úvod, výpisy, detail firmy a služby, účet, administrace, hlavička,
   patička), ať obsah mezi stránkami neposkakuje. Užší jsou jen textové stránky (.doc, .doc.narrow) a malé
   formuláře a stavové stránky (.auth-page, .auth-choice, .reg-page, .bk, .error-page); pravidlo v AGENTS.md (UI). */
.wrap { max-width: 1376px; margin: 0 auto; padding: 0 32px; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; }
.page { padding-top: 24px; padding-bottom: 56px; }
.link-green { display: inline-flex; font-weight: 700; color: var(--green); font-size: 14px; }

/* ---- Hlavička ---- */
.hdr { background: #fff; border-bottom: 1px solid var(--hdr-line); }
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
.brand-logo { display: inline-flex; align-items: center; flex: none; gap: 0.2em; white-space: nowrap; font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.brand-logo svg { flex: none; }
.hdr-logo { display: flex; align-items: center; color: var(--green); }
.hdr-nav { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 600; }
.hdr-nav a { padding: 10px 12px; border-radius: 10px; }
.hdr-nav a:hover { background: #f3f1ea; }
.hdr-nav a.hot { color: var(--hot-ink); }
.hdr-end { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.loc { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 1.5px solid #e3e0d8; background: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.hdr-link { font-size: 14px; font-weight: 600; padding: 10px 14px; }
.btn-dark { font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: #fff; white-space: nowrap; }
.hdr-search { flex: 1 1 480px; min-width: 0; display: flex; flex-wrap: wrap; border: 1.5px solid var(--line2); border-radius: 16px; background: #fff; padding: 4px; }
.hdr-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.15); }
.hs-f { display: block; padding: 6px 14px; min-width: 0; }
.hs-f span { display: block; font: 700 10.5px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.hs-f input, .hs-f select { display: block; border: none; font: 600 15px Inter, sans-serif; width: 100%; outline: none; background: none; padding: 0; color: var(--ink); }
.hs-f select { cursor: pointer; }
.hs-q { flex: 2 1 150px; }
.hs-when { flex: 1 1 110px; border-left: 1px solid var(--line); }
.hdr-search button { flex: none; width: 52px; min-height: 48px; border: none; border-radius: 12px; background: var(--green); display: flex; align-items: center; justify-content: center; }

/* ---- Patička ---- */
.ftr { margin-top: 0; border-top: 1px solid #e3dccb; background: var(--card); }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.ftr-brand { display: flex; align-items: center; gap: 10px; color: var(--green); }
.ftr a { font-weight: 600; }
.ftr a:hover { color: var(--ink); }
.ftr-note { margin-left: auto; }

/* ---- Společné prvky ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line2); background: var(--card); font: 600 14px Inter, sans-serif; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on-green { background: var(--green); border-color: var(--green); color: #fff; min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.chip.dashed { border-style: dashed; }
.chip:hover:not(.on):not(.on-green) { border-color: #8f8873; }

.kicker { font: 700 12px Inter, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.kicker.mint { color: var(--mint); }
.kicker.yellow { color: var(--yellow); }
.btn-yellow { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; border-radius: 14px; background: var(--yellow); color: #2b2100; font-weight: 800; font-size: 15px; }
.self-start { align-self: flex-start; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; border: none; }
.btn.green { background: var(--green); color: #fff; }
.btn.sand { background: var(--sand); color: var(--ink); }

.flogo { display: inline-flex; flex: none; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; font-weight: 800; line-height: 1; }
.flogo.has-img { background: #fff; padding: 3px; }
.flogo img { width: 100%; height: 100%; object-fit: contain; }

.rate { flex: none; display: inline-flex; align-items: center; gap: 4px; background: var(--rate-bg); color: var(--rate-fg); font: 800 14px Inter, sans-serif; padding: 5px 9px; border-radius: 9px; white-space: nowrap; }
.rate b { color: var(--star); }
.rate.sm { font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.rate.lg { font-size: 15px; padding: 6px 10px; }
.rate.none { background: var(--seg); color: var(--text2); font-weight: 700; font-size: 12.5px; }

.ph { position: relative; display: flex; align-items: center; justify-content: center; background: var(--sand); overflow: visible; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

.b-off { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--hot); color: #fff; font: 800 15px Inter, sans-serif; padding: 6px 11px; border-radius: 99px; }
.b-off.sm { font-size: 14px; padding: 5px 10px; }
.b-off.xs { top: 6px; left: 6px; font-size: 12px; padding: 3px 8px; }
.b-off.lg { top: 18px; left: 18px; font-size: 18px; padding: 8px 14px; }
.b-left { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(20, 24, 18, 0.82); color: #fff; font: 600 12.5px Inter, sans-serif; padding: 6px 10px; border-radius: 99px; }
.b-left.lg { top: 18px; right: 18px; font: 700 14px Inter, sans-serif; padding: 8px 14px; }

.pstack { display: inline-flex; flex-direction: column; line-height: 1.1; }
.pstack s { font-size: 14px; font-weight: 600; color: var(--old); }
.pstack b { font: 700 23px Inter, sans-serif; color: var(--green); letter-spacing: -0.3px; }
/* Ceny jsou všude zelené (běžná i zlevněná). Modifikátor is-deal zůstává pro případné odlišení (třída .deal patří kartě hot dealu s rámečkem). */
.slot-chip { margin-left: auto; font-size: 13px; font-weight: 700; background: var(--blue-soft); color: var(--blue); padding: 7px 10px; border-radius: 9px; white-space: nowrap; }
.slot-chip.sm { margin-left: 0; padding: 4px 8px; border-radius: 8px; }

/* Otevírací doba: otevřeno = zelená tečka, zavřeno = malá ikona hodin. Vzdálenost a místo = ikona špendlíku. */
.open { display: inline-flex; align-items: center; gap: 5px; }
.open i { flex: none; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: #3aa45a; }
.open svg { flex: none; color: #8a9186; }
.place { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.place svg { flex: none; color: #8a9186; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 4px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs b { color: var(--ink); }

.sec { padding-top: 48px; padding-bottom: 48px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
.sec-head.tight { margin-bottom: 6px; }
.sec-head .sub { font-size: 14px; color: var(--muted); }
.sec-head .more { margin-left: auto; font-weight: 700; color: var(--green); font-size: 14px; }
.sec-lead { margin: 0 0 20px; font-size: 15px; color: var(--text2); }
.h-sec { font-size: 24px; font-weight: 800; margin: 0 0 14px; }
.h-sec.lg { font-size: 26px; }
.sec-head .h-sec { margin: 0; }

/* ---- Úvod: hero ---- */
.hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--hdr-line); }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-dots { position: absolute; inset: 0; background-image: radial-gradient(#e2e6dc 1.4px, transparent 1.4px); background-size: 26px 26px; opacity: 0.7; }
@keyframes fl { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-16px) rotate(calc(var(--r) + 8deg)); } }
@keyframes rip { 0% { transform: scale(0.15); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes blink { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.fl { position: absolute; animation: fl 9s ease-in-out infinite; }
.fl1 { --r: 12deg; left: -40px; top: 40px; width: 150px; height: 150px; border-radius: 34px; background: #e6f0e3; }
.fl2 { --r: 0deg; left: 30%; top: -70px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid #eef3fb; animation-delay: -3s; }
.fl3 { --r: -18deg; left: 44%; bottom: 26px; width: 54px; height: 54px; border-radius: 12px; background: #ffe9a8; animation-delay: -5s; }
.fl4 { --r: 45deg; left: 6%; bottom: -30px; width: 90px; height: 90px; border: 3px solid #cfe3cf; border-radius: 18px; animation-delay: -2s; }
.fl5 { --r: 0deg; right: 30%; top: 36px; width: 26px; height: 26px; border-radius: 50%; background: #bcd4f2; animation-delay: -6s; }
.hero-in { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.hero-main { flex: 1 1 580px; min-width: 0; }
.pill-ok { display: inline-flex; align-items: center; gap: 8px; font: 600 13px Inter, sans-serif; color: var(--green); background: #eef5ec; padding: 7px 12px; border-radius: 99px; }
.pill-ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3aa45a; }
.hero h1 { margin: 16px 0 22px; font: 800 34px/1.15 Inter, sans-serif; letter-spacing: -0.9px; max-width: 560px; }
.hero-box { display: flex; flex-wrap: wrap; align-items: stretch; background: #fff; border: 1.5px solid #dcd8ce; border-radius: 20px; box-shadow: 0 18px 44px rgba(30, 45, 30, 0.1); padding: 6px; }
.hero-box:focus-within { border-color: var(--green); }
.fld { flex: 1 1 220px; display: flex; flex-direction: column; justify-content: center; padding: 8px 18px; min-height: 64px; min-width: 0; }
.fld-q { flex-grow: 2; }
.fld + .fld { border-left: 1px solid #ece9e1; }
.fld label { font: 700 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.fld input, .fld select { border: none; background: none; font: 500 16px Inter, sans-serif; color: var(--ink); padding: 4px 0; outline: none; width: 100%; }
.fld select { cursor: pointer; }
.hero-submit { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 28px; min-height: 64px; border: none; border-radius: 15px; background: var(--green); color: #fff; font-weight: 700; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Zaškrtávací čipy (rychlé filtry) */
.fc { gap: 8px; padding-left: 10px; }
.fc input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 2px solid #b8b09c; border-radius: 5px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.fc input::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); opacity: 0; }
.fc input:checked { background: var(--green); border-color: var(--green); }
.fc input:checked::after { opacity: 1; }
.fc:has(input:checked) { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
.fc.hot input { border-color: #e8622c; }
.fc.hot input:checked { background: var(--hot); border-color: var(--hot); }
.fc.hot:has(input:checked) { background: #fdebe2; border-color: #e8622c; color: #9a3a12; }
.fc:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.fc input:focus-visible { outline: none; }

/* Banner uvolněných termínů s radarem */
.watch { flex: 0 1 420px; min-width: min(300px, 100%); position: relative; border-radius: 26px; background: var(--green-deep); color: var(--cream); padding: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(20, 40, 27, 0.28); }
.radar { position: relative; height: 200px; margin: -6px -6px 18px; border-radius: 18px; background: #1c3524; overflow: hidden; }
.radar-rings { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; }
.rp { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mint); animation: rip 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.rp.d2 { animation-delay: -1.2s; }
.rp.d3 { animation-delay: -2.4s; }
.rr { position: absolute; border-radius: 50%; border: 1px dashed rgba(143, 209, 158, 0.35); }
.rr.r1 { inset: 60px; }
.rr.r2 { inset: 110px; }
.blip { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #1c3524; background: var(--yellow); animation: blink 2.4s ease-in-out infinite; }
.blip.b1 { left: 30%; top: 28%; }
.blip.b2 { left: 68%; top: 36%; animation-delay: -0.8s; }
.blip.b3 { left: 58%; top: 72%; animation-delay: -1.6s; }
.blip.b4 { left: 22%; top: 64%; background: #8fc3ff; animation-delay: -1.1s; }
.radar-me { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--green); border: 3px solid var(--cream); display: flex; align-items: center; justify-content: center; }
.radar-tag { position: absolute; left: 62%; top: 18%; font: 700 11.5px Inter, sans-serif; background: var(--cream); color: var(--green-deep); padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.watch h2 { margin: 6px 0 8px; font: 800 24px/1.2 Inter, sans-serif; letter-spacing: -0.4px; }
.watch p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; opacity: 0.85; }
.watch-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.watch-btns .btn-yellow { flex: 1 1 auto; }

/* Kategorie */
.sec-cats { padding-top: 40px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); }
.cat:hover { border-color: #c9c0a8; }
.cat-ic { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.cat b { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }
.cat small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Hot deals */
.band { background: var(--sand2); padding: 44px 0 48px; }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.band-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
.band-head p { margin: 6px 0 0; font-size: 15px; color: var(--text2); max-width: 720px; }
.tabs { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.empty-note { font-size: 15px; color: var(--text2); }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 18px; }
.deal-grid.sm { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.deal { position: relative; background: var(--card); border-radius: 20px; overflow: hidden; border: 1.5px solid #e6dfcc; }
.deal:hover { border-color: #c9c0a8; }
.deal-ph { height: 170px; }
.deal.compact .deal-ph { height: 160px; }
.deal-logo { position: absolute; left: 14px; bottom: -22px; z-index: 2; border: 3px solid var(--card); font-size: 18px; }
.deal-body { padding: 30px 16px 16px; }
.deal.compact .deal-body { padding: 14px 16px 16px; }
.meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.deal h3 { margin: 5px 0 12px; font-size: 19px; line-height: 1.2; font-weight: 700; }
.deal.compact h3 { font-size: 18px; }
.deal.compact .pstack b { font-size: 21px; }
.price-row { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.price-row .slot-chip { margin-left: 0; }
.price-row .pstack { align-items: flex-end; text-align: right; }

/* Mapa okolí na úvodu */
.promo { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; background: var(--green-dark); border-radius: 28px; overflow: hidden; color: var(--cream); }
.promo-text { flex: 1 1 340px; min-width: 0; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.promo-text h2 { font-size: 34px; line-height: 1.05; font-weight: 800; }
.promo-text p { font-size: 15px; line-height: 1.5; opacity: 0.88; }
.promo-text .promo-claim { margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-size: 16px; line-height: 1.45; font-weight: 700; opacity: 1; }
.promo-text .btn-yellow { margin-top: 8px; }
.city-map.promo-map { flex: 2 1 520px; min-width: 0; min-height: 380px; border: 0; border-radius: 0; }
.city-map.promo-map canvas { height: 100%; min-height: 380px; position: absolute; inset: 0; }

/* Vybrali jsme pro vás */
.sec-picks { padding-top: 0; padding-bottom: 32px; }
/* O projektu (pod Vybrali jsme pro vás): malá zelená karta, text ABOUT_PROJECT ze @vmo/shared. */
.sec-about { padding-top: 16px; padding-bottom: 64px; }
.about { max-width: 820px; padding: 22px 26px; border-radius: 20px; background: var(--green-soft); color: var(--green-ink); }
.about h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.about p { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.pick { position: relative; background: var(--card); border-radius: 20px; overflow: hidden; border: 1.5px solid var(--line); }
.pick:hover { border-color: #c9c0a8; }
.pick-ph { height: 200px; }
.b-pick { position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--card); color: var(--green); font: 700 12px Inter, sans-serif; padding: 6px 10px; border-radius: 99px; }
.pick-logo { position: absolute; left: 16px; bottom: -24px; z-index: 2; border: 3px solid var(--card); }
.pick-body { padding: 32px 18px 18px; }
.pick-top { display: flex; align-items: center; gap: 8px; }
.pick-name { font-size: 14px; font-weight: 700; }
.pick-top .rate { margin-left: auto; }
.pick h3 { margin: 6px 0 12px; font-size: 20px; line-height: 1.2; font-weight: 700; }
.pick-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--text2); }
.pick-meta:empty { display: none; }
.pick-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 10px; margin-top: 10px; }
.pick-price { font: 700 18px Inter, sans-serif; color: var(--green); }

/* ---- Výpis: kategorie a hledání ---- */
.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 6px 0 18px; }
.page-title h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; }
.cat-watch { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--green); white-space: nowrap; }
.page-title .count { font-size: 15px; color: var(--text2); padding-bottom: 6px; }
.listing { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.results-list { flex: 1 1 520px; min-width: 0; }
.rows { display: flex; flex-direction: column; gap: 14px; }

.segmented { margin-left: auto; display: flex; background: var(--seg); border-radius: 14px; padding: 4px; }
.segmented a { min-height: 40px; padding: 0 18px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text2); }
.segmented a[aria-current] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.segmented small { color: var(--muted); font-weight: 700; font-size: 13px; }

.active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; min-height: 38px; }
.sorted { margin-left: auto; font-size: 13.5px; color: var(--text2); }
.sorted b { color: var(--ink); }
.empty { padding: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* Panel Filtry */
.filters { position: relative; flex: 1 1 260px; max-width: 300px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 6px 20px 20px; }
.filters summary { display: flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 38px; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary h2 { font-size: 19px; font-weight: 800; }
.filters-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.filters-chev { color: var(--muted); font-size: 13px; }
.filters-box[open] .filters-chev { transform: rotate(180deg); }
.filters-clear { position: absolute; right: 20px; top: 18px; z-index: 1; min-height: 38px; display: flex; align-items: center; font: 600 13px Inter, sans-serif; color: var(--green); }
.lbl { font: 700 11.5px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 18px 0 8px; }
.ck { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 14px; font-weight: 500; cursor: pointer; }
.ck input { flex: none; width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.ck .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { flex: 1 0 auto; position: relative; min-height: 38px; padding: 0 8px; border-radius: 10px; border: 1.5px solid var(--line2); background: var(--card); font: 600 13px Inter, sans-serif; color: var(--ink2); display: flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.price-in { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.inp { flex: 1; min-width: 0; border: 1.5px solid var(--line2); border-radius: 10px; padding: 9px 10px; font: 600 14px Inter, sans-serif; background: #fff; }
.range { width: 100%; margin-top: 10px; accent-color: var(--green); }
.btn-submit { width: 100%; min-height: 44px; margin-top: 22px; border: none; border-radius: 12px; background: var(--green); color: #fff; font-weight: 700; }
/* Filtr Kategorie: vybrané jako zelené pilulky, pod nimi hledání s nabídkou. Bez JS seznam zaškrtávátek. */
.catpick [hidden] { display: none !important; }
.catpick-pills { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.catpick-pills:empty { display: none; }
.catpick-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; max-width: 100%; padding: 0 11px 0 13px; border: none; border-radius: 99px; background: var(--green); color: #fff; font: 600 13.5px Inter, sans-serif; text-align: left; }
.catpick-pill span { font-size: 11px; opacity: 0.8; }
.catpick-pill:hover { background: var(--green-dark); }
.catpick-pill:hover span { opacity: 1; }
.catpick-box { position: relative; display: flex; }
.catpick-box .inp:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.18); }
.catpick-drop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; padding: 4px; background: var(--card); border: 1.5px solid var(--line2); border-radius: 12px; box-shadow: 0 10px 28px rgba(30, 40, 20, 0.16); }
.catpick-opts { position: relative; list-style: none; margin: 0; padding: 0; max-height: 264px; overflow-y: auto; }
.catpick-opt { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.catpick-opt .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.catpick-opt.is-zero { color: var(--muted); }
.catpick-opt.is-active { background: var(--green-soft); color: var(--green-ink); box-shadow: inset 0 0 0 2px var(--green); }
.catpick-none { padding: 9px 10px; color: var(--muted); font-size: 13.5px; }
.catpick-list { max-height: 342px; overflow-y: auto; }
.catpick-list .ck.is-zero { color: var(--muted); }

/* Mapa okolí ve výpisu */
.search-map { flex: 1 1 100%; min-width: 0; }
.search-map-matches { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 10px; padding: 0; list-style: none; color: var(--text2); font-size: 13px; }
.search-map-matches li { display: flex; align-items: center; gap: 6px; }
.search-map-matches b { min-width: 24px; padding: 3px 6px; border-radius: 99px; background: var(--green-soft); color: var(--green-ink); text-align: center; }
.city-map { position: relative; flex: 1 1 100%; border-radius: 24px; overflow: hidden; border: 1.5px solid #e3dccb; background: #b7c69c; }
.city-map canvas { display: block; width: 100%; height: 460px; }
.map-legend { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; margin: 0; pointer-events: none; width: max-content; max-width: calc(100% - 140px); text-align: center; background: rgba(255, 255, 255, 0.95); padding: 8px 14px; border-radius: 16px; font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 6px 20px rgba(30, 40, 20, 0.15); }
.map-legend small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--text2); }
.map-all { position: absolute; right: 18px; top: 18px; z-index: 4; min-height: 42px; padding: 0 16px; border: none; border-radius: 12px; background: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.map-btns { position: absolute; right: 18px; bottom: 18px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.map-btns button { width: 44px; height: 44px; border: none; border-radius: 12px; background: #fff; font: 700 20px Inter, sans-serif; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); }

/* Řádek výsledku */
.row { position: relative; display: flex; flex-wrap: wrap; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; }
.row:hover { border-color: #c9c0a8; }
.row-ph { flex: 0 0 220px; min-height: 190px; }
.row-logo { position: absolute; left: 12px; bottom: 12px; z-index: 2; border: 3px solid var(--card); font-size: 19px; }
.row-body { flex: 1 1 260px; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.row-top { display: flex; align-items: center; gap: 8px; }
.row-cat { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 13px; color: var(--muted); font-weight: 600; min-width: 0; }
.row-top .rate { margin-left: auto; }
.row h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); }
.tags:empty { display: none; }
.tags span { background: #eef3e9; padding: 4px 8px; border-radius: 7px; }
.row-svc { font-size: 13px; color: var(--text2); }
/* Cena vždy vpravo (pravidlo UI 8): vlevo název, štítky a služby, vpravo cena, vedle ní jen termín hot dealu,
   pod ní Poptat. Na úzkém řádku se pravý sloupec zalomí pod obsah a zůstane vpravo. */
.row-cols { flex: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; }
.row-main { flex: 1 1 240px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 6px; }
.row-side { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 13px; color: var(--text2); }
.row-price-line { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 10px; }
.row-price-line .pstack { align-items: flex-end; text-align: right; }
.row-price { font: 700 19px Inter, sans-serif; color: var(--green); }
.row-pstack b { font-size: 19px; }
.row-pstack s { font-size: 13px; }
.weblink { position: relative; z-index: 2; color: var(--blue); font-weight: 700; overflow-wrap: anywhere; }
.weblink:hover { text-decoration: underline; }
.row-price.weblink { font-size: 16px; }
.noprice { font-size: 15px; color: var(--muted); }
.row-phone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.row-call { position: relative; z-index: 2; min-height: 42px; padding: 0 16px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 700; display: flex; align-items: center; }

/* Hledání: řazení, oddělovač méně přesných shod, shoda služby, stránkování */
.sort-form { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text2); }
.sort-form select { min-height: 38px; padding: 0 30px 0 12px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231f281d' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; -webkit-appearance: none; font: 700 13.5px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.sort-go { min-height: 38px; padding: 0 12px; border: none; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; }
.hit { display: flex; flex-direction: column; gap: 14px; }
.weak-sep { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 15px; font-weight: 800; color: var(--text2); }
.weak-sep::after { content: ''; flex: 1; height: 1.5px; background: var(--line2); }
.weak-sep small { font-size: 13px; font-weight: 600; color: var(--muted); }
.svc-match { position: relative; z-index: 2; align-self: flex-start; max-width: 100%; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 10px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 13.5px; font-weight: 700; }
.svc-match:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.svc-match-t { color: var(--ink); }
.svc-match-off { color: var(--hot); font-weight: 800; }
.svc-match b { font-weight: 700; color: var(--green); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 8px; }
.pager-info { font-size: 13.5px; color: var(--muted); }
.nothing { flex-direction: column; align-items: stretch; }
.suggest h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.nothing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nothing-actions:empty { display: none; }

/* ---- Detail firmy ---- */
.cover { position: relative; height: 240px; background: #dfe4ea; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.page-firm { padding-bottom: 56px; }
.firm-head { position: relative; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.firm-head.has-cover { align-items: flex-end; margin-top: -46px; }
.firm-logo-xl { width: 112px; height: 112px; border-radius: 26px; border: 5px solid var(--bg); }
.firm-logo-xl.has-img { padding: 3px; }
.firm-name { flex: 1 1 320px; min-width: 0; }
.firm-name h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; }
/* U titulní fotky logo přesahuje do snímku, zatímco název je pod ním. */
@media (min-width: 480px) {
  .firm-head.has-cover .firm-name { align-self: flex-start; padding-top: 60px; }
}
.firm-sub { font-size: 15px; color: var(--text2); margin-top: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.firm-head.has-cover .actions { padding-bottom: 6px; }
@media (min-width: 901px) {
  .firm-head .share-btn, .firm-head .firm-web { position: relative; width: 48px; padding: 0; justify-content: center; }
  .firm-head .firm-web > span { display: none; }
  .firm-head .share-btn > [data-share-text] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .firm-head .share-btn[data-share-copied] > [data-share-text] {
    z-index: 2; right: 0; bottom: calc(100% + 8px); width: auto; height: auto; clip-path: none;
    padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--card); font-size: 13px;
  }
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 13px; font-weight: 700; }
.badges > span, .badges > a, .buy-badges span { padding: 6px 10px; border-radius: 9px; }
.badges > a { text-decoration: none; }
.b-rate { background: var(--rate-bg); color: var(--rate-fg); }
.b-rate b { color: var(--star); }
.b-green { background: var(--green-soft); color: var(--green-ink); }
/* Rezervace: výběr termínu (zákazník) a Rozvrh a rezervace (administrace). */
.bk { max-width: 860px; }
.bk-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 18px; }
.bk-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.bk-head p { margin-top: 2px; color: var(--text2); }
.bk-form { display: flex; flex-direction: column; gap: 16px; }
.bk-form fieldset { margin: 0; padding: 18px; min-width: 0; }
.bk-form legend { padding: 0; margin-bottom: 12px; font: 800 18px Inter, sans-serif; float: left; width: 100%; }
.bk-form legend + * { clear: both; }
.bk-day + .bk-day { margin-top: 14px; }
.bk-day h2 { margin-bottom: 8px; font-size: 14.5px; font-weight: 800; text-transform: capitalize; }
.bk-times { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-time { position: relative; cursor: pointer; }
.bk-time input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-time span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 72px; min-height: 46px; padding: 4px 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: 700 15px Inter, sans-serif; }
.bk-time small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.bk-time.is-deal span { border-color: var(--hot, #d9541e); }
.bk-time.is-deal small { color: var(--hot-ink, #b0401a); }
.bk-time input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.bk-time input:checked + span small { color: #fff; }
.bk-time input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.bk-time.is-full { cursor: default; }
.bk-time.is-full span { background: var(--bg); color: var(--muted); text-decoration: line-through; }
.bk-time.is-full small { text-decoration: none; }
.bk-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bk-contact { display: flex; flex-direction: column; gap: 12px; }
.bk-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 14px; font-weight: 700; }
.bk-f input, .bk-f textarea { width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: 500 15.5px Inter, sans-serif; color: var(--ink); }
.bk-f textarea { padding: 11px 14px; line-height: 1.45; resize: vertical; }
.bk-f input:focus, .bk-f textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.bk-f small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.bk-note { font-size: 13px; color: var(--muted); }
/* Rezervace u firmy (/rezervace/<slug firmy>, views/booking.tsx): široká stránka, kroky služba → termín → údaje. */
.bk-page .bk-form { gap: 18px; }
.bk-pick { display: flex; flex-direction: column; gap: 18px; }
.bk-step { scroll-margin-top: 16px; }
.bk-legend-sub { font-weight: 600; color: var(--text2); }
.bk-hint { margin: -4px 0 12px; font-size: 13.5px; color: var(--muted); }
.bk-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.bk-svc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 14px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line2); color: var(--ink); text-decoration: none; }
.bk-svc:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bk-svc.is-sel { background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green); }
.bk-svc-t { grid-column: 1; font-size: 16px; font-weight: 700; line-height: 1.25; }
.bk-svc-m { grid-column: 1; font-size: 13px; color: var(--text2); }
.bk-svc-price { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.bk-svc-price s { font-size: 12.5px; color: var(--muted); }
.bk-svc-price b { font-size: 17px; font-weight: 700; color: var(--green); }
.bk-svc-ok { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font: 800 13px/24px Inter, sans-serif; text-align: center; }
.bk-empty { margin: 0; padding: 18px; border-radius: 12px; background: var(--bg); color: var(--text2); font-size: 14.5px; }
.bk-slots .wk + .bk-empty { margin-top: 12px; }
.bk-chosen { margin: 0 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); font-size: 14.5px; font-weight: 700; }
.bk-chosen[hidden] { display: none; }
.bk-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bk-f-wide { grid-column: 1 / -1; }
.bk-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 4px; }
@media (max-width: 900px) {
  .bk-fields { grid-template-columns: 1fr; }
}
.bk-done { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.bk-done h1 { font-size: 26px; font-weight: 800; }
.bk-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.bk-sum dt { color: var(--muted); }
.bk-sum dd { margin: 0; font-weight: 700; }
.bk-sum a { color: var(--green); }
.bk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn.danger { background: #a83a26; color: #fff; border-color: #a83a26; }
.bm { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.bm-badge { flex: none; padding: 4px 9px; border-radius: 8px; font: 700 12px Inter, sans-serif; white-space: nowrap; }
.bm-badge.request { background: var(--seg); color: var(--text2); }
.bm-badge.schedule { background: var(--green-soft); color: var(--green-ink); }
.bm-badge.own { background: #e3ecf8; color: #1d4f8f; }
.bm-badge.off { background: #f6e4da; color: #9a3a12; }
/* Přepínač Aktivní u služby (ActiveSwitch v AdminShell.tsx): ve Službách a ceníku vpravo vedle karty, v Rozvrhu v seznamu. */
.act-switch { display: inline-flex; flex: none; }
.act-sw { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px; border: 0; border-radius: 10px; background: none; color: var(--text2); font: 700 13px Inter, sans-serif; cursor: pointer; }
.act-sw-track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line2); transition: background 0.15s; }
.act-sw-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(40, 30, 10, 0.3); transition: transform 0.15s; }
.act-sw.on { color: var(--green-ink); }
.act-sw.on .act-sw-track { background: var(--green); }
.act-sw.on .act-sw-knob { transform: translateX(18px); }
.act-sw-l { min-width: 62px; text-align: left; }
.act-sw:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pf-item.has-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.pf-item.has-switch > details { grid-column: 1; grid-row: 1; }
.pf-item.has-switch > .act-switch { grid-column: 2; grid-row: 1; padding-top: 12px; }
.pf-item.is-off summary { opacity: 0.62; }
.pf-overview li.is-off { opacity: 0.6; }
/* Hláška nad kalendářem rozvrhu: bloky podle délky služby, služby rozvrhu s přepínačem Aktivní. */
.sch-info { display: flex; gap: 14px; margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: #eef4fb; box-shadow: inset 0 0 0 1px #cfe0f3; scroll-margin-top: 16px; }
.sch-info-i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #2f6db3; color: #fff; font: italic 800 15px/1 Georgia, serif; }
.sch-info-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sch-info h2 { font-size: 16px; font-weight: 800; }
.sch-info p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text2); }
.sch-svcs { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 8px; }
.sch-svcs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 12px; background: #fff; }
.sch-svcs li.is-off .sch-svc-t { opacity: 0.6; }
.sch-svc-t { min-width: 0; display: flex; flex-direction: column; }
.sch-svc-t b { font-size: 14.5px; }
.sch-svc-t small { font-size: 12.5px; color: var(--muted); }
.bm-modes { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.bm-modes legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.bm-opt { display: flex; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; cursor: pointer; }
.bm-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.bm-opt input { margin-top: 3px; accent-color: var(--green); }
.bm-opt b { display: block; font-size: 14.5px; }
.bm-opt small { display: block; font-size: 12.5px; color: var(--text2); }
.bm-own, .bm-schedule { display: none; }
.bm:has(input[value='own']:checked) .bm-own { display: flex; flex-direction: column; gap: 12px; }
.bm:has(input[value='schedule']:checked) .bm-schedule { display: block; }
.pf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sch-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; padding: 18px; }
.sch-form h2 { font-size: 20px; font-weight: 800; }
.sch-week { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sch-week li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sch-day { display: flex; align-items: center; gap: 8px; width: 120px; font-weight: 700; font-size: 14.5px; }
.sch-day input { width: 18px; height: 18px; accent-color: var(--green); }
.sch-week input[type='time'], .sch-closed input[type='date'] { min-height: 40px; padding: 0 10px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font: 600 14.5px Inter, sans-serif; }
.sch-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sch-closed { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
/* Upozornění firmě (/moje-firma/upozorneni): prohlížeč (Web Push) a tabulka událostí × e-mail, prohlížeč. */
.ntf-browser, .ntf-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 18px; }
.ntf-browser h2, .ntf-form h2 { font-size: 20px; font-weight: 800; }
.ntf-state { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--green-ink); }
.ntf-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ntf-acts [hidden] { display: none; }
.ntf-table { width: 100%; border-collapse: collapse; }
.ntf-table th, .ntf-table td { padding: 12px 8px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.ntf-table thead th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.ntf-table th[scope='row'], .ntf-table thead th:first-child { text-align: left; }
.ntf-table th[scope='row'] b { display: block; font-size: 15px; }
.ntf-table th[scope='row'] small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.ntf-table input[type='checkbox'] { width: 20px; height: 20px; accent-color: var(--green); }
.ntf-form .btn { align-self: flex-start; }
/* Rozvrh a rezervace: lepkavá navigace sekcí přes celou šířku obsahu, aktuální sekce tmavá (/js/schedule.js). */
.sch-nav { position: sticky; top: 0; z-index: 6; display: flex; gap: 6px; margin: 14px -32px 18px; padding: 10px 32px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sch-nav::-webkit-scrollbar { display: none; }
.sch-nav a { flex: none; padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--text2); white-space: nowrap; }
.sch-nav a:hover { background: var(--seg); color: var(--ink); }
.sch-nav a[aria-current] { background: var(--ink); color: #fff; }
#kalendar, #blokace, #kalendar-odber, #rozvrh { scroll-margin-top: 72px; }
@media (max-width: 640px) { .sch-nav { margin: 10px -16px 14px; padding: 8px 16px; } }
/* Dovolená a blokace času, odběr kalendáře (Rozvrh a rezervace). */
.sch-off, .sch-cal-sync { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 18px; scroll-margin-top: 16px; }
.sch-off h2, .sch-cal-sync h2 { font-size: 20px; font-weight: 800; }
.sch-off h3 { margin: 4px 0 0; font-size: 15px; font-weight: 800; }
.sch-off-list { list-style: none; margin: 0; padding: 0; }
.sch-off-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sch-off-list li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sch-off-list small { font-size: 13px; color: var(--muted); }
.sch-off-list .sch-off-warn { color: var(--hot-ink); font-weight: 700; }
.sch-off-form { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.sch-off-form .btn { align-self: flex-start; }
.sch-off-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sch-cal-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.sch-cal-sync input[readonly] { font-size: 13px; color: var(--text2); }
.sch-closed legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.sch-closed-row { display: flex; align-items: center; gap: 8px; }
.sch-closed small { font-size: 12.5px; color: var(--muted); }
.sch-cal { margin-top: 18px; }
.sch-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sch-dayc { padding: 14px 16px; }
.sch-dayc h3 { font-size: 15px; font-weight: 800; text-transform: capitalize; margin-bottom: 8px; }
.sch-none { font-size: 13.5px; color: var(--muted); }
.sch-bs { list-style: none; margin: 0; padding: 0; }
.sch-b { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.sch-b + .sch-b { border-top: 1px solid var(--line); }
.sch-b-time { flex: none; width: 96px; font: 800 14.5px Inter, sans-serif; }
.sch-b-main { flex: 1; min-width: 0; font-size: 14.5px; }
.sch-b-main small { display: block; font-size: 13px; color: var(--text2); }
.sch-b-main a { color: var(--green); font-weight: 700; }
.sch-b.is-cancelled { opacity: 0.55; }
.sch-b.is-cancelled .sch-b-time { text-decoration: line-through; }
.sch-free { margin-top: 10px; font-size: 13.5px; }
.sch-free summary { cursor: pointer; font-weight: 700; color: var(--green); }
.sch-deal { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 12px; }
.sch-deal-times { color: var(--text2); }
.sch-deal-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sch-deal-f select, .sch-deal-f input { min-height: 38px; padding: 0 10px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font: 600 14px Inter, sans-serif; }
.sch-deal-f input { width: 150px; }
.pf-single { max-width: 860px; }
.pf-manage { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1.5px dashed var(--line2); border-radius: 12px; background: var(--bg); }
.pf-manage p { margin: 0; font-size: 14px; color: var(--text2); }
.pf-overview { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.pf-overview li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 9px 14px; font-size: 14.5px; }
.pf-overview li + li { border-top: 1px solid var(--line); }
.pf-overview span { font-size: 13.5px; color: var(--text2); }
.side-count { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font: 700 12px Inter, sans-serif; letter-spacing: 0.2px; }
.side-count.done { background: var(--green); color: #fff; }
.conv-head .conv-end { margin-left: auto; align-self: center; }
.chat-closed { margin: 10px auto 0; padding: 8px 14px; border-radius: 10px; background: var(--seg); color: var(--text2); font-size: 13.5px; font-weight: 600; text-align: center; }
.chat-closed[hidden] { display: none; }
.conv-note { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 16px 18px; }
.conv-note label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.conv-note label b { font-size: 16px; font-weight: 800; }
.conv-note label span { font-size: 13px; color: var(--muted); }
.conv-note textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fffdf3; font: 500 15px/1.45 Inter, sans-serif; color: var(--ink); resize: vertical; }
.conv-note textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.conv-note-foot { display: flex; align-items: center; gap: 12px; }
.conv-note-state { font-size: 13.5px; font-weight: 700; color: var(--green-ink); }
.b-closed { padding: 4px 9px; border-radius: 8px; background: #f3dcd6; color: #8a2a1d; font: 700 12.5px Inter, sans-serif; white-space: nowrap; }
.b-blue { background: var(--blue-soft); color: var(--blue); }
.b-gold { background: #fdf1cf; color: #6b4a00; }
.b-sand { background: var(--seg); color: var(--text2); }
.firm-desc { margin-top: 16px; max-width: 760px; font-size: 15.5px; line-height: 1.55; color: var(--ink2); }
p.firm-desc { white-space: pre-line; }
/* Formátovaný popis (výpis i editor): jen základní prvky, vzhled určuje web, ne vložený text. */
.rich > * + * { margin-top: 0.7em; }
.rich h1, .rich h3 { font: 800 1.15em/1.3 Inter, sans-serif; color: var(--ink); margin-top: 1em; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li + li { margin-top: 0.25em; }
.rich blockquote { margin-left: 0; padding-left: 14px; border-left: 3px solid var(--line2); color: var(--text2); }
.rich a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
/* Editor popisu v profilu (Trix). */
.rt { display: flex; flex-direction: column; gap: 6px; }
.rt[hidden] { display: none; }
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 4px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; }
.rt-group { display: inline-flex; align-items: center; gap: 1px; }
.rt-group + .rt-group { padding-left: 4px; border-left: 1px solid var(--line2); }
.rt-group-end { margin-left: auto; border-left: 0 !important; }
.rt-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: #1b2118; cursor: pointer; }
.rt-btn:hover { background: var(--seg); }
.rt-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.rt-btn.trix-active, .rt-btn[aria-expanded='true'] { background: #14532d; color: #fff; }
.rt-btn:disabled { color: #b4b8ad; cursor: default; background: none; }
.rt-btn svg { pointer-events: none; }
.rt-emoji { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; padding: 8px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; }
.rt-emoji[hidden] { display: none; }
.rt-emoji button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; font-size: 18px; cursor: pointer; }
.rt-emoji button:hover, .rt-emoji button:focus-visible { background: var(--seg); }
.rt-body { min-height: 170px; padding: 11px 14px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: 500 15.5px/1.5 Inter, sans-serif; color: var(--ink); }
.rt-body:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.rt trix-toolbar { position: relative; }
.rt .trix-dialog { top: calc(100% + 4px); border-radius: 12px; border: 1.5px solid var(--line2); box-shadow: 0 12px 32px rgba(20, 24, 18, 0.16); font-size: 14px; }
.rt .trix-dialog .trix-button--dialog { padding: 0 12px; min-height: 34px; border: 0; background: none; font: 700 13.5px Inter, sans-serif; cursor: pointer; }
.cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 28px; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 320px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.svc { display: flex; gap: 14px; align-items: center; padding: 12px; }
.svc:hover { border-color: #c9c0a8; }
.svc-ph { position: relative; flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: #dfe4ea; }
.svc-ph img { width: 100%; height: 100%; object-fit: cover; }
.svc-txt { flex: 1; min-width: 0; }
.svc-title { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.2; }
.svc-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.svc-price { text-align: right; padding-right: 6px; }
/* Služba s online rezervací (ServiceCard s `book`): nahoře odkaz na detail, dole nejbližší volno a Rezervovat. */
.svc-bk { flex-direction: column; align-items: stretch; gap: 10px; }
.svc-main { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.svc-bk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.svc-next { font-size: 13px; color: var(--muted); }
.svc-next.ok { color: var(--green-ink); font-weight: 700; }
/* Volné termíny na profilu firmy (FreeSlots v FirmPage.tsx): klik předvybere službu i termín. */
.fs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.fs-slot { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line), inset 4px 0 0 var(--green); color: var(--ink); text-decoration: none; }
.fs-slot:hover { box-shadow: inset 0 0 0 1.5px var(--ink), inset 4px 0 0 var(--green); }
.fs-slot.is-deal { box-shadow: inset 0 0 0 1.5px var(--line), inset 4px 0 0 var(--hot, #d9541e); }
.fs-slot b { font-size: 16px; font-weight: 800; }
.fs-slot span { overflow: hidden; font-size: 13px; color: var(--text2); text-overflow: ellipsis; white-space: nowrap; }
.fs-slot small { font-size: 12.5px; font-weight: 700; color: var(--green-ink); }
.fs-slot.is-deal small { color: var(--hot-ink, #b0401a); }
.svc-price s { font-size: 13px; }
.svc-price b { font-size: 20px; }
.nolist { padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
/* Barevné kódování (pravidlo UI 9): chybějící informace na detailu firmy (ceník, recenze) jsou vždy ve světle
   oranžové kartě, tučný začátek textu tmavě oranžový. */
.card.missing { background: var(--missing-bg); border-color: var(--missing-line); }
.card.missing > p > b { color: var(--missing-ink); }
.nolist-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.col-main section + section { margin-top: 32px; }
.reviews { padding: 20px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.rev-big { text-align: center; min-width: 120px; }
.rev-num { font-size: 48px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.stars { color: #c99a1c; font-size: 18px; letter-spacing: 1px; }
.stars .off { color: #ddd5c2; }
.rev-n { font-size: 13px; color: var(--muted); }
.rev-bars { flex: 1 1 300px; display: grid; gap: 8px; margin: 0; font-size: 13.5px; }
.rev-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.rev-row dt { margin: 0; }
.rev-row dd { margin: 0; display: flex; align-items: center; gap: 12px; }
.bar { flex: 1; height: 8px; border-radius: 9px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 9px; }
.house-card { padding: 18px; text-align: center; }
canvas.house { display: block; }
.house-firm { width: 220px; height: 236px; margin: 0 auto; }
.house-k { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.6px; }
.house-t { font-size: 14px; color: var(--text2); margin: 4px 0 12px; }
.info-card { padding: 18px; }
.info-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.info-card h3 + .open { margin: -4px 0 10px; font-size: 13.5px; color: var(--text2); }
.info-card * + h3 { margin-top: 16px; }
.hours { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.hours div { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.hours dt { margin: 0; }
.hours dd { margin: 0; font-weight: 700; }
.hours .closed { color: var(--muted); }
.hours .closed dd { font-weight: 400; }
.contact { display: flex; flex-direction: column; font-size: 14px; line-height: 1.7; }
.contact a:not(.weblink):hover { text-decoration: underline; }
.sec-similar { margin-top: 44px; }
/* Stránka nabídky: karta s domem na mapě přes celou šířku nad podobnými nabídkami. */
.on-map-wide { margin-top: 28px; }
.on-map-wide + .sec-similar { margin-top: 36px; }
/* Detail firmy: oddělovače mezi sekcemi pod nabídkami (hodnocení, recenze, skóre). */
.page-firm .col-main > section + section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.sim { padding: 16px; display: flex; gap: 14px; align-items: center; }
.sim:hover { border-color: #c9c0a8; }
.sim-logo { border-radius: 14px; }
.sim-txt { flex: 1; min-width: 0; }
.sim-name { display: block; font-size: 16px; font-weight: 700; }
.sim-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (min-width: 901px) {
  .sim { display: grid; grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; align-content: center; }
  .sim-logo { grid-column: 1; grid-row: 1 / span 2; }
  .sim-txt { grid-column: 2; grid-row: 1; overflow-wrap: anywhere; }
  .sim > .rate { grid-column: 2; grid-row: 2; justify-self: start; }
}

/* ---- Detail nabídky ---- */
.page-offer { padding-top: 22px; }
.page-offer .crumbs { margin-bottom: 14px; }
.page-offer .cols { margin-top: 0; }
.offer-hero { position: relative; border-radius: 24px; overflow: hidden; height: 420px; background: #dfe4ea; }
.offer-hero img { width: 100%; height: 100%; object-fit: cover; }
.offer-title { margin: 22px 0 6px; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.8px; }
.offer-sub { font-size: 15px; color: var(--text2); }
.offer-cards { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.incl { flex: 1 1 300px; padding: 20px; }
.incl h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.incl ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.7; }
.on-map { flex: 1 1 300px; padding: 16px 20px; display: flex; gap: 14px; align-items: center; }
.on-map:hover { border-color: #c9c0a8; }
.house-offer { flex: none; width: 130px; height: 140px; }
.on-map-h { display: block; font-size: 17px; font-weight: 800; }
.on-map-t { display: block; font-size: 14px; color: var(--text2); margin-top: 4px; }
.on-map .link-green { margin-top: 10px; }
.buy { flex: 1 1 340px; max-width: 400px; padding: 22px; box-shadow: 0 18px 40px rgba(40, 30, 10, 0.08); }
.buy-firm { display: flex; align-items: center; gap: 12px; }
.buy-logo { border-radius: 14px; font-size: 21px; }
.buy-firm-txt { flex: 1; min-width: 0; }
.buy-name { display: block; font-size: 16px; font-weight: 800; }
.buy-meta { font-size: 13px; color: var(--text2); }
.buy-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 700; }
.buy-badges span { padding: 5px 9px; border-radius: 8px; }
.buy-price { display: flex; align-items: flex-end; gap: 12px; margin: 20px 0 4px; }
.pstack.xl s { font-size: 16px; }
.pstack.xl b { font-size: 38px; font-weight: 800; letter-spacing: -0.8px; }
.buy-save { margin-left: auto; font-size: 14px; color: var(--text2); }
.buy-lbl { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 18px; }
.buy-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.slot-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--blue); background: var(--blue-soft); color: var(--blue); font: 700 14px Inter, sans-serif; }
.cta { display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 20px; min-height: 56px; padding: 0 16px; border-radius: 15px; background: var(--green); color: #fff; font-weight: 800; font-size: 16px; }
.cta2 { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; min-height: 48px; padding: 0 16px; border-radius: 14px; background: var(--sand); font-weight: 700; font-size: 15px; overflow-wrap: anywhere; text-align: center; }
.fine { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---- Administrace ---- */
.admin { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 236px; max-width: 268px; background: var(--green-dark); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #d9e3d4; }
.side a:hover { background: rgba(255, 255, 255, 0.07); }
.side a[aria-current] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.side .side-logo { color: var(--mint); min-height: auto; padding: 0 0 16px; }
.side .side-logo:hover { background: none; }
.side-firm { display: flex; align-items: center; gap: 10px; padding: 10px 0 16px; color: var(--cream); }
.side-flogo { border: 2px solid var(--cream); border-radius: 10px; }
.side-k { display: block; font-size: 11px; color: var(--mint); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.side-firm b { font-size: 15px; }
.side .side-profile { margin-top: auto; }
.side-ico { display: block; font-size: 12px; color: #b9c7b3; font-weight: 600; }
/* Výběr služby a Přidat službu (pod firmou), podpoložky Mého domu a oddělovač položek mimo vybranou službu. */
.side-svc { display: flex; flex-direction: column; gap: 8px; padding: 0 0 14px; }
.side-svc-f { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.side-svc form { margin: 0; }
.side-svc select { width: 100%; min-height: 42px; padding: 0 34px 0 12px; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 12px; background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font: 700 14.5px Inter, sans-serif; color: #fff; cursor: pointer; text-overflow: ellipsis; }
.side-svc select option, .side-svc select optgroup { color: var(--ink); background: #fff; }
.side-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 0 12px; border: 1.5px dashed rgba(255, 255, 255, 0.35); border-radius: 12px; background: none; color: #fff; font: 700 14px Inter, sans-serif; cursor: pointer; }
.side-btn:hover { background: rgba(255, 255, 255, 0.1); }
.side a.side-sub { min-height: 36px; margin-left: 22px; padding-left: 14px; border-left: 2px solid rgba(255, 255, 255, 0.16); border-radius: 0 12px 12px 0; font-size: 13.5px; }
.side-ic { display: flex; flex: 0 0 auto; }
.side a.side-sub .side-ic { opacity: 0.55; }
.side a.side-sub .side-ic svg { width: 15px; height: 15px; }
.side-sep { width: 100%; margin: 10px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 28px 32px 48px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.admin-head-act { margin-left: auto; }
/* Předpřipravené odpovědi v chatu firmy (views/chat.tsx): pod zprávou zákazníka a stránka se seznamem. */
.qr { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 4px 0 6px; padding-left: 4px; }
.qr[hidden] { display: none; }
.qr-h { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.qr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: min(520px, 90%); }
.qr-item { display: block; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-ink); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: pre-line; }
.qr-item:hover { background: var(--green-soft); }
.qr-edit { font-size: 12.5px; font-weight: 700; color: var(--green); }
.qr-manage { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; padding: 18px; }
.qr-edit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.qr-edit-list li + li { padding-top: 12px; border-top: 1px solid var(--line); }
.qr-form { display: flex; flex-direction: column; gap: 8px; }
.qr-form textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: 500 15px/1.45 Inter, sans-serif; color: var(--ink); resize: vertical; }
.qr-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.qr-acts { display: flex; align-items: center; gap: 14px; }
.qr-new { padding-top: 14px; border-top: 1px dashed var(--line2); }
.admin-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; }
.admin-head p { margin-top: 4px; font-size: 14.5px; color: var(--text2); }
.admin-note { margin-left: auto; min-height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: 12px; background: var(--seg); color: var(--text2); font-weight: 700; font-size: 13.5px; }
/* Můj dům: náhled domu nahoře, od 1180 px ve sloupci vpravo, který při posouvání zůstává vidět. */
.hp-layout { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.hp-main { min-width: 0; }
.hp-card { display: flex; flex-wrap: wrap; overflow: hidden; }
.hp-stage { flex: 2 1 420px; min-width: 0; position: relative; background: #c9d6b0; transition: background-color 0.3s; }
.hp-card.is-night .hp-stage { background: radial-gradient(circle at 50% 25%, #34446b, #1b2440 70%); }
.hp-stage canvas { display: block; width: 100%; height: clamp(280px, 50vw, 420px); }
.hp-k { position: absolute; left: 12px; top: 12px; font-size: 12.5px; font-weight: 700; background: rgba(255, 253, 247, 0.94); padding: 5px 10px; border-radius: 9px; }
/* Přepínač Den / Noc v náhledu domu (slunce a měsíc, vlevo nahoře vedle štítku Náhled; vpravo bývá balón) */
.hp-top { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; }
.hp-top .hp-k { position: static; }
.hp-daytime { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(255, 253, 247, 0.94); box-shadow: 0 2px 8px rgba(20, 24, 18, 0.16); }
.hp-daytime button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border: 0; border-radius: 99px; background: transparent; color: var(--text2); font: 700 12.5px Inter, sans-serif; cursor: pointer; }
.hp-daytime button:hover { color: var(--ink); }
.hp-daytime button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.hp-daytime button[data-daytime='den'][aria-pressed='true'] { background: #f4c542; color: #3d2f00; }
.hp-daytime button[data-daytime='noc'][aria-pressed='true'] { background: #1b2440; color: #ffe39a; }
.hp-daytime button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.hp-info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 16px; }
.hp-firm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.hp-firm b { font-size: 17px; font-weight: 800; }
.hp-firm span { font-size: 13px; font-weight: 600; color: var(--muted); }
.hp-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hp-vis { font-size: 22px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.hp-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hp-chips:empty { display: none; }
.hp-chips li { padding: 4px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 700; }
.hp-empty { margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (min-width: 1180px) {
  .hp-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 380px); align-items: start; gap: 24px; }
  .hp-aside { grid-column: 2; grid-row: 1; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
  .hp-main { grid-column: 1; grid-row: 1; }
  .hp-stage canvas { height: clamp(240px, 42vh, 380px); }
}
.stat { padding: 16px; }
.stat-k { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.stat-v { font-size: 24px; font-weight: 800; margin-top: 2px; }
.stat-v.blue { color: var(--blue); }
.stat-t { font-size: 13px; color: var(--muted); margin-top: 2px; }
.vbar { height: 8px; border-radius: 9px; background: var(--blue-soft); margin: 8px 0 4px; overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--blue); border-radius: 9px; transition: width 0.25s; }
.look { padding: 16px; }
.seg2 { display: flex; background: var(--seg); border-radius: 12px; padding: 3px; }
.seg2 label { flex: 1; position: relative; min-height: 40px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font: 700 13.5px Inter, sans-serif; color: var(--text2); cursor: pointer; white-space: nowrap; }
.seg2 input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg2 label:has(input:checked) { background: var(--card); color: var(--ink); }
.seg2 label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 1px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-swatches { margin-top: 8px; }
.hp-color-save { margin-top: 10px; }
.hp-color-save:disabled { opacity: 0.45; cursor: default; }
.hp-color-ok { display: inline-block; margin: 10px 0 0 10px; font: 700 13px Inter, sans-serif; color: var(--green-ink); }
.sa-pos { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--sand, #f3efe4); font-size: 13px; color: var(--text2); }
.sa-pos b { font-size: 17px; font-weight: 800; color: var(--ink); }
.swatch { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.swatch input[type='radio'] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.swatch:has(input:checked), .swatch.custom.on { border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--card); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.swatch.custom { border: 1.5px dashed #b8b09c; background: var(--card); font: 700 20px Inter, sans-serif; color: var(--muted); }
.swatch.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

.levels-sec { margin-top: 28px; padding: 14px; }
.lvl-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.lvl-head h2 { font-size: 18px; font-weight: 800; }
.lvl-now { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--green); }
.lvl-lead { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.levels { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lvl { position: relative; flex: 1; min-width: 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); padding: 6px 6px 8px; text-align: center; }
.lvl.cur { border: 2.5px solid var(--green); background: var(--green-soft); }
.lvl canvas { display: block; width: 100%; height: 150px; }
.lvl-ok { position: absolute; top: 6px; right: 6px; font-size: 13px; color: var(--green); font-weight: 800; }
.lvl-you { position: absolute; top: 6px; right: 6px; font-size: 10.5px; font-weight: 800; background: var(--green); color: #fff; padding: 3px 7px; border-radius: 7px; }
.lvl-name { font-size: 15px; font-weight: 800; }
.lvl-req { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.lvl-tip { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #f3efe4; font-size: 13.5px; color: #3f4a3c; line-height: 1.45; }

.addons-sec, .rewards-sec { margin-top: 28px; }
.add-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.addons-sec h2, .rewards-sec h2 { font-size: 22px; font-weight: 800; }
.rewards-sec h2 { margin-bottom: 4px; }
.add-filter { margin-left: auto; }
.add-lead { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.addon-grid, .reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.addons-sec:has(input[name='addon-filter'][value='vis']:checked) .addon.look,
.addons-sec:has(input[name='addon-filter'][value='look']:checked) .addon.vis { display: none; }
.addon { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.addon-top { display: flex; align-items: center; gap: 12px; }
.addon-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.addon-name { font-size: 15.5px; font-weight: 800; }
.addon-desc { font-size: 12.5px; color: var(--muted); }
.addon-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.addon-tag { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: var(--seg); color: var(--muted); }
.addon-tag.vis { background: var(--blue-soft); color: var(--blue); }
.addon-price { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text2); }
/* Náhled = přepínač (aria-pressed) doplňku na náhledu domu, Koupit = dialog #doplnek. */
.addon-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addon-prev, .addon-buy { min-height: 42px; padding: 0 10px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 14px Inter, sans-serif; }
.addon-prev { border: 1.5px solid var(--line2); background: var(--card); color: var(--ink2); }
.addon-prev:hover { border-color: #c9c0a8; }
.addon-prev[aria-pressed='true'] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.addon-buy { border: none; background: var(--green); color: #fff; }
.addon:has(.addon-prev[aria-pressed='true']) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.tgl { position: relative; flex: none; width: 30px; height: 18px; border-radius: 99px; background: #cfc7b3; transition: background-color 0.15s; }
.tgl::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.addon-prev[aria-pressed='true'] .tgl { background: var(--blue); }
.addon-prev[aria-pressed='true'] .tgl::after { transform: translateX(12px); }
.addon-dlg { width: min(460px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(30, 40, 20, 0.25); overflow-y: auto; }
.addon-dlg::backdrop { background: rgba(20, 28, 18, 0.5); }
body:has(.addon-dlg:modal) { overflow: hidden; }
.addon-dlg-head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 0 16px; }
.addon-dlg-t { flex: 1; min-width: 0; }
.addon-dlg-t h2 { font-size: 19px; font-weight: 800; }
.addon-dlg-t p { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.addon-dlg-x { flex: none; align-self: flex-start; width: 40px; height: 40px; border: none; border-radius: 10px; background: var(--seg); color: var(--ink); font-size: 24px; line-height: 1; }
.addon-dlg-dl { margin: 16px 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.addon-dlg-dl div { padding: 10px 12px; border-radius: 12px; background: #f3efe4; }
.addon-dlg-dl dt { font: 700 11.5px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.addon-dlg-dl dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; }
.addon-dlg-note { margin: 14px 16px 0; padding: 10px 12px; border-radius: 12px; background: #fdf1cf; color: #6b4a00; font-size: 13.5px; line-height: 1.45; }
.addon-dlg-acts { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.addon-dlg-acts .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 640px) {
  .addon-dlg { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tgl, .tgl::after, .hp-stage { transition: none; }
}
.reward { padding: 16px; display: flex; gap: 12px; align-items: center; }
.reward > span { display: flex; flex-direction: column; }
.reward .grow { flex: 1; }
.reward b { font-size: 15px; }
.reward .got { font-size: 13px; color: var(--green); font-weight: 700; }
.reward .not { font-size: 13px; color: var(--muted); }
.pbar { display: block; height: 6px; border-radius: 9px; background: var(--sand); margin-top: 6px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: #c99a1c; }

/* ---- Hodnocení a recenze (detail firmy, administrace) ---- */
.rate-n { font-weight: 600; opacity: 0.8; margin-left: 2px; }
.btn.sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.sec-head .more-btn { margin-left: auto; }
.sources { list-style: none; margin: 0; padding: 4px 18px; }
.src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid #f0eadc; }
.src:first-child { border-top: 0; }
.src-mark { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font: 800 15px Inter, sans-serif; }
.src-mark.vmo { width: auto; padding: 0 7px; background: var(--green-soft); color: var(--green); }
.src-mark.google { background: #fff; border: 1.5px solid var(--line2); color: #1a73e8; }
.src-mark.firmycz { background: #fdeaea; color: #b3261e; }
.src-mark.firmycz.has-img { background: #fff; border: 1.5px solid var(--line2); }
.src-mark img { object-fit: contain; }
.src-name { font-weight: 800; min-width: 72px; }
.src-val { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.src-val b { font-size: 17px; }
.src-n { font-size: 13.5px; color: var(--muted); }
.src-link { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--green); }
.src-link:hover { text-decoration: underline; }
.sources-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.stars { color: #c99a1c; letter-spacing: 1px; white-space: nowrap; }
.stars.md { font-size: 18px; }
.stars.sm { font-size: 14px; }
.rev-filter { margin: 0 0 14px; max-width: 320px; }
.rev-filter a { flex: 1; }
/* Filtr hodnocení v administraci: skupiny čipů s počty, na úzkém displeji každá skupina vodorovně posuvná. */
.rev-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; }
.rf-group { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 0; overflow-x: auto; scrollbar-width: none; }
.rf-group::-webkit-scrollbar { display: none; }
.rf-label { flex: none; margin-right: 2px; font: 700 11.5px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.rf-group .chip { flex: none; min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.rf-group .chip small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.rf-group .chip.on small { color: rgba(255, 255, 255, 0.75); }
.review-list { padding: 4px 18px; }
.review { padding: 16px 0; border-top: 1px solid #f0eadc; scroll-margin-top: 16px; }
.review:first-child { border-top: 0; }
.review.held { opacity: 0.85; }
.review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vlabel { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: var(--seg); color: var(--text2); white-space: nowrap; }
.vlabel.ok { background: var(--green-soft); color: var(--green-ink); }
.vlabel.held { background: #fdf1cf; color: #6b4a00; }
.vlabel.warn { background: #fdebe2; color: #9a3a12; }
.review-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.review-meta b { color: var(--ink); }
.review-held { margin-top: 6px; font-size: 13px; color: #6b4a00; }
.review-text { margin-top: 6px; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.review-reply { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: #f3efe4; font-size: 14px; }
.review-reply-h { font-size: 12.5px; font-weight: 700; color: var(--green-ink); margin-bottom: 2px; }
.review-reply p { white-space: pre-line; overflow-wrap: anywhere; }
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.review-photos a { display: block; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--sand2); }
.review-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.15s; }
.review-photos a:hover img { transform: scale(1.04); }
.review-helpful { margin-top: 10px; }
.helpful-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--text2); }
.helpful-btn:hover { border-color: var(--green); color: var(--green-ink); }
.helpful-btn.on { border-color: var(--green); background: var(--green-soft); color: var(--green-ink); }
.helpful-n { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--sand2); font-size: 12px; text-align: center; }
.helpful-btn.on .helpful-n { background: #fff; }
.review-helpful-n { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
/* Fotka u hodnocení přes celou obrazovku (/js/ui.js, bod 10). */
/* Potvrzení rušící nebo mazací akce (/js/ui.js bod 11, pravidlo UI 10): okno uprostřed, výstražná ikona, Zpět a červené Ano. */
.confirm-dlg { width: min(440px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(20, 24, 18, 0.28); }
.confirm-dlg::backdrop { background: rgba(20, 26, 18, 0.48); }
.confirm-dlg[open] { animation: confirm-in 0.16s ease-out; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.confirm-dlg-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 26px 22px; }
.confirm-dlg-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; background: var(--missing-bg); color: var(--hot); }
.confirm-dlg h2 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.25; }
.confirm-dlg p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text2); }
.confirm-dlg-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; width: 100%; margin-top: 14px; }
@media (max-width: 480px) { .confirm-dlg-acts .btn { flex: 1 1 100%; } .confirm-dlg-acts { flex-direction: column-reverse; } }
@media (prefers-reduced-motion: reduce) { .confirm-dlg[open] { animation: none; } }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 16, 11, 0.92); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(96vw, 1600px); max-height: 88dvh; border-radius: 8px; object-fit: contain; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 28px; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox button[hidden] { display: none; }
/* Fotky ve formuláři hodnocení (review-form.tsx): nahrané jako zaškrtnuté náhledy, výběr dalších. */
.rv-photos { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rv-photos legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.rv-photos input[type='file'] { max-width: 100%; font-size: 14px; color: var(--muted); }
.rv-photos input[type='file']::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--sand); color: var(--ink); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.rv-photos input[type='file']::file-selector-button:hover { background: var(--line2); }
.rv-preview { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rv-preview img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }
.rv-staged { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rv-staged label { position: relative; display: block; width: 84px; cursor: pointer; }
.rv-staged img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; border: 2px solid var(--green); }
.rv-staged input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; accent-color: var(--green); }
.rv-staged input:not(:checked) + img { opacity: 0.4; border-color: var(--line2); }
.office-photo { display: flex; flex-wrap: wrap; gap: 16px; }
.office-photo-img { flex: 0 0 220px; max-width: 100%; }
.office-photo-img img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: var(--sand2); }
.office-photo-body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-staged span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); text-align: center; }
.score-box { padding: 20px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; }
.score-big { min-width: 110px; text-align: center; }
.score-big b { display: block; font-size: 52px; font-weight: 800; line-height: 1; color: var(--green); letter-spacing: -1px; }
.score-big span { font-size: 13px; color: var(--muted); }
.score-txt { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.score-formula { font-size: 13px; color: var(--text2); background: #f3efe4; padding: 8px 10px; border-radius: 10px; }
.score-txt .rev-bars { flex: none; }
.rev-row { grid-template-columns: minmax(110px, 200px) 1fr; }
.house-more { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.house-more:hover { color: var(--ink); text-decoration: underline; }

/* Metodika a vysvětlení */
.doc { max-width: 900px; }
.doc.narrow { max-width: 720px; }
.doc h1 { margin: 10px 0 14px; font-size: 36px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; }
.doc h2 { margin: 32px 0 10px; font-size: 22px; font-weight: 800; }
.doc p { margin: 8px 0; font-size: 15.5px; line-height: 1.55; }
.doc-nav { margin: 0 0 20px; max-width: 520px; }
.doc-nav a { flex: 1; text-align: center; }
.doc-lead p { font-size: 16px; }
.doc-callout { padding: 12px 16px; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); font-weight: 700; }
.doc-formula { font-weight: 800; font-size: 17px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.doc-components { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 14px; margin-top: 14px; }
.doc-comp { padding: 16px 18px; }
.doc-comp-h { display: flex; align-items: baseline; gap: 8px; }
.doc-comp h3 { font-size: 17px; font-weight: 800; }
.doc-weight { margin-left: auto; font-weight: 800; color: var(--blue); }
/* Krátká metodika pro zákazníky (bez čísel): důležitost slovy, štítky ověření, odkaz na podrobný výpočet. */
.doc-imp { margin-left: auto; padding: 3px 9px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.doc-labels { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 0; }
.doc-labels > div { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 4px 14px; align-items: baseline; }
.doc-labels dd { margin: 0; font-size: 14.5px; color: var(--ink2); }
@media (max-width: 600px) { .doc-labels > div { grid-template-columns: 1fr; } }
.doc-more { margin-top: 18px; font-size: 14.5px; color: var(--text2); }
.doc-more a:not(.link-green) { color: var(--green); font-weight: 700; }
.doc-comp .vbar { margin: 8px 0; }
.doc-comp ul, .doc-rules { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.doc-comp li + li, .doc-rules li + li { margin-top: 4px; }
.doc-rules { font-size: 15px; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.doc-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; font-size: 14px; }
.doc-table caption { text-align: left; font-weight: 800; padding: 0 0 6px; }
.doc-table th, .doc-table td { text-align: left; padding: 9px 12px; border-top: 1px solid #f0eadc; vertical-align: top; }
.doc-table thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.doc-table .num { text-align: right; white-space: nowrap; }
.rate-firm { display: flex; align-items: center; gap: 14px; }
.rate-firm h1 { margin: 10px 0; }
.login-box { padding: 20px; margin-top: 12px; }
.login-box h2 { margin: 0 0 6px; font-size: 20px; }
.login-box .nothing-actions { margin-top: 14px; }

/* Administrace: Skóre okolí */
.score-admin { padding: 18px; }
.sa-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.sa-head h2 { font-size: 22px; font-weight: 800; }
.sa-head p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.sa-total { margin-left: auto; text-align: right; }
.sa-total b { display: block; font-size: 40px; font-weight: 800; line-height: 1; color: var(--green); }
.sa-total span { font-size: 12.5px; color: var(--muted); }
.sa-note { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #f3efe4; font-size: 13.5px; color: #3f4a3c; }
.sa-note.warn { background: #fdf1cf; color: #6b4a00; }
.sa-comps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.sa-comp { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fffefa; font-size: 13.5px; }
.sa-comp-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sa-comp-h b { font-size: 15px; }
.sa-weight { font-size: 12px; color: var(--muted); }
.sa-pts { margin-left: auto; font-weight: 800; color: var(--blue); white-space: nowrap; }
.sa-bar { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; }
.sa-pct { font-weight: 700; font-size: 13px; min-width: 42px; text-align: right; }
.sa-comp p { color: var(--ink2); }
.sa-comp ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.sa-expl { margin: 12px 0 0; font-size: 13px; color: var(--text2); }
.sa-expl summary { cursor: pointer; font-weight: 700; color: var(--green); }
.sa-expl ul { margin: 6px 0 0; padding-left: 18px; }
/* Můj dům: graf vývoje a pod ním „Jak si polepšit“ (pod sebou, pokyn majitele 28. 11. 2026). */
.sa-cols { display: flex; flex-direction: column; gap: 24px; margin-top: 18px; }
.sa-cols h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.sa-chart, .sa-tips { min-width: 0; }
.chart { display: block; width: 100%; height: auto; background: #fffefa; border: 1.5px solid var(--line); border-radius: 14px; }
.chart-grid { stroke: #ece5d4; stroke-width: 1; }
.chart-label { fill: var(--muted); font: 600 11px Inter, sans-serif; }
.chart-area { fill: rgba(47, 107, 63, 0.1); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; }
.chart-dot { fill: var(--green); stroke: #fff; stroke-width: 2; }
.chart-value { fill: var(--green-ink); font: 800 13px Inter, sans-serif; }
.chart-empty { font-size: 13.5px; color: var(--muted); }
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tips li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f3efe4; font-size: 13.5px; }
.tips li span { flex: 1; }
.tips small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.tip-gain { flex: none; color: var(--green); font-weight: 800; white-space: nowrap; }
.tips-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
/* Jak si polepšit: editory dokladů, telefonu a fotek u tipů (views/improvements.tsx) */
.imp-box { display: flex; flex-direction: column; gap: 8px; }
.imp-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.imp-form.imp-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.imp-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.imp-f input { min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font: 500 14px Inter, sans-serif; color: var(--ink); }
.imp-f input[type="file"] { padding: 8px; min-height: 0; }
.imp-form .btn, .imp-box > .btn { align-self: flex-start; }
.imp-inline { margin: 0; }
.imp-state { margin: 0; font-size: 13px; font-weight: 600; }
.imp-state a { color: var(--green); font-weight: 700; }
.imp-ok { color: var(--green-ink); }
.imp-wait { color: #8a5a12; }
.imp-bad { color: #9a3a12; }
.imp-note { margin: 0; font-size: 13px; color: var(--text2); }
.imp-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--green); }
.imp-progress { display: flex; align-items: center; gap: 10px; }
.imp-progress .bar { flex: 1; height: 8px; border-radius: 4px; background: #e4dfd2; overflow: hidden; }
.imp-progress .bar i { display: block; height: 100%; background: var(--green); }
/* Jak si polepšit: rozbalovací položky (fajfka = splněno, prázdné kolečko = body navíc), improvements.tsx */
.imp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.imp-item > details { border-radius: 12px; background: #f3efe4; font-size: 13.5px; }
.imp-item.is-done > details { background: var(--green-soft); }
.imp-item summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; border-radius: 12px; }
.imp-item summary::-webkit-details-marker { display: none; }
.imp-item summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.imp-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9c2b0; background: #fff; color: #fff; }
.is-done .imp-mark { border-color: var(--green); background: var(--green); }
.is-wait .imp-mark { border-color: #d9a441; border-style: dashed; }
.imp-t { flex: 1; min-width: 0; font-weight: 600; }
.imp-t small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.imp-st { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.is-done .imp-st { color: var(--green-ink); }
.is-wait .imp-st { color: #8a5a12; }
.imp-chev { flex: none; display: grid; color: var(--muted); transition: transform 0.15s; }
.imp-item details[open] > summary .imp-chev { transform: rotate(180deg); }
.imp-body { padding: 0 12px 12px 44px; }
.imp-body > .btn { align-self: flex-start; }
@media (max-width: 640px) { .imp-body { padding-left: 12px; } }
/* Správa: doklady ke schválení */
.office-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.office-thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--sand2); }
.office-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.office-date input { min-height: 36px; padding: 0 8px; border: 1.5px solid var(--line2); border-radius: 8px; }
.score-admin > .link-green { margin-top: 14px; }

/* Administrace: zdroje hodnocení a odpovědi */
.ratings-sec { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.conn { padding: 16px 18px; }
.conn h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.conn ul { list-style: none; margin: 0; padding: 0; }
.conn li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-top: 1px solid #f0eadc; font-size: 13.5px; }
.conn li:first-child { border-top: 0; }
.conn li b { min-width: 72px; font-size: 15px; }
.conn-t { flex: 1 1 320px; color: var(--text2); }
.conn-t a { color: var(--green); font-weight: 700; }
.conn-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.add-count { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.add-lead a { color: var(--green); font-weight: 700; }
.notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.notice.ok { background: var(--green-soft); color: var(--green-ink); }
.notice.err { background: #fdebe2; color: #9a3a12; }
.notice a { text-decoration: underline; }
/* Hodnocení čekající na potvrzení firmou (administrace, bez hvězdiček a textu) a potvrzení u zveřejněného. */
.rv-pending { margin: 0 0 16px; padding: 16px 18px; border-color: #b9d3c0; background: #f4f9f1; }
.rv-pending h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.rv-pending-note { margin: 0 0 10px; font-size: 13.5px; color: var(--text2); }
.rv-pending ul { list-style: none; margin: 0; padding: 0; }
.rv-pending li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rv-pending-who { display: flex; flex-direction: column; }
.rv-pending-who small { font-size: 13px; color: var(--muted); }
.rv-pending-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm-form { margin-top: 10px; }
.reply-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.reply-form label { font-size: 13px; font-weight: 700; color: var(--text2); }
.reply-form textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: 400 14.5px/1.45 Inter, sans-serif; resize: vertical; }
.reply-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.reply-form textarea[aria-invalid] { border-color: #c62828; }
.reply-form .btn { align-self: flex-start; }
.field-err { font-size: 13px; color: #b3261e; font-weight: 600; }
.reply-edit { margin-top: 8px; }
.reply-edit summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--green); }

/* ---- Chat zákazníka s firmou (detail firmy a nabídky) ---- */
[hidden] { display: none !important; }
/* Sloupec chatů vpravo dole: bubliny rozpracovaných chatů a pod nimi tlačítko „Napsat firmě“. */
.chat-dock { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.chat-dock > *, .chat-bubbles > * { pointer-events: auto; }
.chat-bubbles { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.chat-bubbles:empty { display: none; }
.chat-bubble { position: relative; width: 56px; height: 56px; padding: 0; border: 2.5px solid #fff; border-radius: 50%; background: var(--card); box-shadow: 0 6px 18px rgba(20, 24, 18, 0.28); cursor: pointer; }
.chat-bubble:hover { transform: translateY(-1px); }
.chat-bubble:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.chat.is-open .chat-bubble { border-color: var(--green); }
.chat-bubble-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; font: 800 20px Inter, sans-serif; color: #fff; }
.chat-bubble-logo.has-img { background: #fff; }
.chat-bubble-logo img { width: 100%; height: 100%; object-fit: contain; }
.chat-bubble .chat-fab-n { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px #fff; }
.chat-fab { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border: none; border-radius: 99px; background: var(--green); color: #fff; font: 700 15px Inter, sans-serif; box-shadow: 0 6px 18px rgba(20, 24, 18, 0.28); cursor: pointer; }
.chat-fab[hidden] { display: none; }
#chat:not(.chat-dock #chat) .chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; }
.chat-fab:hover { background: #285c36; }
.chat.is-open .chat-fab { display: none; }
.chat-fab-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--yellow); color: #2b2100; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.chat-fab-n[hidden] { display: none; }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 41; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; box-shadow: 0 18px 50px rgba(20, 24, 18, 0.3); overflow: hidden; }
.chat-panel[hidden] { display: none; }
/* Vedle bublin, ať jde mezi chaty přepínat (jako na Facebooku). */
.chat-dock.has-bubbles .chat-panel { right: 92px; }
.chat-head-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; font: 800 14px Inter, sans-serif; color: #fff; }
.chat-head-logo.has-img { background: #fff; }
.chat-head-logo img { width: 100%; height: 100%; object-fit: contain; }
.chat-end { flex: none; min-height: 32px; padding: 0 10px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 9px; background: none; color: #fff; font: 700 12.5px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.chat-end:hover { background: rgba(255, 255, 255, 0.14); }
.chat-end[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--green-dark); color: var(--cream); }
.chat-head .flogo { border: 2px solid var(--cream); }
.chat-head-t { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head p { font-size: 12.5px; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-x { flex: none; width: 40px; height: 40px; border: none; border-radius: 10px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 24px; line-height: 1; }
.chat-intro { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; font-size: 14px; }
.chat-intro label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; }
.chat-intro input { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 12px; font: 500 15px Inter, sans-serif; background: #fff; }
.chat-fine { font-size: 12px; color: var(--muted); }
.chat-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: #fbf8f0; }
.chat-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; align-self: flex-start; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-text { padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.4; }
.msg.mine .msg-text { background: var(--green); border-color: var(--green); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg time { padding: 0 4px; font-size: 11px; color: var(--muted); }
.chat-empty { margin: auto 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.chat-seen { align-self: flex-end; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.chat-older { align-self: center; min-height: 34px; padding: 0 14px; border: 1.5px solid var(--line2); border-radius: 99px; background: #fff; display: inline-flex; align-items: center; font: 600 12.5px Inter, sans-serif; color: var(--ink2); }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 4px; border-top: 1px solid var(--line); }
.chat-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 14px; background: #fff; font: 400 14.5px/1.4 Inter, sans-serif; resize: vertical; }
.chat-compose textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.chat-send { flex: none; width: 44px; height: 44px; border: none; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.chat-send:disabled, .chat-intro button:disabled { opacity: 0.6; }
.chat-hint { padding: 2px 14px 10px; font-size: 11.5px; color: var(--muted); }
.chat-err { margin: 0 12px 10px; padding: 8px 12px; border-radius: 10px; background: #fdebe2; color: #9a3a12; font-size: 13px; font-weight: 600; }

/* ---- Administrace: horní lišta, odznak, toasty, zprávy ---- */
.admin-body { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.admin-body > .admin-main { flex: 1 0 auto; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; padding: 12px 32px; background: #fff; border-bottom: 1px solid var(--hdr-line); }
.bell { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 1.5px solid #e3e0d8; font-weight: 700; font-size: 14px; }
.bell:hover { border-color: #c9c0a8; }
.unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--hot); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.side a .unread { margin-left: auto; }
/* Přepínač „Přijímám / Nepřijímám poptávky“ v horní liště administrace. */
.req-switch { position: relative; margin-right: auto; font: 700 14px Inter, sans-serif; }
.req-switch summary, .req-state { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; cursor: pointer; list-style: none; }
.req-switch summary::-webkit-details-marker { display: none; }
.req-switch.on summary { background: var(--green-soft); color: var(--green-ink); border: 1.5px solid var(--green); }
.req-switch.off { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.req-state { background: #f3dcd6; color: #8a2a1d; border: 1.5px solid #c2543f; cursor: default; }
.req-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.req-form { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(340px, 86vw); display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line2); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(20, 24, 18, 0.16); font-weight: 500; }
.req-form p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text2); }
.req-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.req-form input[type='datetime-local'] { min-height: 42px; padding: 0 10px; border: 1.5px solid var(--line2); border-radius: 10px; font: 600 14.5px Inter, sans-serif; }
.req-form small { font-size: 12.5px; color: var(--muted); }
.req-off { background: #a83a26; color: #fff; border-color: #a83a26; }
.notify { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--green-dark); color: var(--cream); box-shadow: 0 12px 30px rgba(20, 40, 27, 0.3); font-size: 13.5px; animation: toast-in 0.25s ease-out; }
.toast b { font-size: 14px; }
.toast span { opacity: 0.9; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
.conv-list { list-style: none; margin: 20px 0 0; padding: 0; overflow: hidden; }
.conv { display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid #f0eadc; }
.conv:first-child { border-top: 0; }
.conv-link { flex: 1 1 360px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.conv-link:hover { background: #fbf8f0; }
.conv-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--seg); color: var(--green-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.conv-avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.conv-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.conv-name { font-size: 15.5px; }
.conv-src { font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 2px 8px; border-radius: 7px; }
.conv-time { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.conv-last { font-size: 14px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.is-unread .conv-last { color: var(--ink); font-weight: 600; }
.conv-you { color: var(--muted); font-weight: 400; }
.conv-n { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--hot); color: #fff; font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.conv-contact { flex: none; padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--green); }
.conv-contact:hover { text-decoration: underline; }
.admin-main .back { display: inline-block; margin-bottom: 14px; font-weight: 700; font-size: 14px; color: var(--green); }
.conv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.conv-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; }
.conv-head p { margin-top: 2px; font-size: 14px; color: var(--text2); }
.conv-head a { color: var(--green); font-weight: 700; }
.fchat { display: flex; flex-direction: column; overflow: hidden; }
.fchat-log { flex: none; min-height: 280px; max-height: min(62vh, 640px); }
.fchat-compose { padding: 12px; }
.fchat-compose .btn { flex: none; }

/* ---- 404 ---- */
/* Chybová stránka (404 i 500, views/ErrorPage.tsx) */
.error-page { max-width: 560px; padding-top: 72px; padding-bottom: 104px; text-align: center; }
.error-ico { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin-bottom: 20px; border-radius: 50%; background: var(--seg); }
.error-page h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; }
.error-page p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--text2); }
.error-page .error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

@media (min-width: 901px) {
  .filters-chev { display: none; }
  .filters-box[open] summary { cursor: default; }
  /* Levé menu administrace zůstává při scrollu vidět. */
  .side { position: sticky; top: 0; align-self: flex-start; box-sizing: border-box; height: 100vh; overflow-y: auto; }
}

/* ---- Užší obrazovky: sloupce pod sebe ---- */
@media (max-width: 900px) {
  .filters { max-width: none; flex-basis: 100%; }
  .col-side { max-width: none; }
  .buy { max-width: none; }
  .side { max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 16px; }
  .side .side-logo { padding: 0 12px 0 0; }
  .side-firm { padding: 0 12px 0 0; }
  .side .side-profile { margin-top: 0; margin-left: auto; }
  .side-svc { flex-direction: row; flex-wrap: wrap; align-items: flex-end; flex-basis: 100%; padding: 4px 0; }
  .side-svc-f { flex: 1 1 200px; }
  .side-btn { width: auto; }
  .side a.side-sub { margin-left: 0; }
  .side-sep { margin: 4px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hdr-in { gap: 10px 12px; min-height: 0; }
  .hdr-link { display: none; }
  .hdr-search { flex-basis: 100%; order: 3; }
  .hdr-nav { flex-basis: 100%; order: 3; margin: -6px -10px 0; gap: 2px; }
  .hdr-nav a { padding: 10px; }
  .hdr-end { gap: 8px; }
  .loc { min-height: 38px; padding: 0 10px; font-size: 13px; }
  .hero-in { gap: 28px; padding-top: 28px; padding-bottom: 28px; }
  .hero h1 { font-size: 28px; }
  .fld { flex-basis: 100%; }
  .fld + .fld { border-left: 0; border-top: 1px solid #ece9e1; }
  .hero-submit { flex: 1 1 100%; min-height: 54px; }
  .watch { padding: 20px; }
  .sec { padding-top: 36px; padding-bottom: 36px; }
  .sec-head h2, .band-head h2 { font-size: 24px; }
  .tabs { margin-left: 0; }
  .band { padding: 32px 0 36px; }
  .promo-text { padding: 24px; }
  .promo-text h2 { font-size: 28px; }
  .city-map.promo-map, .city-map.promo-map canvas { min-height: 300px; }
  .page-title h1, .firm-name h1, .offer-title { font-size: 28px; }
  .segmented { margin-left: 0; width: 100%; }
  .segmented a { flex: 1; }
  .city-map canvas { height: 340px; }
  .src-link { margin-left: 0; flex-basis: 100%; }
  .doc h1 { font-size: 28px; }
  .sa-total { margin-left: 0; text-align: left; }
  .map-btns { bottom: auto; top: 288px; flex-direction: row; }
  .row-ph { flex: 1 1 100%; min-height: 160px; }
  .sorted, .sort-form { margin-left: 0; }
  .cover { height: 160px; }
  .firm-logo-xl { width: 88px; height: 88px; border-radius: 22px; }
  .svc-ph { width: 72px; height: 72px; }
  .offer-hero { height: 240px; }
  .pstack.xl b { font-size: 32px; }
  .admin-main { padding: 20px 16px 40px; }
  .admin-note { margin-left: 0; }
  .add-filter { margin-left: 0; width: 100%; }
  .rf-group { flex-basis: 100%; }
  .seg2 label { padding: 0 8px; white-space: normal; text-align: center; line-height: 1.2; }
  .lvl canvas { height: 110px; }
  .ftr-note { margin-left: 0; }
  .chat-panel, .chat-dock.has-bubbles .chat-panel { right: 0; bottom: 0; width: 100%; height: min(88dvh, 640px); border-radius: 20px 20px 0 0; }
  .chat-dock { right: 16px; bottom: 16px; }
  .chat-bubble { width: 50px; height: 50px; }
  .admin-bar { padding: 10px 16px; justify-content: flex-start; }
  .conv-contact { flex-basis: 100%; padding: 0 16px 12px 72px; }
  .msg { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  .fl, .rp, .blip { animation: none; }
  .rp { opacity: 0.25; }
}
/* Štítky a loga přes fotku nepřekáží odkazu karty */
.b-off, .b-left, .b-pick, .deal-logo, .pick-logo, .row-logo { pointer-events: none; }

/* ---- Načítání (public/js/ui.js) ---- */
/* Tlačítko během akce: zablokované, spinner uprostřed barvou textu (--spin nastaví skript), text schovaný. */
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading > * { visibility: hidden; }
.is-loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 1.15em; height: 1.15em; border: 2px solid var(--spin, var(--ink)); border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
/* Výměna výsledků bez obnovení stránky: starý obsah zůstane vidět, jen zprůhlední (s krátkým zpožděním, ať rychlá odpověď nebliká). */
.is-dimmed { opacity: 0.45; transition: opacity 0.2s ease 0.12s; }
.swap-spin { position: fixed; z-index: 60; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--card); box-shadow: 0 6px 20px rgba(30, 40, 20, 0.18); pointer-events: none; animation: swap-in 0.2s ease 0.12s both; }
.swap-spin::after { content: ''; position: absolute; inset: 11px; border: 3px solid var(--green); border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
/* Výměna oblasti selhala (spojení, chyba serveru): hláška dole na obrazovce, obsah zůstává (/js/ui.js) */
.swap-error { position: fixed; z-index: 61; left: 50%; bottom: 20px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(30, 40, 20, 0.25); }
.swap-error p { flex: 1 1 220px; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.swap-error .btn.sand { background: rgba(255, 255, 255, 0.14); color: #fff; }
.swap-error-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.swap-error-x:hover { background: rgba(255, 255, 255, 0.12); }
/* Mapa okolí se nenakreslila (nenačetl se skript nebo chyba při kreslení): náhradní text místo prázdného plátna */
.map-fallback { display: none; }
.city-map.map-failed canvas, .city-map.map-failed .map-btns, .city-map.map-failed .map-all, .city-map.map-failed .map-legend { visibility: hidden; }
.city-map.map-failed .map-fallback { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; margin: 0; padding: 24px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink2); background: var(--cream); }
[data-swap], [data-swap-top], .city-map { scroll-margin-top: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swap-in { from { opacity: 0; transform: scale(0.85); } }

/* ---- Dotazník po poptávce a odkazy z e-mailů (web/views/EmailPages.tsx) ---- */
.q-form { display: flex; flex-direction: column; gap: 14px; padding: 20px; margin-top: 12px; }
.stars-input { border: 0; margin: 0; padding: 0; min-width: 0; }
.stars-input legend { padding: 0; margin-bottom: 6px; font-weight: 700; }
/* Pořadí 5…1 v HTML a row-reverse: vybraná hvězdička obarví i ty vlevo od sebe (bez JS). */
.stars-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-row input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.stars-row label { padding: 2px 3px; font-size: 38px; line-height: 1; color: var(--line2); cursor: pointer; border-radius: 8px; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: var(--star); }
.stars-row input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.q-text { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.q-text textarea { width: 100%; min-height: 96px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: 400 15px/1.45 Inter, sans-serif; resize: vertical; }
.q-text textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.q-form .btn { align-self: flex-start; }
.q-note { font-size: 13px; color: var(--muted); }
.q-no { margin-top: 14px; }

/* ---- Poptávka: dialog na detailu firmy a nabídky, stránky bez JS, administrace (web/views/inquiry.tsx) ---- */
.actions-note { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; background: var(--seg); color: var(--text2); font-weight: 700; font-size: 14px; }
.buy-off { margin-top: 20px; padding: 12px 14px; border-radius: 14px; background: var(--seg); color: var(--text2); font-weight: 700; font-size: 14px; text-align: center; }
.inq-dlg { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(30, 40, 20, 0.25); overflow-y: auto; overscroll-behavior: contain; }
.inq-dlg::backdrop { background: rgba(20, 28, 18, 0.5); }
body:has(.inq-dlg:modal) { overflow: hidden; }
.inq-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--green-dark); color: var(--cream); }
.inq-head .flogo { border: 2px solid var(--cream); }
.inq-head-t { flex: 1; min-width: 0; }
.inq-head h2 { font-size: 18px; font-weight: 800; }
.inq-head p { font-size: 13px; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-x { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.inq-form { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.inq-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; font-weight: 700; }
.inq-f small { font-weight: 500; color: var(--muted); }
.inq-f input, .inq-f select, .inq-f textarea { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 12px; background-color: #fff; font: 500 15px Inter, sans-serif; color: var(--ink); }
.inq-f textarea { min-height: 104px; padding: 10px 12px; font-weight: 400; line-height: 1.45; resize: vertical; }
.inq-f select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231f281d' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.inq-f input:focus, .inq-f select:focus, .inq-f textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.inq-f [aria-invalid='true'] { border-color: #c62828; }
.inq-hint { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.inq-when { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.inq-when legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.inq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inq-chips label { position: relative; flex: 1 0 auto; min-height: 46px; padding: 5px 12px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; font: 600 13.5px/1.2 Inter, sans-serif; color: var(--ink2); text-align: center; cursor: pointer; }
.inq-chips small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.inq-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.inq-chips label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.inq-chips label:has(input:checked) small { color: rgba(255, 255, 255, 0.8); }
.inq-chips label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Pole data jen u volby Konkrétní datum (prohlížeč bez :has ho ukáže vždy). */
.inq-when:not(:has(input[value='DATE']:checked)) .inq-date { display: none; }
.inq-date { max-width: 240px; }
.inq-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.inq-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.inq-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }
.inq-form .notice { margin: 0; }
.inq-form .btn { align-self: flex-start; }
.inq-fine { margin-top: -6px; font-size: 12.5px; color: var(--muted); }
.inq-done { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; font-size: 15px; }
.inq-done h3 { font-size: 22px; font-weight: 800; }
.inq-done h3:focus { outline: none; }
.inq-k { margin-top: 6px; font: 700 12px Inter, sans-serif; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.inq-contact { display: flex; flex-direction: column; gap: 8px; }
.inq-contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.inq-off { padding: 22px 18px; font-size: 15px; }
.inq-card { margin-top: 12px; overflow: hidden; }
/* Bez JS: dialog se ukáže na místě z odkazu #poptat (s JS ho jako modální otevírá /js/inquiry.js). */
@media (scripting: none) {
  .inq-dlg:target { display: block; position: static; width: auto; max-width: 640px; max-height: none; margin: 32px 0 0; box-shadow: none; overflow: visible; }
  .inq-dlg:target .inq-head { position: static; }
}
/* Administrace: seznam a detail poptávek */
.inq-list { list-style: none; margin: 20px 0 0; padding: 0; overflow: hidden; }
.inq-item { display: flex; flex-wrap: wrap; border-top: 1px solid #f0eadc; }
.inq-item:first-child { border-top: 0; }
.inq-link { flex: 1 1 420px; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.inq-link:hover { background: #fbf8f0; }
.inq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inq-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.inq-new { font-size: 11.5px; font-weight: 800; color: #fff; background: var(--hot); padding: 2px 8px; border-radius: 99px; }
.inq-term { font-size: 13px; font-weight: 600; color: var(--text2); }
.inq-text { font-size: 14px; color: var(--ink2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.inq-item.is-new .inq-text { color: var(--ink); font-weight: 600; }
.inq-side { flex: 0 1 260px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
.inq-contacts { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; }
.inq-contacts.inline { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.inq-contacts a { color: var(--green); overflow-wrap: anywhere; }
.inq-contacts a:hover { text-decoration: underline; }
.inq-detail { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.inq-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px 20px; }
.inq-dl dt { font: 700 11.5px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.inq-dl dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.inq-dl a { color: var(--green); }
.inq-full { padding: 14px 16px; border-radius: 14px; background: #f3efe4; font-size: 15.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .inq-dlg { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .inq-form .btn { align-self: stretch; justify-content: center; }
  .inq-side { padding: 0 16px 14px 72px; }
}

/* ---- Poloha: tlačítko v hlavičce a dialog (web/views/location.tsx, public/js/location.js) ---- */
button.loc { max-width: 280px; color: var(--ink); font: 600 14px Inter, sans-serif; cursor: pointer; }
button.loc:hover { border-color: var(--line2); background: #fbfaf5; }
.loc svg { flex: none; }
.loc-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.loc-dlg { width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(30, 40, 20, 0.25); overflow-y: auto; overscroll-behavior: contain; }
.loc-dlg::backdrop { background: rgba(20, 28, 18, 0.5); }
body:has(.loc-dlg:modal) { overflow: hidden; }
.loc-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; background: var(--green-dark); color: var(--cream); }
/* Nadpis dialogu je <p>, ne <h2>: dialog je v hlavičce před obsahem stránky (SEO, osnova nadpisů). */
.loc-head .loc-title { flex: 1; font-size: 18px; font-weight: 800; }
.loc-x { flex: none; width: 40px; height: 40px; border: none; border-radius: 10px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.loc-body { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.loc-lead { font-size: 14px; color: var(--text2); }
.loc-gps { justify-content: center; }
.loc-body .notice { margin: 0; }
.loc-or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.loc-or::before, .loc-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.loc-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.loc-box { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font-weight: 500; }
.loc-box svg { flex: none; }
.loc-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.15); }
.loc-box input { flex: 1; min-width: 0; min-height: 44px; border: none; outline: none; background: transparent; font: 500 15px Inter, sans-serif; }
.loc-hint { margin-top: -6px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.loc-hint:empty { display: none; }
.loc-hint.is-error { color: #9a3a12; font-weight: 600; }
.loc-hint.is-busy::before { content: ''; flex: none; width: 13px; height: 13px; border: 2px solid var(--green); border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.loc-skel { display: flex; flex-direction: column; gap: 6px; }
.loc-skel span { display: block; height: 52px; border-radius: 12px; background: linear-gradient(100deg, var(--sand2) 30%, #f7f2e6 50%, var(--sand2) 70%) 100% 0 / 300% 100%; animation: loc-shimmer 1.5s ease-in-out infinite; }
@keyframes loc-shimmer { to { background-position: 0 0; } }
.loc-results { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.loc-results button { position: relative; width: 100%; display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 10px 12px; border: none; border-radius: 12px; background: transparent; text-align: left; }
.loc-results button:hover { background: var(--green-soft); }
.loc-results svg { flex: none; margin-top: 1px; }
.loc-results b { display: block; font-size: 14.5px; font-weight: 700; }
.loc-results small { display: block; font-size: 13px; color: var(--muted); }
.loc-now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text2); }
.loc-now > span { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.loc-now b { color: var(--ink); }
/* Nápověda u filtru Vzdálenost od mě bez zvolené polohy */
.fhint { margin: -4px 0 8px; font-size: 12.5px; color: var(--muted); }
.fhint button { padding: 0; border: none; background: none; color: var(--green); font: 700 12.5px Inter, sans-serif; text-decoration: underline; }
@media (max-width: 640px) {
  button.loc { max-width: 180px; font-size: 13px; }
  .loc-dlg { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-skel span { animation: none; }
}

/* ---- Stránka kategorie: úvod z dat, fakta, průvodce a časté otázky (SEO a GEO) ---- */
.cat-lead { max-width: 860px; margin: -6px 0 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink2); }
.cat-asof { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
/* Průvodce pod výpisem kategorie je část stránky výpisu: plná šířka, jen typografie z .doc. */
.cat-guide { padding-top: 0; }
.doc.cat-guide { max-width: none; }
.cat-guide section:first-child h2 { margin-top: 8px; }
.cat-facts { max-width: 640px; }
.cat-facts th { width: 50%; font-weight: 600; color: var(--text2); }
.cat-note { color: var(--muted); font-size: 13.5px !important; }
.cat-faq .faq-item { margin-top: 14px; }
.cat-faq h3 { font-size: 17px; font-weight: 800; }
.cat-faq .faq-item p { margin-top: 4px; }
.cat-related ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.cat-rank { margin-top: 28px !important; color: var(--text2); }

/* ---- Detail firmy: drobečky a shrnutí jednou větou ---- */
.firm-crumbs { padding-top: 12px; padding-bottom: 10px; }
.firm-summary { margin-top: 12px; max-width: 860px; font-size: 15px; line-height: 1.55; color: var(--text2); }

/* ---- Přihlášení, Můj účet, hodnocení a převzetí firmy (web/views/AuthPages.tsx, account.tsx, claim.tsx) ---- */
.auth-page { max-width: 560px; }
/* Rozcestník přihlášení: dvě stejně výrazné karty vedle sebe (Za zákazníka, Za firmu). */
.auth-choice { max-width: 1000px; }
.auth-choice > h1 { margin: 12px 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.7px; line-height: 1.15; }
.auth-choice > .auth-lead { margin: 0 0 6px; }
.auth-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.auth-choice-card h2 { font-size: 26px; letter-spacing: -0.5px; }
.auth-choice-card .auth-foot { margin-top: auto; }
.auth-choice-card .field-err { margin: 0; }
@media (max-width: 760px) {
  .auth-choice-grid { grid-template-columns: 1fr; }
}
.auth-card { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; padding: 28px; }
.auth-card h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.15; }
.auth-card h2 { margin: 0; font-size: 20px; font-weight: 800; }
.auth-card p { margin: 0; }
.auth-card .notice { margin: 0; }
.auth-kind { align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green-ink); font: 700 12px Inter, sans-serif; letter-spacing: 0.6px; text-transform: uppercase; }
.auth-lead { font-size: 15px; line-height: 1.5; color: var(--text2); }
.auth-step { display: flex; flex-direction: column; gap: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; font-weight: 700; }
.auth-f input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: 500 16px Inter, sans-serif; color: var(--ink); }
.auth-f input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.auth-f input[aria-invalid='true'] { border-color: #c62828; }
.auth-f input.code-in { max-width: 240px; font: 700 24px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 6px; text-align: center; }
.auth-f input.code-in::placeholder { font: 500 16px Inter, sans-serif; letter-spacing: 0; }
.auth-btn { align-self: flex-start; justify-content: center; }
.auth-fine { font-size: 13px; color: var(--muted); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0; font-size: 14px; font-weight: 600; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-google { min-height: 44px; }
.auth-again, .auth-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.auth-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--text2); }

/* Menu účtu v hlavičce (views/AccountMenu.tsx) */
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; max-width: 220px; min-height: 42px; padding: 0 14px 0 5px; border-radius: 99px; border: 1.5px solid #e3e0d8; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.acct-btn::-webkit-details-marker { display: none; }
.acct-btn::after { content: ''; flex: none; width: 7px; height: 7px; margin: 0 2px 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.acct[open] .acct-btn::after { margin-bottom: -2px; transform: rotate(-135deg); }
.acct-btn:hover { border-color: #c9c0a8; }
.acct-ini { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.acct-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 290px; max-width: calc(100vw - 32px); padding: 6px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 16px 40px rgba(30, 40, 20, 0.18); }
.acct-sec { padding: 8px; }
.acct-sec + .acct-sec { border-top: 1px solid var(--line); }
.acct-k { display: flex; align-items: center; gap: 7px; padding: 2px 8px 6px; font: 700 11px Inter, sans-serif; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.acct-link { display: flex; flex-direction: column; min-width: 0; padding: 8px; border-radius: 10px; font-size: 14px; }
.acct-link:hover { background: var(--bg); }
.acct-link b, .acct-link small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-link small { font-size: 12.5px; color: var(--muted); }
.acct-out { width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; font-size: 13.5px; font-weight: 600; color: var(--hot-ink); text-align: left; }
.acct-out:hover { background: #fdebe2; }

/* Můj účet (/ucet) */
.acc-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin: 10px 0 18px; }
.acc-head h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; }
.acc-sub { font-weight: 600; color: var(--text2); overflow-wrap: anywhere; }
.acc-logout { margin-left: auto; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; align-items: start; }
.acc-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; }
.acc-sec h2 { font-size: 18px; font-weight: 800; }
.acc-sec .notice { margin: 0; }
.acc-inline { display: flex; align-items: flex-end; gap: 8px; }
.acc-inline .auth-f { flex: 1; }
.acc-inline .btn { min-height: 48px; }
.acc-val { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; overflow-wrap: anywhere; }
.acc-fine { font-size: 13px; line-height: 1.45; color: var(--muted); }
.acc-list-sec { margin-top: 32px; }
.acc-list { list-style: none; margin: 0; padding: 0 18px; }
.acc-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid #f0eadc; }
.acc-item:first-child { border-top: 0; }
.acc-item-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.acc-item-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.acc-item-h a:hover b { text-decoration: underline; }
.acc-text { font-size: 14.5px; line-height: 1.45; color: var(--ink2); white-space: pre-line; overflow-wrap: anywhere; }
.acc-meta { font-size: 13px; color: var(--muted); }
.acc-note { margin: 6px 0 0; font-size: 13px; color: var(--text2); }
.acc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.acc-edit { margin-left: auto; font-size: 13.5px; }
.phone-v .auth-step { gap: 12px; }

/* Převzetí profilu firmy (/moje-firma/prevzit) a „Je to vaše firma?“ na detailu firmy */
.claim-card { gap: 16px; }
.claim-k { font: 700 12px Inter, sans-serif; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.claim-ares { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); font-size: 14.5px; overflow-wrap: anywhere; }
.claim-ares-k { font: 700 11px Inter, sans-serif; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.85; }
.claim-ares b { font-size: 17px; color: var(--ink); }
.claim-ch { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.claim-ch legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.claim-opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line2); border-radius: 14px; background: #fff; cursor: pointer; }
.claim-opt:has(> input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.12); }
.claim-opt > input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.claim-opt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text2); }
.claim-opt-t b { font-size: 15px; color: var(--ink); }
.claim-email { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.claim-email input { flex: 1 1 120px; min-width: 0; max-width: 220px; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 10px; font: 500 15px Inter, sans-serif; }
.claim-email input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.claim-email span { overflow-wrap: anywhere; }
.claim-blocked { display: flex; flex-direction: column; gap: 10px; }
.claim-search { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.claim-search .auth-f { flex: 1 1 240px; }
.claim-results { list-style: none; margin: 12px 0 0; padding: 4px 16px; }
.claim-results li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f0eadc; }
.claim-results li:first-child { border-top: 0; }
.claim-results li > b { flex: 1; min-width: 0; }
.claim-res-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.claim-res-t small { font-size: 13px; color: var(--muted); }
.claim-mine .claim-results { margin: 0; padding: 0; }
.claim-new { margin-top: 16px !important; }
.claim-cta { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 16px 18px; font-size: 14px; line-height: 1.45; color: var(--text2); }
.claim-cta b { font-size: 15px; color: var(--green); }
.claim-cta:hover { border-color: var(--line2); }

/* Administrace: přepínač firem účtu a odhlášení firmy (views/AdminShell.tsx) */
.side-out-f { margin: 0; }
.side .side-out, .side-out { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: #d9e3d4; font-size: 13.5px; font-weight: 600; text-align: left; }
.side-out:hover { background: rgba(255, 255, 255, 0.07); }

@media (max-width: 640px) {
  .acct-t { display: none; }
  .acct-btn { padding-right: 10px; }
  .auth-card { padding: 20px; }
  .auth-card h1, .acc-head h1 { font-size: 28px; }
  .acc-logout { margin-left: 0; }
  .side-out-f { width: auto; }
}

/* ---- Hot deal bez fotky: text služby na barvě firmy s logem (components.tsx DealVisual, stejně v mobilu) ---- */
.dv { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 20px; overflow: hidden; text-align: left; }
.dv::before { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: currentColor; opacity: 0.08; }
.dv-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 2px solid currentColor; font: 800 19px Inter, sans-serif; }
.dv-logo.has-img { border: 0; background: #fff; padding: 3px; }
.dv-logo img { width: 100%; height: 100%; object-fit: contain; }
.dv-t { font: 800 17px/1.3 Inter, sans-serif; letter-spacing: -0.2px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dv-d { font: 500 13.5px/1.4 Inter, sans-serif; opacity: 0.92; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dv-sm .dv-d { font-size: 12.5px; -webkit-line-clamp: 2; }
.dv-lg .dv-d { font-size: 18px; -webkit-line-clamp: 4; }
.dv-f { font-size: 12.5px; font-weight: 700; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.dv-sm { gap: 6px; padding: 14px 16px; }
.dv-sm .dv-t { font-size: 15px; -webkit-line-clamp: 3; }
.dv-sm .dv-logo { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
.dv-lg { padding: 40px 48px; gap: 14px; }
.dv-lg .dv-t { font-size: 30px; -webkit-line-clamp: 3; letter-spacing: -0.5px; }
.dv-lg .dv-logo { width: 64px; height: 64px; font-size: 26px; border-radius: 16px; }
.deal-ph .dv { padding-bottom: 30px; }

/* ---- Registrace firmy a přihlášení přes IČO (views/registration.tsx, IcoLogin v AuthPages.tsx) ---- */
.hdr-add { border: 1.5px solid var(--green); border-radius: 99px; padding: 8px 14px; color: var(--green); font-weight: 700; white-space: nowrap; }
.hdr-add:hover { background: var(--green-soft); }
@media (max-width: 1100px) { .hdr-in-search .hdr-add { display: none; } }
.reg-cta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-color: var(--green); background: var(--green-soft); font-size: 14px; line-height: 1.45; color: var(--green-ink); }
.reg-cta b { font-size: 15.5px; color: var(--green); }
.reg-cta:hover { box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.12); }
.ico-login { border-top: 1px solid var(--line); padding-top: 12px; }
.ico-login summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--green); }
.ico-login-b { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ico-login-b .notice { margin: 0; }
.reg-page { max-width: 760px; }
.reg-card { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; padding: 28px; }
.reg-card h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.reg-card h1:focus { outline: none; }
.reg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.reg-steps li > * { display: inline-flex; align-items: center; gap: 8px; }
.reg-steps a:hover { color: var(--green); }
.reg-n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line2); background: #fff; font-size: 12.5px; }
.reg-steps .cur { color: var(--ink); }
.reg-steps .cur .reg-n { background: var(--green); border-color: var(--green); color: #fff; }
.reg-steps .done .reg-n { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }
.reg-sum { margin: 0; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.reg-sum div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 12px 16px; border-top: 1px solid #f0eadc; }
.reg-sum div:first-child { border-top: 0; }
.reg-sum dt { flex: 0 0 120px; font-size: 13px; font-weight: 700; color: var(--muted); }
.reg-sum dd { flex: 1 1 200px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.reg-cancel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; font: 700 13.5px Inter, sans-serif; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn.danger { color: var(--hot-ink); }
.link-btn:disabled { opacity: 0.4; cursor: default; }

/* ---- Formuláře registrace a profilu ---- */
.pf-form { display: flex; flex-direction: column; gap: 14px; }
.pf-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-f > label { font-size: 14px; font-weight: 700; }
.pf-f input:not([type='checkbox']):not([type='color']):not([type='hidden']), .pf-f select, .pf-f textarea { width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: 500 15.5px Inter, sans-serif; color: var(--ink); }
.pf-f textarea { padding: 11px 14px; line-height: 1.45; resize: vertical; }
.pf-f input:focus, .pf-f select:focus, .pf-f textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.pf-f [aria-invalid='true'] { border-color: #c62828 !important; }
.pf-f input[type='color'] { width: 64px; height: 46px; padding: 3px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; cursor: pointer; }
.pf-hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pf-hint a { color: var(--green); font-weight: 700; }
.pf-count { align-self: flex-end; margin-top: -2px; font-size: 12px; color: var(--muted); }
.pf-count.is-over { color: var(--hot-ink); font-weight: 700; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.pf-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pf-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line2); border-radius: 14px; background: #fff; cursor: pointer; }
.pf-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.pf-check span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pf-check small { font-size: 13px; color: var(--muted); }

/* Adresa: našeptávač a mapka se špendlíkem (/js/profile.js) */
.pf-addr { display: flex; flex-direction: column; gap: 10px; }
.pf-suggest-wrap { position: relative; }
.pf-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; list-style: none; margin: 0; padding: 4px; background: var(--card); border: 1.5px solid var(--line2); border-radius: 12px; box-shadow: 0 12px 30px rgba(30, 40, 20, 0.16); }
.pf-sug { padding: 10px 12px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.pf-sug:hover, .pf-sug[aria-selected='true'] { background: var(--green-soft); color: var(--green-ink); }
.pf-sug-note { padding: 10px 12px; font-size: 13.5px; color: var(--muted); }
.pf-sk { padding: 12px; }
.pf-sk i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eee8da 25%, #f6f1e6 50%, #eee8da 75%); background-size: 200% 100%; animation: pf-sk 1.2s linear infinite; }
.pf-sk:nth-child(2) i { width: 80%; }
.pf-sk:nth-child(3) i { width: 60%; }
@keyframes pf-sk { to { background-position: -200% 0; } }
.pf-map { position: relative; height: 280px; border-radius: 16px; overflow: hidden; background: #e8e4d8; border: 1.5px solid var(--line2); cursor: crosshair; touch-action: pan-y; user-select: none; }
.pf-map:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pf-map-layer { position: absolute; inset: 0; }
.pf-map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.pf-pin { position: absolute; transform: translate(-50%, -100%); pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); }
.pf-map-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.pf-map-zoom button { width: 36px; height: 36px; border: 0; background: #fff; font: 700 20px/1 Inter, sans-serif; color: var(--ink); cursor: pointer; }
.pf-map-zoom button + button { border-top: 1px solid var(--line); }
.pf-map-attr { position: absolute; right: 0; bottom: 0; padding: 2px 6px; background: rgba(255, 255, 255, 0.8); font-size: 11px; color: var(--ink2); }
.pf-map-note { margin: -4px 0 0; font-size: 13px; color: var(--muted); }

/* ---- Administrace: profil služby po sekcích (views/profile.tsx) ---- */
.pf-welcome { margin: 16px 0 0; }
.pf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-top: 20px; }
.pf-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pf-aside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.pf-progress { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.pf-score { display: flex; align-items: baseline; gap: 6px; }
.pf-score b { font: 800 40px/1 Inter, sans-serif; letter-spacing: -1px; color: var(--green); }
.pf-score span { font-weight: 700; color: var(--text2); }
.pf-bar { height: 10px; border-radius: 99px; background: var(--seg); overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width 0.4s ease; }
.pf-sub { margin: 0; font-size: 13px; color: var(--muted); }
.pf-next { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); }
.pf-next-k { font: 700 11.5px Inter, sans-serif; letter-spacing: 0.5px; text-transform: uppercase; }
.pf-next b { font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.pf-next .btn { margin-top: 4px; }
.pf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pf-list a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.pf-list a:hover { background: var(--bg); }
.pf-list-t { flex: 1; }
.pf-list .done .pf-list-t { color: var(--text2); }
.pf-tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); background: #fff; font-size: 13px; font-weight: 800; }
.pf-tick.on { border-color: var(--green); background: var(--green); color: #fff; }
.pf-pts { flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pf-services { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.pf-services h2, .pf-preview h2 { margin: 0; font-size: 18px; font-weight: 800; }
.pf-svc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-svc-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.pf-svc-list li.on { border-color: var(--green); }
.pf-svc-list b { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-cur { font-size: 12px; font-weight: 700; color: var(--green); }
.pf-preview { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
/* Náhled v kategorii je na konci profilu pod sekcemi i průvodcem, přes celou šířku. */
.pf-layout + .pf-preview { margin-top: 20px; }
.pf-preview-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.pf-rank { margin: 0; font-size: 14px; color: var(--text2); }
.pf-rank b { font-size: 18px; color: var(--ink); }
.pf-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-rows li { position: relative; }
.pf-row-other { opacity: 0.62; }
.pf-row-me .row { box-shadow: 0 0 0 3px var(--green); }
.pf-me { position: absolute; z-index: 3; right: 12px; top: -10px; padding: 3px 10px; border-radius: 99px; background: var(--green); color: #fff; font: 800 12px Inter, sans-serif; }
.pf-sec { display: flex; flex-direction: column; gap: 14px; padding: 22px; scroll-margin-top: 16px; }
.pf-sec-head { display: flex; align-items: flex-start; gap: 12px; }
.pf-sec-head .pf-tick { width: 30px; height: 30px; font-size: 15px; }
.pf-sec-t { flex: 1; min-width: 0; }
.pf-sec-t h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.pf-sec-t p { margin: 2px 0 0; font-size: 13.5px; color: var(--text2); }
.pf-sec-head .pf-pts { padding: 5px 10px; border-radius: 99px; background: var(--seg); }
.pf-sec.is-done .pf-sec-head .pf-pts { background: var(--green-soft); color: var(--green); }
.pf-missing { margin: 0; padding: 9px 12px; border-radius: 10px; background: #fff7e0; color: #7a5600; font-size: 13.5px; font-weight: 600; }
.pf-saved { margin: 0; }
.pf-empty { margin: 0; font-size: 14px; color: var(--text2); }
.pf-empty a { color: var(--green); font-weight: 700; }
.pf-h3 { margin: 4px 0 0; font-size: 16px; font-weight: 800; }
.pf-h3 small { font-size: 13px; font-weight: 600; color: var(--muted); }

.pf-hours { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pf-day { flex: 0 0 90px; font-weight: 700; font-size: 14px; }
.pf-hours-row input { width: 120px; min-height: 42px; padding: 0 10px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font: 500 15px Inter, sans-serif; }
/* „Aplikovat všude“ vedle pondělí, jen když se do řádku vejde (široký formulář); jinak tlačítko dole. */
.pf-form[data-hours] { container-type: inline-size; }
.pf-copy-inline { margin-left: auto; }
@container (max-width: 719px) { .pf-copy-inline { display: none; } }
@container (min-width: 720px) { .pf-copy-bottom { display: none; } }

.pf-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-item details { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.pf-item summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.pf-item summary::-webkit-details-marker { display: none; }
.pf-item-ph { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--sand); }
.pf-item-ph img { width: 100%; height: 100%; object-fit: cover; }
.pf-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-item-t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-item-t small { font-size: 13px; color: var(--muted); }
.pf-item-edit { flex: none; font-size: 13.5px; font-weight: 700; color: var(--green); }
.pf-item details[open] .pf-item-edit { color: var(--muted); }
.pf-item-b { display: flex; flex-direction: column; gap: 14px; padding: 4px 14px 16px; border-top: 1px solid #f0eadc; }
.pf-item-b > .pf-form { padding-top: 12px; }
.pf-chip-ok { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.pf-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 12px; border-top: 1px solid #f0eadc; }
.pf-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.pf-add > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.pf-add > summary::-webkit-details-marker { display: none; }
.pf-add[open] > summary { background: var(--sand); color: var(--ink); }
.pf-add > .pf-form { margin-top: 14px; padding: 16px; border: 1.5px dashed var(--line2); border-radius: 14px; background: #fff; }

.pf-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.pf-slot { display: flex; flex-direction: column; gap: 8px; }
.pf-slot-k { font-size: 14px; font-weight: 700; }
.pf-slot-img { display: flex; align-items: center; justify-content: center; border-radius: 14px; overflow: hidden; background: var(--sand); color: var(--muted); font-size: 13px; font-weight: 600; }
.pf-slot-img.logo { width: 112px; height: 112px; background: #fff; border: 1.5px solid var(--line); }
.pf-slot-img.logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pf-slot-img.cover { aspect-ratio: 16 / 9; }
.pf-slot-img.cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-slot-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 14px; }
.pf-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.pf-gallery li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sand); }
.pf-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pf-g-acts { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; gap: 4px; }
.pf-g-acts form { display: flex; gap: 4px; }
.pf-g-acts button { min-width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(20, 24, 18, 0.78); color: #fff; font: 700 15px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.pf-g-acts button:disabled { opacity: 0.35; cursor: default; }
.pf-up { display: flex; flex-direction: column; gap: 8px; }
.pf-up-btn { align-self: flex-start; cursor: pointer; }
.pf-up-btn:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.pf-up-btn.is-off { opacity: 0.45; cursor: default; }
.pf-up-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-up-list:empty { display: none; }
.pf-up-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pf-up-item > span:first-child { flex: 0 1 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-up-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--seg); overflow: hidden; }
.pf-up-bar i { display: block; width: 0; height: 100%; background: var(--blue); transition: width 0.2s; }
.pf-up-item.is-ok .pf-up-bar i { background: var(--green); }
.pf-up-item.is-err .pf-up-bar i { width: 100% !important; background: #c62828; }

.pf-chips { display: flex; flex-direction: column; gap: 8px; }
.pf-chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip-list:empty { display: none; }
.pf-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 4px 0 12px; border-radius: 99px; background: var(--green-soft); color: var(--green-ink); font-size: 14px; font-weight: 600; }
.pf-chip button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.pf-chip button:hover { background: rgba(47, 107, 63, 0.15); }
.pf-chip-row { display: flex; gap: 8px; }
.pf-chip-row .pf-chip-in { flex: 1; min-width: 0; }
.pf-chip-row .btn { min-height: 46px; }
.pf-chip-note { margin: 0; font-size: 13px; color: var(--hot-ink); }
.pf-chip-note:empty { display: none; }

.pf-deals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pf-deal { display: flex; gap: 16px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.pf-deal-vis { position: relative; flex: none; width: 150px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--sand); }
.pf-deal-vis img { width: 100%; height: 100%; object-fit: cover; }
.pf-deal-b { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pf-deal-b > b { font-size: 16px; }
.pf-deal-m { font-size: 14px; color: var(--text2); }
.pf-deal-b details { align-self: stretch; }
.pf-deal-b details > .pf-form { margin-top: 12px; }
.pf-nudge { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff3e8; color: #8a3b12; font-size: 13.5px; line-height: 1.45; }
.pf-past summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text2); }
.pf-past ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text2); }
.pf-past li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }

@media (max-width: 1180px) {
  .pf-layout { grid-template-columns: minmax(0, 1fr); }
  .pf-aside { position: static; order: -1; }
}
@media (max-width: 640px) {
  .reg-card, .pf-sec, .pf-progress, .pf-preview, .pf-services { padding: 18px; }
  .reg-card h1 { font-size: 24px; }
  .pf-deal { flex-direction: column; }
  .pf-deal-vis { width: 100%; max-width: 220px; }
  .pf-day { flex-basis: 100%; }
  .pf-hours-row input { width: calc(50% - 20px); }
  .dv-lg { padding: 24px; }
  .dv-lg .dv-t { font-size: 22px; }
}

/* Metodika ve velkém okně (odkazy s data-modal, /js/ui.js). */
.info-modal { width: min(920px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--card, #fff); color: var(--ink); box-shadow: 0 24px 70px rgba(20, 24, 18, 0.35); overflow: auto; }
.info-modal::backdrop { background: rgba(20, 24, 18, 0.55); }
.info-modal-body { max-width: none; padding: 28px 36px 36px; }
.info-modal-body h1 { margin-top: 0; padding-right: 44px; font-size: 30px; }
.info-modal-x { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--seg, #eee9dc); color: var(--ink); font: 400 28px/1 Inter, sans-serif; cursor: pointer; }
.info-modal-x:hover { filter: brightness(0.95); }
.info-skel { display: flex; flex-direction: column; gap: 12px; }
.info-skel i { display: block; height: 14px; border-radius: 7px; background: var(--seg, #eee9dc); animation: info-skel 1.1s ease-in-out infinite alternate; }
.info-skel i.big { height: 30px; margin-bottom: 8px; }
.info-skel i.gap { margin-top: 18px; height: 20px; }
.info-skel i.w40 { width: 40%; } .info-skel i.w55 { width: 55%; } .info-skel i.w70 { width: 70%; }
@keyframes info-skel { from { opacity: 0.55; } to { opacity: 1; } }
@media (max-width: 640px) { .info-modal-body { padding: 20px 18px 26px; } .info-modal-body h1 { font-size: 24px; } }

/* Rezervace jako bloky ve sloupcích: týden, každý den sloupec s kartičkami termínů (zákazník i administrace). */
.wk-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; clear: both; }
.wk-arrow { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line2); background: #fff; font: 700 20px/1 Inter, sans-serif; color: var(--ink); }
.wk-arrow:hover { border-color: var(--ink); }
.wk-arrow.is-off { opacity: 0.35; }
.wk-label { margin-left: 6px; font-size: 18px; font-weight: 800; }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.wk-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; min-height: 220px; padding: 12px 10px 14px; border-radius: 16px; background: var(--bg); }
.wk-col.is-off { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.wk-col.is-today { box-shadow: inset 0 0 0 2px var(--green); }
.wk-head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }
.wk-dow { font: 700 11px Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wk-date { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.wk-status { font-size: 12px; font-weight: 600; color: var(--muted); }
.wk-status.ok { color: var(--green-ink); }
.slot { position: relative; display: block; min-width: 0; }
.slot > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 42px; padding: 5px 8px; border-radius: 9px; background: #fff; font: 700 13.5px/1.2 Inter, sans-serif; font-variant-numeric: tabular-nums; text-align: center; list-style: none; }
.slot-b::-webkit-details-marker { display: none; }
.slot-b small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.slot.is-free .slot-b { box-shadow: inset 0 0 0 1.5px var(--line2), inset 3px 0 0 var(--green); cursor: pointer; }
.slot.is-free .slot-b:hover { box-shadow: inset 0 0 0 1.5px var(--ink), inset 3px 0 0 var(--green); }
.slot.is-deal .slot-b { box-shadow: inset 0 0 0 1.5px var(--line2), inset 3px 0 0 var(--hot, #d9541e); }
.slot.is-deal .slot-b small { color: var(--hot-ink, #b0401a); }
.slot.is-taken .slot-b { background: #e9e6dc; color: var(--muted); font-weight: 600; box-shadow: none; cursor: default; }
.slot > input:checked + .slot-b { background: var(--green); color: #fff; box-shadow: none; }
.slot > input:checked + .slot-b small { color: #e2f1e4; }
.slot > input:focus-visible + .slot-b, .slot summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wk-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; color: var(--text2); }
.wk-legend li { display: flex; align-items: center; gap: 7px; }
.wk-legend i { display: inline-block; width: 18px; height: 14px; border-radius: 4px; background: #fff; }
.lg-free { box-shadow: inset 0 0 0 1.5px var(--line2), inset 3px 0 0 var(--green); }
/* Dovolená a blokace času v kalendáři: šrafovaná šedá karta bez odkazu. */
.slot.is-blocked .slot-b { background: repeating-linear-gradient(135deg, #eeebe2 0 6px, #e4e0d4 6px 12px); color: var(--muted); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line2); cursor: default; }
.slot.is-blocked small { font-weight: 600; }
.wk-legend i.lg-blocked { background: repeating-linear-gradient(135deg, #eeebe2 0 4px, #e4e0d4 4px 8px); box-shadow: inset 0 0 0 1px var(--line2); }
.lg-deal { box-shadow: inset 0 0 0 1.5px var(--line2), inset 3px 0 0 var(--hot, #d9541e); }
.wk-legend i.lg-taken { background: #e9e6dc; }
.wk-legend i.lg-sel { background: var(--green); }
.wk-legend i.lg-booked { background: var(--green-soft); box-shadow: inset 0 0 0 1.5px var(--green); }
/* Administrace: rezervace jsou plné bloky se jménem, volné termíny karty s proužkem; detail se rozbalí klikem. */
.wk-admin .slot-b { align-items: flex-start; text-align: left; cursor: pointer; }
.slot.is-booked .slot-b { background: var(--green-soft); color: var(--green-ink); box-shadow: inset 0 0 0 1.5px var(--green); }
.slot.is-booked.is-deal .slot-b { background: #fdebe2; color: #9a3a12; box-shadow: inset 0 0 0 1.5px var(--hot, #d9541e); }
.slot.is-cancelled .slot-b { background: #e9e6dc; color: var(--muted); box-shadow: none; opacity: 0.7; }
.slot.is-cancelled .slot-b b, .slot.is-cancelled .slot-who { text-decoration: line-through; }
.slot-who { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.slot-tag { padding: 0 5px; border-radius: 3px; background: #6c6a62; color: #fff; font: 700 10px/16px Inter, sans-serif; text-transform: uppercase; }
.slot-more { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; padding: 9px 10px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; overflow-wrap: anywhere; }
.slot-more a { color: var(--green); font-weight: 700; }
.slot-note { color: var(--text2); font-style: italic; }
.slot-deal { display: flex; flex-direction: column; gap: 6px; }
.slot-deal input { width: 100%; min-height: 36px; padding: 0 8px; border: 1.5px solid var(--line2); border-radius: 9px; background: #fff; font: 600 13px Inter, sans-serif; }
.wk-toggle { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.wk-toggle input { width: 17px; height: 17px; accent-color: var(--green); }
.sch-cal:has([data-wk-free]:not(:checked)) .wk-admin .slot.is-free { display: none; }
.wk-admin a.slot { color: inherit; text-decoration: none; }
.slot.is-open .slot-b { outline: 2.5px solid var(--ink); outline-offset: 1px; }
/* Panel vpravo v Rozvrhu a rezervacích (BookingDrawer, SlotDrawer ve views/booking.tsx, /js/schedule.js). */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column; width: min(440px, 100vw); background: var(--card); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(40, 30, 10, 0.18); animation: drawer-in 0.18s ease-out; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
/* Pravidlo UI 6: panel je vždy fixed přes obsah, šířku stránky nemění (žádný padding ani zúžení obsahu). */
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; outline: none; }
.drawer-head p { margin-top: 2px; font-size: 14px; color: var(--text2); }
.drawer-kicker { display: inline-block; margin-bottom: 6px; padding: 3px 8px; border-radius: 7px; font: 700 11.5px Inter, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.drawer-kicker.ok { background: var(--green-soft); color: var(--green-ink); }
.drawer-kicker.off { background: #e9e6dc; color: var(--text2); }
.drawer-kicker.free { background: #fff; color: var(--green-ink); box-shadow: inset 0 0 0 1.5px var(--line2), inset 3px 0 0 var(--green); }
.drawer-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); color: var(--ink); font: 400 26px/1 Inter, sans-serif; text-decoration: none; }
.drawer-x:hover { background: var(--line); }
.drawer-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 28px; overflow-y: auto; overscroll-behavior: contain; }
.drawer-body .notice { margin: 0; }
.drawer-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; font-size: 14.5px; }
.drawer-dl dt { color: var(--muted); }
.drawer-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.drawer-dl a { color: var(--green); }
.drawer-muted { color: var(--muted); font-weight: 500; }
.drawer-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer-sec h3 { font-size: 15px; font-weight: 800; }
.drawer-hint { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text2); }
.drawer-hint a { color: var(--green); font-weight: 700; }
.drawer-form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.drawer-form > .btn { align-self: flex-start; }
.drawer-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.drawer-check input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green); }
.drawer-mails, .drawer-here { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.drawer-mails li, .drawer-here li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.drawer-mails small, .drawer-here small { font-size: 12.5px; color: var(--muted); text-align: right; }
.drawer-mails li.st-sent small { color: var(--green-ink); }
.drawer-mails li.st-failed small, .drawer-mails li.st-suppressed small { color: #b0401a; }
.drawer-mails li.st-cancelled span { color: var(--muted); text-decoration: line-through; }
.drawer-here a { color: var(--green); font-weight: 700; }
.drawer-acc { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.drawer-acc > summary { display: flex; justify-content: space-between; padding: 12px 14px; font-size: 14.5px; font-weight: 800; cursor: pointer; list-style: none; }
.drawer-acc > summary::-webkit-details-marker { display: none; }
.drawer-acc > summary::after { content: '+'; font-weight: 600; color: var(--muted); }
.drawer-acc[open] > summary::after { content: '–'; }
.drawer-acc > .drawer-form { padding: 0 14px 14px; }
.drawer-acc.danger > summary { color: #a83a26; }
.drawer-body .bk-f input, .drawer-body .bk-f textarea, .drawer-body .bk-f select { min-height: 42px; }
.bk-f select { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font: 500 15px Inter, sans-serif; color: var(--ink); }
@media (max-width: 900px) {
  .wk { grid-template-columns: repeat(7, minmax(128px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .wk-col { scroll-snap-align: start; }
}

/* Oblíbené (srdíčko): detail firmy vedle Poptat firmu (.fav-button), výpisy firem v rohu fotky (.fav-icon), views/favorites.tsx */
.fav-form { display: contents; }
.fav { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--text2); font-weight: 700; cursor: pointer; text-decoration: none; }
.fav:hover { color: var(--hot); border-color: var(--hot); }
.fav.on { color: var(--hot); border-color: var(--hot); }
.fav.on .fav-ico { fill: currentColor; }
.fav-button { min-height: 48px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
.fav-icon { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; padding: 0; border-radius: 50%; border-color: transparent; background: rgba(255, 253, 247, 0.94); box-shadow: 0 2px 8px rgba(40, 30, 10, 0.18); }
.fav-icon.on { border-color: transparent; }

/* Můj účet: záložky a podstránky (views/account.tsx: AccountShell, poptávka, Hlídání) */
.acc-nav { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 20px; padding: 4px; border-radius: 14px; background: var(--seg); scrollbar-width: none; }
.acc-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink2); white-space: nowrap; }
.acc-nav a:hover { background: rgba(255, 253, 247, 0.6); }
.acc-nav a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(40, 30, 10, 0.12); }
.acc-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--hot); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.acc-page .acc-list-sec:first-child, .acc-nav + .acc-list-sec { margin-top: 0; }
.acc-link { position: relative; }
.acc-link:hover b { text-decoration: underline; }
.acc-item.unread { background: linear-gradient(90deg, var(--green-soft), transparent 70%); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.acc-lead { margin: -6px 0 14px; color: var(--text2); font-size: 14.5px; }
.acc-lead a { color: var(--green); font-weight: 700; }
.acc-back { margin: -6px 0 14px; }
.inq-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.inq-firm { display: flex; align-items: center; gap: 14px; }
.inq-firm h2 a:hover { text-decoration: underline; }
.inq-h { font-size: 15px; font-weight: 800; margin-top: 6px; }
.inq-steps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.inq-steps li { position: relative; padding-left: 26px; font-size: 14px; color: var(--muted); }
.inq-steps li::before { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); }
.inq-steps li.done { color: var(--ink2); font-weight: 600; }
.inq-steps li.done::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--card); }
.acc-more { margin: 14px 0 0; text-align: center; }
.inq-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.inq-dl dt { color: var(--muted); }
.inq-dl dd { margin: 0; overflow-wrap: anywhere; }
.inq-contact, .inq-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.watch-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.watch-opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.watch-opt input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); flex: none; }
.watch-opt span { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.watch-opt small { color: var(--muted); font-size: 13px; }
.watch-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.watch-cats li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.watch-cats form { display: contents; }
.watch-cats button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13.5px; }
.watch-cat-btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .inq-detail { grid-template-columns: 1fr; }
}
.acc-inline select { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; font: 600 15px Inter, sans-serif; color: var(--ink); }

/* Výběr s vyhledáváním (public/js/select-search.js): nabídka pod selectem s víc než 3 možnostmi */
.ss-pop { position: fixed; z-index: 1000; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--card); border: 1.5px solid var(--line2); border-radius: 14px; box-shadow: 0 12px 32px rgba(30, 40, 20, 0.2); color: var(--ink); font: 500 14.5px Inter, sans-serif; text-align: left; }
.ss-in { width: 100%; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; font: 500 15px Inter, sans-serif; color: var(--ink); }
.ss-in:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.18); }
.ss-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.ss-opt { display: flex; align-items: center; min-height: 40px; padding: 6px 10px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.ss-opt:hover { background: var(--seg); }
.ss-opt[aria-selected='true'] { font-weight: 700; color: var(--green-ink); }
.ss-opt.is-active { background: var(--green-soft); color: var(--green-ink); box-shadow: inset 0 0 0 2px var(--green); }
.ss-opt[aria-disabled='true'] { color: var(--muted); cursor: default; }
.ss-group { padding: 8px 10px 2px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ss-none { margin: 0; padding: 9px 10px; color: var(--muted); font-size: 13.5px; }

/* Datum a čas (public/js/date-picker.js): křížek na vymazání všude, na počítači vlastní kalendář a výběr času */
.dp { position: relative; display: inline-flex; align-items: center; max-width: 100%; vertical-align: middle; }
.dp.dp-full { display: flex; width: 100%; }
.dp > input { flex: 1 1 auto; min-width: 0; padding-right: 38px !important; }
.dp > input::-webkit-date-and-time-value { text-align: left; }
.dp-custom > input { cursor: pointer; }
.dp-custom > input::-webkit-calendar-picker-indicator { display: none; }
.dp-clear, .dp-icon { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); }
.dp-clear { border: 0; padding: 0; background: transparent; cursor: pointer; }
.dp-clear:hover { background: var(--seg); color: var(--ink); }
.dp-clear:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.dp-icon { pointer-events: none; }
.dp-clear[hidden], .dp-icon[hidden] { display: none; }
.dp-pop { position: fixed; z-index: 1000; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--card); border: 1.5px solid var(--line2); border-radius: 16px; box-shadow: 0 14px 36px rgba(30, 40, 20, 0.22); color: var(--ink); font: 500 14px Inter, sans-serif; }
.dp-body { display: flex; gap: 14px; }
.dp-cal { width: 266px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp-title { font-size: 15px; font-weight: 800; }
.dp-nav { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.dp-nav:hover { background: var(--seg); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { padding: 4px 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.dp-day { height: 36px; border: 0; border-radius: 10px; background: transparent; font: 600 14px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.dp-day:hover { background: var(--seg); }
.dp-day.out { color: var(--muted); }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--green); }
.dp-day.sel, .dp-day.sel:hover { background: var(--green); color: #fff; }
.dp-day:disabled { opacity: 0.3; cursor: default; background: transparent; }
.dp-day:focus-visible, .dp-t:focus-visible, .dp-nav:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.dp-time { display: flex; gap: 6px; }
.dp-pop-datetime .dp-time { padding-left: 14px; border-left: 1px solid var(--line); }
.dp-colw { display: flex; flex-direction: column; gap: 4px; }
.dp-colh { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; }
.dp-col { width: 62px; height: 262px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; overscroll-behavior: contain; }
.dp-t { flex: none; min-height: 34px; border: 0; border-radius: 8px; background: transparent; font: 600 14px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.dp-t:hover { background: var(--seg); }
.dp-t.sel, .dp-t.sel:hover { background: var(--green); color: #fff; }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dp-link { border: 0; padding: 6px 8px; border-radius: 8px; background: none; color: var(--green); font: 700 14px Inter, sans-serif; cursor: pointer; }
.dp-link:hover { background: var(--green-soft); }
.dp-link:disabled { color: var(--muted); background: none; cursor: default; }
.dp-links { display: flex; gap: 4px; }
.dp-done { min-height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font: 700 14px Inter, sans-serif; cursor: pointer; }

/* Testovací městečko (/dev/mestecko, jen vývoj) */
.town-switch { display: flex; gap: 8px; margin: 0 0 12px; }
.town-switch button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.town-map canvas { height: 620px; }
.town-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: 14px; overflow: hidden; }
.town-table th, .town-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.town-table th { font-size: 12.5px; color: var(--muted); }
.town-table td.on { color: var(--green-ink); font-weight: 700; }

/* Ukazatel Den / Noc v levém horním rohu mapy okolí (MapDaytime, přepíná ho onNightChange mapy) */
.map-daytime { position: absolute; left: 12px; top: 12px; z-index: 2; pointer-events: none; }
.map-daytime > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: #f4c542; color: #3d2f00; font: 700 12.5px Inter, sans-serif; box-shadow: 0 2px 8px rgba(20, 24, 18, 0.18); }
.map-daytime.is-night > span { background: #1b2440; color: #ffe39a; }
.map-daytime > span[hidden] { display: none; }

/* Objednávka doplňků (views/orders.tsx), testovací platební brána a aktivní doplňky v Můj dům */
.ord-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ord-steps li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.ord-steps li span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--seg); font-size: 13px; }
.ord-steps li.on { color: var(--ink); }
.ord-steps li.on span { background: var(--ink); color: #fff; }
.ord-steps li.done span { background: var(--green); color: #fff; }
.ord-test { background: #fdf1cf; color: #6b4a00; }
.ord-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 18px; align-items: start; }
.ord-pick { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.ord-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.ord-item:has(input:checked) { box-shadow: 0 0 0 2px var(--green); }
.ord-item.locked { opacity: 0.75; cursor: default; }
.ord-item > input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.ord-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ord-item-t small, .ord-item-p small { color: var(--muted); font-size: 13px; }
.ord-item-t .vlabel { align-self: flex-start; }
.ord-item-p { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.ord-sum { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.ord-total { font-size: 15px; }
.ord-total [data-total] { font-size: 20px; }
.ord-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ord-terms input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); flex: none; }
.ord-terms a { color: var(--green); font-weight: 700; text-decoration: underline; }
.ord-done { max-width: 620px; padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ord-ok { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.ord-active { margin: 0; padding-left: 18px; }
.ord-done-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pay-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #eef1f6; }
.pay-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(20, 30, 60, 0.16); }
.pay-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: #1d2b4f; }
.pay-brand span { margin-left: auto; padding: 3px 8px; border-radius: 6px; background: #fdf1cf; color: #6b4a00; font-size: 12px; }
.pay-dl { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pay-dl div { display: flex; justify-content: space-between; gap: 12px; }
.pay-dl dt { color: var(--muted); }
.pay-dl dd { margin: 0; text-align: right; font-weight: 600; }
.pay-amount { font-size: 34px; font-weight: 800; text-align: center; margin: 6px 0; }
.pay-btn { width: 100%; justify-content: center; }
.receipt { max-width: 720px; margin: 30px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.add-active { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.add-active li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--green-soft); color: var(--green-ink); font-size: 13.5px; }
.add-active form { display: contents; }
.addon-owned { align-self: flex-start; }
.addon-buy.owned { display: inline-flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green-ink); cursor: default; }
@media (max-width: 860px) {
  .ord-form { grid-template-columns: 1fr; }
}
.auth-terms { margin: 2px 0; font-size: 13.5px; }

/* Nahlášení obsahu (DSA): odkazy u hodnocení a profilu, formulář /nahlasit */
.review-report, .report-firm { color: var(--muted); font-size: 12.5px; text-decoration: underline; }
.report-firm { display: inline-block; margin-top: 10px; }
.report-reasons { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.report-reasons legend { font-weight: 800; margin-bottom: 6px; }
.report-reasons label { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.report-reasons input { width: 18px; height: 18px; accent-color: var(--green); }

/* Můj účet: Vaše data (export, smazání) */
.acc-data { margin-top: 20px; }
.acc-delete { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.acc-delete-btn { background: #fdebe2; color: #9a3a12; }
.tip-act { margin-top: 8px; }
.share-btn[hidden] { display: none; }
.buy .share-btn { width: 100%; justify-content: center; margin-top: 8px; }

/* Pozvat k hodnocení (views/invite.tsx): odkaz, QR kód, kartička k vytištění */
.invite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; align-items: start; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 10px; font: 500 14px Inter, sans-serif; background: #fff; }
.invite-card { padding: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.invite-card h2 { font-size: 22px; font-weight: 800; }
.invite-k { font-size: 13px; color: var(--muted); font-weight: 700; }
.invite-qr { width: 220px; height: 220px; }
.invite-qr svg { width: 100%; height: 100%; }
.invite-url { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
@media print {
  body * { visibility: hidden; }
  .invite-card, .invite-card * { visibility: visible; }
  .invite-card { position: fixed; inset: 0; margin: auto; width: 90mm; height: 120mm; border: 1px solid #ccc; box-shadow: none; }
  .invite-print { display: none; }
}

/* Statistiky firmy (views/stats.tsx) */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats-tile { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.stats-tile span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stats-tile b { font-size: 26px; font-weight: 800; }
.stats-tile.accent { background: var(--green-soft); }
.stats-tile.accent b { color: var(--green-ink); }
.stats-sec { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.stats-chart { width: 100%; height: auto; }
.stats-axis { stroke: var(--line2); }
.stats-bar { fill: var(--blue); opacity: 0.75; }
.stats-dot { fill: var(--hot); }
.stats-lbl { font: 600 11px Inter, sans-serif; fill: var(--muted); }

/* Back office provozovatele (/sprava, views/admin-office.tsx) */
.office-list { display: flex; flex-direction: column; gap: 12px; }
.office-item { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.office .acc-fine + .h-sec, .office-list + .h-sec { margin-top: 18px; }
.office-quote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--line2); background: var(--seg); border-radius: 8px; font-size: 14px; white-space: pre-line; }
.office-form { display: flex; flex-direction: column; gap: 8px; }
.office-reason { width: 100%; min-height: 56px; padding: 8px 10px; border: 1.5px solid var(--line2); border-radius: 10px; font: 500 14px Inter, sans-serif; }
.office-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.office-search { margin-bottom: 14px; max-width: 620px; }
.office-ui .stats-tile { color: inherit; text-decoration: none; }

/* Backoffice provozu (OfficeShell.tsx, admin doména): kostra jako administrace firmy (.admin, .side…), ale tmavé
   neutrální menu a šedé pozadí, ať se nesplete s administrací firmy ani s webem. */
.office-ui { background: #f2f3f1; }
.office-ui .side { background: #1b211e; }
.office-ui .side .side-logo { color: #fff; }
.office-ui .admin-head { margin-bottom: 20px; }
/* Statistiky ve správě: návštěvnost, hledání, detail firmy */
.office-ui .stats-tile small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.office-ui .town-table { margin-top: 0; }
.office-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; margin-bottom: 18px; }
.office-traffic { margin-bottom: 4px; }
.office-bar { display: inline-block; height: 8px; margin-right: 8px; border-radius: 4px; background: var(--green); opacity: 0.55; vertical-align: middle; max-width: 120px; }
.office-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; max-width: none; }
.office-filters .auth-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.office-search-table td:nth-child(n + 3), .office-search-table th:nth-child(n + 3) { white-space: nowrap; }
.office-row-empty td { background: #fdf3ee; }
.office-pager { margin: 16px 0 0; }
.office-more { display: inline-block; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--green); }
.office-links { margin: -8px 0 16px; font-size: 14px; }
.office-links a { color: var(--green); font-weight: 700; }
.office-kv th { width: 42%; font-size: 13px; color: var(--muted); font-weight: 600; }
.office-sections { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.office-sections li { padding: 8px 10px; border-radius: 10px; background: #fdf3ee; }
.office-sections li.done { background: var(--green-soft); }
.office-sections small { display: block; margin-top: 2px; color: var(--text2); }
.office-logo { display: inline-flex; align-items: center; gap: 10px; }
.office-badge { padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 800 11px Inter, sans-serif; letter-spacing: 0.7px; text-transform: uppercase; }
.office-user { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #d9e3d4; }
.office-user b { display: block; margin: 2px 0 6px; overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.office-user .side-out { padding: 0; min-height: 32px; }
.office-out-f { margin: 0; }
@media (max-width: 900px) {
  .office-user { margin: 0 0 0 auto; padding: 0; border-top: 0; display: flex; align-items: center; gap: 10px; }
  .office-user .side-k { display: none; }
  .office-user b { margin: 0; max-width: 160px; }
}
/* Přihlášení do správy a „nemáte přístup“: jednoduchá karta s logem uprostřed tmavé stránky */
.office-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #1b211e; }
.office-login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; padding: 30px 28px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.office-login-card .office-logo { color: var(--green); }
.office-login-card .office-badge { background: var(--green-dark); }
.office-login-card h1 { margin: 4px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.office-login-card .notice { margin: 0; }
.office-google { min-height: 44px; }
.office-login-fine { margin: 0; font-size: 13.5px; color: var(--muted); }
.office-login-fine a { color: var(--green); font-weight: 700; }
.office-login-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text2); }
.invite-code { font-family: ui-monospace, monospace; font-size: 12.5px; }
