/* KeeKoo web: same look as the mobile app. Yellow + near-black, light grey ground, very round cards.
   Every color is a token so dark mode and future themes only touch this block. */
:root {
  --bg: #F6F6F4; --card: #FFFFFF; --line: #E9E8E4; --ink: #121212; --muted: #86857F;
  --accent: #F5B800; --accent-ink: #121212; --dark: #121212; --dark-ink: #FFFFFF; --chip: #EFEEEA;
  --t1: #FDE8D9; --t2: #DDEFFC; --t3: #FCE1E8; --t4: #E7E6FC; --t5: #DDF3E6; --t6: #FFF1C9;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-fa: "Vazirmatn", "Plus Jakarta Sans", Tahoma, sans-serif;
  --r-lg: 26px; --r-md: 20px;
  --foot: #121212; --foot-ink: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E0D; --card: #1A1A19; --line: #2A2A28; --ink: #F4F3EF; --muted: #9A9993; --chip: #242422;
    --dark: #F4F3EF; --dark-ink: #121212;
    --foot: #050505; --foot-ink: #F4F3EF;
    --t1: #3A2A1E; --t2: #1C2E3B; --t3: #3A2029; --t4: #26253D; --t5: #1D3326; --t6: #3A3115;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* The page under the footer (short pages, overscroll) is the footer colour, not white. */
html { -webkit-text-size-adjust: 100%; background: var(--foot); }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
html[dir="rtl"] body, .fa { font-family: var(--font-fa); }
.fa { direction: rtl; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* App download banner */
.appbar { background: var(--dark); color: var(--dark-ink); }
.appbar .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.appbar-logo { width: 38px; height: 38px; flex: none; }
.appbar-txt { flex: 1; min-width: 0; line-height: 1.3; }
.appbar-txt b { display: block; font-size: 14px; }
.appbar-txt span { font-size: 12px; opacity: .7; }
.appbar-get { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.appbar-x { background: none; border: 0; opacity: .6; font-size: 22px; padding: 4px 6px; color: inherit; }

/* Header */
header.top { position: sticky; top: 0; z-index: 5; background: var(--bg); }
header.top .wrap { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.city { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; background: var(--chip); border: 0; border-radius: 999px; padding: 7px 14px 7px 7px; font-weight: 600; font-size: 16px; }
.city { border: 2px solid var(--accent); padding: 6px 16px 6px 6px; gap: 10px; transition: background .15s, box-shadow .15s; }
.city:hover, .city:focus-visible { background: color-mix(in srgb, var(--accent) 18%, var(--chip)); box-shadow: 0 2px 10px rgba(245,184,0,.3); }
.city .flag { width: 38px; height: 38px; font-size: 20px; }
.city-txt { display: flex; flex-direction: column; line-height: 1.15; }
.city-txt small { font-size: 11px; font-weight: 600; color: var(--muted); }
.city-txt b { font-size: 18px; font-weight: 800; }
.city-chev { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #121212; display: grid; place-items: center; font-size: 14px; line-height: 1; padding-bottom: 3px; }
[dir=rtl] .city { padding: 6px 6px 6px 16px; }
.flag { width: 30px; height: 30px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 15px; flex: none; }
nav.desk { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
nav.desk a { padding: 9px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); }
nav.desk a.on { color: var(--ink); background: var(--chip); }
nav.desk a.add { background: var(--accent); color: var(--accent-ink); }
.lang { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.menu-btn, .menu { display: none; }
.brand { width: 66px; height: 32px; display: block; }
.brand svg { width: 100%; height: 100%; }

.notice { margin: 6px 0 14px; border: 1px dashed var(--muted); border-radius: 14px; padding: 10px 14px; color: var(--muted); font-size: 13px; }

/* Home */
.hello { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 16px; text-wrap: balance; }
html[dir="rtl"] .hello { letter-spacing: 0; }
.search { display: flex; align-items: center; gap: 12px; background: var(--chip); border-radius: var(--r-lg); padding-block: 8px; padding-inline: 20px 8px; margin: 0; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); padding: 10px 0; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.filter { width: 48px; height: 48px; border-radius: 16px; background: var(--dark); color: var(--dark-ink); border: 0; display: grid; place-items: center; flex: none; }

/* Home slider: native swipe via scroll-snap, autoplay in keekoo.js */
.slider { position: relative; margin-top: 20px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--r-lg); scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: var(--ratio-desk); border-radius: var(--r-lg); overflow: hidden; }
.slide + .slide { margin-inline-start: 12px; }
.slide picture, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.theme-yellow { background: var(--accent); color: #121212; }
.theme-dark { background: #121212; color: #F5B800; }
.theme-orange { background: #FF7A1A; color: #fff; }
.slide-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.slide-empty { position: absolute; inset: 14px; border: 2px dashed currentColor; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px; opacity: .85; }
.slide-empty b { font-size: clamp(18px, 3vw, 30px); font-weight: 800; line-height: 1.25; }
.slide-empty span { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }
.slide-empty .size-mob { display: none; }
.slide .tag { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; background: rgba(18,18,18,.7); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.slider-nav { position: absolute; top: calc(50% - 32px); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #121212; font-size: 24px; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.slider-nav.prev { inset-inline-start: 12px; }
.slider-nav.next { inset-inline-end: 12px; }
html[dir="rtl"] .slider-nav { transform: scaleX(-1); }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 9px; background: var(--line); transition: width .2s; }
.dots button.on { width: 38px; background: var(--ink); }

section { margin-top: 34px; }
.sh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sh h2 { margin: 0; font-size: 24px; font-weight: 800; }
.sh a { color: var(--muted); font-weight: 500; }
.sh a.all { color: var(--ink, #121212); font-weight: 700; font-size: 16px; }

.t1 { background: var(--t1); } .t2 { background: var(--t2); } .t3 { background: var(--t3); }
.t4 { background: var(--t4); } .t5 { background: var(--t5); } .t6 { background: var(--t6); }

.cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cats .cat { scroll-snap-align: start; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 500; line-height: 1.25; }
.cat .ic { width: 64px; height: 64px; max-width: 100%; border-radius: 24px; display: grid; place-items: center; font-size: 28px; }

.ad { position: relative; border-radius: var(--r-lg); background: var(--chip); aspect-ratio: var(--ratio-desk); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); overflow: hidden; }
.ad .size { font-size: 13px; font-weight: 700; color: var(--muted); direction: ltr; font-variant-numeric: tabular-nums; }
.ad .size-mob { display: none; }
.ad .tag { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(18,18,18,.7); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.ad strong { font-size: 26px; font-weight: 800; color: var(--muted); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two > div { min-width: 0; }
.list { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; }
.thumb { width: 64px; height: 64px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 30px; }
.row .info { flex: 1; min-width: 0; }
.row b { display: block; font-size: 15px; line-height: 1.3; }
.row small { color: var(--muted); font-size: 13px; }
.chev { color: var(--muted); font-size: 22px; padding-inline-end: 6px; }
html[dir="rtl"] .chev { transform: scaleX(-1); }

.new { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.new .card { scroll-snap-align: start; }
.card .img { aspect-ratio: 4/3; max-width: 100%; border-radius: var(--r-md); display: grid; place-items: center; font-size: 40px; }
.card b { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.card small { color: var(--muted); }

.claim { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.claim .t { flex: 1; min-width: 220px; }
.claim h3 { margin: 0 0 4px; font-size: 20px; }
.claim p { margin: 0; color: var(--muted); }
.btn { border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; display: inline-block; }
.btn.y { background: var(--accent); color: var(--accent-ink); }
.btn.d { background: var(--dark); color: var(--dark-ink); }

/* Footer */
.foot { margin-top: 40px; background: var(--foot); color: var(--foot-ink); border-top: 1px solid var(--line); }
.foot .wrap { padding-block: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; opacity: .8; margin-inline-start: auto; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(127,127,127,.45); border-radius: 12px; padding: 5px 10px; line-height: 1.1; }
.store svg { width: 18px; height: 18px; }
.store small { display: block; font-size: 10px; opacity: .7; }
.store b { font-size: 13px; }
.copy { width: 100%; font-size: 12px; opacity: .5; }

/* Phone: app-style bottom tabs */
.tabs { display: none; }
/* Popular and hot: two rows of three on wide screens, three under each other on phones */
.trio .list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trio .row { min-width: 0; }

@media (max-width: 820px) {
  .trio .list { grid-template-columns: 1fr; }
  .trio .list > :nth-child(n+4) { display: none; }
  nav.desk { display: none; }
  .lang { margin-inline-start: auto; }
  .menu-btn { order: 10; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--dark); color: var(--dark-ink); flex: none; }
  .menu:not([hidden]) { display: block; position: fixed; inset: 70px 0 0; bottom: 0; z-index: 7; background: var(--bg); overflow-y: auto; padding: 8px 16px 120px; }
  .menu nav { display: flex; flex-direction: column; }
  .menu a { padding: 15px 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .menu .menu-contact { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--r-md); padding: 15px 18px; margin: 4px 0 8px; }
  .slide { aspect-ratio: var(--ratio-mob); }
  .slide-empty .size-desk, .ad .size-desk { display: none; }
  .ad { aspect-ratio: var(--ratio-mob); }
  .ad .size-mob { display: inline; }
  .slide-empty .size-mob { display: inline; }
  .slider-nav { display: none; }
  .cats { grid-auto-columns: 84px; }
  .two { grid-template-columns: 1fr; }
  .new { grid-auto-columns: 62%; }
  .foot .wrap { justify-content: center; text-align: center; gap: 10px 18px; }
  .foot-links { margin-inline-start: 0; justify-content: center; }
  .foot { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--card); border-top: 1px solid var(--line);
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    justify-content: space-around; align-items: flex-end; }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); min-width: 56px; }
  .tabs a.on { color: var(--ink); font-weight: 700; }
  .tabs .fab { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #121212; display: grid; place-items: center; font-size: 34px; margin-top: -30px; box-shadow: 0 8px 20px rgba(245,184,0,.35); }
}
@media (prefers-reduced-motion: reduce) {
  .slides { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .row, .card { transition: transform .15s; }
  .row:hover, .card:hover { transform: translateY(-2px); }
}

/* Real images from the database */
.cat .ic img { width: 60%; height: 60%; object-fit: contain; }
img.thumb { object-fit: cover; background: var(--chip); }
.card img.img { width: 100%; height: auto; object-fit: cover; background: var(--chip); }
.ad .ad-img, .ad .ad-img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ad .ad-img img { object-fit: cover; }
/* A booked ad on computers: a thin strip with the whole picture, a blurred copy filling the sides. */
.ad.has-img { display: block; background: var(--chip); max-height: 200px; }
.ad.has-img .ad-img img.ad-pic { object-fit: contain; }
.ad.has-img .ad-img img.ad-bg { object-fit: cover; filter: blur(24px) saturate(1.2); transform: scale(1.2); opacity: .85; }
/* Phones: the picture whole, at the shape it was uploaded. */
@media (max-width: 820px) {
  .ad.has-img { aspect-ratio: auto; max-height: none; }
  .ad.has-img .ad-img, .ad.has-img .ad-img img.ad-pic { position: static; height: auto; }
  .ad.has-img .ad-img img.ad-bg { display: none; }
}
.ad .tag { z-index: 1; }
.places .row { min-height: 64px; }
.flag-big { width: 52px; height: 52px; font-size: 30px; border-radius: 14px; }

/* ---------- Inner pages: lists, business, map ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-head p { margin: 4px 0 0; }
.ph-ic { width: 60px; height: 60px; border-radius: 20px; background: var(--chip); display: grid; place-items: center; flex: none; }
.ph-ic img { width: 60%; height: 60%; object-fit: contain; }
.search.slim { padding-block: 6px; margin-bottom: 18px; }
.search.slim input { font-size: 16px; padding: 8px 0; }
.search.slim .btn { padding: 10px 18px; }

.catgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.catcard { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.catcard .ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; flex: none; }
.catcard .ic img { width: 60%; height: 60%; object-fit: contain; }
.catcard .info { flex: 1; min-width: 0; }
.catcard b { display: block; font-size: 15px; line-height: 1.3; }
.catcard small { color: var(--muted); font-size: 13px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip small { color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.chip.on { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.chip.on small { color: inherit; opacity: .7; }

.bizgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.biz { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.biz .img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: grid; place-items: center; font-size: 40px; background: var(--chip); }
.biz .body { padding: 10px 12px 12px; }
.biz b { display: block; font-size: 15px; line-height: 1.3; }
.biz small { color: var(--muted); font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .btn { margin-top: 8px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.pager .on { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.pager span:not(.on) { border: 0; background: none; }

/* Business page (same parts as the app's business screen) */
.biz-page section { margin-top: 0; }
.biz-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center; }
.biz-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--chip); aspect-ratio: 4/3; }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; }
.hours-chip { position: absolute; bottom: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #121212; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.hours-chip .i { width: 18px; height: 18px; }
.hours-chip.is-open .i { color: #12A150; }
.hours-chip.is-shut .i { color: #D93025; }
.biz-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.biz-cat { margin: 6px 0 0; color: var(--muted); font-size: 17px; font-weight: 500; }
.biz-loc { margin: 6px 0 0; color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 15px; }
.biz-loc .i { width: 18px; height: 18px; flex: none; }
.biz-rate { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; }
.biz-rate small { color: var(--muted); }
.stars { --v: 0; position: relative; display: inline-block; letter-spacing: 2px; color: var(--line); font-size: 16px; line-height: 1; direction: ltr; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0; width: calc(var(--v) / 5 * 100%); overflow: hidden; color: var(--accent); white-space: nowrap; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 22px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font-size: 14px; font-weight: 600; min-width: 64px; }
.act > span { width: 58px; height: 58px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; transition: transform .15s; }
.act.y > span { background: var(--accent); color: var(--accent-ink); }
.act:hover > span { transform: translateY(-2px); }
.act.done > span { background: #12A150; color: #fff; }
.biz-tabs { position: sticky; top: 72px; z-index: 3; display: flex; gap: 6px; overflow-x: auto; margin: 26px 0 18px; padding: 8px 0; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.biz-tabs::-webkit-scrollbar { display: none; }
.biz-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.biz-tabs a:hover { color: var(--ink); background: var(--chip); }
.biz-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.biz-main, .biz-side { display: flex; flex-direction: column; gap: 16px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; scroll-margin-top: 140px; }
.box h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.socials { display: flex; justify-content: center; gap: 28px; padding-block: 14px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.socials a:hover { background: var(--chip); }
.inforows { display: flex; flex-direction: column; }
.inforow { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.inforow + .inforow { border-top: 1px solid var(--line); }
.inforow .ii { width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 18%, var(--card)); display: grid; place-items: center; flex: none; }
.inforow > span:nth-child(2) { flex: 1; min-width: 0; }
.inforow small { display: block; color: var(--muted); font-size: 13px; }
.inforow b { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
html[dir="rtl"] .inforow b[dir="ltr"] { text-align: right; }
.desc p { margin: 0 0 10px; line-height: 1.75; }
.desc p:last-child { margin-bottom: 0; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.features li { display: flex; align-items: center; gap: 8px; }
.features .i { color: #12A150; width: 18px; height: 18px; flex: none; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; display: block; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.faq { border-top: 1px solid var(--line); padding: 12px 0; }
.faq:first-of-type { border-top: 0; padding-top: 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; }
.hours span { color: var(--muted); }
.openbadge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.openbadge.is-open { background: #E3F6EA; color: #0B7A3B; }
.openbadge.is-shut { background: #FDE7E5; color: #B3261E; }
.mapframe { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--chip); margin-bottom: 12px; }
.mapframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.btn.wide { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-align: center; }
.btn.wide .i { width: 18px; height: 18px; }
.claimbox { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.claimbox .muted { color: inherit; opacity: .75; margin: -6px 0 14px; }
.rate-sum { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; }
.rate-sum b { font-size: 28px; }
.rate-sum small { color: var(--muted); }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.rv-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.review p { margin: 6px 0 4px; white-space: pre-line; }
.note { border-radius: 14px; padding: 12px 14px; font-weight: 600; margin: 14px 0 0; }
.note.ok { background: #E3F6EA; color: #0B7A3B; }
.note.bad { background: #FDE7E5; color: #B3261E; }
.review-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-form h3 { margin: 0; font-size: 17px; }
.review-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.review-form input:not([type=radio]), .review-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.review-form .btn { align-self: flex-start; }
.review-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rate-pick { border: 0; padding: 0; margin: 0; }
.rate-pick legend { padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
/* Stars are written 5→1 and shown reversed, so hovering a star lights it and the ones before it. */
.rate-pick .rp { display: inline-flex; flex-direction: row-reverse; gap: 4px; direction: ltr; }
.rate-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-pick label { font-size: 32px; line-height: 1; color: var(--line); cursor: pointer; flex-direction: row; }
.rate-pick label:hover, .rate-pick label:hover ~ label, .rate-pick input:checked ~ label { color: var(--accent); }
.rate-pick input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Map page */
main.wide { max-width: none; padding: 0; }
.mapview { position: relative; display: flex; flex-direction: column; height: calc(100dvh - 76px); min-height: 480px; }
.map-top { padding: 0 max(16px, env(safe-area-inset-left, 0px)) 10px; }
.map-top .chips { margin: 0; }
.map-body { position: relative; flex: 1; display: grid; grid-template-columns: 360px minmax(0, 1fr); min-height: 0; border-top: 1px solid var(--line); }
.map-list { overflow-y: auto; padding: 14px; background: var(--bg); border-inline-end: 1px solid var(--line); }
.map-list .row { width: 100%; text-align: start; font: inherit; }
.map-list .thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; flex: none; }
.map-status { margin: 0 0 10px; font-size: 13px; }
.map-canvas { position: relative; min-height: 300px; background: var(--chip); }
.map-canvas .empty { position: absolute; inset: 0; display: grid; place-items: center; }
.pin { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); display: grid; place-items: center; transition: transform .15s; }
.pin img { width: 22px; height: 22px; object-fit: contain; }
.pin span { width: 10px; height: 10px; border-radius: 50%; background: #121212; }
.pin.on { transform: scale(1.25); background: #121212; }
/* Pins drawn as HTML overlays are placed by their centre. */
.map-canvas .pin { position: absolute; margin: -19px 0 0 -19px; cursor: pointer; }
.map-canvas .pin.on { z-index: 2; }
.pin.on img { filter: brightness(0) invert(1); }
.pin.on span { background: var(--accent); }
.map-me { margin: 0 10px 10px 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #121212; font-size: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.map-card { position: absolute; z-index: 4; bottom: 18px; inset-inline-end: 18px; width: min(420px, calc(100% - 36px)); display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.map-card img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; }
.mc-body { flex: 1; min-width: 0; }
.mc-body b { display: block; font-size: 16px; line-height: 1.3; padding-inline-end: 22px; }
.mc-body small { color: var(--muted); }
.mc-body p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.mc-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mc-act .btn { padding: 8px 14px; font-size: 13px; background: var(--chip); }
.mc-act .btn.y { background: var(--accent); }
.map-card .x { position: absolute; top: 6px; inset-inline-end: 8px; background: none; border: 0; font-size: 22px; color: var(--muted); }

@media (max-width: 980px) {
  .bizgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* One column: opening hours come right after the contact details, the map and reviews further down. */
  .biz-cols { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .biz-main, .biz-side { display: contents; }
  .biz-cols .box { order: 5; }
  .biz-cols .socials { order: 1; } .biz-cols #info { order: 2; } .biz-cols #hours { order: 3; }
  .biz-cols #map { order: 6; } .biz-cols #reviews { order: 8; } .biz-cols .claimbox { order: 9; }
}
@media (max-width: 820px) {
  .bizgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catgrid { grid-template-columns: minmax(0, 1fr); }
  .biz-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .biz-actions { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
  .act { min-width: 0; flex: 1; font-size: 12px; }
  .act > span { width: 50px; height: 50px; }
  .biz-tabs { top: 68px; }
  .box { padding: 16px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapview { height: calc(100dvh - 68px - 76px); }
  .map-body { grid-template-columns: minmax(0, 1fr); }
  .map-list { display: none; }
  .map-card { inset-inline: 12px; bottom: 12px; width: auto; }
  .search.slim .btn { padding: 10px 14px; }
}
@media (max-width: 440px) {
  header.top .wrap { gap: 8px; }
}

/* Contact, FAQ, events, text pages */
.info-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.info-cols section, section.box.narrow { margin-top: 0; }
.box.narrow { max-width: 760px; margin-bottom: 16px; }
.contact-cta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-cta p { margin: 0 0 10px; }
.review-form.plain { margin-top: 0; padding-top: 0; border-top: 0; }
.faq-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.faq-more p { margin: 0; font-weight: 700; }
.empty-box { text-align: center; }
.empty-box h2 { justify-content: center; }
.empty-box .big { font-size: 48px; }
@media (max-width: 820px) { .info-cols { grid-template-columns: minmax(0, 1fr); } }

/* Tiles in one row are always the same height and shape. */
.trio .row, .catcard, .biz { height: 100%; }
.row b, .catcard b, .biz b, .card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trio .row { min-height: 86px; }
.catcard { min-height: 78px; }
.biz .body { flex: 1; min-height: 66px; }
.new .card b { min-height: 2.6em; }

/* Account and sign in, like the app's Account tab */
.acc { max-width: 460px; margin: 0 auto; padding-bottom: 12px; }
.acc-title { text-align: center; font-size: 19px; margin: 4px 0 18px; }
.welcome { text-align: center; }
.auth-logo { width: 82px; height: 82px; display: block; margin: 0 auto 18px; border-radius: 20px; }
.welcome h2 { font-size: 27px; margin: 0 0 8px; font-weight: 800; }
.welcome p { margin: 0 0 24px; font-size: 15px; }
.sbtns { display: flex; flex-direction: column; gap: 12px; }
.sbtn { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 16px; font-weight: 700; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); text-decoration: none; overflow: hidden; }
.sbtn svg { position: absolute; inset-inline-start: 20px; width: 24px; height: 24px; }
.sbtn.apple { background: #000; color: #fff; border-color: #000; }
.sbtn.email { background: var(--accent); color: #121212; border-color: var(--accent); }
.sbtn.email svg, .sbtn.phone svg { stroke: currentColor; fill: none; stroke-width: 1.8; }
.gbtn { position: absolute; inset: 0; opacity: .01; display: flex; align-items: center; justify-content: center; }
.gbtn > div, .gbtn iframe { width: 100% !important; height: 100% !important; transform: scale(1.4); }
.acc-signup { text-align: center; color: var(--muted); margin: 18px 0 22px; font-size: 15px; }
.acc-signup a { color: var(--ink); font-weight: 800; text-decoration: none; }
.acc-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 6px 8px; }
.acc-list { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin: 0; }
form.acc-list { margin-top: 18px; }
.acc-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px; min-height: 64px; color: var(--ink); text-decoration: none; font: inherit; font-size: 16px; font-weight: 500; background: none; border: 0; text-align: start; cursor: pointer; }
.acc-row + .acc-row { border-top: 1px solid var(--line); margin-inline-start: 0; }
.acc-row > span:nth-child(2) { flex: 1; }
.acc-row .ii { width: 42px; height: 42px; border-radius: 12px; background: var(--chip); display: grid; place-items: center; flex: none; }
.acc-row .ii svg { width: 21px; height: 21px; }
.acc-row .chev { color: var(--muted); font-size: 24px; line-height: 1; }
[dir=rtl] .acc-row .chev { transform: scaleX(-1); }
.acc-row.off { cursor: default; }
.acc-row.off > span:nth-child(2) { color: var(--muted); }
.soon { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--chip); border-radius: 999px; padding: 4px 10px; }
.acc-delete { text-align: center; margin: 26px 0 6px; }
.acc-delete a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.profile { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px 18px 22px; text-align: center; }
.pavatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 14px; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.pavatar.letter { display: grid; place-items: center; background: var(--accent); color: #121212; font-weight: 800; font-size: 44px; }
.profile h2 { margin: 0; font-size: 23px; font-weight: 800; }
.profile p { margin: 4px 0 16px; }
.pedit { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; }
.pedit svg { width: 18px; height: 18px; }
.auth-card .note, .acc > .note { margin: 0 0 14px; }
.auth-card h2 { font-size: 22px; margin: 8px 0 6px; }
.auth-back { display: inline-block; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 6px; }
.auth-card .review-form { margin-top: 14px; }
.btn.wide, .review-form .btn.wide { align-self: stretch; justify-content: center; width: 100%; }
.btn.danger { background: #B3261E; color: #fff; }
.checkrow { flex-direction: row !important; align-items: center; gap: 10px !important; }
.otp { font-size: 24px !important; letter-spacing: .35em; text-align: center; font-weight: 700 !important; }
.auth-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; font-weight: 600; font-size: 14px; }
.auth-links a, .linkbtn { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.muted.small { font-size: 13px; margin-top: 12px; }

/* Stories, like the app's Stories tab */
.stories { max-width: 720px; margin: 0 auto; position: relative; }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.st-head h1 { font-size: 34px; margin: 0; font-weight: 800; }
.st-head p { margin: 4px 0 18px; font-size: 15px; }
.st-help { position: relative; }
.st-help summary { list-style: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-weight: 800; font-size: 20px; cursor: pointer; }
.st-help summary::-webkit-details-marker { display: none; }
.st-help-box { position: absolute; inset-inline-end: 0; top: 56px; width: min(300px, 80vw); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; z-index: 5; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.st-help-box p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.qow { background: #121212; color: #fff; border-radius: 26px; padding: 20px; margin-bottom: 16px; }
.qow-tag { display: inline-block; background: var(--accent); color: #121212; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 6px 12px; }
.qow h2 { font-size: 22px; line-height: 1.35; margin: 12px 0 16px; }
.st-chips .chip { text-decoration: none; color: var(--ink); padding: 10px 18px; font-size: 15px; }
.st-chips .chip.on { color: var(--dark-ink); }
.st-list { display: flex; flex-direction: column; gap: 14px; }
.story { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.story header { display: flex; align-items: center; gap: 12px; }
.st-av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #FFF1C9; color: #121212; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.st-who { flex: 1; min-width: 0; }
.st-who b { font-size: 16px; }
.st-who small { display: block; color: var(--muted); font-size: 13px; }
.st-review { margin-inline-start: 8px; background: #FFF1C9; color: #8A6100; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.st-mood { flex: none; background: #FFF1C9; color: #121212; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.st-text { margin: 12px 0 0; white-space: pre-line; font-size: 15.5px; line-height: 1.75; }
.st-photo { display: block; width: 100%; height: auto; border-radius: 16px; margin-top: 12px; }
.story footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.story footer form { margin: 0; }
.react { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
span.react { cursor: default; }
.react.on { background: #FFF1C9; border-color: var(--accent); }
.st-report { margin-inline-start: auto !important; font-size: 13px; }
.st-report .linkbtn { color: var(--muted); }
.st-more { text-align: center; margin: 18px 0; }
.st-fab { position: sticky; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); float: inline-end; margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #121212; font-weight: 800; font-size: 16px; padding: 16px 22px; border-radius: 20px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.st-fab svg { width: 22px; height: 22px; }
.st-app { margin-top: 18px; text-align: center; }
.st-stores { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.st-write { margin-bottom: 16px; }
.st-moods { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-moods legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.st-moods .chip { flex-direction: row !important; align-items: center; gap: 6px !important; cursor: pointer; }
.st-moods .chip:has(input:checked) { background: var(--dark); color: var(--dark-ink); }
.st-moods input { accent-color: var(--accent); }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn.wa { background: #25D366; color: #08361b; }

/* ---------- Panel ---------- */
.panel { max-width: 980px; margin: 0 auto; padding-bottom: 24px; }
.pnav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: none; }
.pnav::-webkit-scrollbar { display: none; }
.pnav a { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.pnav a.on { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.ptabs { display: flex; gap: 6px; margin: 6px 0 12px; }
.ptabs a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.ptabs a.on { background: var(--chip); color: var(--ink); }
.prole { margin: 10px 0 16px; }
.prole p { margin: 0 0 6px; }
.role-line { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.role-line .i { width: 20px; height: 20px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.pcard b { font-size: 26px; line-height: 1; }
.pcard span { font-weight: 600; font-size: 14px; }
.pcard.y { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pcard.hot b { color: #B3261E; }
.phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.phead p { margin: 0; }
.prows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prow { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.prow.flat { border: 0; padding: 0 0 12px; background: none; }
.prow > input[type=checkbox], .selall input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.pthumb { width: 64px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; background: var(--chip); display: grid; place-items: center; font-size: 22px; }
.adprev { width: 120px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--chip); }
.pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pmain b { overflow-wrap: anywhere; }
.pmain .small, .pmain .muted.small { margin-top: 0; font-size: 13px; }
.ctext { white-space: pre-line; overflow-wrap: anywhere; }
.pacts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pacts form { margin: 0; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.ghost { background: var(--chip); color: var(--ink); }
.btn.ghost.bad { color: #B3261E; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--chip); margin-inline-end: 4px; width: fit-content; }
.tag.ok { background: #E3F6EA; color: #0B7A3B; }
.tag.wait { background: #FFF1C9; color: #7A5A00; }
.tag.bad { background: #FDE7E5; color: #B3261E; }
.tag.claude { background: #F3E8DD; color: #8A4B1F; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: 14px; }
.selall { margin: 0 0 10px 14px; font-weight: 600; }
.pbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pbar.sticky { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 12px 10px 18px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.pbar.sticky [data-count] { margin-inline-end: auto; }
.pform { display: flex; flex-direction: column; gap: 16px; }
.pform fieldset { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pform legend { font-weight: 800; font-size: 17px; padding: 0 6px; }
.pform label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.pform label.checkrow { flex-direction: row; align-items: center; }
.pform input:not([type=checkbox]):not([type=radio]):not([type=file]), .pform textarea, .pform select, .qadd input, .copyrow input {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; width: 100%; min-width: 0; }
.pform input[type=file] { font: inherit; font-size: 14px; }
.pform .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pform label.short { max-width: 160px; }
.pform h2 { margin: 0; }
.size-hint { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.size-hint::before { content: "📐 "; }
.pphoto { width: 200px; max-width: 100%; height: auto; border-radius: 14px; object-fit: cover; background: var(--chip); }
.imgfield { display: flex; flex-direction: column; gap: 6px; }
.menu-rows { display: flex; flex-direction: column; gap: 8px; }
.menu-row { display: grid; grid-template-columns: 1.2fr 2fr .8fr auto; gap: 8px; align-items: center; }
.hours-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px 10px; align-items: center; }
.price-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 8px; align-items: center; font-size: 14px; }
.ad-total { font-weight: 800; font-size: 18px; margin: 0; }
.copyrow { display: flex; gap: 8px; align-items: center; }
.steps { padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; }
.qlist { padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.qlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qlist li.on > span:first-child { font-weight: 800; }
.qadd { display: flex; gap: 8px; }
form.inline { display: inline-flex; gap: 6px; margin: 0; }
form.inline select { font: inherit; border-radius: 999px; padding: 6px 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.panel .box + .box, .panel .box + .acc-label, .panel .pform.box { margin-top: 14px; }
@media (max-width: 640px) {
  .prow { flex-wrap: wrap; }
  .pacts { width: 100%; justify-content: flex-start; }
  .menu-row { grid-template-columns: 1fr 1fr; }
  .menu-row input[name=menuDesc] { grid-column: 1 / -1; order: 3; }
  .pbar.sticky { border-radius: 22px; }
  .price-grid { grid-template-columns: 1.2fr repeat(3, 1fr); font-size: 12px; }
}

/* Menu / price list on a business page */
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu-list li { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list .md { display: block; font-size: 13px; color: var(--muted); }
.menu-list .mp { font-weight: 800; white-space: nowrap; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.event img { width: calc(100% + 44px); margin: -20px -22px 14px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; display: block; max-width: none; }
.event p { margin: 0 0 8px; }

/* Panel 4.1: users, history, view-as */
.viewas { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #121212; color: #fff; border-radius: 16px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; }
.viewas .btn { background: #F5B800; color: #121212; border: 0; }
.psearch { display: flex; gap: 8px; margin: 0 0 8px; }
.psearch input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line, #ddd); font: inherit; background: var(--card, #fff); color: inherit; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; }
.facts dt { color: var(--muted, #777); font-size: 14px; }
.facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line, #eee); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 8px 10px; text-align: start; border-bottom: 1px solid var(--line, #eee); vertical-align: top; }
.ptable th { font-weight: 700; background: var(--chip, #f4f4f4); white-space: nowrap; }
.ptable td:first-child { white-space: nowrap; }
.mrole { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mpass { margin-top: 6px; }
.mpass summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.inline-form { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 160px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line, #ddd); font: inherit; background: var(--card, #fff); color: inherit; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { margin-top: 6px; } }

/* Panel side menu (4.3): sections that open and close, like the old panel; on phones it opens with a button. */
.pshell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.pshell .panel { max-width: none; }
.pside-t, .pside-btn { display: none; }
.pside { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; scrollbar-width: thin; }
.pside-home { display: block; padding: 11px 12px; border-radius: 12px; font-weight: 700; background: var(--chip); margin-bottom: 6px; }
.pside-home.on { background: var(--accent); color: var(--accent-ink); }
.pside-sep { margin: 12px 6px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pside-group { margin-bottom: 4px; border-radius: 12px; overflow: hidden; }
.pside-group > summary { list-style: none; cursor: pointer; padding: 11px 12px; font-weight: 700; background: #1d1d1c; color: #fff; display: flex; align-items: center; gap: 8px; border-radius: 12px; }
.pside-group > summary::-webkit-details-marker { display: none; }
.pside-group > summary::after { content: "▾"; margin-inline-start: auto; opacity: .8; transition: transform .15s; }
.pside-group:not([open]) > summary::after { transform: rotate(-90deg); }
html[dir="rtl"] .pside-group:not([open]) > summary::after { transform: rotate(90deg); }
.pside-group[open] > summary { border-radius: 12px 12px 0 0; }
.pside-group ul { list-style: none; margin: 0; padding: 4px 0; background: var(--bg); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
.pside-group li a { display: block; padding: 9px 14px 9px 22px; font-size: 14px; border-inline-start: 3px solid transparent; }
html[dir="rtl"] .pside-group li a { padding: 9px 22px 9px 14px; }
.pside-group li a:hover { background: var(--chip); }
.pside-group li a.on { border-inline-start-color: var(--accent); background: var(--chip); font-weight: 700; }
.pside .oldp { color: var(--muted); font-size: 11px; white-space: nowrap; }
@media (max-width: 860px) {
  .pshell { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0; }
  .pside-btn { display: inline-flex; justify-self: start; margin-top: 8px; }
  .pside { display: none; position: static; max-height: none; }
  .pside-t:checked ~ .pside { display: block; }
}
/* Old panel lists (4.3) */
.mod-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.mod-search { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.mod-search label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.mod-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0; }
.mod-bar form, .mod-bar .inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ptable td.idx input { width: 64px; padding: 6px 8px; }
.ptable .pthumb { width: 56px; height: 42px; }
.ptable td.acts { min-width: 230px; }
.ptable td.acts > * { margin: 0 0 6px 6px; vertical-align: middle; }
.ptable .acts form { display: inline-block; }
.act { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 10px; border: 0; font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; text-decoration: none; color: #fff; background: #555; transition: filter .15s, transform .1s; }
.act:hover { filter: brightness(1.12); text-decoration: none; color: #fff; }
.act:active { transform: scale(.97); }
.act.okbtn.yes { background: #1f9d4c; }
.act.okbtn.no { background: #d64541; }
.act.send { background: #2f6fd6; }
.act.edit { background: #F5B800; color: #111; }
.act.edit:hover { color: #111; }
.act.dup { background: #7a7f87; }
.act.del { background: #fff; color: #c0392b; box-shadow: inset 0 0 0 2px #c0392b; }
.act.del:hover { background: #c0392b; color: #fff; }
.act.recover { background: #1f9d4c; }
@media (max-width: 700px) { .ptable td.acts { min-width: 130px; } .ptable td.acts > * { display: flex; justify-content: center; margin: 0 0 6px; } .ptable .acts form .act { width: 100%; justify-content: center; } }
.ptabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ptabs a, .ptabs button { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.ptabs .on { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.ptab-panel[hidden] { display: none; }
.pfile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; }
.pager-nums { display: flex; flex-wrap: wrap; gap: 4px; }
.pager-nums a, .pager-nums span { min-width: 34px; text-align: center; padding: 6px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.pager-nums .on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.chk-label { display: flex !important; gap: 8px; align-items: center; }
.chk-label input { width: auto; }
.dash-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dash-sections h3 { margin: 0 0 10px; font-size: 16px; }
.dash-sections .chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* 4.5: required / optional chips, searchable lists, list search layout */
.nowrap { white-space: nowrap; }
.need { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-inline-start: 6px; }
.need.req { background: #fde8e7; color: #b3261e; }
.need.rec { background: #fff4cc; color: #7a5b00; }
.need.opt { background: #eef0f2; color: #555; }
details.more > summary { cursor: pointer; padding: 4px 0; list-style-position: inside; }
details.more[open] > summary { margin-bottom: 10px; }
details.more > label, details.more > .two { margin-top: 10px; }
.sel-find { width: 100%; box-sizing: border-box; padding: 7px 10px; margin: 4px 0 4px; border: 1px solid var(--line, #ddd); border-radius: 10px; font: inherit; font-size: 13px; background: #fffbea; }
.mod-search { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.mod-search label { min-width: 0; align-content: end; }
.mod-search select, .mod-search input:not([type=checkbox]) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.mod-search .btn { justify-self: start; }
.prow .pacts .act { margin: 0 0 6px 6px; }
.biz-photo { position: relative; }
.photo-claim { position: absolute; inset-inline: 12px; top: 12px; background: rgba(17,17,17,.88); color: #fff; border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; }
.photo-claim:hover { background: #111; color: var(--accent, #F5B800); }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.kind { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 1px solid var(--line, #eee); border-radius: 16px; padding: 10px; overflow: hidden; }
.kind img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4/3; border-radius: 12px; object-fit: cover; }
.kind input[type=file] { font-size: 12px; max-width: 100%; }
.kind-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.need { width: auto; }

/* 4.6: red unread badges */
.kk-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E5332A; color: #fff;
  font-size: 11.5px; font-weight: 800; line-height: 1; vertical-align: middle; margin-inline-start: 6px; }
.kk-badge.dot { position: absolute; top: 2px; margin-left: 18px; min-width: 10px; height: 10px; padding: 0; font-size: 0; }
html[dir="rtl"] .kk-badge.dot { margin-left: 0; margin-right: 18px; }
.tabs a { position: relative; }

/* 4.6: chat with business owners */
.chat { display: grid; grid-template-columns: 300px 1fr; gap: 14px; margin-top: 14px; min-height: 60vh; }
.chat-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; overflow-y: auto; max-height: 75vh; display: flex; flex-direction: column; gap: 2px; }
.chat-list .notif-on { margin: 6px; }
.chat-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; }
.chat-item:hover { background: var(--chip); }
.chat-item.on { background: var(--t6); }
.chat-av { width: 42px; height: 42px; border-radius: 50%; background: var(--dark); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.chat-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.chat-meta b, .chat-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-last { font-size: 13px; color: var(--muted); }
.chat-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 60vh; max-height: 78vh; overflow: hidden; }
.chat-pick { align-items: center; justify-content: center; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.chat-back { display: none; font-size: 28px; padding: 0 6px; }
.chat-status.on { color: #0B7A3B; }
.chat-more { position: relative; }
.chat-more summary { list-style: none; cursor: pointer; font-size: 22px; padding: 2px 10px; border-radius: 10px; }
.chat-more summary::-webkit-details-marker { display: none; }
.chat-menu { position: absolute; inset-inline-end: 0; top: 36px; z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  width: 260px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.chat-report label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.chat-report textarea { border: 1px solid var(--line); border-radius: 12px; padding: 8px; font: inherit; background: var(--bg); color: var(--ink); }
.chat-msgs { list-style: none; margin: 0; padding: 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.chat-msgs.static { max-height: 60vh; border-radius: 16px; }
.msg { max-width: 78%; padding: 8px 12px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px;
  align-self: flex-start; white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; background: var(--accent); color: #121212; border-color: transparent; }
.msg img { border-radius: 12px; max-height: 260px; object-fit: cover; }
.msg time { font-size: 11px; opacity: .65; align-self: flex-end; }
.msg .tick { font-style: normal; font-size: 11px; align-self: flex-end; opacity: .6; margin-top: -16px; margin-inline-end: -4px; }
.msg .tick.seen { color: #1565C0; opacity: 1; }
.msg.me time { margin-inline-end: 18px; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; }
.chat-send { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-send textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 22px; padding: 10px 14px; font: inherit; background: var(--bg); color: var(--ink); max-height: 140px; }
.chat-send .btn { padding: 10px 16px; }
.chat-send.busy { opacity: .6; pointer-events: none; }
.chat-photo { font-size: 22px; cursor: pointer; padding: 6px; }
#chat-err { margin: 0 14px 8px; color: #B3261E; }
.chat-blocked { margin: 12px; }
.chat-box > details.more { margin: 12px; }
.quick-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.quick-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--bg); border-radius: 12px; padding: 6px 10px; }
.chatbox .btn { margin-top: 4px; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; }
  .chat.hasopen .chat-list { display: none; }
  .chat.hasopen .chat-back { display: block; }
  .chat-box { max-height: calc(100vh - 210px); min-height: 70vh; }
  .chat.nochat .chat-pick { display: none; }
}

/* 4.6: tickets */
.tk-thread { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.tk-msg { border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; background: var(--bg); }
.tk-msg.team { background: var(--t6); border-color: transparent; }
.tk-msg p { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; }
.tk-msg img { margin-top: 8px; border-radius: 12px; max-height: 300px; }
.prow.unread { border-inline-start: 4px solid var(--accent); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.row-radios { border: 0; padding: 0; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }

/* 4.6: site assistant bubble */
.kk-ai { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 20; }
.kk-ai-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--dark); color: var(--accent); display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.kk-ai.open .kk-ai-btn { display: none; }
.kk-ai-box { position: fixed; inset-inline-end: 18px; bottom: 18px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.kk-ai-box header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--dark); color: var(--dark-ink); }
.kk-ai-x { border: 0; background: none; color: inherit; font-size: 26px; line-height: 1; }
.kk-ai-log { list-style: none; margin: 0; padding: 14px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.kk-ai-log li { max-width: 90%; border-radius: 18px; padding: 9px 13px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; }
.kk-ai-log li p { margin: 0; white-space: pre-wrap; }
.kk-ai-log li.me { align-self: flex-end; background: var(--accent); color: #121212; border-color: transparent; }
.kk-ai-log li.wait { opacity: .7; font-style: italic; }
.kk-ai-cards { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.kk-ai-cards li { padding: 0; border: 0; max-width: none; background: none; }
.kk-ai-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: var(--bg); }
.kk-ai-card img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.kk-ai-card span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.kk-ai-card small { color: var(--muted); }
.kk-ai-link { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: underline; }
.kk-ai-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; }
.kk-ai-form { display: flex; gap: 8px; padding: 10px 12px; }
.kk-ai-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; background: var(--bg); color: var(--ink); min-width: 0; }
.kk-ai-form .btn { padding: 10px 16px; }
.kk-ai-note { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--muted); }
@media (max-width: 820px) {
  .kk-ai { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; }
  .kk-ai-btn { width: 52px; height: 52px; }
  .kk-ai-box { inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px)) 8px; width: auto; height: min(80vh, calc(100vh - 80px)); }
}

/* 4.7: a business page in the owner's own design (colour = --accent on the article, shape, header style, cover) */
.biz-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; aspect-ratio: 16/5; background: var(--chip); }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-tagline { margin: 4px 0 6px; font-size: 18px; font-weight: 700; color: var(--accent); }
.designed .biz-tabs a:hover, .designed .biz-tabs a:focus-visible { color: var(--accent); }
.designed .welcome { border-inline-start: 6px solid var(--accent); }
.designed.hero-tint .biz-hero { background: color-mix(in srgb, var(--accent) 16%, var(--card)); padding: 18px; border-radius: var(--r-lg); }
.designed.hero-dark .biz-hero { background: #121212; color: #fff; padding: 18px; border-radius: var(--r-lg); }
.designed.hero-dark .biz-hero .biz-cat, .designed.hero-dark .biz-hero .biz-loc, .designed.hero-dark .biz-hero small { color: #bdbcb6; }
.designed.hero-dark .biz-hero .act > span { background: #2a2a28; color: #fff; }
.designed.hero-dark .biz-hero .act.y > span { background: var(--accent); color: var(--accent-ink); }
.designed.hero-dark .biz-tagline { color: var(--accent); }
.biz-page[data-shape="soft"] .box, .biz-page[data-shape="soft"] .biz-photo, .biz-page[data-shape="soft"] .biz-cover, .biz-page[data-shape="soft"] .biz-hero { border-radius: 14px; }
.biz-page[data-shape="soft"] .btn, .biz-page[data-shape="soft"] .act > span { border-radius: 12px; }
.biz-page[data-shape="square"] .box, .biz-page[data-shape="square"] .biz-photo, .biz-page[data-shape="square"] .biz-cover, .biz-page[data-shape="square"] .biz-hero { border-radius: 4px; }
.biz-page[data-shape="square"] .btn, .biz-page[data-shape="square"] .act > span { border-radius: 4px; }
.biz-page .video + .video { margin-top: 12px; }
.yt-channel { margin-top: 12px; }
.ds-preview { margin-bottom: 12px; }

/* 4.7: "Design my page" in the panel */
.ds-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { position: relative; cursor: pointer; }
.sw input[type=radio] { position: absolute; opacity: 0; }
.sw > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c, var(--chip)); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 800; }
.sw input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.sw input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.sw.custom { display: flex; align-items: center; gap: 6px; }
.sw.custom input[type=color] { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; }
.shape-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.opt-card { position: relative; border: 2px solid var(--line); border-radius: 18px; padding: 12px; display: flex !important; flex-direction: column; align-items: center; gap: 8px !important; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; }
.opt-card:has(input:checked) { border-color: var(--ink); background: var(--t6); }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--accent); }
.shape-demo { display: flex; gap: 6px; }
.shape-demo i { width: 40px; height: 26px; background: var(--accent); display: block; }
.shape-demo i + i { background: var(--chip); border: 1px solid var(--line); }
.s-round i { border-radius: 999px; } .s-soft i { border-radius: 8px; } .s-square i { border-radius: 2px; }
.hero-demo { width: 90px; height: 50px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.h-tint { background: color-mix(in srgb, var(--accent) 22%, var(--card)); } .h-dark { background: #121212; }
.pform h3 { margin: 6px 0 0; font-size: 15px; }
.ds-cover { max-height: 160px; object-fit: cover; border-radius: 14px; width: 100%; }
.ds-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ds-photos img { aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; width: 100%; }
.ds-sections { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ds-sections li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px; background: var(--bg); }
.ds-move { display: flex; gap: 4px; }
.ds-move .btn { padding: 6px 10px; }
.pbar.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; z-index: 3; }
.vq video { width: 100%; max-height: 420px; border-radius: 14px; background: #000; margin: 8px 0; }
details.rej { position: relative; }
details.rej summary { list-style: none; cursor: pointer; }
details.rej form { position: absolute; inset-inline-end: 0; top: 40px; z-index: 4; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; width: 260px; }
.ptabs.sub { margin-top: 8px; }
.welcome .desc, .welcome .desc p { text-align: start; }
.pform label.sw { display: inline-block; }
.pform label.sw.custom { display: flex; flex-direction: row; align-items: center; }
.ds-unlock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ds-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 14px 0; }
.ds-offer { display: flex; flex-direction: column; gap: 6px; margin: 0; border: 2px solid var(--accent); }
.ds-offer.team { border-color: var(--line); }
.ds-offer h2 { margin: 0; }
.ds-offer .btn, .ds-offer form { margin-top: auto; }
.ds-price { font-size: 1.6rem; font-weight: 800; margin: 0; }
.cat-filter { width: 100%; margin: 10px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; }
.pickmap { display: flex; flex-direction: column; gap: 8px; }
.pickmap-canvas { height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--chip); }
.mi { display: inline-block; width: 1.35em; text-align: center; font-style: normal; }
/* Panel: default ad banners */
.defad-form label { display: block; margin: 6px 0; }
.defad-form input { display: block; width: 100%; max-width: 420px; margin-top: 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: inherit; font: inherit; }
.sys-msg { white-space: pre-wrap; margin: 6px 0 0; }
