html, body { height: 100%; }
body { display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand .wordmark { width: auto; height: 22px; }
.demo-pill { background: var(--blush); color: #8a3b1c; font-size: .75rem; font-weight: 750; padding: .25rem .7rem; border-radius: 999px; }
.back { margin-left: auto; font-weight: 650; text-decoration: none; }
.layout { flex: 1; display: grid; grid-template-columns: 380px 1fr; min-height: 0; }
.panel { overflow-y: auto; padding: 1.3rem; border-right: 1px solid var(--line); }
.panel h1 { font-family: var(--display); font-weight: 500; font-size: 2rem; letter-spacing: -.04em; margin: 0 0 .4rem; }
.panel h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--plum); margin: 1.4rem 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mapwrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; }
.btn { border: 0; border-radius: 999px; padding: .7rem 1.2rem; font-weight: 700; }
.btn.primary { background: var(--plum); color: white; }
.btn.primary:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--blocked); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips button { border: 1px solid #d6c9e4; background: var(--white); border-radius: 999px; padding: .4rem .8rem; font-size: .88rem; }
.chips button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: white; }
.stores { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.stores button { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: .7rem .9rem; display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; }
.stores button:hover { border-color: var(--purple); }
.stores strong { font-size: .98rem; }
.stores .count { grid-row: span 2; align-self: center; background: var(--lavender); color: var(--plum); font-weight: 800; border-radius: 10px; padding: .25rem .55rem; font-size: .85rem; }
.stores .zero { background: #f2eef3; color: var(--muted); }
dialog { border: 0; border-radius: 20px; padding: 1.3rem; width: min(560px, 94vw); max-height: 86vh; box-shadow: 0 24px 60px #2b1f4533; }
dialog::backdrop { background: #2b1f4566; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0; }
.dlg-head h2 { margin: 0; font-size: 1.25rem; }
.x { border: 0; background: var(--lavender); width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; }
.products { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .6rem; }
.products li { border: 1px solid var(--line); border-radius: 14px; padding: .75rem .9rem; }
.products .top { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.products .cat { font-size: .75rem; color: var(--plum); font-weight: 700; }
.products .rating { font-size: .88rem; white-space: nowrap; }
.products .mine { margin: .45rem 0 0; font-size: .86rem; background: var(--paper); border-radius: 10px; padding: .45rem .6rem; }
.products .actions { margin-top: .5rem; }
.products .actions button { border: 1px solid #d6c9e4; background: white; border-radius: 999px; padding: .3rem .8rem; font-size: .84rem; font-weight: 650; }
.lock { font-size: .75rem; font-weight: 750; color: var(--plum); background: var(--lavender); border-radius: 999px; padding: .1rem .5rem; margin-left: .3rem; }
.stars { border: 0; padding: 0; margin: 1rem 0; display: flex; gap: .25rem; }
.stars button { border: 0; background: none; font-size: 2rem; line-height: 1; color: #d9cfe3; padding: 0 .1rem; }
.stars button.on { color: #f0a03c; }
textarea { width: 100%; border: 1px solid #d6c9e4; border-radius: 12px; padding: .6rem; font: inherit; margin-top: .3rem; }
.visibility { border: 0; padding: 0; margin: 1rem 0; display: grid; gap: .35rem; }
.row { display: flex; justify-content: space-between; }
.store-pin { background: var(--plum); color: white; border: 2px solid white; border-radius: 50%; width: 26px !important; height: 26px !important; display: grid; place-items: center; font-size: .72rem; font-weight: 800; box-shadow: 0 2px 8px #2b1f4555; }
.me-pin { background: #2f7a4d; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 6px #2f7a4d33; }
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 52vh auto; }
  .mapwrap { order: -1; }
  .panel { border-right: 0; }
  .demo-pill { display: none; }
}
