/* Localist · white, grey, copper and light blue. Light theme only. */
:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef1f5;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --text: #1f2937;
  --muted: #667085;
  --copper: #b8622a;
  --copper-hover: #9e5222;
  --copper-soft: #fbece2;
  --sky: #dcedfb;
  --sky-soft: #f0f7fd;
  --blue: #2f6f9f;
  --green: #15803d;
  --green-soft: #e8f6ee;
  --red: #b42318;
  --red-soft: #fdecea;
  --amber: #b54708;
  --amber-soft: #fef4e6;
  --star: #e8a33d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12), 0 4px 8px rgba(16, 24, 40, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
.medium { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(47, 111, 159, .45); outline-offset: 2px; border-radius: 6px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand .tld { color: var(--muted); font-weight: 600; font-size: .85rem; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-link { color: var(--text); font-weight: 600; font-size: .92rem; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: 600 .92rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--surface); text-decoration: none; }
.btn-primary { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-hover); border-color: var(--copper-hover); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: #255b83; }
.btn-soft { background: var(--sky-soft); border-color: var(--sky); color: var(--blue); }
.btn-soft:hover { background: var(--sky); }
.btn-danger { color: var(--red); border-color: #f4c7c3; }
.btn-danger:hover { background: var(--red-soft); }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 1rem; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .84rem; }
.btn-signin { min-height: 46px; padding: 0 22px; font-size: .98rem; box-shadow: 0 2px 6px rgba(184, 98, 42, .25); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---- Hero / landing ---- */
.hero { position: relative; z-index: 2; background: linear-gradient(120deg, #fdf1e8 0%, #f4effb 50%, #eaf4fc 100%); border-bottom: 1px solid var(--line); }
/* Decorations are clipped in their own layer so the search suggestions can overflow the hero. */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; border-radius: 50%; }
.hero-bg::before { width: 520px; height: 520px; right: -140px; top: -220px; background: radial-gradient(circle, rgba(246, 191, 160, .45), transparent 70%); }
.hero-bg::after { width: 460px; height: 460px; left: -160px; bottom: -260px; background: radial-gradient(circle, rgba(185, 221, 243, .6), transparent 70%); }
.hero .waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 120px; opacity: .8; }
.hero-inner { position: relative; z-index: 1; padding: 56px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; margin-bottom: .35em; }
.hero p.lead { color: #475467; font-size: 1.08rem; margin: 0 auto 28px; max-width: 560px; }

/* ---- Search bar ---- */
.searchbar { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.searchbar .field { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-width: 0; }
.searchbar .field svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.searchbar .what { flex: 1.6; }
.searchbar .where { flex: 1; border-left: 1px solid var(--line); }
.searchbar .field input, .searchbar .field select { border: 0; outline: 0; box-shadow: none; padding: 0; border-radius: 0; background: transparent; font: 500 1rem var(--font); color: var(--text); width: 100%; min-width: 0; height: 42px; }
.searchbar select { cursor: pointer; }
.searchbar .locate { border: 0; background: none; color: var(--blue); cursor: pointer; padding: 4px; display: inline-flex; }
.quick-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); color: var(--text); font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--copper); color: var(--copper); text-decoration: none; }

.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.label-ad { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Advert wall (landing page only) */
.ad-wall { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-flow: dense; }
.ad-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.ad-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.ad-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ad-tile .ad-meta { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; background: #fff; color: var(--text); font-size: .88rem; }
.ad-tile .ad-meta span:last-child { color: var(--muted); }
.cta-band { margin: 8px 0 48px; padding: 28px; border-radius: var(--radius); background: var(--sky-soft); border: 1px solid var(--sky); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: #475467; }

/* ---- Search results ---- */
.search-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 0; }
.search-top .searchbar { max-width: none; margin: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 0 8px; }
.toolbar .count { color: var(--muted); font-size: .92rem; margin-right: auto; }
.select { height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font: 500 .9rem var(--font); color: var(--text); cursor: pointer; }
.toolbar label { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.toolbar .select { max-width: 260px; min-width: 0; text-overflow: ellipsis; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding: 8px 0 40px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); text-decoration: none; }
.card .logo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; margin-bottom: 14px; border: 1px solid var(--line); }
.card h3 { font-size: 1.02rem; margin: 0 0 2px; }
.card .cat { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.card .meta { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.rating .star { color: var(--star); }
.rating .n { color: var(--muted); font-weight: 400; }
.rating.none { color: var(--muted); font-weight: 400; }
.dist { color: var(--muted); }
.in-area { color: var(--blue); font-weight: 600; }
.open-yes { color: var(--green); font-weight: 600; }
.open-no { color: var(--muted); }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty h3 { color: var(--text); }
.more-wrap { text-align: center; padding-bottom: 40px; }
.searching .cards { opacity: .55; transition: opacity .1s; }

/* Initials fallback logo */
.logo-fallback { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; }
.pal-0 { background: #f9dcc8; color: #9e5222; }
.pal-1 { background: #d8eaf8; color: #2f6f9f; }
.pal-2 { background: #ddf1e6; color: #2e7d5b; }
.pal-3 { background: #e8e1f6; color: #5b4a9b; }
.pal-4 { background: #f8edc9; color: #8a6a12; }
.pal-5 { background: #f7dce3; color: #9c3f5a; }
.banner-fallback.pal-0 { background: linear-gradient(120deg, #f9dcc8, #d8eaf8); }
.banner-fallback.pal-1 { background: linear-gradient(120deg, #d8eaf8, #ddf1e6); }
.banner-fallback.pal-2 { background: linear-gradient(120deg, #ddf1e6, #e8e1f6); }
.banner-fallback.pal-3 { background: linear-gradient(120deg, #e8e1f6, #f8edc9); }
.banner-fallback.pal-4 { background: linear-gradient(120deg, #f8edc9, #f7dce3); }
.banner-fallback.pal-5 { background: linear-gradient(120deg, #f7dce3, #f9dcc8); }

/* ---- Modal ---- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; background: rgba(16, 24, 40, .45); overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 920px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .16s ease-out; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 20px; height: 20px; }
.modal-loading { padding: 80px; text-align: center; color: var(--muted); }
body.modal-open { overflow: hidden; }

/* ---- Profile ---- */
.profile .banner { height: 240px; background: var(--surface-2); }
.profile .banner img { width: 100%; height: 100%; object-fit: cover; }
.profile .head { position: relative; padding: 0 28px 20px; border-bottom: 1px solid var(--line); }
.profile .head .logo { width: 112px; height: 112px; border-radius: 22px; border: 4px solid #fff; box-shadow: var(--shadow); margin-top: -56px; object-fit: cover; background: #fff; }
.profile .head h1 { font-size: 1.7rem; margin: 14px 0 4px; }
.profile .sub { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.profile .tagline { margin: 8px 0 0; font-size: 1.02rem; color: #475467; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.profile .body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 24px 28px 28px; }
.profile section { margin-bottom: 26px; }
.profile section:last-child { margin-bottom: 0; }
.profile h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; }
.tag.blue { background: var(--sky-soft); border-color: var(--sky); color: var(--blue); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; word-break: break-word; }
.contact-list svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 3px; }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; }
.map { height: 240px; border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.promo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.promo { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; display: block; color: var(--text); }
.promo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.promo span { display: block; padding: 8px 12px; font-size: .88rem; font-weight: 600; }
.report { margin-top: 18px; font-size: .86rem; }
.report form { margin-top: 10px; display: grid; gap: 8px; }
.preview-note { background: var(--amber-soft); color: var(--amber); padding: 10px 28px; font-size: .9rem; font-weight: 600; }
.page-profile { max-width: 920px; margin: 28px auto 48px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }

/* ---- Forms ---- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.form-card > h2 { margin-bottom: 4px; }
.form-card > p.muted { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field-row { display: flex; flex-direction: column; gap: 6px; }
label.lbl { font-weight: 600; font-size: .9rem; }
.hint { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=time], input[type=search], select.input, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font: 500 .95rem var(--font); color: var(--text);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select.input:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 159, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--copper); flex: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hours-grid { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 8px 12px; align-items: center; }
.hours-grid .day { font-weight: 600; font-size: .9rem; }
.errors { background: var(--red-soft); color: var(--red); border: 1px solid #f4c7c3; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; }
.errors ul { margin: 0; padding-left: 18px; }
.cat-picker { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); max-height: 240px; overflow-y: auto; padding: 8px 12px; display: grid; gap: 6px; }
.cat-picker .check { font-size: .88rem; }
.cat-filter { margin-bottom: 8px; }
.map-pick { height: 280px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* ---- Flash ---- */
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0; font-weight: 500; }
.flash.success { background: var(--green-soft); color: var(--green); border: 1px solid #bfe5cd; }
.flash.error { background: var(--red-soft); color: var(--red); border: 1px solid #f4c7c3; }
.flash.info { background: var(--sky-soft); color: var(--blue); border: 1px solid var(--sky); }

/* ---- Auth pages ---- */
.auth-wrap { min-height: calc(100vh - 68px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; background: linear-gradient(120deg, #fdf1e8 0%, #f4effb 50%, #eaf4fc 100%); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card.wide { max-width: 760px; }
.auth-card h1 { font-size: 1.5rem; }
.auth-card .stack { display: grid; gap: 14px; }

/* ---- Account ---- */
.account-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 8px; }
.account-head h1 { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.status-pill.approved { background: var(--green-soft); color: var(--green); }
.status-pill.pending { background: var(--amber-soft); color: var(--amber); }
.status-pill.hidden, .status-pill.disabled { background: var(--surface-2); color: var(--muted); }
.status-pill.active { background: var(--green-soft); color: var(--green); }
.status-pill.requested { background: var(--amber-soft); color: var(--amber); }
.status-pill.none { background: var(--surface-2); color: var(--muted); }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 22px; }
.subnav a { padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: .9rem; border: 1px solid var(--line); }
.subnav a:hover { background: var(--surface); text-decoration: none; }
.image-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.image-row .preview { border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.image-row .preview.logo-prev { width: 140px; height: 140px; }
.image-row .preview.banner-prev { width: 100%; aspect-ratio: 16 / 5; }
.image-row .preview img { width: 100%; height: 100%; object-fit: cover; }
.ad-admin { display: grid; gap: 14px; }
.ad-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); align-items: start; }
.ad-row img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ad-row form.inline { display: grid; gap: 8px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; color: var(--muted); font-size: .88rem; }
.site-footer .container { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* ---- Admin ---- */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--surface); }
.admin-side { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { padding: 0 8px 18px; font-size: 1.15rem; }
.admin-side .brand small { display: block; font-size: .72rem; color: var(--copper); text-transform: uppercase; letter-spacing: .08em; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .92rem; }
.admin-nav a:hover { background: var(--surface); text-decoration: none; }
.admin-nav a.active { background: var(--copper-soft); color: var(--copper-hover); }
.admin-nav .count { background: var(--copper); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; }
.admin-nav .group { margin: 14px 12px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.admin-side .me { margin-top: 24px; padding: 12px; border-top: 1px solid var(--line); font-size: .86rem; }
.admin-main { padding: 28px; min-width: 0; }
.admin-main > h1 { margin-bottom: 18px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .n { font-size: 1.8rem; font-weight: 800; }
.stat .l { color: var(--muted); font-size: .88rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1.02rem; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { min-height: 38px; width: 220px; }
.pill-tabs { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.pill-tabs a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .86rem; }
.pill-tabs a.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.pill-tabs a:hover { text-decoration: none; color: var(--text); }
.temp-pw { font: 700 1.4rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sky-soft); border: 1px dashed var(--blue); padding: 16px; border-radius: var(--radius-sm); text-align: center; margin: 16px 0; user-select: all; }
.danger-zone { border-color: #f4c7c3; }
.danger-zone .panel-head { background: var(--red-soft); }
.demo-tag { font-size: .7rem; font-weight: 700; color: var(--blue); background: var(--sky-soft); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(120deg, #fdf1e8 0%, #f4effb 50%, #eaf4fc 100%); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .profile .body { grid-template-columns: minmax(0, 1fr); }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .admin-main { padding: 20px 16px; }
}
@media (max-width: 640px) {
  .searchbar { flex-direction: column; border-radius: 18px; }
  .searchbar .where { border-left: 0; border-top: 1px solid var(--line); }
  .searchbar .btn { width: 100%; }
  .header-link { display: none; }
  .btn-signin { min-height: 42px; padding: 0 16px; }
  .brand .tld { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .profile .banner { height: 150px; }
  .profile .head, .profile .body { padding-left: 18px; padding-right: 18px; }
  .modal { padding: 0; }
  .modal-box { border-radius: 0; min-height: 100vh; }
  .image-row, .ad-row { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 80px 1fr 1fr; }
  .hours-grid .closed-toggle { grid-column: 2 / -1; }
  .toolbar { gap: 10px; }
  .toolbar .count { width: 100%; }
  .toolbar label { flex: 1 1 140px; }
  .toolbar .select { flex: 1; width: 100%; max-width: none; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 14px; }
  .card .logo { width: 52px; height: 52px; }
}
@media (max-width: 640px) {
  .ad-wall { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ad-tile .ad-meta { flex-direction: column; gap: 0; padding: 8px 10px; font-size: .8rem; }
}
@media (max-width: 380px) { .cards { grid-template-columns: 1fr; } }
.report summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.report summary::-webkit-details-marker { display: none; }
.report summary svg { width: 16px; height: 16px; }

input[type=file] { font: 500 .9rem var(--font); color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { margin-right: 12px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: 600 .88rem var(--font); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--surface); }
.field-row .link-btn { align-self: flex-start; }
.modal-box { max-width: min(920px, 100%); }
.profile .sub > span + span::before { content: "·"; margin-right: 8px; color: var(--line-strong); }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.mini-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; }
.mini-stats strong { font-size: 1.5rem; font-weight: 800; }
.mini-stats span { color: var(--muted); font-size: .84rem; }
code { font: .84rem ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ---- Round 2 additions ---- */
.section-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.section-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.section-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.section-tile strong { display: block; font-size: .92rem; line-height: 1.25; }
.section-tile small { color: var(--muted); font-size: .8rem; }
.section-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.section-icon svg { width: 22px; height: 22px; }

.searchbar { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; text-align: left; max-width: 520px; }
.suggest .grp { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: .93rem; }
.suggest a:hover, .suggest a.on { background: var(--sky-soft); text-decoration: none; }
.suggest a small { color: var(--muted); }

.chip-on { background: var(--copper-soft); border-color: var(--copper); color: var(--copper-hover); }
.check.toggle { color: var(--text); font-weight: 600; font-size: .9rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 14px; min-height: 40px; align-items: center; background: #fff; }
.check.toggle input { margin-top: 0; }
.fuzzy-note { margin: 4px 0 0; color: var(--amber); font-size: .9rem; }
.claim-box { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--sky-soft); border: 1px solid var(--sky); }
.claim-box p { margin: 4px 0 10px; }

.prose { padding: 36px 16px 56px; }
.prose h2 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.draft-note { background: var(--amber-soft); color: var(--amber); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; font-size: .9rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; z-index: 60; box-shadow: var(--shadow-lg); }
@media (max-width: 640px) {
  .section-grid { grid-template-columns: 1fr 1fr; }
  .section-tile { padding: 10px; gap: 10px; }
  .section-icon { width: 36px; height: 36px; }
  .suggest { top: 58px; }
}
