:root {
  --bg: #fbf8f7;
  --card: #ffffff;
  --ink: #1f1a1c;
  --muted: #7a6f73;
  --line: #eee5e4;
  --accent: #e04f7f;
  --accent-ink: #b8325f;
  --accent-soft: #fde8ef;
  --green: #1f9d61;
  --green-soft: #e3f6ec;
  --red: #c4423b;
  --gold: #f2a91f;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(60, 20, 35, .10);
  --top: 60px;
  --side: 440px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Manrope, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); font-weight: 500; }
h1, h2, h3 { letter-spacing: -.01em; }

/* ---------- top bar ---------- */
.topbar { height: var(--top); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.logo { font-weight: 800; font-size: 20px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--accent); }
.logo-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #ff8fb1, var(--accent)); }
.topnav a { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------- home ---------- */
.home { max-width: 980px; margin: 0 auto; padding: 72px 20px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; line-height: 1.55; }
.hero-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 36px; }
.hero-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: .15s; }
a.hero-card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.hero-card-icon { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 12px; }
.hero-card small { color: var(--muted); font-weight: 500; }
.hero-card .arrow { margin-left: auto; color: var(--accent); font-size: 20px; }
.hero-card.soon { opacity: .55; }

/* ---------- map page layout ---------- */
.page-map { height: 100dvh; overflow: hidden; }
.layout { display: grid; grid-template-columns: var(--side) 1fr; height: calc(100dvh - var(--top)); position: relative; }
.side { overflow-y: auto; background: var(--card); border-right: 1px solid var(--line); }
.side-head { padding: 18px 20px 12px; position: sticky; top: 0; background: var(--card); z-index: 2; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 12.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.side-head h1 { font-size: 24px; margin: 6px 0 2px; font-weight: 800; }
.sub { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.sub b { color: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--muted); }
.search:focus-within { border-color: var(--accent); background: #fff; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; padding: 11px 0; width: 100%; color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; transition: .12s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sortrow { margin-top: 10px; font-size: 13px; color: var(--muted); }
.sortrow select { font: inherit; font-weight: 600; color: var(--ink); border: 0; background: transparent; cursor: pointer; }

.list { list-style: none; margin: 0; padding: 6px 10px 10px; }
.item { border-radius: 12px; transition: background .12s; }
.item + .item { border-top: 1px solid var(--line); }
.item.hover, .item:hover { background: #fdf3f6; }
.item.active { background: var(--accent-soft); }
.item-link { display: block; padding: 13px 10px; color: var(--ink); }
.item-link:hover { text-decoration: none; }
.item-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item h2 { font-size: 16px; margin: 0; font-weight: 700; }
.rate { font-weight: 700; color: var(--ink); white-space: nowrap; font-size: 14px; }
.rate::first-letter { color: var(--gold); }
.rate small { color: var(--muted); font-weight: 500; }
.rate.none { color: var(--muted); font-weight: 500; font-size: 12px; }
.rate.none::first-letter { color: inherit; }
.item-meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.badge, .tag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #f2eeed; color: #5b5155; }
.badge.pink { background: var(--accent-soft); color: var(--accent-ink); }
.status { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.status.open { color: var(--green); }
.status.closed { color: var(--red); }
.empty { padding: 30px 20px; text-align: center; color: var(--muted); }
.seo-text { padding: 18px 20px 30px; color: var(--muted); font-size: 13.5px; line-height: 1.6; border-top: 1px solid var(--line); }
.seo-text h2 { font-size: 15px; color: var(--ink); }
.seo-text .src { font-size: 12px; }

.mapwrap { position: relative; }
#map { position: absolute; inset: 0; }
.mapstyle { position: absolute; left: 12px; top: 12px; display: flex; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 3px; z-index: 2; }
.mapstyle button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mapstyle button.on { background: var(--ink); color: #fff; }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: var(--shadow) !important; }

/* ---------- pins ---------- */
/* MapLibre positions .pin via transform/position: style only the inner element */
.pin { border: 0; padding: 0; background: transparent; filter: drop-shadow(0 3px 6px rgba(60, 20, 35, .25)); }
.pin-in { display: block; position: relative; background: #fff; color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 5px 9px; border-radius: 999px; border: 2px solid var(--accent); white-space: nowrap; transition: transform .15s; transform-origin: 50% 130%; }
.pin-in.pin-dot { padding: 3px 6px; font-size: 14px; line-height: 1.2; }
.pin-in::after { content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--accent); border-bottom: 0; }
.pin.nails .pin-in { background: var(--accent-soft); }
.pin:hover, .pin.hover { z-index: 5; }
.pin:hover .pin-in, .pin.hover .pin-in { transform: scale(1.15); }
.pin.active { z-index: 6; }
.pin.active .pin-in { transform: scale(1.25); background: var(--accent); color: #fff; }

/* ---------- detail sheet ---------- */
.sheet { position: absolute; z-index: 10; background: var(--card); top: 0; left: 0; bottom: 0; width: var(--side); transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sheet.open { transform: none; }
.sheet-grip { display: none; }
.sheet-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f2eeed; z-index: 2; font-size: 14px; }
.sheet-close:hover { background: var(--accent-soft); }
.sheet-body { overflow-y: auto; padding: 22px 22px 40px; flex: 1; }
.loading { padding: 40px 0; color: var(--muted); text-align: center; }

.d-head h1, .d-head h2 { font-size: 24px; margin: 8px 44px 6px 0; font-weight: 800; line-height: 1.2; }
.d-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.stars { color: var(--gold); letter-spacing: 1px; }
.stars.sm { font-size: 12px; }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.ghost { border-color: transparent; color: var(--accent-ink); }
.d-info { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.d-info li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.d-info .ic { width: 20px; text-align: center; }
.d-info details { margin-top: 6px; }
.d-info summary { cursor: pointer; color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.hours { margin-top: 8px; border-collapse: collapse; font-size: 13.5px; }
.hours td { padding: 3px 18px 3px 0; }
.hours tr.today { font-weight: 800; }
.d-desc { line-height: 1.6; }
.d-sec { margin-top: 26px; }
.d-sec h3 { font-size: 17px; margin: 0 0 12px; display: flex; gap: 8px; align-items: baseline; }
.placeholder { background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.prices { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prices td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.prices td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }

.r-summary { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; }
.r-big { display: flex; flex-direction: column; align-items: center; }
.r-big b { font-size: 40px; line-height: 1; }
.r-bars { flex: 1; }
.r-bar { display: grid; grid-template-columns: 12px 1fr 20px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.r-bar i { height: 6px; background: #f2eeed; border-radius: 3px; overflow: hidden; }
.r-bar em { display: block; height: 100%; background: var(--gold); }
.r-form { background: var(--bg); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.r-form input, .r-form textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; resize: vertical; }
.r-form input:focus, .r-form textarea:focus { outline: 0; border-color: var(--accent); }
.r-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.r-stars { display: flex; align-items: center; gap: 2px; }
.r-stars button { border: 0; background: transparent; font-size: 28px; line-height: 1; color: #ddd3d2; padding: 0 2px; transition: transform .1s; }
.r-stars button.on { color: var(--gold); }
.r-stars button:hover { transform: scale(1.15); }
.r-hint { margin-left: 8px; font-size: 13px; }
.r-row { display: flex; align-items: center; gap: 12px; }
.r-msg { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.r-list { list-style: none; padding: 0; margin: 14px 0 0; }
.r-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.r-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.r-top .muted { font-size: 12.5px; margin-left: auto; }
.r-list p { margin: 6px 0 0; line-height: 1.55; font-size: 14.5px; white-space: pre-line; }

.viewtoggle { display: none; }

/* ---------- salon page ---------- */
.salon-page { max-width: 1180px; margin: 0 auto; padding: 18px 20px 60px; }
.salon-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; margin-top: 12px; align-items: start; }
.salon-detail { background: var(--card); border-radius: 18px; padding: 26px; border: 1px solid var(--line); }
.salon-detail .d-head h1 { font-size: 30px; margin-right: 0; }
.salon-map { position: sticky; top: calc(var(--top) + 18px); height: 460px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.salon-map #map { position: absolute; inset: 0; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  :root { --top: 54px; }
  .topnav { display: none; }
  .layout { display: block; }
  .side, .mapwrap { position: absolute; inset: 0; }
  .side { border: 0; }
  .layout[data-view="map"] .side { visibility: hidden; }
  .layout[data-view="list"] .mapwrap { visibility: hidden; }
  .side-head { position: static; }
  .viewtoggle { display: block; position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 8; border: 0; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .layout[data-view="map"] .vt-map, .layout[data-view="list"] .vt-list { display: none; }
  .sheet { top: auto; width: auto; right: 0; max-height: 60dvh; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1), max-height .28s; }
  .sheet.open { transform: none; }
  .sheet.full { max-height: calc(100dvh - var(--top)); }
  .sheet.open ~ .viewtoggle { display: none; }
  .sheet-grip { display: block; padding: 10px 0 4px; cursor: grab; }
  .sheet-grip::before { content: ''; display: block; margin: 0 auto; width: 42px; height: 5px; border-radius: 3px; background: #ddd3d2; }
  .sheet-close { top: 12px; }
  .sheet-body { padding: 4px 18px calc(30px + env(safe-area-inset-bottom)); }
  .d-head h1, .d-head h2 { font-size: 21px; }
  .salon-grid { grid-template-columns: 1fr; }
  .salon-map { position: relative; top: 0; height: 280px; order: -1; }
  .salon-detail { padding: 18px; }
  .home { padding: 44px 16px; }
}

/* ---------- add form + admin ---------- */
.add-page, .admin { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.admin.narrow { max-width: 420px; }
.add-page h1, .admin h1 { font-size: 30px; margin: 6px 0 8px; font-weight: 800; }
.lead { max-width: 680px; line-height: 1.55; margin-bottom: 22px; }
.add-grid, .edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.add-fields { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.add-fields label, .card-form label { display: grid; gap: 6px; font-weight: 700; font-size: 13.5px; position: relative; }
.add-fields input:not([type=checkbox]), .add-fields textarea, .card-form input, .admin-filter input, .admin-filter select {
  font: inherit; font-weight: 500; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 100%; }
.add-fields input:focus, .add-fields textarea:focus { outline: 0; border-color: var(--accent); }
.add-fields .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.add-fields .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.add-fields .hp { position: absolute; left: -9999px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr-row { display: flex; gap: 8px; }
.addr-sugg { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); font-weight: 500; }
.addr-sugg li { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.addr-sugg li:hover { background: var(--accent-soft); }
.add-map { position: sticky; top: calc(var(--top) + 18px); height: 520px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.add-map #map { position: absolute; inset: 0; }
.add-map-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; pointer-events: none; }
.add-done { text-align: center; padding: 60px 20px; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 32px; display: grid; place-items: center; margin: 0 auto; }
.small { font-size: 12.5px; }
.err { color: var(--red); }
.card-form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-actions { display: flex; gap: 8px; }
.admin-sec { margin-top: 30px; }
.admin-sec h2 { font-size: 19px; display: flex; gap: 8px; align-items: baseline; }
.sub-card { display: flex; gap: 16px; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 10px; }
.sub-card h3 { margin: 0 0 4px; font-size: 16px; }
.sub-main { display: grid; gap: 4px; font-size: 14px; }
.sub-pre { background: var(--bg); padding: 8px 10px; border-radius: 8px; font: inherit; white-space: pre-wrap; margin: 4px 0; }
.sub-btns { display: flex; flex-direction: column; gap: 6px; }
.admin-filter { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-filter select { width: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12px; color: var(--muted); padding: 10px; background: #f6f1f0; }
.admin-table td { padding: 9px 10px; border-top: 1px solid var(--line); }
.admin-table tr.is-hidden td { opacity: .55; }
.rev-row { display: flex; gap: 14px; justify-content: space-between; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-size: 14px; }
.note { background: var(--accent-soft); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; margin: 10px 0; }
.note.ok { background: var(--green-soft); color: var(--green); }
.topnav { display: flex; gap: 18px; align-items: center; }
.topnav .add-link { color: var(--accent-ink); }
@media (max-width: 860px) {
  .add-grid, .edit-grid, .two { grid-template-columns: 1fr; }
  .add-map { position: relative; top: 0; height: 320px; order: -1; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3), .admin-table th:nth-child(6), .admin-table td:nth-child(6) { display: none; }
  .sub-card, .rev-row { flex-direction: column; }
}
.add-cta { display: block; margin: 6px 20px 4px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; }
.add-cta:hover { text-decoration: none; background: #fbd9e5; }
.far .pin:not(.active):not(.hover):not(:hover) .pin-in { font-size: 0; padding: 0; width: 14px; height: 14px; border-width: 3px; background: var(--accent); }
.far .pin.nails:not(.active):not(.hover):not(:hover) .pin-in { background: #fff; }
.far .pin:not(.active):not(.hover):not(:hover) .pin-in::after { display: none; }

/* ---------- gallery, masters, review photos ---------- */
.g-tabs { display: flex; gap: 6px; overflow-x: auto; margin: -2px 0 10px; padding-bottom: 2px; scrollbar-width: none; }
.g-tabs .chip { white-space: nowrap; }
.g-tabs .chip small { opacity: .7; font-weight: 600; }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.salon-detail .g-grid { grid-template-columns: repeat(4, 1fr); }
.g-tile { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #f2eeed; cursor: zoom-in; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.g-tile:hover img { transform: scale(1.05); }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(31, 26, 28, .55); color: #fff; font-size: 22px; font-weight: 800; }

.m-list { display: grid; gap: 10px; }
.m-card { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.m-ava { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 20px; }
.m-main { min-width: 0; }
.m-name { font-size: 15.5px; }
.m-role { font-size: 13px; margin-top: 2px; }
.m-bio { margin: 8px 0 0; font-size: 14px; line-height: 1.55; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.m-bio.open { -webkit-line-clamp: unset; }
.m-links { display: flex; gap: 14px; margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.link { border: 0; background: none; padding: 0; color: var(--accent-ink); font: inherit; cursor: pointer; }

.r-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.r-add { cursor: pointer; }
.r-add span { display: inline-flex; padding: 8px 12px; border: 1px dashed #d9c9c8; border-radius: 10px; background: #fff; font-size: 13.5px; font-weight: 700; }
.r-add:hover span { border-color: var(--accent); }
.r-previews { display: flex; gap: 6px; flex-wrap: wrap; }
.r-prev { position: relative; width: 58px; height: 58px; }
.r-prev img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.r-prev button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 10px; line-height: 20px; padding: 0; }
.r-pics { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.r-pic { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #f2eeed; }
.r-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn:disabled { opacity: .6; cursor: wait; }

.item-link.has-cover { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
.item-link.has-cover > :not(.item-cover) { grid-column: 2; }
.item-cover { grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(15, 11, 13, .94); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 70px; }
.lb img { max-width: 100%; max-height: calc(100% - 34px); object-fit: contain; border-radius: 6px; user-select: none; }
.lb figcaption { color: #eee; font-size: 14px; margin-top: 12px; min-height: 20px; text-align: center; }
.lb-x, .lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 50%; cursor: pointer; }
.lb-x { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .24); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb.single .lb-nav { display: none; }
.lb-count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: 13px; font-weight: 600; }
@media (max-width: 860px) {
  .lb figure { padding: 60px 8px 30px; }
  .lb-nav { display: none; }
  .salon-detail .g-grid { grid-template-columns: repeat(3, 1fr); }
}

/* admin: masters + gallery */
.m-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.m-form { gap: 10px; padding: 16px; }
.m-form textarea, .card-form select, .g-cell input, .g-cell select { font: inherit; font-weight: 500; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 100%; }
.m-form-head { display: flex; gap: 12px; align-items: center; }
.m-form .m-ava { width: 56px; height: 56px; font-size: 22px; }
.m-new { border-style: dashed; background: var(--bg); }
.card-form .check { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.g-upload { margin-bottom: 14px; }
.g-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.g-cell { position: relative; display: grid; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.g-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.g-cell input, .g-cell select { padding: 6px 8px; font-size: 13px; }
.g-cover { position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.g-btns { display: flex; gap: 6px; }
.btn.sm { padding: 5px 9px; font-size: 13px; }
.rev-pics { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rev-pics form, .rev-pics a { position: relative; }
.rev-pics img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.rev-pics .btn.sm { position: absolute; top: -6px; right: -6px; padding: 1px 6px; font-size: 11px; }

/* ---------- models, owners, cabinet ---------- */
.d-models { margin: 4px 0 18px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #eaf7ff, #f2ecff); border: 1px solid #d9e6fb; }
.dm-top { display: flex; gap: 12px; align-items: center; }
.dm-ic { font-size: 26px; }
.dm-terms { font-weight: 800; color: #3a4fb8; font-size: 15px; }
.d-models p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.dm-foot { font-size: 12.5px; margin-top: 8px; }
.tag.models { background: #eaf0ff; color: #3a4fb8; }
.chip-models.on { background: #4b5fd1; border-color: #4b5fd1; }
.badge.verified { background: var(--green-soft); color: var(--green); }
.d-owner { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.topnav .acct-link { color: var(--ink); background: #f4eeed; padding: 6px 12px; border-radius: 999px; }
.topnav .acct-link:hover { text-decoration: none; background: var(--accent-soft); }
@media (max-width: 860px) {
  .topnav a:not(.add-link):not(.acct-link) { display: none; }
  .topnav { gap: 10px; }
  .topnav .add-link { font-size: 13px; }
  .topnav .acct-link { font-size: 13px; padding: 5px 10px; }
}

.ed-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; position: sticky; top: var(--top); z-index: 5; background: var(--bg); padding: 8px 0; }
.ed-tabs a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); }
.ed-tabs a:hover { text-decoration: none; border-color: var(--accent); }
.admin-sec, .add-fields { scroll-margin-top: calc(var(--top) + 60px); }
fieldset.ed-models, fieldset.ed-admin { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; scroll-margin-top: calc(var(--top) + 60px); }
fieldset.ed-models { background: #f6f8ff; border-color: #dde4fb; }
fieldset.ed-admin { background: #fff8f0; border-color: #f3e0c8; }
fieldset legend { font-weight: 800; font-size: 14px; padding: 0 6px; }
.add-fields select { font: inherit; font-weight: 500; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 100%; }
.models-fields { display: grid; gap: 12px; }
.ed-meta { line-height: 1.6; word-break: break-all; }
.ed-save { position: sticky; bottom: 0; background: var(--card); padding: 10px 0 2px; }
.log-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.log-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.log-list code { display: block; white-space: pre-wrap; word-break: break-word; background: var(--bg); padding: 6px 8px; border-radius: 8px; margin-top: 4px; }
.danger { border-top: 1px solid #f1d4d2; padding-top: 10px; }
.danger-btn { color: var(--red); border-color: #f1d4d2; }
.danger-btn:hover { background: #fdeceb; border-color: var(--red); }
.ok-text { color: var(--green); }
.badge.err { background: #fdeceb; color: var(--red); }
.note-input { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); min-width: 180px; }
.temp-pw code { font-size: 22px; font-weight: 800; background: var(--bg); padding: 8px 14px; border-radius: 10px; user-select: all; }
.auth-page .card-form, .claim-page .card-form { margin-top: 14px; }
.card-form select, .card-form textarea { font: inherit; font-weight: 500; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 100%; }
.card-form .hp { position: absolute; left: -9999px; }
.claim-how ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.claim-page { max-width: 560px; }
.own-list { display: grid; gap: 10px; }
.own-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.own-card h3 { margin: 0 0 4px; font-size: 17px; }
.own-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.own-stats span { padding: 3px 9px; border-radius: 999px; background: #f4eeed; }
.own-stats .ok { background: var(--green-soft); color: var(--green); }
.own-stats .todo { background: #fff3e0; color: #a05a00; }
@media (max-width: 860px) { .own-card { flex-direction: column; align-items: stretch; } }

/* claim verification */
.methods { display: grid; gap: 8px; }
.method { display: flex !important; grid-template-columns: none; align-items: center; gap: 12px !important; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500 !important; }
.method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.method input { accent-color: var(--accent); width: 18px; height: 18px; }
.method b { display: block; font-size: 14.5px; }
.method small { color: var(--muted); font-size: 12.5px; }
.method-ic { font-size: 24px; }
.m-pane { display: grid; gap: 10px; }
.m-pane[hidden] { display: none; }
.code-box { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.code-box b { font-size: 22px; letter-spacing: 1px; margin-left: 6px; user-select: all; }
.steps { margin: 0; padding-left: 20px; line-height: 1.6; display: grid; gap: 4px; }
.howto { background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.howto summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.howto .steps { margin-top: 8px; }
.video-pick { display: flex !important; align-items: center; gap: 10px !important; cursor: pointer; }
.upload-progress { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.upload-progress[hidden] { display: none; }
.upload-progress i { height: 8px; background: #f2eeed; border-radius: 4px; overflow: hidden; }
.upload-progress em { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.claim-proof { font-size: 14px; }
.claim-proof .code { font-size: 17px; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 6px; }
.claim-video { width: 100%; max-width: 280px; max-height: 420px; border-radius: 12px; background: #000; margin-top: 6px; }
.code-box b, .claim-proof .code { white-space: nowrap; }
.video-pick .btn { white-space: nowrap; flex: none; }

/* service / district / price pages */
.tag.ok { background: #e7f6ec; color: #1d7a3e; }
.seo-text h3 { font-size: 14px; color: var(--ink); margin: 14px 0 4px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-links a, .seo-links b { border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--ink); text-decoration: none; background: #fff; }
.seo-links a:hover { border-color: var(--accent); }
.seo-links b { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.seo-links small { color: var(--muted); margin-left: 2px; }
.price-sum { width: calc(100% - 40px); margin: 4px 20px 14px; border-collapse: collapse; font-size: 13.5px; }
.price-sum th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.price-sum td { padding: 8px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-sum td:first-child { white-space: normal; }
.price-sum td small { display: block; color: var(--muted); font-size: 11.5px; }
.ed-services .checks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0; }
.salon-links { margin-top: 18px; font-size: 13.5px; }
