.swatches i {
  display: block;
  border-color: #0002;
}

.theme[data-theme="stone"] .swatches i:nth-child(1) { background: #24323a; }
.theme[data-theme="stone"] .swatches i:nth-child(2) { background: #c7a45b; }
.theme[data-theme="stone"] .swatches i:nth-child(3) { background: #f5efe3; }
.theme[data-theme="coastal"] .swatches i:nth-child(1) { background: #23404a; }
.theme[data-theme="coastal"] .swatches i:nth-child(2) { background: #4f92a6; }
.theme[data-theme="coastal"] .swatches i:nth-child(3) { background: #eaf5f7; }
.theme[data-theme="olive"] .swatches i:nth-child(1) { background: #344138; }
.theme[data-theme="olive"] .swatches i:nth-child(2) { background: #7f8f52; }
.theme[data-theme="olive"] .swatches i:nth-child(3) { background: #f1f2e7; }
.theme[data-theme="terracotta"] .swatches i:nth-child(1) { background: #4a342d; }
.theme[data-theme="terracotta"] .swatches i:nth-child(2) { background: #b8684d; }
.theme[data-theme="terracotta"] .swatches i:nth-child(3) { background: #f8ede7; }
.theme[data-theme="slate"] .swatches i:nth-child(1) { background: #253039; }
.theme[data-theme="slate"] .swatches i:nth-child(2) { background: #6f8494; }
.theme[data-theme="slate"] .swatches i:nth-child(3) { background: #edf0f2; }
.theme[data-theme="midnight"] .swatches i:nth-child(1) { background: #14263d; }
.theme[data-theme="midnight"] .swatches i:nth-child(2) { background: #2f67a5; }
.theme[data-theme="midnight"] .swatches i:nth-child(3) { background: #e9f0f7; }
.theme[data-theme="forest"] .swatches i:nth-child(1) { background: #1f352a; }
.theme[data-theme="forest"] .swatches i:nth-child(2) { background: #3f7a58; }
.theme[data-theme="forest"] .swatches i:nth-child(3) { background: #e9f2ec; }
.theme[data-theme="burgundy"] .swatches i:nth-child(1) { background: #452331; }
.theme[data-theme="burgundy"] .swatches i:nth-child(2) { background: #9a4762; }
.theme[data-theme="burgundy"] .swatches i:nth-child(3) { background: #f6eaf0; }
.theme[data-theme="ochre"] .swatches i:nth-child(1) { background: #45351d; }
.theme[data-theme="ochre"] .swatches i:nth-child(2) { background: #b67a24; }
.theme[data-theme="ochre"] .swatches i:nth-child(3) { background: #f8efdc; }
.theme[data-theme="teal"] .swatches i:nth-child(1) { background: #163c3b; }
.theme[data-theme="teal"] .swatches i:nth-child(2) { background: #2f817c; }
.theme[data-theme="teal"] .swatches i:nth-child(3) { background: #e5f3f1; }

.public-guide {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

.public-guide .screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: none;
  border-radius: 0;
  overflow-y: visible;
  box-shadow: none;
}

.guide-icon {
  display: block;
  width: 19px;
  height: 19px;
  color: var(--gaccent);
}

.editor-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--accent);
}

.section-title,
.section-name,
.icon-select {
  display: flex;
  align-items: center;
}

.section-title {
  gap: 7px;
}

.section-name {
  gap: 9px;
  min-width: 0;
}

.section-name small {
  margin-top: 2px;
}

.icon-select {
  gap: 8px;
}

.icon-select select {
  flex: 1;
}

.icon-choice-preview {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #f6f0e3;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

/* LL-referenced, controlled guest components. Palettes change colour only. */
.layout,.editor-panel { min-width: 0; }
.editor-panel { overflow: visible; width: 100%; }
.editor-tabs {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow: visible;
  padding: 8px 10px;
  gap: 6px;
  box-shadow: 0 3px 12px #24323a12;
  width: 100%;
  max-width: 100%;
}
.editor-tabs .step { flex: 0 0 auto; padding: 7px 10px; font-size: 11.5px; }
.editor h2 { display: flex; align-items: center; gap: 8px; }

/* Canonical guest Home: welcome and section choices first; longer owner
   information remains available immediately below. */
.gmain.home-view .guest-hero { margin-bottom: 10px; }
.gmain.home-view .tiles { margin-top: 0; }
.gmain.home-view .tile { min-height: 92px; }
.gmain.home-view .tile small { display: none; }
.owner-warning { margin-top: 8px; background: #fff8f6; border-color: #e2b0aa; }
.home-warning { margin: 18px 0; }
.owner-warning > p { margin: 7px 0 13px; color: #6f5652; }
.toggle { display: flex; align-items: center; gap: 7px; }
.toggle input { width: 18px; height: 18px; }

.public-guide { background: var(--cream); }
.public-guide .screen {
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px #24323a0a;
}
.screen { color: var(--gink); }
.screen .ghead {
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--gink) 96%, transparent);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow: 0 1px 0 #ffffff14;
}
.screen .gmark { width: 40px; height: 40px; border-radius: 12px; }
.screen .gbrand strong { font-size: 16px; line-height: 1.05; }
.screen .gbrand span { font-size: 12px; }
.screen .gmain { padding: 18px 16px 96px; }
.guest-hero { padding: 9px 2px 0; }
.screen .eyebrow { font-size: 11px; letter-spacing: .12em; }
.screen .gmain h2 { font-size: 31px; line-height: 1.03; letter-spacing: -.04em; margin: 7px 0 9px; }
.screen .lede { margin: 0; font-size: 15px; line-height: 1.48; }
.screen .welcome { border-radius: 15px; padding: 14px; margin: 15px 0; font-size: 14px; line-height: 1.45; }
.screen .welcome b { display: block; margin-bottom: 4px; }
.screen .welcome .formatted-text { margin: 0; color: var(--gink); }
.screen .search { border-radius: 13px; padding: 12px 13px; margin: 0 0 3px; font-size: 14px; }
.screen .tiles { gap: 10px; margin: 16px 0 20px; }
.screen .tile {
  border-radius: 17px;
  min-height: 112px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px #24323a17;
}
.screen .tile .ico,.guest-section-title .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--gicon); display: grid; place-items: center; }
.screen .tile .ico svg,.guest-section-title .ico svg { width: 21px; height: 21px; }
.screen .tile strong { font-size: 16px; margin: 0; white-space: normal; overflow: visible; }
.screen .tile[data-go="arrival"] strong,
.screen .tile[data-go="shopping"] strong,
.screen .tile[data-go="water"] strong { white-space: nowrap; }
.screen .tile small { font-size: 11.5px; margin-top: 4px; }
.screen .back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0 11px; font-size: 14px; }
.screen .back svg { width: 17px; height: 17px; }
.guest-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.guest-section-title h2 { font-size: 25px!important; margin: 0!important; }
.guest-fact { background: color-mix(in srgb, var(--gcream) 72%, white); border: 1px solid var(--gline); border-radius: 15px; padding: 13px 14px; margin: 9px 0; line-height: 1.45; }
.guest-fact > b { display: block; margin-bottom: 4px; }
.guest-fact .formatted-text,.guest-fact .formatted-list { margin: 4px 0 0; }
.copy-row { display: flex; gap: 7px; align-items: center; }
.copy-row code { flex: 1; min-width: 0; overflow: auto; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; background: #eef0ef; padding: 9px; border-radius: 9px; }
.copy-button,.guest-action { border: 0; border-radius: 10px; background: var(--gink); color: #fff; padding: 10px 12px; font-weight: 850; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; }
.copy-button svg,.guest-action svg { width: 17px; height: 17px; flex: 0 0 auto; }
.wifi-qr { display: block; width: min(230px,78%); margin: 14px auto; border-radius: 13px; border: 9px solid white; box-shadow: 0 8px 24px #24323a17; }
.qr-help,.wifi-preview-note { color: var(--gmuted); font-size: 13px; line-height: 1.45; text-align: center; }
.wifi-preview-note { border: 1px dashed var(--gline); border-radius: 12px; padding: 14px; margin-top: 12px; }
.guest-notice { border-radius: 15px; padding: 14px; margin: 15px 0; line-height: 1.45; }
.guest-notice strong { display: block; margin-bottom: 4px; }
.guest-notice.danger { border: 1px solid #e0a3a3; background: #fff0ed; color: #6d2020; }
.guest-notice .formatted-text { margin: 0; color: inherit; }
.guest-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.guest-action { background: #edf0ef; color: var(--gink); border: 1px solid #ccd3d2; box-shadow: 0 2px 8px #24323a14; font-size: 13px; padding: 10px 12px; }
.guest-action.primary { background: var(--gink); color: #fff; border-color: var(--gink); }
.contact-actions { margin: 9px 0 15px; }
.guest-stack { display: grid; gap: 10px; }
.guest-card { border: 1px solid var(--gline); border-radius: 17px; background: #fff; overflow: hidden; box-shadow: 0 8px 24px #24323a17; }
.guest-card > img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; }
.guest-card-body { padding: 14px; }
.guest-card h3 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.02em; }
.place-eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--gaccent); margin-bottom: 5px; }
.place-summary { margin: 5px 0; color: var(--gink); font-size: 14px; font-weight: 800; line-height: 1.42; }
.formatted-text { margin: 7px 0; color: var(--gmuted); font-size: 14px; line-height: 1.45; }
.formatted-list { padding-left: 20px; margin: 9px 0; color: var(--gink); font-size: 14px; line-height: 1.45; }
.formatted-list li { margin: 7px 0; }
.place-address { color: var(--gmuted); font-size: 12px; line-height: 1.4; margin: 7px 0; }
.screen .empty { margin-top: 9px; }
.screen .gfooter { padding: 20px 16px calc(22px + env(safe-area-inset-bottom)); font-size: 11px; line-height: 1.4; }

/* Editable/live guest Home hierarchy. Static marketing phones keep their
   existing generic hero through the renderer's marketing mode. */
.owner-home-view .owner-welcome { padding-top: 2px; margin-bottom: 12px; }
.owner-home-view .owner-welcome .formatted-text,
.owner-home-view .owner-welcome .formatted-list { margin: 0; font-size: 15px; line-height: 1.48; }
.owner-home-view .search-label { display: block; margin: 13px 0 0; }
.owner-home-view .tiles { margin-top: 13px; }

/* Restrained Simpllee shell for authentication and the real owner app. */
.owner-app-shell { padding-top: 14px; }
.owner-app-topbar {
  padding: 12px 14px;
  border: 1px solid #e2d7c7;
  border-radius: 16px;
  background: rgba(255,253,248,.92);
  box-shadow: 0 8px 24px #3d2c2410;
}
.owner-app-brand,
.owner-auth-brand { display: flex; align-items: center; gap: 12px; }
.owner-app-brand { min-width: 210px; }
.owner-app-wordmark {
  color: #171717;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}
.owner-app-wordmark span { color: #b85b3d; }
.owner-app-brand small,
.owner-auth-brand small { color: #756b65; font-size: 11px; line-height: 1.25; }
.owner-app-topbar .brand { flex: 1; min-width: 220px; }
.owner-app-topbar .brand h1 { font-size: 22px; }
.owner-auth { margin-top: 7vh; }
.owner-auth-brand { justify-content: center; flex-direction: column; margin-bottom: 18px; text-align: center; }
.owner-auth-brand .owner-app-wordmark { font-size: 38px; }
.owner-auth-panel { border-top: 4px solid #b85b3d; }
.owner-auth-panel h1 { font-size: 29px; letter-spacing: -.035em; }
.owner-auth-submit { width: 100%; background: #a94f35; }

@media (hover:hover) {
  .screen .tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--gaccent) 45%,var(--gline)); box-shadow: 0 12px 28px #24323a1f; }
}
@media (max-width: 900px) {
  .editor-tabs { top: 0; padding: 7px 8px; gap: 5px; }
  .editor-tabs .step { padding: 7px 9px; font-size: 11px; }
  .owner-app-brand { min-width: 0; }
}
@media (max-width: 620px) {
  .owner-app-topbar { align-items: stretch; }
  .owner-app-topbar .owner-app-brand { width: 100%; justify-content: space-between; }
  .owner-app-topbar .brand { min-width: 0; width: 100%; }
  .owner-auth { margin-top: 4vh; }
}
@media (max-width: 330px) {
  .screen .tiles { grid-template-columns: 1fr; }
  .screen .tile { min-height: 96px; }
  .screen .gmain h2 { font-size: 28px; }
}
