:root {
  --ink: #06284a;
  --muted: #687386;
  --line: #edf0f4;
  --gold: #f6b400;
  --bg: #fbfaf8;
  --card: #ffffff;
  --soft: #f7f1e9;
  --green: #1f8f7a;
  --shadow: 0 14px 34px rgba(6, 40, 74, 0.10);
  --shell-x: 20px;
  --bottom-nav-space: 104px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  background: #eceff4;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background: #eceff4;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(246, 180, 0, 0.85);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px var(--shell-x) calc(var(--bottom-nav-space) + env(safe-area-inset-bottom));
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(6, 40, 74, 0.06);
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
}

.icon-button,
.lang-switch {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.lang-switch {
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 29px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.hero-block h1,
.page-head h1 {
  margin: 0 0 22px;
  font-size: 42px;
  line-height: 1.13;
  font-weight: 800;
}

.search-box {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  height: 66px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(6, 40, 74, 0.08);
}

.search-box span {
  font-size: 30px;
}

.search-box input {
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  background: transparent;
}

.search-box input::placeholder {
  color: #a3a9b4;
}

.voice-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.compact-search {
  margin-top: 16px;
  height: 56px;
}

.quick-tags {
  display: flex;
  max-width: 100%;
  gap: 10px;
  padding: 18px 0 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.quick-tags a,
.category-grid a,
.segmented a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(6, 40, 74, 0.06);
  font-size: 14px;
  font-weight: 800;
}

.quick-tags a {
  padding: 13px 16px;
}

.quick-tags .selected {
  background: var(--ink);
  color: #fff;
}

.near-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.near-row span,
.meta,
.page-head p,
.listing-card p,
.trust-card p,
.admin-list span {
  color: var(--muted);
}

.primary-pill,
.wide-action,
.form-stack button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
  padding: 0 20px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(6, 40, 74, 0.20);
}

button.wide-action {
  cursor: pointer;
}

.map-preview {
  position: relative;
  min-height: 318px;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #e9f0e9;
  box-shadow: var(--shadow);
}

.fake-map,
.full-map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(35deg, transparent 42%, rgba(255,255,255,.85) 43%, rgba(255,255,255,.85) 46%, transparent 47%),
    linear-gradient(125deg, transparent 36%, rgba(255,255,255,.85) 37%, rgba(255,255,255,.85) 40%, transparent 41%),
    linear-gradient(90deg, rgba(156,195,211,.34) 0 13%, transparent 13%),
    radial-gradient(circle at 43% 48%, rgba(92,160,224,.18), transparent 18%),
    #e8efe6;
}

.map-pin {
  position: absolute;
  display: grid;
  width: 44px;
  height: 54px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 50% 8px;
  background: var(--pin);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 10px 20px rgba(6, 40, 74, 0.24);
}

.map-stats {
  position: absolute;
  right: 18px;
  top: 76px;
  display: grid;
  width: 142px;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.map-stats strong {
  font-size: 25px;
  line-height: 1;
}

.map-stats span {
  color: var(--ink);
  font-size: 12px;
}

.map-stats a {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.trust-card {
  display: grid;
  grid-template-columns: 64px 1fr 20px;
  gap: 16px;
  align-items: center;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 10px 28px rgba(6, 40, 74, 0.06);
}

.shield {
  display: grid;
  width: 58px;
  height: 68px;
  place-items: center;
  clip-path: polygon(50% 0, 100% 16%, 88% 76%, 50% 100%, 12% 76%, 0 16%);
  background: var(--ink);
  color: var(--gold);
  font-size: 26px;
}

.trust-card h2,
.section-title h2,
.listing-card h3 {
  margin: 0;
}

.search-highlight {
  border-radius: 4px;
  background: rgba(246, 180, 0, 0.28);
  color: inherit;
}

.trust-card p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 14px;
}

.section-title h1,
.section-title h2 {
  font-size: 21px;
}

.section-title a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.category-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
}

.category-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #fff7d8;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.listing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(6, 40, 74, 0.05);
}

.listing-card a {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 12px;
}

.listing-card.compact a {
  grid-template-columns: 82px minmax(0, 1fr);
}

.listing-card img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.card-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.listing-card h3 {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.2;
}

.listing-card p {
  display: -webkit-box;
  margin: 7px 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
}

.search-results {
  gap: 12px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(6, 40, 74, 0.05);
}

.result-image-link {
  display: block;
  min-height: 112px;
}

.search-result-card img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.result-content {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.result-badges,
.result-meta,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.type-badge,
.verified-result-badge,
.result-distance {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.type-badge {
  background: var(--soft);
  color: var(--ink);
}

.verified-result-badge {
  background: #fff7d8;
  color: var(--ink);
}

.result-distance {
  background: #eef6ff;
  color: var(--ink);
}

.search-result-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.22;
}

.result-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: var(--line);
}

.search-result-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.result-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.result-actions a:first-child {
  background: var(--ink);
  color: #fff;
}

.empty-search-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(6, 40, 74, 0.06);
}

.empty-search-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #fff7d8;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.empty-search-state h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.18;
}

.empty-search-state p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.empty-search-actions {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 4px;
}

.empty-search-actions .wide-action {
  margin-bottom: 0;
}

.tertiary-action {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  box-shadow: none;
}

.site-footer {
  display: grid;
  gap: 22px;
  margin-top: 34px;
  padding: 26px 0 8px;
  border-top: 1px solid var(--line);
}

.footer-brand,
.footer-group {
  display: grid;
  gap: 10px;
}

.footer-brand strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.footer-brand p {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-group h2 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 4px;
}

.footer-links a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.legal-page {
  display: grid;
  gap: 18px;
}

.legal-section {
  display: grid;
  gap: 10px;
}

.legal-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 12px max(12px, env(safe-area-inset-left)) calc(22px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -14px 34px rgba(6, 40, 74, 0.08);
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  position: relative;
  display: grid;
  gap: 3px;
  place-items: center;
  min-width: 44px;
  min-height: 56px;
  padding: 4px 2px;
  color: var(--ink);
  font-size: 26px;
}

.bottom-nav small {
  font-size: 11px;
  font-weight: 700;
}

.bottom-nav a.active::after {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--gold);
}

.page-head {
  margin-bottom: 18px;
}

.page-head h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.wide-action {
  width: 100%;
  margin-bottom: 18px;
}

.admin-primary-link {
  display: grid;
  place-items: center;
  min-height: 56px;
  margin-top: 14px;
  font-weight: 900;
}

.segmented {
  display: flex;
  max-width: 100%;
  min-width: 0;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.segmented a {
  padding: 11px 15px;
}

.segmented .selected {
  background: var(--ink);
  color: #fff;
}

.map-page {
  margin: 0 calc(var(--shell-x) * -1);
}

.map-filter {
  display: flex;
  gap: 10px;
  max-width: 100%;
  padding: 0 var(--shell-x) 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.map-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.map-filter .selected {
  background: var(--ink);
  color: #fff;
}

.full-map {
  position: relative;
  height: 58vh;
  min-height: 420px;
  border-block: 1px solid var(--line);
}

.full-map.map-unavailable {
  min-height: 220px;
  opacity: 0.45;
}

.map-fallback-panel,
.error-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 18px var(--shell-x);
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(6, 40, 74, 0.06);
}

.error-state {
  margin: 0;
}

.map-fallback-panel[hidden] {
  display: none;
}

.map-fallback-panel h2,
.error-state h1,
.empty h2 {
  margin: 0;
  line-height: 1.18;
}

.map-fallback-panel p,
.error-state p,
.empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.empty-actions {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 6px;
}

.empty-actions .wide-action {
  margin-bottom: 0;
}

.fallback-marker {
  position: absolute;
  display: grid;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50% 50% 50% 8px;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: var(--pin);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.fallback-marker span {
  transform: rotate(45deg);
}

.fallback-info-card,
.map-info-card {
  display: grid;
  gap: 6px;
  max-width: 220px;
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.map-info-card img,
.fallback-info-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.map-info-card strong,
.fallback-info-card strong {
  overflow-wrap: anywhere;
}

.fallback-info-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: min(260px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-info-card span,
.fallback-info-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-info-card a,
.fallback-info-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  color: var(--ink);
  font-weight: 900;
}

.map-bottom-list {
  display: grid;
  gap: 10px;
  padding: 14px var(--shell-x);
}

.map-empty {
  margin: 0 var(--shell-x);
}

.detail {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.detail-gallery::-webkit-scrollbar {
  display: none;
}

.detail-photo-link {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.detail-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 260px;
  max-height: 520px;
  object-fit: cover;
  background: var(--soft);
}

.admin-image-preview {
  display: grid;
  gap: 8px;
}

.admin-image-preview img {
  width: min(220px, 100%);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.admin-warning-list {
  margin: 0;
  padding-left: 18px;
  color: #8a1f1f;
  font-size: 13px;
  font-weight: 700;
}

.admin-photo-upload {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-photo-upload input[type="file"] {
  min-height: 44px;
  padding: 10px 0;
}

.detail-body {
  padding: 20px;
}

.detail h1 {
  margin: 10px 0 8px;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.detail-header {
  display: grid;
  gap: 8px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7d8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.detail-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--line-strong);
}

.detail-description {
  margin-top: 18px;
}

.detail-description p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7d8;
  font-size: 12px;
  font-weight: 800;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.business-info {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.business-info h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.business-info dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.business-info div {
  display: grid;
  gap: 3px;
}

.business-info dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.business-info dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.action-grid a {
  display: grid;
  min-height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

@media (min-width: 820px) {
  .detail {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }

  .detail-gallery {
    height: 100%;
  }

  .detail-photo-link,
  .detail-photo {
    min-height: 560px;
    height: 100%;
    max-height: none;
  }

  .detail-body {
    padding: 32px;
  }
}

.admin-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-stack {
  display: grid;
  gap: 14px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #f1b3b3;
  border-radius: 8px;
  background: #fff1f1;
  color: #8d1f1f;
  font-size: 14px;
  font-weight: 800;
}

.form-alert ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.inline-status {
  margin: 10px 0 0;
}

.field-optional {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.form-stack label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.form-stack textarea {
  min-height: 96px;
  resize: vertical;
}

.form-stack .checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-stack .checkbox input {
  width: auto;
  min-height: 0;
}

.form-section {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-section summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-list article div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-detail-list div {
  display: grid;
  gap: 2px;
}

.admin-list article .admin-detail-list div {
  display: grid;
}

.admin-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.completeness-score {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.admin-list button,
.ghost-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.admin-list button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-filter-bar {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 0 12px;
  background: #fff;
  font-weight: 800;
}

.admin-filter-bar button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.admin-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.submission-extra {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
}

.submission-extra div {
  display: grid;
  gap: 2px;
}

.submission-extra dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.submission-extra dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.sheet-row-copy {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sheet-row-copy textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  resize: vertical;
}

.sync-report {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.sync-report span,
.sync-report small {
  color: var(--muted);
}

.sync-report details {
  margin-top: 4px;
}

.sync-report li {
  margin: 6px 0;
}

.analytics-dashboard {
  margin-top: 18px;
}

.analytics-grid {
  display: grid;
  gap: 10px;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.analytics-summary article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.analytics-summary strong {
  font-size: 24px;
}

.analytics-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analytics-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.analytics-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.analytics-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.analytics-card li span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.duplicate-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.duplicate-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.duplicate-group h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.audit-summary {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.audit-summary span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.audit-summary strong {
  color: var(--ink);
}

.admin-actions {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.secondary-action {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.audit-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.audit-block h2 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 18px;
}

.audit-block h2 span {
  color: var(--muted);
  font-size: 15px;
}

.empty,
.success {
  padding: 24px;
  border-radius: 8px;
  background: #fff;
}

@media (min-width: 431px) {
  .app-shell {
    min-height: calc(100vh - 28px);
    margin-top: 14px;
    border-radius: 28px;
  }

  .site-footer {
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
    align-items: start;
    gap: 18px;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }

  .bottom-nav {
    bottom: calc(14px + env(safe-area-inset-bottom));
    border-radius: 18px;
  }
}

@media (max-width: 360px) {
  :root {
    --shell-x: 14px;
  }

  .app-shell {
    padding-inline: var(--shell-x);
  }

  .brand strong {
    font-size: 24px;
  }

  .hero-block h1 {
    font-size: 36px;
  }

  .listing-card a {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .search-result-card {
    grid-template-columns: 86px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .result-image-link,
  .search-result-card img {
    min-height: 96px;
  }

  .result-actions a {
    padding-inline: 10px;
  }
}
