/* Quest Social — white cards, orange accent, rounded corners, mobile-first.
   Visual language follows Quest Chat (questmn.com): warm off-white page
   tones, #e8e2d9 borders, pill buttons. Accent per spec: #f97316. */
.qs-place, .qs-passport, .qs-connect {
	--qs-orange: #f97316;
	--qs-orange-dark: #ea580c;
	--qs-border: #e8e2d9;
	--qs-bg: #fffdf9;
	--qs-text: #26221d;
	--qs-muted: #7a7264;
	box-sizing: border-box;
	font-family: inherit;
	color: var(--qs-text);
}
.qs-place *, .qs-passport *, .qs-connect * { box-sizing: border-box; }
.qs-place [hidden], .qs-passport [hidden], .qs-connect [hidden] { display: none !important; }

.qs-muted { color: var(--qs-muted); font-size: 14px; }
.qs-section-title { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }

/* Buttons ------------------------------------------------------------- */
.qs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid var(--qs-border);
	background: #fff;
	color: var(--qs-text);
	border-radius: 999px;
	padding: 9px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
}
.qs-btn:hover { border-color: var(--qs-orange); color: var(--qs-orange-dark); }
.qs-btn-primary { background: var(--qs-orange); border-color: var(--qs-orange); color: #fff; }
.qs-btn-primary:hover { background: var(--qs-orange-dark); border-color: var(--qs-orange-dark); color: #fff; }
.qs-btn-primary:disabled { background: #f3ede2; border-color: var(--qs-border); color: var(--qs-muted); cursor: default; }
.qs-btn-done { background: #e9f7ee; border-color: #bfe6cc; color: #177245; cursor: default; }
.qs-btn-ghost { background: transparent; }
.qs-btn-small { padding: 5px 12px; font-size: 13px; }
.qs-btn-block { display: flex; width: 100%; margin-top: 8px; }

/* Place card ---------------------------------------------------------- */
.qs-place {
	background: #fff;
	border: 1px solid var(--qs-border);
	border-radius: 20px;
	overflow: hidden;
	max-width: 720px;
	margin: 0 auto 20px;
	box-shadow: 0 2px 14px rgba(60, 40, 10, 0.06);
}
.qs-carousel { position: relative; background: #f3ede2; }
.qs-carousel-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	aspect-ratio: 16 / 10;
}
.qs-carousel-track::-webkit-scrollbar { display: none; }
.qs-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.qs-slide img, .qs-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qs-video-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #fff3e6, #f3ede2);
	color: var(--qs-text);
	text-decoration: none;
}
.qs-video-play {
	width: 58px; height: 58px;
	border-radius: 50%;
	background: var(--qs-orange);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 20px;
	padding-left: 4px;
}
.qs-video-label { font-weight: 600; font-size: 14px; }
.qs-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--qs-border);
	background: rgba(255, 255, 255, 0.92);
	color: var(--qs-text);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.qs-carousel-prev { left: 10px; }
.qs-carousel-next { right: 10px; }
.qs-carousel-dots {
	position: absolute;
	bottom: 10px;
	left: 0; right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
}
.qs-carousel-dots button {
	width: 8px; height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
	padding: 0;
	cursor: pointer;
}
.qs-carousel-dots button.qs-dot-active { background: var(--qs-orange); }

.qs-place-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 16px 18px 0;
}
.qs-place-titles { flex: 1; min-width: 0; }
.qs-place-name { margin: 0; font-size: 22px; line-height: 1.2; }
.qs-place-sub { margin: 4px 0 0; color: var(--qs-muted); font-size: 14px; }
.qs-distance {
	flex: 0 0 auto;
	background: #fff3e6;
	color: var(--qs-orange-dark);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.qs-place-body { padding: 0 18px 18px; }
.qs-compact .qs-place-body { display: none; }
.qs-compact.qs-expanded .qs-place-body { display: block; }
.qs-place-address { color: var(--qs-muted); font-size: 14px; margin: 8px 0 0; }
.qs-place-desc { font-size: 15px; line-height: 1.55; }
.qs-place-desc p { margin: 10px 0; }

.qs-hours { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.qs-hours li { padding: 3px 0; border-bottom: 1px dashed var(--qs-border); }
.qs-hours li:last-child { border-bottom: none; }

.qs-place-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.qs-reviews { display: flex; flex-direction: column; gap: 10px; }
.qs-review {
	margin: 0;
	background: var(--qs-bg);
	border: 1px solid var(--qs-border);
	border-radius: 14px;
	padding: 10px 14px;
}
.qs-review p { margin: 0; font-size: 14px; line-height: 1.5; }
.qs-review cite {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	font-style: normal;
	color: var(--qs-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.qs-menu { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.qs-menu li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px dashed var(--qs-border);
}
.qs-menu li:last-child { border-bottom: none; }
.qs-menu-price { font-weight: 700; color: var(--qs-orange-dark); white-space: nowrap; }

.qs-checkin-zone { margin-top: 22px; }
.qs-checkin-status { margin: 8px 0 0; text-align: center; }
.qs-checkin-btn.qs-in-range { animation: qs-pulse 1.6s ease-in-out infinite; }
@keyframes qs-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35); }
	50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

/* Community gallery strip ---------------------------------------------- */
.qs-gallery { margin-top: 22px; }
.qs-gallery-row {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scrollbar-width: none;
}
.qs-gallery-row::-webkit-scrollbar { display: none; }
.qs-gallery-item { flex: 0 0 92px; margin: 0; text-align: center; }
.qs-gallery-item img, .qs-gallery-item video {
	width: 92px; height: 92px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
	background: #f3ede2;
}
.qs-gallery-item figcaption {
	font-size: 12px;
	color: var(--qs-muted);
	margin-top: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Sheets / modals ------------------------------------------------------- */
.qs-sheet {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.qs-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(38, 34, 29, 0.45);
}
.qs-sheet-panel {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 560px;
	max-height: 88vh;
	overflow-y: auto;
	border-radius: 20px 20px 0 0;
	padding: 18px;
	box-shadow: 0 -6px 30px rgba(60, 40, 10, 0.18);
}
.qs-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 17px;
	margin-bottom: 6px;
}
.qs-sheet-x {
	border: none;
	background: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--qs-muted);
	padding: 2px 6px;
}
.qs-field-label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.qs-hint { color: var(--qs-muted); font-size: 13px; margin: 6px 0 0; }
.qs-sheet-current { width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 8px; background: #f3ede2; }
.qs-file { font-size: 14px; max-width: 100%; }
.qs-note {
	width: 100%;
	border: 1px solid var(--qs-border);
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 15px;
	font-family: inherit;
	margin-top: 6px;
}
.qs-note:focus { border-color: var(--qs-orange); outline: none; }
.qs-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 16px; cursor: pointer; }
.qs-sheet-status { font-size: 14px; margin: 12px 0 0; }
.qs-sheet-status.qs-error { color: #c0392b; }
.qs-sheet-status.qs-ok { color: #177245; }
.qs-sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Passport -------------------------------------------------------------- */
.qs-signin-note {
	background: #fff;
	border: 1px solid var(--qs-border);
	border-radius: 16px;
	padding: 16px;
	font-size: 15px;
	max-width: 720px;
	margin: 0 auto 20px;
}
.qs-passport { max-width: 720px; margin: 0 auto 20px; }
.qs-passport-head { display: flex; align-items: center; gap: 14px; }
.qs-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #f3ede2; }
.qs-passport-name { margin: 0; font-size: 22px; }
.qs-level {
	display: inline-block;
	margin-top: 4px;
	background: var(--qs-orange);
	color: #fff;
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 13px;
	font-weight: 700;
}
.qs-next-level { margin: 6px 0 0; }
.qs-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 18px 0;
}
.qs-stat {
	background: #fff;
	border: 1px solid var(--qs-border);
	border-radius: 16px;
	padding: 12px 6px;
	text-align: center;
}
.qs-stat strong { display: block; font-size: 22px; color: var(--qs-orange-dark); }
.qs-stat span { font-size: 12px; color: var(--qs-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.qs-stamp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}
.qs-stamp-card {
	border: 1px solid var(--qs-border);
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	padding: 0;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}
.qs-stamp-card img, .qs-stamp-card video {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	background: #f3ede2;
}
.qs-stamp-card-name {
	display: block;
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--qs-text);
	line-height: 1.35;
}
.qs-detail-media img, .qs-detail-media video {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
	background: #f3ede2;
}
.qs-detail-note { font-size: 15px; line-height: 1.5; margin: 0; white-space: pre-wrap; }

/* Passport connections list --------------------------------------------- */
.qs-conn-rows { display: flex; flex-direction: column; gap: 8px; }
.qs-conn-row {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--qs-border);
	border-radius: 14px;
	padding: 8px 12px;
}
.qs-conn-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #f3ede2; }
.qs-conn-name { font-weight: 600; font-size: 15px; flex: 1; min-width: 0; }

/* Connect hub ----------------------------------------------------------- */
.qs-connect { max-width: 720px; margin: 0 auto 20px; }
.qs-level-small { font-size: 11px; padding: 2px 8px; }
.qs-unread-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--qs-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	vertical-align: middle;
}
.qs-person-list { display: flex; flex-direction: column; gap: 10px; }
.qs-person {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	background: #fff;
	border: 1px solid var(--qs-border);
	border-radius: 16px;
	padding: 12px 14px;
	text-align: left;
	font-family: inherit;
	color: var(--qs-text);
}
button.qs-person { cursor: pointer; }
button.qs-person:hover { border-color: var(--qs-orange); }
.qs-person-avatar {
	width: 48px; height: 48px;
	border-radius: 50%;
	object-fit: cover;
	background: #f3ede2;
	flex: 0 0 auto;
}
.qs-person-main { flex: 1; min-width: 0; display: block; }
.qs-person-name { display: block; font-weight: 700; font-size: 15px; margin: 0; }
.qs-person-meta {
	display: block;
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--qs-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.qs-person-shared {
	display: block;
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--qs-orange-dark);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.qs-person-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.qs-ai-card {
	display: block;
	margin-top: 22px;
	background: linear-gradient(135deg, #fff3e6, #fffdf9);
	border: 1px solid var(--qs-border);
	border-radius: 16px;
	padding: 14px 16px;
	text-decoration: none;
	color: var(--qs-text);
}
.qs-ai-card-title { display: block; font-weight: 700; color: var(--qs-orange-dark); }
.qs-ai-card-sub { display: block; font-size: 13px; color: var(--qs-muted); margin-top: 2px; }

/* Member chat ----------------------------------------------------------- */
.qs-chat {
	background: #fff;
	border: 1px solid var(--qs-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(60, 40, 10, 0.06);
}
.qs-chat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--qs-border);
}
.qs-chat-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #f3ede2; }
.qs-chat-name { font-size: 16px; }
.qs-chat-messages {
	max-height: 420px;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.qs-chat-empty { text-align: center; margin: 12px 0; }
.qs-bubble-row { display: flex; }
.qs-bubble-row.qs-bubble-mine { justify-content: flex-end; }
.qs-bubble {
	max-width: 78%;
	padding: 9px 13px;
	border-radius: 18px;
	border-bottom-left-radius: 6px;
	background: #f3ede2;
	color: var(--qs-text);
	font-size: 15px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}
.qs-bubble-mine .qs-bubble {
	background: var(--qs-orange);
	color: #fff;
	border-bottom-left-radius: 18px;
	border-bottom-right-radius: 6px;
}
.qs-chat-form {
	display: flex;
	gap: 8px;
	padding: 12px 14px;
	border-top: 1px solid var(--qs-border);
	align-items: flex-end;
}
.qs-chat-input {
	flex: 1;
	border: 1px solid var(--qs-border);
	border-radius: 18px;
	padding: 9px 13px;
	font-size: 15px;
	font-family: inherit;
	resize: none;
	max-height: 110px;
}
.qs-chat-input:focus { border-color: var(--qs-orange); outline: none; }

@media (min-width: 640px) {
	.qs-sheet { align-items: center; }
	.qs-sheet-panel { border-radius: 20px; }
}
@media (max-width: 480px) {
	.qs-place-name { font-size: 20px; }
	.qs-stats { grid-template-columns: repeat(2, 1fr); }
	.qs-carousel-btn { display: none; }
}

/* =====================================================================
   v0.3.0 — media-first refresh. Design language: white/air, orange
   #f97316, pill buttons, soft shadows, big radii (cards 24, media 20),
   light glass touches. Photos take center stage; text stays concise.
   ===================================================================== */
.qs-place, .qs-passport, .qs-connect {
	--qs-radius: 24px;
	--qs-shadow: 0 10px 34px rgba(60, 40, 10, 0.08);
	--qs-soft: #f6f2ea;
}

/* Place card v2 ------------------------------------------------------- */
.qs-place { border-radius: var(--qs-radius); box-shadow: var(--qs-shadow); border-color: #eee7da; }
.qs-carousel-track { aspect-ratio: 16 / 10; }
.qs-carousel-btn {
	border: none;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(6px);
	box-shadow: 0 2px 10px rgba(60, 40, 10, 0.15);
	opacity: 0.9;
}
.qs-place-head { padding: 18px 20px 0; }
.qs-place-name { font-size: 26px; letter-spacing: -0.01em; }
.qs-place-sub { font-size: 14px; margin-top: 5px; }
.qs-place-body { padding: 0 20px 20px; }

.qs-rating { display: flex; align-items: center; gap: 6px; margin: 7px 0 0; font-size: 14px; }
.qs-rating-stars { color: var(--qs-orange); letter-spacing: 1px; font-size: 15px; }
.qs-rating-num { font-weight: 700; }
.qs-rating-count { color: var(--qs-muted); }

.qs-desc { position: relative; margin-top: 12px; }
.qs-desc-clamped .qs-place-desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.qs-desc-open .qs-place-desc { display: block; -webkit-line-clamp: unset; }
.qs-desc-more {
	border: none; background: none; padding: 2px 0 0;
	color: var(--qs-orange-dark); font-weight: 700; font-size: 14px; cursor: pointer;
	font-family: inherit;
}

/* Icon info row */
.qs-info-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 16px;
}
.qs-info-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	min-width: 62px;
	padding: 4px 2px;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
	color: var(--qs-text);
	font-family: inherit;
}
.qs-info-icon {
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--qs-soft);
	display: flex; align-items: center; justify-content: center;
	color: var(--qs-text);
	transition: background 0.15s ease, color 0.15s ease;
}
.qs-info-item:hover .qs-info-icon { background: #fff3e6; color: var(--qs-orange-dark); }
.qs-info-label { font-size: 11px; font-weight: 600; color: var(--qs-muted); }

.qs-hours-wrap {
	background: var(--qs-soft);
	border-radius: 16px;
	padding: 10px 14px;
	margin-top: 12px;
}
.qs-hours li { border-bottom-color: #e7dfd0; }
.qs-menu-wrap { margin-top: 4px; }

.qs-btn-primary { box-shadow: 0 4px 14px rgba(249, 115, 22, 0.28); }
.qs-btn-primary:disabled { box-shadow: none; }
.qs-checkin-btn { padding: 13px 18px; font-size: 16px; }

/* Community stamps — photo-forward row */
.qs-gallery-row { gap: 12px; }
.qs-gallery-item { flex-basis: 104px; }
.qs-gallery-item img, .qs-gallery-item video {
	width: 104px; height: 104px;
	border-radius: 18px;
}
.qs-gallery-item figcaption {
	display: flex; align-items: center; justify-content: center; gap: 5px;
	margin-top: 6px;
}
.qs-gallery-avatar { width: 20px !important; height: 20px !important; border-radius: 50% !important; object-fit: cover; }

/* Sheets --------------------------------------------------------------- */
.qs-sheet-panel { border-radius: 24px 24px 0 0; padding: 22px; }
.qs-sheet-current, .qs-sheet-preview {
	width: 100%;
	max-height: 300px;
	object-fit: cover;
	border-radius: 20px;
	display: block;
	margin-bottom: 10px;
	background: var(--qs-soft);
}
.qs-note { border-radius: 16px; }
.qs-sheet-actions .qs-btn { padding: 11px 22px; }

/* Passport -------------------------------------------------------------- */
.qs-passport-head { gap: 18px; }
.qs-avatar { width: 96px; height: 96px; box-shadow: 0 6px 18px rgba(60, 40, 10, 0.12); }
.qs-passport-name { font-size: 24px; }
.qs-bio { margin: 8px 0 0; font-size: 14px; color: var(--qs-muted); line-height: 1.45; max-width: 46ch; }
.qs-edit-toggle { margin-top: 10px; }
.qs-stats {
	background: #fff;
	border: 1px solid #eee7da;
	border-radius: 20px;
	box-shadow: var(--qs-shadow);
	padding: 14px 4px;
	gap: 0;
}
.qs-stat { background: transparent; border: none; border-radius: 0; padding: 4px 6px; }
.qs-stat + .qs-stat { border-left: 1px solid #f0e9db; }
.qs-stamp-card { border-radius: 16px; box-shadow: 0 4px 14px rgba(60, 40, 10, 0.05); }
.qs-stamp-card img, .qs-stamp-card video { aspect-ratio: 4 / 3; }

.qs-profile-form {
	background: #fff;
	border: 1px solid #eee7da;
	border-radius: 20px;
	box-shadow: var(--qs-shadow);
	padding: 6px 18px 18px;
	margin-top: 16px;
}
.qs-input {
	width: 100%;
	border: 1px solid var(--qs-border);
	border-radius: 14px;
	padding: 10px 12px;
	font-size: 15px;
	font-family: inherit;
	margin-top: 6px;
	background: #fff;
}
.qs-input:focus { border-color: var(--qs-orange); outline: none; }
.qs-profile-preview {
	width: 84px; height: 84px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin-bottom: 8px;
	background: var(--qs-soft);
}

/* Connect hub ----------------------------------------------------------- */
.qs-person { border-radius: 20px; padding: 14px 16px; border-color: #eee7da; box-shadow: 0 4px 14px rgba(60, 40, 10, 0.04); }
.qs-person-avatar { width: 64px; height: 64px; }
.qs-person-bio {
	display: block;
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--qs-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.qs-conn-avatar { width: 44px; height: 44px; }
.qs-ai-card { border-radius: 20px; }

/* Chat ------------------------------------------------------------------ */
.qs-chat { border-radius: var(--qs-radius); box-shadow: var(--qs-shadow); border-color: #eee7da; }
.qs-chat-messages { gap: 10px; padding: 16px; }
.qs-bubble-row { align-items: flex-end; gap: 6px; }
.qs-bubble-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--qs-soft); flex: 0 0 auto; }
.qs-bubble { border-radius: 18px; }
.qs-chat-form {
	position: sticky;
	bottom: 0;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	align-items: center;
}
.qs-chat-input { border-radius: 999px; padding: 10px 16px; }
.qs-chat-send {
	width: 42px; height: 42px;
	flex: 0 0 auto;
	border: none;
	border-radius: 50%;
	background: var(--qs-orange);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(249, 115, 22, 0.30);
}
.qs-chat-send:hover { background: var(--qs-orange-dark); }

@media (min-width: 640px) {
	.qs-sheet-panel { border-radius: 24px; }
}
@media (max-width: 480px) {
	.qs-stats { grid-template-columns: repeat(4, 1fr); }
	.qs-stat strong { font-size: 18px; }
	.qs-stat span { font-size: 10px; }
	.qs-place-name { font-size: 23px; }
	.qs-person-avatar { width: 56px; height: 56px; }
}

/* =====================================================================
   v0.3.1 — compact overlay place card. Collapsed, a card is just its
   media with an overlaid name / distance / description; tapping the
   media (or the chevron) expands a details region with the rating,
   address, icon row, hours/menu, and the check-in zone. The public
   stamps strip exists only when the place has public stamps and sits
   directly under the media. On mobile the card is full-bleed.
   ===================================================================== */

/* Media + overlay ------------------------------------------------------ */
.qs-card-media { position: relative; }
.qs-card-overlay {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	padding: 46px 56px 14px 18px;
	background: linear-gradient(to top, rgba(24, 16, 6, 0.80) 0%, rgba(24, 16, 6, 0.45) 55%, rgba(24, 16, 6, 0) 100%);
	color: #fff;
	pointer-events: none;
}
.qs-card-name {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.qs-card-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 5px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}
.qs-card-distance { white-space: nowrap; }
.qs-card-distance:not([hidden]) + .qs-card-hood::before {
	content: "·";
	margin-right: 7px;
	opacity: 0.75;
}
.qs-card-desc {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.95);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.qs-card-chevron {
	position: absolute;
	right: 12px; bottom: 12px;
	width: 34px; height: 34px;
	border: none;
	border-radius: 50%;
	background: #f97316;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(6px);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	pointer-events: auto;
	transition: background 0.2s ease;
}
.qs-card-chevron:hover { background: #ea580c; }
/* Text-glyph chevron (v0.3.4): a rotated › — font-rendered, so it cannot be
   suppressed like the SVG or half-clipped like the CSS-border version. */
.qs-card-chevron-glyph {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	transform: rotate(90deg);
	transition: transform 0.3s ease;
	margin-top: -2px;
}
.qs-place-card.qs-expanded .qs-card-chevron-glyph { transform: rotate(-90deg); }
.qs-card-media-empty .qs-card-chevron-glyph { color: #1f2937; }

/* Carousel dots move to the top so they clear the overlay text. */
.qs-place-card .qs-carousel-dots {
	bottom: auto;
	top: 10px;
	justify-content: flex-end;
	padding-right: 12px;
}

/* Places with no media: the overlay becomes a plain header block. */
.qs-card-media-empty { background: var(--qs-soft, #f6f2ea); }
.qs-card-media-empty .qs-card-overlay {
	position: static;
	background: none;
	color: var(--qs-text);
	padding: 18px 56px 16px 18px;
}
.qs-card-media-empty .qs-card-name { color: var(--qs-text); text-shadow: none; }
.qs-card-media-empty .qs-card-meta { color: var(--qs-muted); }
.qs-card-media-empty .qs-card-desc { color: var(--qs-muted); }
.qs-card-media-empty .qs-card-chevron { background: #fff; color: var(--qs-text); box-shadow: 0 2px 8px rgba(60, 40, 10, 0.12); }

/* Public stamps strip — directly under the media, compact ------------- */
.qs-card-stamps { padding: 12px 14px 0; }
.qs-card-stamps .qs-gallery-row { gap: 10px; padding-bottom: 2px; }
.qs-card-stamps .qs-gallery-item { flex-basis: 76px; }
.qs-card-stamps .qs-gallery-item img, .qs-card-stamps .qs-gallery-item video {
	width: 76px; height: 76px;
	border-radius: 14px;
}
.qs-card-stamps .qs-gallery-item figcaption { margin-top: 5px; }
.qs-card-stamps .qs-gallery-avatar { width: 18px !important; height: 18px !important; }

/* Details region — collapsed by default, grid-rows animation ---------- */
.qs-card-details {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.38s ease, visibility 0s linear 0.38s;
}
.qs-place-card.qs-expanded .qs-card-details { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.38s ease, visibility 0s; }
.qs-card-details-inner {
	overflow: hidden;
	min-height: 0;
	padding: 0 20px;
}
.qs-card-details .qs-rating { margin-top: 8px; }
.qs-card-details .qs-place-address { margin-top: 8px; font-size: 14.5px; }
.qs-card-details .qs-info-row { margin-top: 14px; }
.qs-card-details .qs-checkin-zone { margin-top: 20px; }

/* Full-bleed on mobile: edge-to-edge media, 4:3 ------------------------ */
@media (max-width: 768px) {
	.qs-place-card {
		max-width: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		border-left: none;
		border-right: none;
		border-radius: 0;
		box-shadow: none;
	}
	.qs-place-card .qs-carousel-track { aspect-ratio: 4 / 3; }
	.qs-card-name { font-size: 24px; }
}

/* v0.3.1 addendum: full description at the top of the expanded details */
.qs-card-full-desc { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: #1f2937; }

/* v0.3.2: spacing for the padding-less details inner (was vertical padding) */
.qs-card-details-inner > :first-child { margin-top: 16px; }
.qs-card-details-inner > :last-child { margin-bottom: 20px; }

/* =====================================================================
   v0.4.0 — bigger, sleeker mission cards (AJ, Dec 2, 2026). The mission
   action (Start Mission / Check in) moves out of the collapsible
   details into an always-visible action bar directly under the card;
   cards get wider, taller media, softer layered shadows, a frosted
   "Mission" badge, and a gradient primary button.
   ===================================================================== */
.qs-place-card {
	max-width: 920px;
	margin-bottom: 30px;
	border-radius: 28px;
	border-color: rgba(38, 34, 29, 0.08);
	box-shadow: 0 18px 50px rgba(31, 24, 12, 0.13), 0 2px 8px rgba(31, 24, 12, 0.05);
}
.qs-place-card .qs-carousel-track { aspect-ratio: 3 / 2; }
.qs-card-media::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 34%;
	z-index: 1;
	background: linear-gradient(to bottom, rgba(20, 14, 5, 0.28), rgba(20, 14, 5, 0));
	pointer-events: none;
}
.qs-card-media-empty::before { content: none; }
.qs-card-badge {
	position: absolute;
	top: 14px; left: 14px;
	z-index: 3;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px) saturate(1.4);
	-webkit-backdrop-filter: blur(10px) saturate(1.4);
	color: #26221d;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(20, 14, 5, 0.18);
	pointer-events: none;
}
.qs-card-overlay { padding: 58px 64px 18px 22px; }
.qs-card-name { font-size: 30px; }
.qs-card-desc { font-size: 15px; }
.qs-card-chevron { width: 40px; height: 40px; right: 14px; bottom: 14px; }
.qs-card-chevron-glyph { font-size: 24px; }
.qs-card-details-inner { padding: 0 22px; }
.qs-card-stamps { padding: 14px 16px 0; }

/* Always-visible mission action bar directly under the card */
.qs-card-action {
	margin-top: 0;
	padding: 16px;
	background: linear-gradient(to bottom, #ffffff, #fffdf9);
	border-top: 1px solid rgba(232, 226, 217, 0.85);
}
.qs-card-action .qs-btn-block { margin-top: 0; }
.qs-card-action .qs-btn-block + .qs-btn-block { margin-top: 8px; }
.qs-card-action .qs-btn-primary,
.qs-card-action .qs-btn-done {
	padding: 15px 20px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.01em;
}
.qs-card-action .qs-btn-primary {
	background: linear-gradient(135deg, #fb923c 0%, #f97316 48%, #ea580c 100%);
	border: none;
	box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}
.qs-card-action .qs-btn-primary:hover {
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
	color: #fff;
}
.qs-card-action .qs-btn-primary:disabled {
	background: #f3ede2;
	box-shadow: none;
	color: var(--qs-muted);
}
.qs-card-action .qs-checkin-status { margin: 9px 0 0; font-size: 13px; text-align: center; }

@media (max-width: 768px) {
	.qs-place-card { margin-bottom: 26px; }
	.qs-place-card .qs-carousel-track { aspect-ratio: 5 / 4; }
	.qs-card-name { font-size: 27px; }
	.qs-card-overlay { padding: 52px 60px 16px 18px; }
	.qs-card-action { padding: 14px 16px 18px; }
}

/* =====================================================================
   v0.5.0 — AJ, Dec 2, 2026: no chevron button (tap the photo or press
   Start Mission to expand); the description appears ONCE — as a
   clamped headline in the white space under the photo, opening into
   the full extended description when the card expands; cards taller;
   horizontal snap-scroll rows via [quest_place_row]; Passport gains
   a Settings tab holding profile editing + Log out.
   ===================================================================== */
.qs-card-chevron { display: none !important; }
.qs-card-media { cursor: pointer; }
.qs-card-overlay { padding-right: 22px; }

/* Description: one element, two states — never repeated. */
.qs-card-lede {
	margin: 0;
	padding: 16px 22px 2px;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.45;
	color: #26221d;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.qs-place-card.qs-expanded .qs-card-lede {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
	font-weight: 500;
}

/* Taller media (AJ: cards take up more of the screen). */
.qs-place-card .qs-carousel-track { aspect-ratio: 4 / 3; }
@media (max-width: 768px) {
	.qs-place-card .qs-carousel-track { aspect-ratio: 1 / 1; }
	.qs-card-overlay { padding-right: 18px; }
	.qs-card-lede { padding: 14px 18px 2px; }
	.qs-map-wrap { margin: 12px 18px 0; }
}

/* Horizontal mission rows — cards scroll sideways like the article
   carousel, snap-aligned, scrollbar hidden. */
.qs-hrow {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 6px 20px 22px;
	margin: 0 -20px;
}
.qs-hrow::-webkit-scrollbar { display: none; }
.qs-hrow .qs-place-card {
	flex: 0 0 min(86vw, 860px);
	scroll-snap-align: start;
	margin: 0;
	max-width: none;
}
@media (max-width: 768px) {
	/* AJ (Dec 2, 2026): cards span the full mobile width, edge to edge. */
	.qs-hrow { padding: 6px 0 20px; margin: 0; gap: 0; }
	.qs-hrow .qs-place-card {
		flex-basis: 100%;
		border: 1px solid rgba(38, 34, 29, 0.08);
		border-radius: 26px;
		box-shadow: 0 18px 50px rgba(31, 24, 12, 0.13), 0 2px 8px rgba(31, 24, 12, 0.05);
	}
}

/* Passport tabs */
.qs-tabs {
	display: flex;
	gap: 8px;
	margin: 18px 0 6px;
	padding: 5px;
	background: #f6f1e8;
	border-radius: 999px;
}
.qs-tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--qs-muted);
	cursor: pointer;
}
.qs-tab-active {
	background: #fff;
	color: #26221d;
	box-shadow: 0 2px 10px rgba(31, 24, 12, 0.10);
}
.qs-tab-pane .qs-section-title { margin-top: 20px; }

/* v0.5.0 addendum: cancel-mission + route map */
.qs-cancel-mission { margin-top: 8px; }
.qs-map-wrap { margin: 14px 22px 0; }
.qs-map {
	height: 156px;
	border-radius: 16px;
	overflow: hidden;
	isolation: isolate;
	background: #edf1e6;
}
.qs-map-note { margin: 8px 2px 0; font-size: 13px; }
