/*
  ================================================================================
   _  ___   _    _   ___                   ____ _           _   _
  | |/ / \ | |  / \ |_ _|  __ _ _ __   __ _  / ___| |__   __ _| |_| |_
  | ' /|  \| | / _ \ | |  / _` | '_ \ / _` || |   | '_ \ / _` | __| __|
  | . \| |\  |/ ___ \| | | (_| | | | | (_| || |___| | | | (_| | |_| |_
  |_|\_\_| \_/_/   \_\___| \__,_|_| |_|\__, | \____|_| |_|\__,_|\__|\__|
                                       |___/

   _____         _       _      ____  _       _ _        _
  |_   _|_ _ ___| |_ ___| | __ |  _ \(_) __ _(_) |_ __ _| |
    | |/ _` | '_ \ __/ _ \ |/ / | | | | |/ _` | | __/ _` | |
    | | (_| | |_) | ||  __/   <  | |_| | | (_| | | || (_| | |
    |_|\__,_| .__/ \__\___|_|\_\ |____/|_|\__, |_|\__\__,_|_|
            |_|                           |___/

  Knai Bang Chatt — Guest Digital Butler PWA
  Copyright (c) Taptek Digital. All rights reserved.
  Created by Taptek Digital.
  ================================================================================
*/
:root {
  --navy: #1A2F38;
  --teal: #2A6B6B;
  --cream: #F5F0E8;
  --sand: #e8e0d2;
  --gold: #C4A35A;
  --ink: #24343a;
  --muted: #6a787e;
  --line: rgba(26, 47, 56, 0.1);
  --header-h: 56px;
  --nav-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden; /* body never scrolls — shell owns the viewport */
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 100% 100%, rgba(196, 163, 90, 0.14), transparent 42%),
    radial-gradient(ellipse at 0% 12%, rgba(42, 107, 107, 0.16), transparent 48%),
    linear-gradient(180deg, #f4f8f8 0%, #eef2f1 40%, var(--cream) 100%);
  -webkit-font-smoothing: antialiased;
}

/* ——— App shell: locked to viewport ——— */
#appShell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: inherit;
}

.app-header {
  flex: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  color: var(--navy);
  background: #fff;
  border-bottom: 0;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 24px rgba(26, 47, 56, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  text-decoration: none;
}
.brand-mark img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(160px, 52vw);
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--header-h);
}

.header-profile-btn {
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
}
.header-profile-btn:active {
  background: rgba(26, 47, 56, 0.06);
}
.header-profile-btn.active {
  color: var(--teal);
}

.bell {
  position: relative;
  background: none;
  border: 0;
  color: var(--navy);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}
.bell:focus,
.bell:focus-visible,
.bell:active {
  outline: none;
  background: rgba(26, 47, 56, 0.06);
  box-shadow: none;
}
.bell-ico {
  display: block;
}

.lang-picker {
  position: relative;
}
.lang-btn {
  border: 0;
  background: none;
  padding: 6px 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:active { background: rgba(26, 47, 56, 0.06); }
.lang-flag {
  font-size: 22px;
  line-height: 1;
  display: block;
}
.lang-btn .lang-flag,
#langFlag {
  font-size: 15px;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  max-height: min(70vh, 360px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(26, 47, 56, 0.16);
  padding: 6px;
}
.lang-menu.hidden { display: none !important; }
.lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
}
.lang-option:hover,
.lang-option.active {
  background: rgba(42, 107, 107, 0.1);
}
.lang-option .lang-flag { font-size: 20px; }


.bell-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.bell-badge.show { display: flex; }

/* Only main scrolls */
main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* old Edge */
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 20px;
}
main::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Android */
}

/* On Butler fullscreen, shell owns layout */
#appShell.chat-open main:has(#screen-chat.active),
main:has(#screen-chat.active) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 12px;
}
#appShell.chat-open main:has(#screen-chat.active) {
  padding: 0;
}

.tab-nav {
  flex: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--nav-h);
  background: #fff;
  border-top: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 24px rgba(26, 47, 56, 0.08);
}

.tab-nav button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-transform: uppercase;
  min-height: var(--nav-h);
  padding: 8px 2px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.tab-nav button.active { color: var(--teal); font-weight: 600; }
.tab-nav button.active .ico {
  color: var(--teal);
}
.tab-nav .ico {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
  animation: tab-ico-zoom 5s ease-in-out infinite;
}
.tab-nav button:nth-child(1) .ico { animation-delay: 0s; }
.tab-nav button:nth-child(2) .ico { animation-delay: 1s; }
.tab-nav button:nth-child(3) .ico { animation-delay: 2s; }
.tab-nav button:nth-child(4) .ico { animation-delay: 3s; }
.tab-nav button:nth-child(5) .ico { animation-delay: 4s; }
@keyframes tab-ico-zoom {
  0%,
  14%,
  100% { transform: scale(1); }
  7% { transform: scale(1.28); }
}
@media (prefers-reduced-motion: reduce) {
  .tab-nav .ico {
    animation: none;
    will-change: auto;
  }
}
.tab-nav .tab-text {
  display: block;
  max-width: 100%;
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
.tab-nav .ico-chat svg { display: block; }
.events-list {
  display: grid;
  gap: 14px;
}
.event-card {
  overflow: hidden;
}
.event-card-img img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.event-card-body {
  padding: 14px 16px 16px;
}
.event-card-body h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--navy);
}
.event-when {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
}
.event-meta,
.event-desc {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #b8453a;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
}

/* ——— Screens ——— */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1.screen-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 6vw, 2rem);
  margin: 0 0 6px;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.lede {
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 300;
  line-height: 1.5;
  font-size: 0.95rem;
}

.widget {
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(26, 47, 56, 0.06);
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(26, 47, 56, 0.06);
}
.widget h2 {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.widget p { margin: 0; color: var(--ink); font-size: 0.95rem; }

.profile-doc-thumb {
  position: relative;
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: #0f1c22;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  -webkit-tap-highlight-color: transparent;
}
.profile-doc-thumb[hidden] { display: none !important; }
.profile-doc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.profile-doc-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(26, 47, 56, 0.72);
  color: #F5F0E8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  pointer-events: none;
}
.profile-doc-empty {
  margin: 4px 0 0 !important;
  color: var(--muted) !important;
  font-size: 14px !important;
}
.profile-doc-empty[hidden],
.profile-doc-meta[hidden] { display: none !important; }
.profile-doc-meta {
  margin: 8px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}
.profile-doc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + var(--safe-bottom));
  background: rgba(10, 18, 22, 0.92);
}
.profile-doc-lightbox.hidden { display: none !important; }
.profile-doc-lightbox-stage {
  width: min(100%, 560px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-doc-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
}
.profile-doc-lightbox-close {
  position: absolute;
  top: calc(12px + var(--safe-top));
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.security-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}
.security-overlay.hidden { display: none !important; }
.security-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.security-bar h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
}
.security-close {
  border: 0;
  background: transparent;
  color: var(--navy);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.security-close:active { background: rgba(26, 47, 56, 0.06); }
.security-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 20px 16px 28px;
}
.security-form { margin-top: 8px; }
.security-success {
  margin: 0;
  color: var(--teal);
  font-size: 14px;
}
.security-success.hidden,
.field-error.hidden { display: none !important; }
body.security-open { overflow: hidden; }

.shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 8px;
}
.shortcuts button {
  border: 1px solid rgba(26, 47, 56, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3efe7 100%);
  padding: 14px 6px;
  font: inherit;
  font-size: 11px;
  color: var(--navy);
  cursor: pointer;
  letter-spacing: 0.03em;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(26, 47, 56, 0.06) inset,
    0 2px 6px rgba(26, 47, 56, 0.1);
}
.shortcuts button:active {
  background: linear-gradient(180deg, #e8e2d6 0%, #f5f0e8 100%);
  color: var(--navy);
  box-shadow:
    0 2px 3px rgba(26, 47, 56, 0.12) inset,
    0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(1px);
}
.shortcuts button:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ——— Full-screen Butler (Telegram-style) ——— */
#appShell.chat-open .app-header,
#appShell.chat-open .tab-nav {
  display: none !important;
}
#appShell.chat-open main {
  max-width: none;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#appShell.chat-open main > .screen:not(#screen-chat) {
  display: none !important;
}

#screen-chat.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(42, 107, 107, 0.12), transparent 45%),
    linear-gradient(180deg, #dce8e4 0%, #e8efe9 40%, #d7e3de 100%);
}

.butler-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: calc(52px + var(--safe-top));
  padding: var(--safe-top) 10px 0 4px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.butler-back {
  border: 0;
  background: none;
  color: var(--navy);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.butler-identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.butler-identity strong {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}
.butler-identity span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 10px 8px;
}

.chat-log:empty::after {
  content: "Say hello to your butler…";
  margin: auto;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

.bubble {
  max-width: min(82%, 420px);
  padding: 8px 10px 6px;
  font-size: 15px;
  line-height: 1.4;
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 1px 1px rgba(26, 47, 56, 0.08);
  word-break: break-word;
  position: relative;
}
.bubble.mine {
  align-self: flex-end;
  background: #dff3ea;
  border-radius: 14px 14px 4px 14px;
  color: var(--ink);
}
.bubble.theirs {
  align-self: flex-start;
}
.bubble .bubble-text:empty { display: none; }
.bubble .bubble-media {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 4px;
  background: #000;
}
.bubble video.bubble-media {
  max-height: 280px;
  width: 100%;
}
.bubble audio.bubble-media {
  width: min(240px, 70vw);
  margin: 2px 0 4px;
  background: transparent;
}
.bubble .bubble-time {
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1;
}

.voice-banner {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #1A2F38;
  color: var(--cream);
  font-size: 14px;
}
.voice-banner.hidden { display: none !important; }
.voice-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e25555;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.voice-cancel, .voice-send {
  border: 0;
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
  margin-left: auto;
}
.voice-cancel { background: transparent; color: #f0c9c9; }
.voice-send { background: var(--gold); color: var(--navy); border-radius: 8px; margin-left: 0; }

.chat-compose.tg {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: #f4f1ea;
}
.chat-compose.tg input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 22px;
  padding: 11px 14px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(26, 47, 56, 0.08);
}
.tg-attach, .tg-mic, .tg-send {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.tg-attach input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.tg-send {
  background: var(--navy);
  color: #fff;
}
.tg-send.hidden, .tg-mic.hidden { display: none !important; }
.tg-mic.recording { color: #c0392b; background: rgba(192, 57, 43, 0.12); }

.btn {
  border: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 13px 20px;
  font: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(196, 163, 90, 0.35);
}
.btn:hover { filter: brightness(1.03); }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(26, 47, 56, 0.2);
  box-shadow: none;
}

.home-feed {
  display: grid;
  gap: 12px;
}
.home-feed-card {
  margin: 0;
}
.home-stay-card .home-stay-dates {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
}
.home-stay-col {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
}
.home-stay-col:last-child { text-align: right; }
.home-stay-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.home-stay-col strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
}
.home-stay-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  flex: 0 0 auto;
}
.home-stay-nights {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
}
.home-stay-nights[hidden] { display: none !important; }
.content-thumb {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  margin: 0 0 10px;
  background: rgba(26,47,56,.06);
  border-radius: 14px;
}
.media-carousel {
  position: relative;
  margin: 0 0 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1518;
}
.media-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.media-carousel-track::-webkit-scrollbar { display: none; }
.media-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: pointer;
}
.media-carousel .content-thumb,
.media-carousel .content-video {
  margin: 0;
  border-radius: 0;
  max-height: 240px;
}
.media-carousel .content-video .content-thumb {
  max-height: 240px;
}
.media-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  z-index: 3;
}
.media-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.media-dot.active { background: #fff; }
.content-card-text { cursor: pointer; }
.content-video {
  position: relative;
  margin: 0 0 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1518;
}
.content-video .content-thumb {
  margin: 0;
  max-height: 240px;
  width: 100%;
  object-fit: cover;
  display: block;
  pointer-events: auto;
}
.content-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 47, 56, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
  z-index: 2;
}
.content-video-play svg { margin-left: 3px; }
.content-video.is-playing .content-video-play { display: none; }
.content-embed-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  border: 0;
  background: #0b1518;
}
.content-item video.content-thumb {
  object-fit: cover;
  background: #0b1518;
}
.butler-quick-wrap {
  flex: 0 0 auto;
  padding: 8px 16px 10px;
  background: rgba(255,255,255,.94);
  border-top: 1px solid rgba(26, 47, 56, 0.06);
}
.butler-quick-wrap .section-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
}
.butler-quick-wrap .section-label + .butler-quick-scroll + .section-label {
  margin: 12px 0 0;
}
.butler-quick-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.butler-quick-scroll::-webkit-scrollbar {
  display: none;
}
.butler-quick-scroll .shortcuts {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
}
.butler-quick-scroll .shortcuts button {
  flex: 0 0 auto;
  min-width: max-content;
}
main:has(#screen-requests.active) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
main:has(#screen-requests.active) #screen-requests {
  flex: 1 1 auto;
  min-height: 0;
}
#screen-requests.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
#screen-requests .screen-title,
#screen-requests .lede,
#screen-requests .form-grid,
#screen-requests .section-label {
  flex: 0 0 auto;
}
#screen-requests .quick-request-scroll {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 14px;
  padding-right: 2px;
}
#screen-requests .quick-request-scroll::-webkit-scrollbar {
  display: none;
}
#screen-requests .shortcuts {
  margin: 0;
}
#screen-requests .req-list {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 28vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#screen-requests .req-list::-webkit-scrollbar {
  display: none;
}
#screen-requests .section-label {
  margin: 4px 0 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
}
#screen-requests .form-grid {
  margin-bottom: 18px;
}
#screen-requests .form-grid .btn[type="submit"] {
  width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
  border-radius: 14px;
}

.content-item,
.req-item {
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(26, 47, 56, 0.06);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(26, 47, 56, 0.06);
}
.content-item h3,
.req-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
}
.content-item p,
.req-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.home-feed-card .content-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.home-feed-card .content-more {
  display: inline-block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
}
.home-feed-card .content-more.hidden,
.home-feed-card .content-excerpt.hidden {
  display: none;
}

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--sand);
  color: var(--navy);
  margin-bottom: 8px;
}
.badge.new { background: #dceceb; color: var(--teal); }
.badge.done { background: #e8e8e8; color: #666; }
button.badge.content-cat-btn {
  border: 0;
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
}
button.badge.content-cat-btn:active {
  transform: scale(0.98);
}

.category-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #f4f8f8;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}
.category-overlay.hidden { display: none !important; }
.category-overlay-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 24px rgba(26, 47, 56, 0.08);
}
.category-overlay-bar h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--navy);
}
.category-overlay-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(26, 47, 56, 0.06);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.category-overlay-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 28px;
  display: grid;
  gap: 14px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}
.category-overlay-card { margin: 0; }
.category-overlay-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.content-item-tap {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.content-item-tap:active {
  transform: scale(0.995);
}
body.category-overlay-open {
  overflow: hidden;
}
body.faq-overlay-open {
  overflow: hidden;
}

.faq-item {
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(26, 47, 56, 0.06);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(26, 47, 56, 0.06);
}
.faq-q {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.faq-a {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.faq-intro {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.faq-overlay {
  z-index: 90;
}
.faq-overlay-body {
  scrollbar-width: none;
}
.faq-overlay-body::-webkit-scrollbar {
  display: none;
}

.media-story-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #000;
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
}
.media-story-overlay.hidden { display: none !important; }
.media-story-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.media-story-scroller {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.media-story-scroller::-webkit-scrollbar { display: none; }
.media-story-slide {
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.media-story-media,
.media-story-frame {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  background: #000;
}
.media-story-frame {
  aspect-ratio: auto;
}
body.media-story-open {
  overflow: hidden;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  font: inherit;
  font-size: 16px;
  text-transform: none;
  letter-spacing: normal;
  padding: 12px;
  border: 1px solid #d5cdc0;
  border-radius: 14px;
  background: #fff;
  width: 100%;
}

.login-gate {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 16px;
  max-width: none;
  margin: 0;
  background: transparent;
  border: 0;
}
.login-gate .login-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}
.login-gate h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  margin-top: 0;
}

/* ——— Auth login (wave template) ——— */
.login-gate.auth-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  background: #fff;
  z-index: 40;
}
.auth-hero {
  position: relative;
  flex: 0 0 auto;
  min-height: clamp(200px, 34vh, 280px);
  padding: calc(28px + var(--safe-top)) 24px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.28), transparent 55%),
    linear-gradient(165deg, #5eb6c4 0%, #2f8a8f 42%, #1f5f66 100%);
  overflow: hidden;
}
.auth-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 40, 48, 0.18);
}
.auth-hero-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
}
.auth-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 72px;
  display: block;
  z-index: 2;
}
.auth-wave-back {
  fill: rgba(255, 255, 255, 0.45);
}
.auth-wave-front {
  fill: #ffffff;
}
.auth-panel {
  flex: 1 1 auto;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 28px calc(28px + var(--safe-bottom));
  background: #fff;
}
.auth-title {
  margin: 8px 0 22px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.15rem);
  color: var(--navy);
  letter-spacing: 0.01em;
}
.auth-form {
  display: grid;
  gap: 16px;
}
.auth-field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.auth-field input {
  width: 100%;
  border: 1px solid rgba(26, 47, 56, 0.18);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder {
  color: #9aa5aa;
}
.auth-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 107, 107, 0.15);
}
.auth-pass-wrap {
  position: relative;
  display: block;
}
.auth-pass-wrap input {
  padding-right: 46px;
}
.auth-pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}
.auth-pass-toggle:hover { color: var(--navy); }
.auth-submit {
  margin-top: 6px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.auth-submit:active { transform: scale(0.99); }
.auth-submit:hover { background: #243f4a; }
.auth-submit:disabled { opacity: 0.7; cursor: wait; }

.auth-busy {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(245, 240, 232, 0.72);
  backdrop-filter: blur(4px);
}
.auth-busy.hidden { display: none !important; }
.auth-busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: min(280px, 86vw);
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.auth-busy-card p {
  margin: 0;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.45;
}
.auth-busy-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(42, 107, 107, 0.2);
  border-top-color: #2A6B6B;
  border-radius: 50%;
  animation: kbcAuthSpin 0.75s linear infinite;
}
@keyframes kbcAuthSpin { to { transform: rotate(360deg); } }

.auth-footer {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-footer a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

.login-brand,
.checkin-brand {
  margin: 0 0 12px;
  line-height: 0;
}
.login-brand img,
.checkin-brand img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.checkin-card .lede {
  margin-top: 0;
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted, #7a858a);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 300;
}
.field-error {
  margin: 0;
  padding: 10px 12px;
  background: #f8e8e6;
  color: #7a2e28;
  font-size: 14px;
}
.form-grid input[type="file"] {
  padding: 10px;
}
.passport-file-main {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.passport-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.passport-upload-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #7a858a);
  font-weight: 500;
}
.passport-upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.passport-pick-btn {
  appearance: none;
  border: 1px solid rgba(26, 47, 56, 0.18);
  background: #fff;
  color: var(--navy, #1A2F38);
  padding: 12px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1.25;
}
.passport-pick-btn:hover {
  border-color: var(--teal, #2A6B6B);
  color: var(--teal, #2A6B6B);
}
.passport-pick-btn:active {
  transform: scale(0.98);
}
.passport-upload.has-file .passport-pick-btn {
  border-color: rgba(42, 107, 107, 0.35);
}

.hidden { display: none !important; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: var(--navy);
  color: var(--cream);
  padding: 10px 16px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 10050;
  text-align: center;
  white-space: normal;
}
.toast.show { opacity: 1; }

.thanks-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: calc(24px + var(--safe-bottom));
  background: rgba(26, 47, 56, 0.55);
  backdrop-filter: blur(6px);
}
.thanks-overlay.hidden { display: none !important; }
.thanks-card {
  width: min(100%, 360px);
  max-height: min(88vh, 640px);
  overflow: auto;
  background: var(--cream);
  color: var(--ink);
  padding: 28px 24px 22px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.thanks-logo {
  display: block;
  margin: 0 auto 18px;
  height: 40px;
  width: auto;
}
.thanks-card h2 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}
.thanks-card p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.thanks-card .btn {
  width: 100%;
}
.review-links {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.review-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}
.review-link-btn:active {
  background: rgba(42, 107, 107, 0.08);
  border-color: var(--teal);
  color: var(--teal);
}

.install-overlay { z-index: 85; }
.install-card { text-align: left; }
.install-card h2,
.install-card > p { text-align: center; }
.install-card .thanks-logo { margin-bottom: 14px; }
.install-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
}
.install-steps li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.install-steps strong { color: var(--navy); }
.install-ios-share {
  display: inline-flex;
  vertical-align: -3px;
  margin: 0 2px;
  color: var(--teal);
}
.install-card .btn { width: 100%; margin-top: 4px; }
.install-card .btn.ghost { margin-top: 8px; }
body.install-prompt-open { overflow: hidden; }

.auth-optional {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.auth-hint {
  margin: -4px 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.explore-overlay,
.explore-pdf-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}
.explore-overlay.hidden,
.explore-pdf-overlay.hidden { display: none !important; }
.explore-pdf-overlay { z-index: 75; background: #0f1c22; }
.explore-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.explore-pdf-overlay .explore-bar {
  background: #1A2F38;
  border-bottom-color: rgba(255,255,255,0.08);
  color: #F5F0E8;
}
.explore-bar h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
}
.explore-pdf-overlay .explore-bar h2 { color: #F5F0E8; font-size: 16px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore-zoom-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.explore-zoom-btn {
  border: 1px solid rgba(245, 240, 232, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #F5F0E8;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
#exploreZoomResetBtn { font-size: 12px; width: 40px; }
.explore-doc-scroller {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #0f1c22;
  touch-action: pan-x pan-y;
  padding: 8px;
  box-sizing: border-box;
}
.explore-doc-pages {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  transform-origin: 0 0;
}
.explore-doc-pages img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.explore-close {
  border: 0;
  background: transparent;
  color: inherit;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.explore-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px 16px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.explore-tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 118px;
  -webkit-tap-highlight-color: transparent;
}
.explore-tile:active { transform: scale(0.98); }
.explore-tile-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(42, 107, 107, 0.1);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.explore-tile-label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.explore-doc-loading {
  color: #F5F0E8;
  text-align: center;
  padding: 40px 16px;
  margin: 0;
  opacity: 0.85;
}
.explore-pdf-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: #0f1c22;
}
.explore-pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.explore-pdf-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  color: #F5F0E8;
  text-align: center;
}
.explore-pdf-fallback a { color: var(--gold); }

.scan-frame {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1c22;
  min-height: 280px;
  border: 1px solid var(--line);
}
.scan-frame video,
.scan-frame canvas {
  width: 100% !important;
  border-radius: 0 !important;
}
.scan-hint {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
#scanRestartBtn {
  display: block;
  margin: 14px auto 0;
}

.push-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1a2f38;
  color: #f4f7f8;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  font-size: 13px;
}
.push-banner strong { display: block; font-weight: 500; margin-bottom: 2px; }
.push-banner span { opacity: .85; font-size: 12px; line-height: 1.35; }
.push-banner .btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  background: #c4a574;
  color: #1a2f38;
  border: 0;
}
.push-banner-x {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: .7;
}
.push-widget .lede { color: var(--muted); font-size: 13px; }

@media (max-width: 360px) {
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
  .tab-nav button { font-size: 9px; }
  .brand-mark img { height: 32px; }
}
