/* CleanNibble app shell: used when html has .cn-app (native app or ?app=1).
   The public website also loads it with html.cn-web, and web-shell.css adapts it for browsers. */

html.cn-app,
html.cn-app body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #fafaf9;
  -webkit-tap-highlight-color: transparent;
}

html.cn-app body {
  display: flex;
  flex-direction: column;
  padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
}

/* Compact coral top bar */
html.cn-app header {
  flex: none;
  position: relative;
  z-index: 30;
  background: #f0533a !important;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 10px !important;
  text-align: left;
  overflow: hidden;
}
html.cn-app header::before,
html.cn-app header::after { display: none !important; }
html.cn-app header .container { padding: 0; max-width: none; margin: 0; }
html.cn-app .brand {
  justify-content: flex-start;
  margin: 0;
  gap: 0.55rem;
  pointer-events: auto;
}
html.cn-app .logo-mark {
  width: 36px !important;
  height: 36px !important;
  padding: 4px !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.16) !important;
}
html.cn-app a.brand:hover .logo-mark { transform: none !important; }
html.cn-app header h1 {
  font-size: 1.35rem !important;
  text-shadow: none;
}
html.cn-app header h1 .nb { color: #ffd166; }
html.cn-app .tagline,
html.cn-app .domain,
html.cn-app .saved-link,
html.cn-app .account-link,
html.cn-app:not(.cn-web) #cookieBanner,
html.cn-app:not(.cn-web) footer,
html.cn-app .why-section,
html.cn-app .refer,
html.cn-app #disclaimer,
html.cn-app #contact,
html.cn-app .back-link { display: none !important; }

/* Scrollable page area */
html.cn-app main.container,
html.cn-app #cnAppMain {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 0.9rem 1.25rem;
  min-height: 0;
}

html.cn-app .search-card {
  margin: 0.55rem 0 0.45rem;
  padding: 0.9rem 0.95rem 0.95rem;
  box-shadow: 0 6px 18px rgba(229, 67, 42, 0.08);
}
html.cn-app .search-card h2 { font-size: 1.28rem; }
html.cn-app .search-sub { display: none; }
html.cn-app .search-form { gap: 0.8rem; }
html.cn-app .form-row .near-btn { display: none; }
html.cn-app .state-pick .near-btn,
html.cn-app .state-pick button.near-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffd166;
  color: #1f2937;
  border: 1.5px solid #e9b52d;
  border-radius: 999px;
  padding: 0.36rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 #e0a819;
  line-height: 1.2;
}
html.cn-app .state-pick .near-btn:hover,
html.cn-app .state-pick button.near-btn:hover { background: #ffc94a; color: #111827; border-color: #e0a819; }
html.cn-app .state-pick .near-btn.on,
html.cn-app .state-pick button.near-btn.on {
  background: #ffd166;
  color: #1f2937;
  border-color: #e9b52d;
}
html.cn-app .state-pick .near-btn svg { width: 16px; height: 16px; flex: none; }
html.cn-app .form-row { justify-content: flex-end; }
@media (max-width: 420px) {
  html.cn-app .state-pick .sp-label { display: none; }
  html.cn-app .state-pick { flex-wrap: nowrap; gap: 0.35rem; }
  html.cn-app .state-pick button { padding: 0.3rem 0.68rem; font-size: 0.84rem; }
  html.cn-app .state-pick .near-btn,
  html.cn-app .state-pick button.near-btn { padding: 0.32rem 0.7rem; font-size: 0.84rem; flex: none; white-space: nowrap; }
}

html.cn-app .results-card {
  margin: 0.6rem 0 0;
}

/* Pages */
html.cn-app .cn-page { display: none; }
html.cn-app.cn-tab-search #cnPageSearch,
html.cn-app.cn-tab-near #cnPageNear,
html.cn-app.cn-tab-saved #cnPageSaved,
html.cn-app.cn-tab-account #cnPageAccount,
html.cn-app.cn-subopen #cnPageSub { display: block; }
html.cn-app.cn-subopen #cnPageSearch,
html.cn-app.cn-subopen #cnPageNear,
html.cn-app.cn-subopen #cnPageSaved,
html.cn-app.cn-subopen #cnPageAccount { display: none; }

/* Saved is a full page, not a modal */
html.cn-app #cnPageSaved #savedSection {
  display: block !important;
  margin: 0.85rem 0 0;
}
html.cn-app #savedClose { display: none !important; }
html.cn-app #signupBox,
html.cn-app #signupMini,
html.cn-app #signupThanks { display: none !important; }
.cn-near-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  margin: 0.9rem 0 0.35rem;
}
html.cn-app.cn-tab-near.cn-near-has-results .cn-near-intro { display: none; }
html.cn-app.cn-tab-near:not(.cn-near-has-results) .cn-near-title { display: none; }


/* Near me page */
.cn-near-intro {
  background: #fff;
  border-radius: 22px;
  padding: 1.25rem 1.1rem 1.3rem;
  margin: 0.85rem 0 0.6rem;
  box-shadow: 0 6px 18px rgba(229, 67, 42, 0.08);
  border: 1px solid #eef2f1;
}
.cn-near-intro h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}
.cn-near-intro p { color: #6b7280; font-size: 0.95rem; margin: 0 0 1rem; }
.cn-near-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  background: linear-gradient(135deg, #ff7a59 0%, #e5432a 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(229, 67, 42, 0.3);
}
.cn-near-go:disabled { opacity: 0.65; cursor: wait; }
.cn-near-status { color: #6b7280; font-size: 0.92rem; margin: 0.75rem 0 0; min-height: 1.2em; }

/* Account page: iOS-style grouped list */
.cn-account-groups {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.85rem 0 1.1rem;
}
.cn-account-note {
  margin: 0 0.2rem 0.15rem;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.4;
}
.cn-account-note .cn-acct-email { font-weight: 700; color: #111827; }
.cn-account-group {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(229, 67, 42, 0.08);
  border: 1px solid #eef2f1;
}
.cn-account-card, .cn-account-links {
  background: #fff;
  border-radius: 22px;
  padding: 1.2rem 1.1rem;
  margin: 0.85rem 0 0.6rem;
  box-shadow: 0 6px 18px rgba(229, 67, 42, 0.08);
  border: 1px solid #eef2f1;
}
.cn-sub-bar h2, .cn-account-links h2, .cn-account-card h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}
.cn-account-card p { color: #4b5563; font-size: 0.95rem; margin: 0 0 0.7rem; }
.cn-account-card .cn-acct-email { font-weight: 700; color: #111827; }
.cn-acct-alerts { background: #fffaf3; border: 1px solid #fde7c4; border-radius: 16px; padding: 0.85rem 0.95rem 0.6rem; margin: 0 0 1rem; }
.cn-acct-alerts:empty { display: none; }
.cn-notify-page .cn-acct-alerts { margin: 0.15rem 0 1rem; }
.cn-account-card .cn-alerts p.lead,
.cn-notify-page .cn-alerts p.lead { margin: 0 0 0.4rem; }
.cn-acct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, #ff7a59 0%, #e5432a 100%);
  color: #fff !important;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(229, 67, 42, 0.3);
  margin-top: 0.35rem;
}
.cn-account-links { padding: 0.4rem 0; }
.cn-account-links h2 { padding: 0.8rem 1.1rem 0.3rem; margin: 0; }
.cn-notify-fine {
  margin: 0.75rem 0.2rem 0;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.45;
}
.cn-profile-email { margin: 0 0 0.35rem; color: #4b5563; font-size: 0.95rem; }
.cn-profile-email strong { color: #111827; }
.cn-profile-hint { margin: 0.15rem 0 0.2rem; color: #6b7280; font-size: 0.82rem; }
.cn-profile-chk {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.7rem;
  font-weight: 600 !important;
  color: #111827 !important;
}
.cn-profile-chk input { width: auto !important; margin-top: 0.2rem; accent-color: #f0533a; }
.cn-about-us {
  padding: 0.15rem 1.1rem 0.9rem;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.45;
}
.cn-about-us p { margin: 0; }
.cn-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.88rem 1rem;
  background: none;
  border: none;
  border-top: 1px solid #f3f4f6;
  color: #111827;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  gap: 0.75rem;
}
.cn-account-group .cn-link-row:first-child { border-top: none; }
.cn-link-row::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #c4c4c4;
  border-top: 2px solid #c4c4c4;
  transform: rotate(45deg);
  margin-left: 0.35rem;
  flex: none;
}
.cn-link-row-plain::after { display: none; }
.cn-row-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
}
.cn-row-ico svg { width: 16px; height: 16px; display: block; }
.cn-row-ico-coral { background: #f0533a; }
.cn-row-ico-gold { background: #e2a20a; color: #fff; }
.cn-row-ico-teal { background: #0f766e; }
.cn-row-ico-plum { background: #6b2d5c; }
.cn-row-ico-slate { background: #6b7280; }
.cn-row-ico-danger { background: #c2361f; }
.cn-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.cn-row-label { font-weight: 600; line-height: 1.25; }
.cn-row-sub { font-weight: 500; font-size: 0.8rem; color: #6b7280; line-height: 1.3; }
.cn-link-row-danger { color: #c2361f; }
.cn-link-row-danger .cn-row-label { color: #c2361f; }

/* In-app document subpage */
.cn-sub-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0 0.4rem;
  position: sticky;
  top: 0;
  background: #fafaf9;
  z-index: 2;
}
.cn-sub-back {
  background: none;
  border: none;
  color: #f0533a;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.35rem 0.4rem 0.35rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.cn-sub-bar h2 { flex: 1; margin: 0; font-size: 1.15rem; }
#cnSubBody {
  background: #fff;
  border-radius: 22px;
  padding: 1.15rem 1.1rem 1.4rem;
  box-shadow: 0 6px 18px rgba(229, 67, 42, 0.08);
  border: 1px solid #eef2f1;
}
#cnSubBody.cn-sub-notifications {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0.1rem 0 1.2rem;
}

#cnSubBody h2, #cnSubBody h3 { font-family: 'Nunito', sans-serif; }
#cnSubBody h2:first-child { margin-top: 0; }
#cnSubBody .info-section, #cnSubBody .why-section {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
#cnSubBody footer, #cnSubBody header, #cnSubBody .back-link { display: none !important; }

/* Bottom tab bar */
#cnTabBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid rgba(60, 60, 67, 0.22);
  padding: 4px 2px calc(env(safe-area-inset-bottom, 0px) + 2px);
  min-height: calc(50px + env(safe-area-inset-bottom, 0px));
  box-sizing: content-box;
}
#cnTabBar .cn-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: #8e8e93;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  padding: 4px 2px 2px;
  cursor: pointer;
  min-width: 0;
}
#cnTabBar .cn-tab svg { width: 24px; height: 24px; display: block; }
#cnTabBar .cn-tab.on { color: #f0533a; font-weight: 650; }
#cnTabBar .cn-tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cnTabBar .cn-badge {
  position: absolute;
  top: 1px;
  right: -9px;
  background: #f0533a;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#cnTabBar .cn-tab-icon { position: relative; }
#cnTabBar .cn-badge.on { display: inline-flex; }

/* Toast, share, grade pop sit above the tab bar */
html.cn-app .toast {
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
}
html.cn-app #cnOffline {
  /* keep the existing top bar, but don't cover the compact header forever */
}

/* Account boxes on the Saved page: coral, not the old green */
html.cn-app .acct-box {
  border-color: #ffd2a8;
  background: linear-gradient(180deg, #fff4ea 0%, #ffffff 100%);
}
html.cn-app .acct-box h4 { color: #b8321c; }
html.cn-app .acct-box a { color: #e5432a; }
html.cn-app .acct-box .acct-cta { background: #e5432a; color: #fff; }
html.cn-app .acct-box .acct-cta:hover { background: #b8321c; }

/* Secondary pages (login, FAQ, terms, privacy) */
html.cn-app body.cn-app-doc main.container { padding-top: 0.6rem; }

/* Search tab: a little more personality, still simple */
html.cn-app .search-card > h2 { display: none; }
html.cn-app .search-card { margin-top: 0.55rem; }
.cn-search-hello {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.7rem 0 0;
  padding: 0.75rem 0.9rem 0.8rem;
  background: linear-gradient(135deg, #fff6e8 0%, #ffe8dc 55%, #ffd166 160%);
  border: 1px solid #ffd2a8;
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(229, 67, 42, 0.08);
}
.cn-hello-mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #f0533a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(229, 67, 42, 0.16);
}
.cn-hello-mark img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 50%; }
.cn-hello-kicker {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5432a;
  margin: 0 0 0.1rem;
}
.cn-hello-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.2;
  color: #111827;
  margin: 0 0 0.2rem;
}
@media (max-width: 480px) {
  .cn-hello-title .cn-hello-break { display: block; }
}
.cn-hello-stat {
  margin: 0;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.35;
}

.cn-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.cn-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  color: #b8321c;
  border: 1.5px solid #ffd2a8;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.cn-pick svg { width: 15px; height: 15px; flex: none; }
.cn-pick.on, .cn-pick:active {
  background: #f0533a;
  border-color: #f0533a;
  color: #fff;
}

.cn-friend-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.55rem 0 0.15rem;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(135deg, #6b2d5c 0%, #4e1f44 72%, #7a3a68 140%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(107, 45, 92, 0.28);
}
.cn-friend-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  color: #fde8f3;
  display: grid;
  place-items: center;
}
.cn-friend-ico svg { width: 18px; height: 18px; }
.cn-friend-banner .cn-friend-copy { flex: 1; min-width: 0; }
.cn-friend-banner strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.2rem;
  line-height: 1.25;
}
.cn-friend-banner p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(253, 242, 248, 0.92);
}
.cn-friend-share {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #ffd166;
  color: #1f2937;
  border: none;
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.cn-friend-share svg { width: 16px; height: 16px; }
.cn-friend-share.copied { background: #fff; color: #6b2d5c; }

/* More filters and Reset: a little bigger, Reset a bit bolder */
html.cn-app .more-toggle {
  font-size: 1.02rem !important;
  font-weight: 700;
  padding: 0.15rem 0;
}
html.cn-app .reset-link {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #374151;
  text-decoration-thickness: 1.5px;
}
html.cn-app .reset-link:hover { color: #b8321c; }

html.cn-app .results-share .share-btn.friend { display: none; }

html.cn-app .search-form input,
html.cn-app .search-form select,
html.cn-app .search-form textarea { padding: 0.8rem 0.9rem; }
html.cn-app #q {
  padding-right: 2.4rem;
  border: 2px solid #c9c4c1;
  background: #fff;
}
html.cn-app #q:placeholder-shown { padding-right: 0.85rem; }
html.cn-app #q:focus {
  outline: none;
  border-color: #f0533a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(240, 83, 58, 0.18);
}
html.cn-app .data-note { margin-top: 0.55rem; font-size: 0.8rem; }
html.cn-app .toggle-row { margin: 0; }

/* Login page: compact intro, keep the browse link visible under the tab bar */
html.cn-app body.cn-app-doc .login-intro {
  margin: 0.15rem auto 0.9rem;
}
html.cn-app body.cn-app-doc .login-intro h2 {
  font-size: 1.42rem;
}
html.cn-app body.cn-app-doc .benefits {
  font-size: 0.88rem;
  gap: 0.35rem;
}
html.cn-app body.cn-app-doc .login-card {
  padding: 1.2rem 1.1rem 1.15rem;
}
html.cn-app .browse-link {
  display: block;
  margin-top: 0.95rem;
  margin-bottom: 0.4rem;
  color: #b8321c;
}


/* Flush subpages (FAQ, About, Contact): colorful cards sit on the page background */
#cnSubBody.cn-sub-faq,
#cnSubBody.cn-sub-about,
#cnSubBody.cn-sub-contact {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0 0 1.2rem;
  border-radius: 0;
}
#cnSubBody.cn-sub-faq .faq { margin: 0; }
#cnSubBody.cn-sub-faq .info-section { margin: 0; padding: 0; border: none; box-shadow: none; background: transparent; }

/* Shared hero used on About and Contact */
.cn-hero {
  background: linear-gradient(135deg, #e5432a 0%, #f0533a 55%, #ff7a59 100%);
  color: #fff;
  border-radius: 22px;
  padding: 1.25rem 1.15rem 1.2rem;
  margin: 0 0 0.9rem;
  box-shadow: 0 12px 28px rgba(229, 67, 42, 0.28);
}
.cn-hero-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd166;
  margin: 0 0 0.3rem;
}
.cn-hero h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.cn-hero p { margin: 0; color: #fff7ed; font-size: 0.95rem; }

.cn-about-highlights { display: grid; gap: 0.55rem; margin: 0 0 0.85rem; }
.cn-about-hi {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #ffe0c2;
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 4px 14px rgba(229, 67, 42, 0.06);
}
.cn-hi-ico {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff3d0;
  color: #e5432a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cn-hi-ico svg { width: 18px; height: 18px; display: block; }
.cn-about-hi strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: #3a1410;
}
.cn-about-hi p { margin: 0.15rem 0 0; color: #4b5563; font-size: 0.88rem; }
.cn-about-card {
  background: #fff;
  border: 1px solid #ffe0c2;
  border-radius: 18px;
  padding: 1.1rem 1.05rem 1.15rem;
  box-shadow: 0 4px 14px rgba(229, 67, 42, 0.06);
}
.cn-about-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: #3a1410;
  margin: 1rem 0 0.35rem;
}
.cn-about-card h3:first-child { margin-top: 0; }
.cn-about-card p { color: #4b5563; font-size: 0.95rem; margin: 0 0 0.65rem; }
.cn-about-card p:last-child { margin-bottom: 0; }
.cn-about-thumbs { display: grid; gap: 0.65rem; margin: 0.5rem 0 0.8rem; }
.cn-thumb-row { display: flex; align-items: center; gap: 0.7rem; }
.cn-thumb-row img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.cn-thumb-row b { display: block; color: #111827; font-size: 0.95rem; }
.cn-thumb-row span { color: #4b5563; font-size: 0.88rem; }

/* Contact form */
.cn-contact-form {
  background: #fff;
  border: 1px solid #ffe0c2;
  border-radius: 18px;
  padding: 1.15rem 1.05rem 1.2rem;
  box-shadow: 0 4px 14px rgba(229, 67, 42, 0.06);
  display: grid;
  gap: 0.35rem;
}
.cn-contact-form label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #3a1410;
  margin-top: 0.45rem;
  text-transform: none;
  letter-spacing: 0;
}
.cn-contact-form .cn-opt { font-weight: 500; color: #6b7280; }
.cn-contact-form input,
.cn-contact-form textarea {
  width: 100%;
  border: 1.5px solid #ffd2a8;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  background: #fffaf5;
  color: #111827;
}
.cn-contact-form input:focus,
.cn-contact-form textarea:focus {
  outline: none;
  border-color: #f0533a;
  box-shadow: 0 0 0 3px rgba(240, 83, 58, 0.15);
}
.cn-contact-form textarea { min-height: 8rem; resize: vertical; }
.cn-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.cn-contact-send {
  margin-top: 0.7rem;
  width: 100%;
  background: linear-gradient(135deg, #ff7a59 0%, #e5432a 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(229, 67, 42, 0.3);
}
.cn-contact-send:disabled { opacity: 0.65; cursor: wait; }
.cn-contact-status { min-height: 1.2em; font-size: 0.92rem; margin: 0.35rem 0 0; color: #4b5563; }
.cn-contact-status.ok { color: #047857; font-weight: 600; }
.cn-contact-status.err { color: #b8321c; font-weight: 600; }
.cn-contact-fine { margin: 0.35rem 0 0; font-size: 0.88rem; color: #6b7280; }
.cn-contact-fine a { color: #c2361f; font-weight: 600; }

/* ---- Scan a restaurant (scan.js) ---- */
.cn-scan-card {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; margin: 0.75rem 0 1rem;
  padding: 0.8rem 0.9rem; border: 2px solid #f0533a; border-radius: 16px; cursor: pointer; text-align: left; font: inherit;
  background: #ffffff; color: #1f2937;
  box-shadow: 0 6px 18px rgba(240, 83, 58, 0.12);
}
.cn-scan-card:active { transform: scale(0.985); }
.cn-scan-card-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #fff1ec; color: #e5432a;
}
.cn-scan-card-ico svg { width: 24px; height: 24px; }
.cn-scan-card-copy { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.cn-scan-card-copy strong { font-size: 1.02rem; font-weight: 800; color: #1f2937; }
.cn-scan-card-copy span { font-size: 0.84rem; color: #4b5563; opacity: 1; line-height: 1.3; }
.cn-scan-card-go { color: #f0533a; }
.cn-scan-card-go svg, .cn-scan-go svg { width: 18px; height: 18px; display: block; }
.cn-near-scan {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%; margin-top: 0.6rem;
  background: #fff; color: #b8321c; border: 1.5px solid #ffd2a8; border-radius: 12px; padding: 0.78rem 1rem;
  font: inherit; font-weight: 700; font-size: 0.98rem; cursor: pointer;
}
.cn-near-scan svg { width: 19px; height: 19px; }
.cn-scan { position: fixed; inset: 0; z-index: 10000; }
.cn-scan[hidden] { display: none; }
.cn-scan-dim { position: absolute; inset: 0; background: rgba(17, 24, 39, 0.45); opacity: 0; transition: opacity .2s ease; }
.cn-scan.on .cn-scan-dim { opacity: 1; }
.cn-scan-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-radius: 22px 22px 0 0; padding: 0.6rem 1.1rem calc(env(safe-area-inset-bottom) + 1.1rem);
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
  font-family: Inter, system-ui, -apple-system, sans-serif; color: #1f2937;
}
.cn-scan.on .cn-scan-panel { transform: none; }
.cn-scan-grip { width: 40px; height: 5px; border-radius: 3px; background: #e5e7eb; margin: 0 auto 0.7rem; }
.cn-scan-x { position: absolute; top: 0.55rem; right: 0.7rem; width: 34px; height: 34px; border-radius: 50%; border: none; background: #fff1ec; color: #b8321c; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cn-scan-kicker { margin: 0.2rem 0 0.1rem; color: #e5432a; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.cn-scan h2 { margin: 0 2.4rem 0.8rem 0; font-size: 1.35rem; font-weight: 800; color: #111827; }
.cn-scan-row {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: #fff; border: 1.5px solid #f3e1d8; border-radius: 14px; padding: 0.75rem 0.85rem; margin-bottom: 0.55rem; color: inherit;
}
.cn-scan-row:active { background: #fff7f3; }
.cn-scan-row.big { border-color: #f0533a; background: #fff7f3; box-shadow: 0 6px 18px rgba(240, 83, 58, 0.14); }
.cn-scan-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.cn-scan-row-main strong { font-size: 1.04rem; color: #111827; }
.cn-scan-row.big .cn-scan-row-main strong { font-size: 1.18rem; }
.cn-scan-row-main span { font-size: 0.88rem; color: #4b5563; overflow-wrap: anywhere; }
.cn-scan-row-main em { font-style: normal; font-size: 0.8rem; color: #9a3412; font-weight: 600; }
.cn-scan-go { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f0533a; color: #fff; }
.cn-scan-or { margin: 0.6rem 0 0.4rem; font-size: 0.85rem; font-weight: 700; color: #6b7280; }
.cn-scan-note { margin: -0.3rem 0 0.8rem; color: #4b5563; font-size: 0.93rem; line-height: 1.45; }
.cn-scan-read { margin: 0.4rem 0 0; font-size: 0.82rem; color: #6b7280; }
.cn-scan-read span { color: #374151; font-weight: 600; }
.cn-scan-link { display: block; width: 100%; margin: 0.2rem 0 0.2rem; padding: 0.55rem; border: none; background: none; color: #e5432a; font: inherit; font-weight: 700; font-size: 0.93rem; cursor: pointer; }
.cn-scan-actions { margin-top: 0.9rem; }
.cn-scan-again {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%;
  background: linear-gradient(135deg, #ff7a59 0%, #e5432a 100%); color: #fff; border: none; border-radius: 12px;
  padding: 0.85rem 1rem; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 22px rgba(229, 67, 42, 0.25);
}
.cn-scan-again svg { width: 19px; height: 19px; }
.cn-scan-fine { margin: 0.7rem 0 0; text-align: center; font-size: 0.76rem; color: #9ca3af; }
.cn-scan-busy { text-align: center; padding: 0.4rem 0 1rem; }
.cn-scan-busy h2 { margin: 0.9rem 0 0.2rem; }
.cn-scan-busy p { margin: 0; color: #6b7280; }
.cn-scan-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; }
.cn-scan-cam { width: 64px; height: 64px; margin: 0.4rem auto 0; border-radius: 18px; background: #ffd166; color: #b8321c; display: grid; place-items: center; }
.cn-scan-cam svg { width: 34px; height: 34px; }
.cn-scan-spin { width: 28px; height: 28px; margin: 0.9rem auto 0; border-radius: 50%; border: 3px solid #ffe1d6; border-top-color: #f0533a; animation: cnScanSpin .8s linear infinite; }
@keyframes cnScanSpin { to { transform: rotate(360deg); } }
.cn-scan-toast {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(env(safe-area-inset-bottom) + 84px); z-index: 9998;
  display: flex; align-items: center; gap: 0.55rem; padding: 0.65rem 0.7rem; border-radius: 14px;
  background: #111827; color: #fff; font: 500 0.9rem/1.3 Inter, system-ui, sans-serif; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .22s ease;
}
.cn-scan-toast.on { transform: none; opacity: 1; pointer-events: auto; }
.cn-scan-toast > span:nth-child(2) { flex: 1; min-width: 0; }
.cn-scan-toast-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #ffd166; color: #b8321c; display: grid; place-items: center; }
.cn-scan-toast-ico svg { width: 18px; height: 18px; }
.cn-scan-toast button { flex: none; border: none; background: #f0533a; color: #fff; font: inherit; font-weight: 700; border-radius: 999px; padding: 0.4rem 0.75rem; cursor: pointer; }
html.cn-scan-open, html.cn-scan-open body { overflow: hidden; }

.cn-textlink { background: none; border: 0; padding: 0; color: #c2361f; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.cn-disc { margin: 0.5rem 0 0; font-size: 0.74rem; line-height: 1.4; color: #6b7280; }
.cn-disc a { color: #6b7280; text-decoration: underline; }
.grade-pop .disc { margin: 0.7rem 0 0; padding-top: 0.55rem; border-top: 1px solid #f1e3dc; font-size: 0.76rem; line-height: 1.4; color: #6b7280; }
.grade-pop .disc a { color: #6b7280; text-decoration: underline; }
