:root {
  --qnw-ink: #101827;
  --qnw-soft-ink: #344154;
  --qnw-muted: #6e7d91;
  --qnw-paper: rgba(255, 255, 252, 0.92);
  --qnw-paper-solid: #fffefa;
  --qnw-line: rgba(30, 54, 83, 0.13);
  --qnw-ocean: #087f8c;
  --qnw-leaf: #20a67a;
  --qnw-sun: #f6a531;
  --qnw-clay: #e96b45;
  --qnw-night: #152238;
  --qnw-shadow: 0 22px 70px rgba(23, 42, 71, 0.14);
  --qnw-soft-shadow: 0 14px 34px rgba(23, 42, 71, 0.1);
  --qnw-radius-xl: 30px;
  --qnw-radius-lg: 22px;
  --qnw-radius-md: 16px;
  --qnw-font-display: "Avenir Next", "Futura", "Gill Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --qnw-font-body: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--qnw-ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(246, 165, 49, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(32, 166, 122, 0.18), transparent 25rem),
    linear-gradient(145deg, #fbf4e6 0%, #eef8f2 44%, #ecf7fb 100%) !important;
  font-family: var(--qnw-font-body) !important;
}

body.has-qnw-detail-actions {
  padding-bottom: 82px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 72%);
}

h1,
h2,
h3,
.brand,
.metric strong,
.guide-chip,
.meta-tag,
.button,
button {
  font-family: var(--qnw-font-display) !important;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

img {
  filter: saturate(1.04) contrast(1.02);
}

.topbar,
header,
.hero,
.panel,
article,
section,
.metric,
.result-card,
.priority-card,
.quality-card,
.gap-card {
  border-color: var(--qnw-line) !important;
}

.topbar,
header.topbar,
.hero,
.panel,
.metric,
.result-card,
.quality-card,
.gap-card,
.priority-card,
.attraction-card,
.pages article,
.grid article {
  border-radius: var(--qnw-radius-lg) !important;
  background: var(--qnw-paper) !important;
  box-shadow: var(--qnw-soft-shadow);
  backdrop-filter: blur(16px);
}

.button,
button,
.login-pill,
.primary-action,
.secondary-action,
.text-action,
.filter-chip,
.topic-chip,
.scope-chip,
select,
input {
  border-radius: 999px !important;
}

.button.primary,
.primary-action,
.filter-btn.active,
.topic-chip.active,
.scope-chip.active,
.filter-chip.active,
.card-actions .primary,
.center-badge {
  background:
    linear-gradient(135deg, var(--qnw-ocean), var(--qnw-leaf) 58%, #75c874) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 30px rgba(8, 127, 140, 0.22);
}

.button:hover,
button:hover,
.login-pill:hover,
.text-action:hover {
  transform: translateY(-1px);
}

.topbar,
header {
  position: relative;
}

.brand-mark,
.brand em {
  color: #fff !important;
  background:
    linear-gradient(135deg, var(--qnw-night), var(--qnw-ocean));
  box-shadow: 0 10px 24px rgba(21, 34, 56, 0.18);
}

.search-box,
.filters,
.toolbar,
.section-toolbar {
  position: relative;
}

input[type="search"],
input[type="text"],
.search-input,
#guideSearchInput,
#searchInput {
  min-height: 48px !important;
  border: 1px solid rgba(8, 127, 140, 0.18) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 248, 0.88)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 24px rgba(23, 42, 71, 0.07);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(32, 166, 122, 0.18);
  border-color: rgba(8, 127, 140, 0.48) !important;
}

.hero,
.spin-screen,
.world-panel {
  overflow: hidden;
}

.hero {
  box-shadow: var(--qnw-shadow);
}

.hero img,
.card-media img,
.media img,
.result-card img,
.checkin-card img,
.checkin-mini img,
.checkin-row img {
  background:
    linear-gradient(135deg, rgba(8, 127, 140, 0.18), rgba(246, 165, 49, 0.16));
}

.hero-body,
.body,
.panel {
  color: var(--qnw-soft-ink);
}

.eyebrow,
.section-heading p,
.checkin-title,
.guide-snippet h3,
.sub-card h3,
.detail-card h3,
.metric span {
  color: var(--qnw-ocean) !important;
  letter-spacing: 0.04em;
}

.meta,
.subtitle,
p,
.notice,
.summary-note {
  color: var(--qnw-muted) !important;
}

.meta-tag,
.guide-chip,
.tags span,
.priority-tags span,
.quality-breakdown span,
.completion-tags span,
.completion-tags a {
  border-color: rgba(8, 127, 140, 0.13) !important;
  color: #0f5f69 !important;
  background: rgba(235, 250, 244, 0.86) !important;
}

/* Home */
.app-shell {
  min-height: 100vh;
}

.app-shell main {
  width: min(1180px, calc(100% - 28px));
}

.spin-copy {
  position: relative;
  padding: 26px 26px 4px;
}

.spin-copy h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 7vw, 5.6rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.07em;
}

.stats-row span,
.topic-chip,
.scope-chip,
.filter-chip {
  box-shadow: 0 8px 18px rgba(23, 42, 71, 0.07);
}

.wheel-stage {
  filter: drop-shadow(0 26px 48px rgba(23, 42, 71, 0.16));
}

.result-panel,
.guide-panel {
  border-radius: var(--qnw-radius-xl) !important;
  box-shadow: var(--qnw-shadow);
}

.persona-card {
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(246, 165, 49, 0.18), rgba(255, 255, 252, 0.88)) !important;
}

/* Guide detail */
.image-gallery {
  gap: 10px !important;
  padding: 10px !important;
  background: rgba(21, 34, 56, 0.04) !important;
}

.image-gallery img {
  border-radius: 18px !important;
  box-shadow: 0 12px 26px rgba(23, 42, 71, 0.12);
}

.grid:has(.content) {
  align-items: start;
}

.content h2,
.panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--qnw-ink);
}

.content h2::before,
.panel h2::before {
  content: "";
  width: 9px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--qnw-sun), var(--qnw-clay));
}

.checkin-gallery {
  gap: 14px !important;
}

.checkin-card {
  position: relative;
  border-radius: 24px !important;
  box-shadow: 0 16px 34px rgba(23, 42, 71, 0.11);
}

.checkin-card strong {
  color: var(--qnw-ink);
  font-size: 1rem !important;
}

.checkin-card span,
.detail-list li,
.step-card,
.tip-card {
  color: var(--qnw-soft-ink) !important;
}

.detail-grid {
  gap: 14px !important;
}

.detail-card {
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 241, 0.72)) !important;
  box-shadow: 0 14px 28px rgba(23, 42, 71, 0.08);
}

.detail-list {
  padding-left: 18px !important;
}

.source-list {
  position: sticky;
  top: 14px;
}

/* Lists and attraction library */
.pages,
#grid.result-list,
#grid.grid,
.result-list {
  gap: 18px !important;
}

.pages article,
.attraction-card,
.result-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pages article:hover,
.attraction-card:hover,
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--qnw-shadow);
}

.card-media,
.media,
.result-card img {
  border-radius: 20px !important;
  overflow: hidden;
}

.guide-snippets,
.checkin-strip,
.checkin-preview,
.sub-grid {
  border-radius: 20px;
}

.guide-snippet,
.sub-card,
.checkin-mini,
.checkin-row {
  border-color: rgba(8, 127, 140, 0.11) !important;
  background: rgba(255, 255, 252, 0.72) !important;
}

.empty {
  border-radius: var(--qnw-radius-lg) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 252, 0.9), rgba(235, 250, 244, 0.86)) !important;
}

.qnw-anchor-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 16px;
  padding: 10px;
  border: 1px solid var(--qnw-line);
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.72);
  box-shadow: 0 10px 24px rgba(23, 42, 71, 0.08);
  backdrop-filter: blur(14px);
}

.qnw-anchor-rail a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #0f5f69;
  background: rgba(235, 250, 244, 0.9);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.qnw-checkin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(21, 34, 56, 0.76);
  box-shadow: 0 8px 18px rgba(21, 34, 56, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
}

.qnw-search-status {
  margin: -4px 0 14px;
  color: var(--qnw-muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.qnw-search-status.is-active {
  color: #0f5f69;
}

.qnw-search-status.is-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px dashed rgba(233, 107, 69, 0.32);
  border-radius: 999px;
  color: #8a4b00;
  background: rgba(246, 165, 49, 0.12);
}

.qnw-card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.28) 34%, transparent 46%);
  opacity: 0;
  transform: translateX(-24%);
  transition: opacity 0.2s ease, transform 0.36s ease;
}

.qnw-image-error {
  opacity: 0.18;
  filter: grayscale(1);
}

.qnw-image-fallback-note {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--qnw-muted);
  background: rgba(255, 255, 252, 0.86);
  font-size: 0.74rem;
  font-weight: 900;
  pointer-events: none;
}

.hero,
.media,
.card-media,
.checkin-card,
.checkin-row,
.checkin-mini {
  position: relative;
}

.pages article,
.attraction-card,
.result-card {
  position: relative;
}

.pages article:hover .qnw-card-sheen,
.attraction-card:hover .qnw-card-sheen,
.result-card:hover .qnw-card-sheen {
  opacity: 1;
  transform: translateX(18%);
}

.qnw-back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--qnw-night), var(--qnw-ocean));
  box-shadow: 0 16px 30px rgba(21, 34, 56, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.qnw-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.qnw-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 4px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.28);
}

.qnw-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--qnw-sun), var(--qnw-clay), var(--qnw-ocean));
  box-shadow: 0 0 18px rgba(246, 165, 49, 0.38);
}

.qnw-clickable-image {
  cursor: zoom-in;
}

.qnw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 18, 30, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  backdrop-filter: blur(18px);
}

.qnw-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qnw-lightbox figure {
  width: min(980px, 100%);
  margin: 0;
}

.qnw-lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  background: #111827;
}

.qnw-lightbox figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-weight: 800;
}

.qnw-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.4rem;
  box-shadow: none;
}

.qnw-lock-scroll {
  overflow: hidden;
}

.qnw-detail-actions {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--qnw-line);
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.84);
  box-shadow: 0 18px 42px rgba(21, 34, 56, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.qnw-detail-actions a,
.qnw-detail-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--qnw-ink);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.qnw-detail-actions button {
  color: #fff;
  background: linear-gradient(135deg, var(--qnw-ocean), var(--qnw-leaf));
}

.qnw-detail-count {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 8px;
  border-radius: 999px;
  color: #8a4b00;
  background: rgba(246, 165, 49, 0.16);
  font-size: 0.72rem;
  font-weight: 900;
}

/* Admin: necessary consistency only */
#contentSummary .metric:first-child strong,
#readinessSummary .metric:nth-child(5) strong,
#mvpOpsSummary .metric:nth-child(3) strong {
  color: var(--qnw-leaf) !important;
}

@media (max-width: 840px) {
  body::before {
    background-size: 30px 30px;
  }

  main,
  .app-shell main {
    width: 100% !important;
    padding: 14px !important;
  }

  header,
  .topbar {
    border-radius: 22px !important;
  }

  .top-actions,
  .actions,
  .nav {
    width: 100%;
    justify-content: flex-start !important;
  }

  .spin-copy {
    padding: 18px 16px 0;
  }

  .spin-copy h1 {
    font-size: clamp(2.15rem, 13vw, 3.7rem) !important;
  }

  .grid,
  .detail-grid,
  .toolbar {
    grid-template-columns: 1fr !important;
  }

  .source-list {
    position: static;
  }

  .qnw-anchor-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: 18px;
    scrollbar-width: none;
  }

  .qnw-anchor-rail::-webkit-scrollbar {
    display: none;
  }

  .qnw-lightbox {
    padding: 12px;
  }

  .qnw-lightbox img {
    border-radius: 18px;
    max-height: 72vh;
  }

  .qnw-detail-actions {
    right: 10px;
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: none;
  }

  .qnw-detail-actions a,
  .qnw-detail-actions button {
    flex: 1;
    padding: 0 8px;
  }

  .hero-body,
  .panel,
  .body {
    padding: 16px !important;
  }

  .pages,
  #grid.grid,
  .result-list {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .panel,
  .pages article,
  .attraction-card,
  .metric {
    animation: qnw-rise 0.42s ease both;
  }

  @keyframes qnw-rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* QNW UI public beta phase 4: usability polish */
.qnw-skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--qnw-night, #132033);
  color: #fff;
  box-shadow: 0 16px 40px rgba(19, 32, 51, 0.22);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 0.22s ease;
}

.qnw-skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(248, 181, 80, 0.72);
  outline-offset: 3px;
}

.qnw-search-chips {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 2px 4px;
  margin: 0 auto 10px;
  max-width: min(980px, calc(100vw - 32px));
  scrollbar-width: none;
}

.qnw-search-chips::-webkit-scrollbar {
  display: none;
}

.qnw-search-chips::before {
  content: "快速找";
  flex: 0 0 auto;
  color: rgba(44, 61, 84, 0.64);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.qnw-search-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(52, 112, 127, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--qnw-night, #132033);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(47, 97, 111, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.qnw-search-chip:hover,
.qnw-search-chip:focus {
  transform: translateY(-1px);
  background: rgba(255, 247, 232, 0.96);
  border-color: rgba(248, 181, 80, 0.55);
  outline: none;
}

.qnw-search-chip.is-active {
  background: linear-gradient(135deg, rgba(248, 181, 80, 0.95), rgba(72, 160, 128, 0.88));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.qnw-mobile-media-hint {
  display: none;
  margin: 8px 0 12px;
  color: rgba(44, 61, 84, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.qnw-mini-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(19, 32, 51, 0.92);
  color: #fff;
  box-shadow: 0 20px 54px rgba(19, 32, 51, 0.26);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.qnw-mini-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.qnw-copy-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--qnw-night, #132033);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(19, 32, 51, 0.1);
  cursor: pointer;
}

.qnw-copy-link:hover,
.qnw-copy-link:focus {
  background: rgba(255, 247, 232, 0.96);
  outline: 3px solid rgba(248, 181, 80, 0.34);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .image-gallery.qnw-media-rail,
  .checkin-gallery.qnw-media-rail {
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    margin-left: -2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .image-gallery.qnw-media-rail::-webkit-scrollbar,
  .checkin-gallery.qnw-media-rail::-webkit-scrollbar {
    display: none;
  }

  .image-gallery.qnw-media-rail > *,
  .checkin-gallery.qnw-media-rail > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .image-gallery.qnw-media-rail img,
  .checkin-gallery.qnw-media-rail img {
    min-height: 220px;
    object-fit: cover;
  }

  .qnw-mobile-media-hint {
    display: block;
  }

  .qnw-search-chips {
    max-width: calc(100vw - 24px);
    padding-left: 2px;
    padding-right: 12px;
  }
}

/* QNW UI public beta phase 4b: guide detail information hierarchy */
.qnw-section-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px 4px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(52, 112, 127, 0.1);
  color: var(--qnw-night, #132033);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  vertical-align: middle;
}

.qnw-kind-checkin .qnw-section-kind {
  background: rgba(248, 181, 80, 0.2);
  color: #8a5418;
}

.qnw-kind-route .qnw-section-kind,
.qnw-kind-transport .qnw-section-kind {
  background: rgba(52, 112, 127, 0.13);
  color: #245b68;
}

.qnw-kind-food .qnw-section-kind {
  background: rgba(224, 112, 82, 0.14);
  color: #8d3f2c;
}

.qnw-kind-weather .qnw-section-kind,
.qnw-kind-rain .qnw-section-kind {
  background: rgba(91, 137, 184, 0.15);
  color: #315f8b;
}

.qnw-kind-ticket .qnw-section-kind {
  background: rgba(72, 160, 128, 0.16);
  color: #267256;
}

.qnw-kind-note .qnw-section-kind {
  background: rgba(19, 32, 51, 0.1);
  color: #26354d;
}

.qnw-section-card {
  border-left: 5px solid rgba(52, 112, 127, 0.22) !important;
}

.qnw-kind-checkin.qnw-section-card {
  border-left-color: rgba(248, 181, 80, 0.74) !important;
}

.qnw-kind-food.qnw-section-card {
  border-left-color: rgba(224, 112, 82, 0.62) !important;
}

.qnw-kind-ticket.qnw-section-card {
  border-left-color: rgba(72, 160, 128, 0.64) !important;
}

.qnw-section-guide-note {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 247, 232, 0.74);
  color: rgba(44, 61, 84, 0.78);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.65;
}

.qnw-detail-scanbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 36px rgba(47, 97, 111, 0.08);
}

.qnw-detail-scanbar a {
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(52, 112, 127, 0.09);
  color: var(--qnw-night, #132033);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.qnw-detail-scanbar a:hover,
.qnw-detail-scanbar a:focus {
  background: rgba(248, 181, 80, 0.2);
  outline: none;
}

/* QNW UI public beta phase 5: image quality and check-in proof polish */
.qnw-img-hidden-duplicate {
  display: none !important;
}

.image-gallery.qnw-gallery-enhanced,
.checkin-gallery.qnw-gallery-enhanced,
.qnw-inline-image-samples {
  position: relative;
}

.qnw-gallery-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(44, 61, 84, 0.78);
  box-shadow: 0 10px 26px rgba(47, 97, 111, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.image-gallery.qnw-gallery-enhanced > :first-child,
.checkin-gallery.qnw-gallery-enhanced > :first-child {
  position: relative;
}

@media (min-width: 900px) {
  .image-gallery.qnw-gallery-enhanced > :first-child {
    grid-column: span 2;
  }

  .image-gallery.qnw-gallery-enhanced > :first-child img {
    min-height: 340px;
  }
}

.qnw-inline-image-samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}

.qnw-inline-image-samples figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(47, 97, 111, 0.11);
  border: 1px solid rgba(52, 112, 127, 0.1);
}

.qnw-inline-image-samples img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(240, 233, 221, 0.72);
}

.qnw-inline-image-samples figcaption {
  padding: 9px 10px 10px;
  color: rgba(44, 61, 84, 0.72);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.qnw-checkin-proof-note {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(248, 181, 80, 0.18);
  color: #8a5418;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.qnw-image-count-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(52, 112, 127, 0.1);
  color: rgba(44, 61, 84, 0.72);
  font-size: 11px;
  font-weight: 950;
  vertical-align: middle;
}

/* QNW UI public beta phase 6: admin readiness rail and empty states */
.qnw-admin-beta-panel {
  display: grid;
  gap: 12px;
  margin: 16px 0 22px;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 232, 0.72));
  border: 1px solid rgba(52, 112, 127, 0.12);
  box-shadow: 0 18px 46px rgba(47, 97, 111, 0.1);
}

.qnw-admin-beta-panel h2 {
  margin: 0;
  color: var(--qnw-night, #132033);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.03em;
}

.qnw-admin-beta-panel p {
  margin: 0;
  color: rgba(44, 61, 84, 0.7);
  line-height: 1.75;
  font-weight: 700;
}

.qnw-admin-beta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qnw-admin-beta-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(52, 112, 127, 0.1);
  color: var(--qnw-night, #132033);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.qnw-admin-beta-links a:first-child {
  background: linear-gradient(135deg, rgba(52, 112, 127, 0.96), rgba(72, 160, 128, 0.9));
  color: #fff;
}

.qnw-empty-helper {
  margin: 22px auto;
  padding: 22px;
  max-width: 760px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(52, 112, 127, 0.12);
  box-shadow: 0 16px 42px rgba(47, 97, 111, 0.09);
  color: rgba(44, 61, 84, 0.78);
  text-align: center;
}

.qnw-empty-helper strong {
  display: block;
  margin-bottom: 8px;
  color: var(--qnw-night, #132033);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.qnw-empty-helper span {
  display: block;
  line-height: 1.7;
  font-weight: 750;
}

.qnw-empty-helper-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.qnw-empty-helper-actions button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(248, 181, 80, 0.2);
  color: #7d4c16;
  font-weight: 950;
  cursor: pointer;
}

.qnw-empty-helper-actions button:hover,
.qnw-empty-helper-actions button:focus {
  background: rgba(248, 181, 80, 0.34);
  outline: none;
}

/* QNW UI public beta phase 7: search recovery and trip decision scan */
.qnw-search-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 14px;
  max-width: min(980px, calc(100vw - 32px));
}

.qnw-query-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(52, 112, 127, 0.1);
  color: rgba(44, 61, 84, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.qnw-query-pill.is-visible {
  display: inline-flex;
}

.qnw-clear-search {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(19, 32, 51, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(19, 32, 51, 0.16);
}

.qnw-clear-search.is-visible {
  display: inline-flex;
}

.qnw-clear-search:hover,
.qnw-clear-search:focus {
  background: rgba(52, 112, 127, 0.95);
  outline: 3px solid rgba(248, 181, 80, 0.35);
  outline-offset: 2px;
}

.qnw-trip-brief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}

.qnw-trip-brief-card {
  min-height: 96px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(52, 112, 127, 0.12);
  box-shadow: 0 14px 34px rgba(47, 97, 111, 0.09);
}

.qnw-trip-brief-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--qnw-night, #132033);
  font-size: 14px;
  font-weight: 950;
}

.qnw-trip-brief-card span {
  display: block;
  color: rgba(44, 61, 84, 0.72);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.qnw-trip-brief-card.is-found {
  background: linear-gradient(135deg, rgba(255, 247, 232, 0.9), rgba(255, 255, 255, 0.78));
  border-color: rgba(248, 181, 80, 0.28);
}

.qnw-scan-line {
  position: relative;
  margin-top: 8px;
  padding: 12px 12px 12px 46px !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(52, 112, 127, 0.09);
  list-style: none;
}

.qnw-scan-line::before {
  content: attr(data-qnw-scan-label);
  position: absolute;
  left: 10px;
  top: 11px;
  min-width: 24px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(248, 181, 80, 0.22);
  color: #825016;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.qnw-scan-line.qnw-scan-time::before {
  background: rgba(52, 112, 127, 0.14);
  color: #255b68;
}

.qnw-scan-line.qnw-scan-warning::before {
  background: rgba(224, 112, 82, 0.16);
  color: #8d3f2c;
}

@media (max-width: 760px) {
  .qnw-search-tools {
    justify-content: flex-start;
    padding-left: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .qnw-search-tools::-webkit-scrollbar {
    display: none;
  }

  .qnw-trip-brief {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .qnw-trip-brief::-webkit-scrollbar {
    display: none;
  }

  .qnw-trip-brief-card {
    flex: 0 0 74%;
    scroll-snap-align: start;
  }
}

/* QNW UI public beta phase 8: public-beta page status, detail jump dock and safe spacing */
.qnw-public-beta-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px auto 18px;
  padding: 12px 14px;
  max-width: min(1120px, calc(100vw - 28px));
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(19, 32, 51, 0.92), rgba(52, 112, 127, 0.86));
  color: #fff;
  box-shadow: 0 18px 48px rgba(19, 32, 51, 0.18);
}

.qnw-public-beta-ribbon strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.qnw-public-beta-ribbon span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.qnw-public-beta-ribbon em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(248, 181, 80, 0.22);
  color: #fff7e8;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.qnw-detail-jump-dock {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 10px 0 18px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(47, 97, 111, 0.08);
  scrollbar-width: none;
}

.qnw-detail-jump-dock::-webkit-scrollbar {
  display: none;
}

.qnw-detail-jump-dock a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(52, 112, 127, 0.1);
  color: var(--qnw-night, #132033);
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.qnw-detail-jump-dock a:first-child {
  background: rgba(248, 181, 80, 0.26);
  color: #7d4c16;
}

.qnw-media-readiness {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  color: rgba(44, 61, 84, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.qnw-media-readiness span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(47, 97, 111, 0.07);
}

.qnw-media-readiness .is-good {
  background: rgba(72, 160, 128, 0.16);
  color: #267256;
}

.qnw-media-readiness .is-warn {
  background: rgba(248, 181, 80, 0.22);
  color: #7d4c16;
}

.qnw-safe-bottom-spacer {
  display: block;
  height: calc(18px + env(safe-area-inset-bottom, 0px));
}

body.has-qnw-detail-actions .qnw-back-top {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 760px) {
  .qnw-public-beta-ribbon {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 8px;
  }

  .qnw-public-beta-ribbon em {
    align-self: flex-start;
  }

  .qnw-detail-jump-dock {
    position: sticky;
    top: 6px;
    z-index: 15;
    margin-left: -2px;
    margin-right: -2px;
    backdrop-filter: blur(18px);
  }

  body.has-qnw-detail-actions {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
}

/* QNW UI public beta phase 9: loading, slow-network and image stability polish */
.qnw-page-loading-cue {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 10001;
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100vw - 28px));
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(44, 61, 84, 0.82);
  box-shadow: 0 18px 48px rgba(47, 97, 111, 0.14);
  border: 1px solid rgba(52, 112, 127, 0.11);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.qnw-page-loading-cue.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.qnw-page-loading-cue::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(52, 112, 127, 0.18);
  border-top-color: rgba(52, 112, 127, 0.9);
  animation: qnw-spin 0.8s linear infinite;
}

@keyframes qnw-spin {
  to { transform: rotate(360deg); }
}

.qnw-slow-cue {
  margin: 14px auto 18px;
  max-width: min(880px, calc(100vw - 28px));
  padding: 13px 15px;
  border-radius: 22px;
  background: rgba(255, 247, 232, 0.82);
  color: rgba(91, 63, 26, 0.9);
  border: 1px solid rgba(248, 181, 80, 0.24);
  box-shadow: 0 14px 36px rgba(153, 103, 35, 0.09);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.65;
}

img.qnw-image-loading {
  background: linear-gradient(110deg, rgba(240, 233, 221, 0.78) 8%, rgba(255, 255, 255, 0.88) 18%, rgba(240, 233, 221, 0.78) 33%);
  background-size: 220% 100%;
  animation: qnw-image-shimmer 1.25s ease-in-out infinite;
}

img.qnw-image-loaded {
  animation: none;
}

@keyframes qnw-image-shimmer {
  to { background-position-x: -220%; }
}

.qnw-image-failure-card {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 18px;
  border-radius: 20px;
  background: repeating-linear-gradient(135deg, rgba(248, 181, 80, 0.13), rgba(248, 181, 80, 0.13) 12px, rgba(255, 255, 255, 0.74) 12px, rgba(255, 255, 255, 0.74) 24px);
  color: rgba(44, 61, 84, 0.74);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
  border: 1px solid rgba(248, 181, 80, 0.24);
}

.qnw-beta-checklist {
  display: grid;
  gap: 10px;
  margin: 16px auto 22px;
  max-width: min(980px, calc(100vw - 28px));
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(52, 112, 127, 0.11);
  box-shadow: 0 16px 42px rgba(47, 97, 111, 0.09);
}

.qnw-beta-checklist strong {
  color: var(--qnw-night, #132033);
  font-size: 14px;
  font-weight: 950;
}

.qnw-beta-checklist div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qnw-beta-checklist a {
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(52, 112, 127, 0.09);
  color: var(--qnw-night, #132033);
  text-decoration: none;
  font-size: 12px;
  font-weight: 920;
}

.qnw-beta-checklist a:hover,
.qnw-beta-checklist a:focus {
  background: rgba(248, 181, 80, 0.22);
  outline: none;
}

@media (max-width: 760px) {
  .qnw-page-loading-cue {
    top: calc(10px + env(safe-area-inset-top, 0px));
    border-radius: 18px;
    width: calc(100vw - 28px);
    justify-content: center;
  }
}

/* QNW UI public beta phase 10: late-render rescue and tactile list polish */
.qnw-late-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 14px 0 10px;
}

.qnw-late-proof-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(52, 112, 127, 0.11);
  box-shadow: 0 14px 34px rgba(47, 97, 111, 0.1);
}

.qnw-late-proof-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.qnw-late-proof-grid figcaption {
  padding: 9px 10px 10px;
  color: rgba(44, 61, 84, 0.74);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.qnw-late-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  margin-bottom: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(52, 112, 127, 0.1);
  color: rgba(44, 61, 84, 0.78);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.qnw-late-card-polished {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.qnw-late-card-polished:hover,
.qnw-late-card-polished:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(47, 97, 111, 0.13) !important;
  border-color: rgba(248, 181, 80, 0.28) !important;
}

.qnw-late-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.qnw-late-card-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 247, 232, 0.72);
  color: rgba(91, 63, 26, 0.86);
  font-size: 11px;
  font-weight: 900;
}

.qnw-late-dynamic-ready {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(72, 160, 128, 0.15);
  color: #267256;
  font-size: 12px;
  font-weight: 950;
}

@media (max-width: 760px) {
  .qnw-late-proof-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .qnw-late-proof-grid::-webkit-scrollbar {
    display: none;
  }

  .qnw-late-proof-grid figure {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* QNW UI public beta phase 11: cross-card image de-duplication */
.qnw-page-duplicate-image-hidden {
  display: none !important;
}

.qnw-image-dedupe-fallback {
  display: grid;
  place-items: center;
  min-height: 132px;
  margin: 8px 0 10px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 247, 232, 0.82), rgba(255, 255, 255, 0.76));
  border: 1px dashed rgba(248, 181, 80, 0.42);
  color: rgba(91, 63, 26, 0.86);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
}

.qnw-dedupe-page-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px auto 16px;
  max-width: min(980px, calc(100vw - 28px));
  padding: 11px 13px;
  border-radius: 22px;
  background: rgba(72, 160, 128, 0.13);
  color: #267256;
  box-shadow: 0 12px 30px rgba(47, 97, 111, 0.07);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.55;
}

.qnw-dedupe-page-note strong {
  color: var(--qnw-night, #132033);
  font-weight: 950;
}

/* QNW UI public beta phase 12: final mobile overflow containment */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .qnw-public-beta-ribbon,
  .qnw-trip-brief,
  .qnw-detail-jump-dock,
  .qnw-media-readiness,
  .qnw-detail-actions,
  .qnw-beta-checklist,
  .qnw-admin-beta-panel,
  .qnw-dedupe-page-note,
  .qnw-slow-cue,
  .qnw-empty-helper {
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
  }
}

/* QNW UI public beta phase 15: keep roulette GO button locked to wheel center */
.wheel-stage .center-badge,
.wheel-stage .center-badge:hover,
.wheel-stage .center-badge:focus,
.wheel-stage .center-badge:focus-visible,
.wheel-stage .center-badge:active {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.wheel-stage .center-badge:hover,
.wheel-stage .center-badge:focus-visible {
  box-shadow: 0 22px 48px rgba(8, 127, 140, 0.26), 0 0 34px rgba(255, 255, 255, 0.72), inset 0 1px 0 #ffffff !important;
}

/* QNW UI public beta phase 16: clean check-in proof note presentation */
.qnw-checkin-proof-note {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  max-width: min(100%, 560px) !important;
  margin: 10px 0 12px !important;
  padding: 9px 13px !important;
  border: 1px solid rgba(248, 181, 80, 0.28) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255, 247, 232, 0.94), rgba(255, 255, 255, 0.82)) !important;
  color: rgba(91, 63, 26, 0.88) !important;
  box-shadow: 0 10px 24px rgba(153, 103, 35, 0.08) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

.qnw-checkin-proof-note strong {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: rgba(248, 181, 80, 0.2) !important;
  color: #7d4c16 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.qnw-checkin-proof-note span {
  color: rgba(91, 63, 26, 0.86) !important;
}

.qnw-checkin-proof-note.qnw-proof-note-duplicate {
  display: none !important;
}

@media (max-width: 760px) {
  .qnw-checkin-proof-note {
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/* QNW UI public beta phase 19: make guide detail bottom actions responsive and non-overlapping */
.qnw-detail-actions {
  left: max(10px, env(safe-area-inset-left, 0px)) !important;
  right: max(10px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  width: auto !important;
  max-width: min(680px, calc(100vw - 20px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.qnw-detail-actions > a,
.qnw-detail-actions > button {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.qnw-detail-actions > a::before,
.qnw-detail-actions > button::before,
.qnw-detail-actions > a::after,
.qnw-detail-actions > button::after {
  flex: 0 0 auto !important;
}

@media (max-width: 480px) {
  .qnw-detail-actions {
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100vw - 16px) !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  .qnw-detail-actions > a,
  .qnw-detail-actions > button {
    min-height: 42px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 14px !important;
    border-radius: 999px !important;
  }
}

/* QNW UI public beta phase 20: move check-in number badge into the card title area */
.checkin-card .qnw-checkin-info {
  position: relative !important;
  padding-top: 20px !important;
}

.checkin-card .qnw-checkin-info .qnw-checkin-badge,
.checkin-card > .qnw-checkin-badge {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  z-index: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 0 10px 0 !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(52, 112, 127, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(52, 112, 127, 0.1) !important;
  color: rgba(44, 61, 84, 0.86) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0.06em !important;
  white-space: nowrap !important;
}

.checkin-card .qnw-checkin-info .qnw-checkin-badge + strong {
  display: block !important;
  margin-top: 2px !important;
}

.checkin-card > img + .qnw-checkin-info {
  border-top: 0 !important;
}

@media (max-width: 760px) {
  .checkin-card .qnw-checkin-info .qnw-checkin-badge,
  .checkin-card > .qnw-checkin-badge {
    font-size: 11px !important;
    padding: 6px 9px !important;
  }
}

/* QNW final UI unification pass: booking-aware product layer */
:root {
  --qnw-ocean: #0f766e;
  --qnw-mint: #22c55e;
  --qnw-sky: #0ea5e9;
  --qnw-sun: #f59e0b;
  --qnw-coral: #ef4444;
  --qnw-ink: #0f172a;
  --qnw-soft: #f6fffb;
  --qnw-card-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(34, 197, 94, 0.16), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(14, 165, 233, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fffd 0%, #f2fbff 48%, #f7fafc 100%) !important;
}

.topbar,
.hero,
.panel,
.booking-ops-panel,
.quality-card,
.gap-card,
.priority-card,
.metric {
  box-shadow: var(--qnw-card-shadow);
}

.topbar {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82) !important;
}

.brand em,
.eyebrow,
.booking-suite-kicker,
.booking-ops-kicker {
  color: var(--qnw-ocean) !important;
}

.button,
.card-actions a,
.card-actions button,
.booking-service-cta,
.booking-ops-actions a {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover,
.card-actions a:hover,
.card-actions button:hover,
.booking-service-cta:hover,
.booking-ops-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.18);
}

.hero,
.panel,
.booking-suite,
.booking-ops-panel {
  border-radius: 24px !important;
}

.hero img,
.image-fallback,
.hero-placeholder {
  border-radius: 0;
}

.booking-suite {
  animation: qnwRise .42s ease both;
}

.booking-service-card {
  isolation: isolate;
  position: relative;
}

.booking-service-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 52px 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, .25), transparent);
  z-index: -1;
}

.booking-service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .34);
}

.booking-service-dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 60;
  width: min(720px, calc(100% - 24px));
  transform: translateX(-50%);
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 60px rgba(15,23,42,.2);
  backdrop-filter: blur(18px);
}

.booking-service-dock a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.booking-service-dock a:nth-child(3) { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.booking-service-dock a:nth-child(4) { background: linear-gradient(135deg, #c2410c, #f59e0b); }

.booking-ops-panel {
  animation: qnwRise .38s ease both;
}

.booking-ops-card,
.booking-ops-box,
.booking-service-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.booking-ops-card:hover,
.booking-ops-box:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, .24);
}

@keyframes qnwRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  main { padding-bottom: 92px !important; }
  .booking-service-dock { display: grid; }
  .booking-suite { margin-bottom: 14px; }
  .booking-service-card { min-height: 132px; }
}

/* QNW final UI unification pass 2: entry pages, search and card system */
:root {
  --qnw-radius-xl: 28px;
  --qnw-radius-lg: 22px;
  --qnw-radius-md: 16px;
  --qnw-glass: rgba(255, 255, 255, .82);
  --qnw-line: rgba(15, 118, 110, .16);
  --qnw-line-strong: rgba(15, 118, 110, .28);
  --qnw-warm: #fff7ed;
  --qnw-night: #0f172a;
}

main,
.container,
.page,
.wrapper,
.dashboard,
.admin-main {
  position: relative;
}

main::before,
.container::before {
  content: "";
  position: fixed;
  top: -18vh;
  right: -18vw;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.14), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.search-box,
.search-panel,
.search-card,
.hero-search,
.filters,
.toolbar,
.controls {
  border: 1px solid var(--qnw-line) !important;
  border-radius: var(--qnw-radius-lg) !important;
  background: var(--qnw-glass) !important;
  box-shadow: 0 16px 46px rgba(15,23,42,.08) !important;
  backdrop-filter: blur(16px);
}

.search-input,
input[type="search"],
input[type="text"],
select,
textarea {
  border-color: rgba(15,118,110,.22) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7) !important;
}

.search-input:focus,
input[type="search"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20,184,166,.18) !important;
  border-color: rgba(15,118,110,.46) !important;
}

.search-results,
.dropdown,
.popover,
.suggest-list {
  border: 1px solid rgba(15,118,110,.18) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 20px 60px rgba(15,23,42,.16) !important;
  overflow: hidden;
}

.search-result-item,
.result-item,
.suggest-item {
  transition: background .16s ease, transform .16s ease;
}

.search-result-item:hover,
.result-item:hover,
.suggest-item:hover {
  background: linear-gradient(90deg, rgba(20,184,166,.1), rgba(14,165,233,.08)) !important;
  transform: translateX(2px);
}

.hero-section,
.home-hero,
.landing-hero,
.spin-section,
.wheel-section,
.guide-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--qnw-line) !important;
  border-radius: var(--qnw-radius-xl) !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(245,158,11,.18), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(14,165,233,.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(240,253,250,.82)) !important;
  box-shadow: 0 24px 80px rgba(15,23,42,.1) !important;
}

.wheel,
.wheel-wrap,
.wheel-stage,
.wheel-container,
.roulette,
.spin-wheel,
#wheel,
#wheelCanvas,
canvas[id*="wheel" i] {
  filter: drop-shadow(0 24px 42px rgba(15,23,42,.18));
}

#goButton,
.go-button,
.spin-button,
button.primary,
.button.primary,
.primary-button,
.cta,
.cta-button {
  border: 0 !important;
  background: linear-gradient(135deg, #0f766e 0%, #22c55e 56%, #86efac 100%) !important;
  box-shadow: 0 16px 36px rgba(15,118,110,.24) !important;
}

#goButton:hover,
.go-button:hover,
.spin-button:hover,
button.primary:hover,
.button.primary:hover,
.primary-button:hover,
.cta:hover,
.cta-button:hover {
  transform: translateY(-2px) scale(1.01);
}

.card,
.guide-card,
.attraction-card,
.destination-card,
.result-card,
.collection-card,
.metric,
.stat-card,
.list-card,
.quality-card,
.gap-card,
.priority-card {
  border-color: var(--qnw-line) !important;
  border-radius: var(--qnw-radius-lg) !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 16px 44px rgba(15,23,42,.075) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover,
.guide-card:hover,
.attraction-card:hover,
.destination-card:hover,
.result-card:hover,
.collection-card:hover,
.list-card:hover,
.quality-card:hover,
.gap-card:hover,
.priority-card:hover {
  transform: translateY(-2px);
  border-color: var(--qnw-line-strong) !important;
  box-shadow: 0 24px 64px rgba(15,23,42,.11) !important;
}

.guide-card img,
.attraction-card img,
.destination-card img,
.result-card img,
.card img {
  border-radius: 18px;
}

.badge,
.tag,
.meta-tag,
.pill,
.level,
.gap-level,
.search-result-badge {
  border: 1px solid rgba(15,118,110,.14) !important;
  background: linear-gradient(135deg, rgba(236,253,245,.95), rgba(240,249,255,.92)) !important;
  color: #0f766e !important;
  font-weight: 900 !important;
}

.table-wrap,
table,
.data-table {
  border-radius: 18px !important;
  overflow: hidden;
}

thead,
.table-head {
  background: linear-gradient(90deg, rgba(15,118,110,.08), rgba(14,165,233,.08)) !important;
}

.empty {
  border-color: rgba(15,118,110,.26) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(236,253,245,.62)) !important;
}

.notice,
.alert,
.tip-card,
.detail-card,
.step-card {
  border-color: rgba(15,118,110,.16) !important;
  background: rgba(255,255,255,.78) !important;
}

@media (max-width: 760px) {
  .hero-section,
  .home-hero,
  .landing-hero,
  .spin-section,
  .wheel-section,
  .guide-hero,
  .panel,
  .hero {
    border-radius: 20px !important;
  }

  .actions,
  .card-actions,
  .booking-ops-actions {
    gap: 7px !important;
  }

  .button,
  .card-actions a,
  .card-actions button,
  .booking-ops-actions a {
    min-height: 38px;
    padding-inline: 13px;
  }
}

/* QNW final UI unification pass 3: detail hierarchy and ops readability */
:root {
  --qnw-paper: rgba(255, 255, 255, .9);
  --qnw-paper-soft: rgba(248, 250, 252, .78);
  --qnw-reading-line: rgba(15, 118, 110, .12);
}

.hero-body,
.panel,
.content,
.booking-suite,
.booking-ops-panel {
  text-wrap: pretty;
}

.hero-body {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,253,250,.84)),
    radial-gradient(circle at 88% 12%, rgba(245,158,11,.14), transparent 26%);
}

.hero-body::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,118,110,.24), transparent);
}

.hero-body h1,
.hero h1,
.panel h1 {
  max-width: 13em;
}

.subtitle,
.hero-body .subtitle {
  max-width: 72ch;
  font-size: 1rem !important;
}

.meta-row {
  gap: 8px !important;
}

.grid {
  align-items: start;
}

.grid > .panel:last-child,
aside.panel,
.source-panel {
  position: sticky;
  top: 14px;
}

.content h2,
.panel h2 {
  position: relative;
  padding-top: 4px;
  padding-left: 14px;
  letter-spacing: -0.02em;
}

.content h2::before,
.panel h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 5px;
  height: 1.05em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--qnw-ocean), var(--qnw-mint));
}

.content p {
  max-width: 78ch;
}

.content p + h2,
.detail-grid + h2,
.checkin-gallery + h2 {
  margin-top: 30px !important;
}

.detail-grid {
  gap: 12px !important;
}

.detail-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 14px 15px !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.055);
}

.detail-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(20,184,166,.08);
}

.detail-card h3 {
  position: relative;
  z-index: 1;
  font-size: .94rem !important;
}

.detail-list {
  position: relative;
  z-index: 1;
  padding-left: 18px !important;
}

.detail-list li {
  color: #334155;
  line-height: 1.62;
}

.checkin-gallery {
  gap: 14px !important;
}

.checkin-card {
  border-radius: 20px !important;
  box-shadow: 0 14px 38px rgba(15,23,42,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.checkin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(15,23,42,.11);
}

.checkin-card img {
  aspect-ratio: 16 / 11 !important;
}

.checkin-card div {
  padding: 13px 14px 15px !important;
}

.checkin-card strong {
  font-size: 1rem !important;
}

.source-list {
  gap: 10px !important;
}

.source-row {
  padding: 12px !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  border-radius: 16px;
  background: rgba(255,255,255,.64);
}

.source-row span {
  color: #0f766e !important;
}

.notice {
  border-radius: 18px !important;
}

.booking-suite h2 {
  max-width: 14em;
}

.booking-service-grid {
  align-items: stretch;
}

.booking-service-card strong {
  letter-spacing: -0.01em;
}

.booking-suite-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.booking-suite-note::before {
  content: "i";
  flex: 0 0 auto;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.booking-ops-panel {
  border-radius: 28px !important;
}

.booking-ops-grid {
  align-items: stretch;
}

.booking-ops-card strong {
  letter-spacing: -0.03em;
}

.booking-ops-row {
  align-items: center;
}

.booking-ops-row span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(236,253,245,.9);
  font-weight: 900;
}

.metric span,
.booking-ops-card span,
.detail-card h3,
.source-row span {
  text-transform: none;
}

.quality-list,
.gap-list,
.priority-grid {
  gap: 14px !important;
}

.quality-head,
.gap-head {
  gap: 14px;
}

.quality-score,
.gap-score {
  box-shadow: 0 10px 24px rgba(15,118,110,.13);
}

.card-actions {
  align-items: center;
}

.card-actions a,
.card-actions button,
.disabled-link {
  border-radius: 999px !important;
}

@media (max-width: 980px) {
  .grid > .panel:last-child,
  aside.panel,
  .source-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero-body::after {
    left: 18px;
    right: 18px;
  }

  .hero-body h1,
  .hero h1,
  .panel h1,
  .booking-suite h2 {
    max-width: none;
  }

  .content h2,
  .panel h2 {
    padding-left: 12px;
  }

  .detail-card {
    min-height: auto;
  }

  .booking-service-card span,
  .checkin-card span,
  .detail-list li {
    font-size: .88rem;
  }
}

/* QNW final UI unification pass 4: public beta navigation and launch clarity */
.public-beta-nav {
  width: min(1120px, calc(100% - 24px));
  margin: 10px auto 16px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(236,253,245,.82)),
    radial-gradient(circle at 0 0, rgba(245,158,11,.18), transparent 28%);
  box-shadow: 0 18px 54px rgba(15,23,42,.1);
  backdrop-filter: blur(18px);
}

.public-beta-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-decoration: none;
}

.public-beta-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  box-shadow: 0 12px 26px rgba(15,118,110,.22);
  font-weight: 950;
  letter-spacing: -.04em;
}

.public-beta-brand strong,
.public-beta-brand small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-beta-brand strong {
  font-size: .96rem;
  letter-spacing: -.02em;
}

.public-beta-brand small {
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
}

.public-beta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.public-beta-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255,255,255,.78);
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.public-beta-links a:hover,
.public-beta-links a.is-active {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  box-shadow: 0 12px 28px rgba(15,118,110,.2);
  transform: translateY(-1px);
}

.public-beta-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255,247,237,.9);
  font-size: .78rem;
  font-weight: 950;
}

.public-beta-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.16);
}

.public-beta-status.is-ready {
  color: #0f766e;
  background: rgba(236,253,245,.95);
}

.public-beta-status.is-ready::before {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.16);
}

.spin-screen::after,
.world-panel::after,
.guide-panel::after,
.result-panel::after {
  content: "";
  display: block;
  clear: both;
}

.spin-copy h1 {
  letter-spacing: -.05em;
  text-wrap: balance;
}

.stats-row span,
.topic-chip,
.scope-chip,
.filter-chip {
  box-shadow: 0 8px 22px rgba(15,23,42,.055);
}

.result-panel,
.guide-panel {
  border-radius: 26px !important;
}

.guide-panel .search-link,
#searchGuide {
  min-height: 46px;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0f766e, #22c55e) !important;
  box-shadow: 0 16px 34px rgba(15,118,110,.2);
}

@media (max-width: 760px) {
  .public-beta-nav {
    grid-template-columns: 1fr;
    margin: 8px auto 12px;
    border-radius: 20px;
  }

  .public-beta-links {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .public-beta-links a,
  .public-beta-status {
    flex: 0 0 auto;
  }

  .public-beta-brand small {
    white-space: normal;
  }
}

/* QNW final UI unification pass 5: launch polish and safety spacing */
.public-beta-nav + main,
.public-beta-nav + .app-shell,
.public-beta-nav + .page-shell {
  margin-top: 0;
}

.app-shell > .public-beta-nav {
  margin-top: 0;
}

.public-beta-nav {
  animation: qnwNavDrop .34s ease both;
}

.public-beta-links::-webkit-scrollbar {
  height: 0;
}

.public-beta-links a:focus-visible,
.public-beta-status:focus-visible,
.booking-service-dock a:focus-visible,
.booking-service-cta:focus-visible {
  outline: 3px solid rgba(14,165,233,.28);
  outline-offset: 3px;
}

.booking-service-dock {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.booking-service-dock a {
  white-space: nowrap;
}

.booking-suite,
.booking-ops-panel,
.public-beta-nav {
  transform-origin: top center;
}

.admin-main .booking-ops-panel,
main .booking-ops-panel {
  scroll-margin-top: 18px;
}

body:has(.booking-service-dock) {
  scroll-padding-bottom: 96px;
}

@keyframes qnwNavDrop {
  from { opacity: 0; transform: translateY(-8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .public-beta-nav {
    width: min(100% - 16px, 1120px);
    padding: 8px;
  }

  .public-beta-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .public-beta-brand strong {
    font-size: .9rem;
  }

  .public-beta-brand small {
    font-size: .72rem;
  }

  .public-beta-links a,
  .public-beta-status {
    min-height: 34px;
    padding-inline: 10px;
    font-size: .78rem;
  }

  .booking-service-dock {
    width: calc(100% - 16px);
    bottom: 8px;
    gap: 5px;
    border-radius: 18px;
  }

  .booking-service-dock a {
    min-height: 43px;
    border-radius: 13px;
    font-size: 11px;
  }
}
