/* ==========================================================================
   LinkNearBiz AI Messenger — Design System
   Minimal, professional, modern SaaS. Whitespace, rounded corners (14-16px),
   soft shadows, blue primary, white background, light gray borders, Inter,
   smooth 150ms hover transitions, mobile-first.
   ========================================================================== */

:root {
	--lnb-primary: #2f6fed;
	--lnb-primary-dark: #1f56c9;
	--lnb-primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2f6fed 100%);
	--lnb-text: #1a1d29;
	--lnb-text-muted: #6b7280;
	--lnb-border: #e5e7eb;
	--lnb-bg: #ffffff;
	--lnb-bg-subtle: #f8f9fb;
	--lnb-radius-lg: 16px;
	--lnb-radius-md: 14px;
	--lnb-radius-sm: 10px;
	--lnb-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	--lnb-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.04);
	--lnb-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
	--lnb-green: #16a34a;
	--lnb-green-bg: #ecfdf3;
	--lnb-orange: #d97706;
	--lnb-orange-bg: #fffaeb;
	--lnb-red: #dc2626;
	--lnb-red-bg: #fef3f2;
	--lnb-purple: #7c3aed;
	--lnb-purple-bg: #f5f3ff;
	--lnb-gray-bg: #f3f4f6;
	--lnb-blue-bg: #eff6ff;
}

.lnb-app, .lnb-header-icon-root, .lnb-modal-overlay, .lnb-message-button-wrap, .lnb-login-required {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--lnb-text);
	box-sizing: border-box;
}
.lnb-app *, .lnb-header-icon-root *, .lnb-modal-overlay * { box-sizing: border-box; }

/* ---------------------------------------------------------------------- */
/* Send-message buttons (listing page + user profile)                     */
/* ---------------------------------------------------------------------- */

.lnb-message-button-wrap { max-width: 420px; }

.lnb-send-message-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	height: 48px;
	padding: 0 1.5rem;
	border: none;
	border-radius: var(--lnb-radius-lg);
	background: var(--lnb-primary-gradient);
	color: #fff;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--lnb-shadow-sm);
	transition: box-shadow 150ms ease, transform 150ms ease;
}
.lnb-send-message-btn:hover:not(:disabled) {
	box-shadow: var(--lnb-shadow-md);
}
.lnb-send-message-btn:hover:not(:disabled) .lnb-btn-arrow {
	transform: translateX(3px);
}
.lnb-send-message-btn .lnb-btn-arrow { transition: transform 150ms ease; display: inline-block; }
.lnb-send-message-btn.is-loading, .lnb-send-message-btn:disabled { opacity: 0.7; cursor: default; }

.lnb-reply-notice {
	margin: 0.6rem 0 0;
	font-size: 0.82rem;
	color: var(--lnb-text-muted);
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.lnb-ai-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	background: var(--lnb-green-bg);
	color: var(--lnb-green);
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	font-size: 0.75rem;
	font-weight: 600;
}
.lnb-ai-badge-icon { font-size: 0.85rem; }

.lnb-login-required { color: var(--lnb-text-muted); font-size: 0.9rem; }

/* ---------------------------------------------------------------------- */
/* Badges (colour-coded, per spec section 7)                              */
/* ---------------------------------------------------------------------- */

.lnb-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	white-space: nowrap;
}
.lnb-badge--blue    { background: var(--lnb-blue-bg);   color: var(--lnb-primary); }
.lnb-badge--gray    { background: var(--lnb-gray-bg);   color: #4b5563; }
.lnb-badge--green   { background: var(--lnb-green-bg);  color: var(--lnb-green); }
.lnb-badge--orange  { background: var(--lnb-orange-bg); color: var(--lnb-orange); }
.lnb-badge--red     { background: var(--lnb-red-bg);    color: var(--lnb-red); }
.lnb-badge--purple  { background: var(--lnb-purple-bg); color: var(--lnb-purple); }

.lnb-ai-glow {
	position: relative;
	padding-left: 1.1rem;
}
.lnb-ai-glow::before {
	content: '';
	position: absolute;
	left: 0.45rem;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--lnb-green);
	box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
	animation: lnb-glow 2s ease-in-out infinite;
}
@keyframes lnb-glow {
	0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
	70%  { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* ---------------------------------------------------------------------- */
/* Header icon + dropdown (Messenger-style, NOT a floating bubble)        */
/* ---------------------------------------------------------------------- */

.lnb-header-icon-root { position: relative; display: inline-block; }

.lnb-header-icon-toggle {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: var(--lnb-bg-subtle);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	transition: background 150ms ease;
}
.lnb-header-icon-toggle:hover { background: var(--lnb-gray-bg); }

.lnb-header-unread-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	background: var(--lnb-red);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 2px solid #fff;
}

.lnb-dropdown-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 420px;
	max-width: 92vw;
	background: var(--lnb-bg);
	border-radius: var(--lnb-radius-lg);
	box-shadow: var(--lnb-shadow-lg);
	border: 1px solid var(--lnb-border);
	overflow: hidden;
	z-index: 9999;
	animation: lnb-dropdown-in 180ms ease;
}
@keyframes lnb-dropdown-in {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.lnb-dropdown-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 1.25rem 0.5rem;
}
.lnb-dropdown-header h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.lnb-dropdown-new-message {
	border: none;
	background: none;
	color: var(--lnb-primary);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.3rem 0.5rem;
	border-radius: var(--lnb-radius-sm);
	transition: background 150ms ease;
}
.lnb-dropdown-new-message:hover { background: var(--lnb-blue-bg); }

.lnb-dropdown-search { margin: 0.5rem 1.25rem 0.75rem; width: calc(100% - 2.5rem); }

.lnb-dropdown-thread-list { max-height: 420px; overflow-y: auto; }

.lnb-dropdown-footer-link {
	display: block;
	text-align: center;
	padding: 0.9rem;
	background: var(--lnb-primary-gradient);
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: opacity 150ms ease;
}
.lnb-dropdown-footer-link:hover { opacity: 0.92; color: #fff; }

/* ---------------------------------------------------------------------- */
/* Search input (shared)                                                   */
/* ---------------------------------------------------------------------- */

.lnb-search-input {
	width: 100%;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--lnb-border);
	border-radius: var(--lnb-radius-md);
	font-family: inherit;
	font-size: 0.88rem;
	background: var(--lnb-bg-subtle);
	transition: border-color 150ms ease, background 150ms ease;
}
.lnb-search-input:focus {
	outline: none;
	border-color: var(--lnb-primary);
	background: var(--lnb-bg);
}

/* ---------------------------------------------------------------------- */
/* Full inbox: 3-column layout (sidebar / list / conversation)            */
/* ---------------------------------------------------------------------- */

.lnb-app--full {
	display: flex;
	min-height: 560px;
	max-width: 1200px;
	margin: 0 auto;
	border: 1px solid var(--lnb-border);
	border-radius: var(--lnb-radius-lg);
	overflow: hidden;
	background: var(--lnb-bg);
	box-shadow: var(--lnb-shadow-sm);
}

.lnb-sidebar {
	width: 220px;
	flex-shrink: 0;
	background: var(--lnb-bg-subtle);
	border-right: 1px solid var(--lnb-border);
	display: flex;
	flex-direction: column;
	padding: 1.25rem 0.75rem;
}
.lnb-sidebar-logo { font-weight: 700; font-size: 1.05rem; padding: 0 0.5rem 1rem; }

.lnb-nav-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	text-align: left;
	padding: 0.6rem 0.75rem;
	border: none;
	background: none;
	border-radius: var(--lnb-radius-sm);
	font-family: inherit;
	font-size: 0.88rem;
	color: var(--lnb-text-muted);
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease;
}
.lnb-nav-item:hover { background: var(--lnb-gray-bg); color: var(--lnb-text); }
.lnb-nav-item.is-active { background: var(--lnb-blue-bg); color: var(--lnb-primary); font-weight: 600; }
.lnb-nav-icon { font-size: 1rem; }

.lnb-sidebar-spacer { flex: 1; }

.lnb-sidebar-owner {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.5rem;
	border-top: 1px solid var(--lnb-border);
}
.lnb-owner-name { font-size: 0.85rem; font-weight: 600; }

.lnb-thread-list-pane {
	width: 320px;
	flex-shrink: 0;
	border-right: 1px solid var(--lnb-border);
	display: flex;
	flex-direction: column;
	min-height: 0;
	position: relative;
}

.lnb-thread-list-header { padding: 1rem 1rem 0.6rem; border-bottom: 1px solid var(--lnb-border); }

.lnb-filter-pills { display: flex; gap: 0.4rem; margin-top: 0.7rem; flex-wrap: wrap; }
.lnb-filter-pill {
	border: 1px solid var(--lnb-border);
	background: var(--lnb-bg);
	border-radius: 999px;
	padding: 0.3rem 0.75rem;
	font-size: 0.78rem;
	font-family: inherit;
	font-weight: 500;
	color: var(--lnb-text-muted);
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.lnb-filter-pill:hover { border-color: var(--lnb-primary); }
.lnb-filter-pill.is-active { background: var(--lnb-primary); border-color: var(--lnb-primary); color: #fff; }

.lnb-thread-list { flex: 1; overflow-y: auto; }

.lnb-thread-item {
	display: flex;
	gap: 0.7rem;
	width: 100%;
	text-align: left;
	padding: 0.85rem 1rem;
	border: none;
	border-bottom: 1px solid var(--lnb-border);
	background: var(--lnb-bg);
	cursor: pointer;
	transition: background 150ms ease;
}
.lnb-thread-item:hover { background: var(--lnb-bg-subtle); }
.lnb-thread-item.is-active { background: var(--lnb-blue-bg); }
.lnb-thread-item.is-unread .lnb-thread-name { font-weight: 700; }

.lnb-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--lnb-gray-bg);
}
.lnb-avatar--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--lnb-primary);
	background: var(--lnb-blue-bg);
}

.lnb-thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.lnb-thread-top-row, .lnb-thread-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lnb-thread-name { font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnb-thread-time { font-size: 0.72rem; color: var(--lnb-text-muted); flex-shrink: 0; }
.lnb-thread-business { font-size: 0.78rem; color: var(--lnb-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnb-thread-preview { font-size: 0.8rem; color: var(--lnb-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.lnb-thread-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.15rem; }

.lnb-unread-pill {
	background: var(--lnb-primary);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	flex-shrink: 0;
}
.lnb-pulse { animation: lnb-pulse 1.6s ease-in-out infinite; }
@keyframes lnb-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.15); }
}

.lnb-fab-new-chat {
	position: absolute;
	bottom: 1.25rem;
	right: 1.25rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: var(--lnb-primary-gradient);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--lnb-shadow-md);
	display: none; /* shown on mobile only, see media query */
}

/* ---------------------------------------------------------------------- */
/* Empty states                                                            */
/* ---------------------------------------------------------------------- */

.lnb-empty-state { padding: 3rem 1.5rem; text-align: center; }
.lnb-empty-title { font-weight: 600; color: var(--lnb-text); margin: 0 0 0.3rem; }
.lnb-empty-sub { font-size: 0.85rem; color: var(--lnb-text-muted); margin: 0; }

/* ---------------------------------------------------------------------- */
/* Conversation view                                                       */
/* ---------------------------------------------------------------------- */

.lnb-conversation-view { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lnb-owner-conversation-layout { display: flex; flex: 1; min-height: 0; }
.lnb-conversation-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.lnb-conversation-header {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--lnb-border);
}
.lnb-conversation-back {
	display: none;
	border: none;
	background: var(--lnb-bg-subtle);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1rem;
	transition: background 150ms ease;
}
.lnb-conversation-back:hover { background: var(--lnb-gray-bg); }
.lnb-conversation-heading { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.lnb-conversation-title { font-weight: 700; font-size: 0.95rem; }
.lnb-conversation-subtitle { font-size: 0.78rem; color: var(--lnb-text-muted); }
.lnb-thread-badges--header { flex-wrap: nowrap; }

.lnb-messages-scroll {
	flex: 1;
	overflow-y: auto;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	background: var(--lnb-bg-subtle);
}

.lnb-message-row { display: flex; gap: 0.5rem; align-items: flex-end; animation: lnb-bubble-in 200ms ease; }
@keyframes lnb-bubble-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.lnb-message-row--left { justify-content: flex-start; }
.lnb-message-row--right { justify-content: flex-end; }

.lnb-message-robot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--lnb-green-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	flex-shrink: 0;
}

.lnb-message-bubble {
	max-width: 70%;
	padding: 0.65rem 0.9rem;
	border-radius: var(--lnb-radius-md);
	background: #fff;
	border: 1px solid var(--lnb-border);
	font-size: 0.88rem;
	line-height: 1.45;
}
.lnb-message-row--right .lnb-message-bubble {
	background: var(--lnb-primary-gradient);
	color: #fff;
	border: none;
}
.lnb-message-row--ai .lnb-message-bubble {
	background: var(--lnb-green-bg);
	border-color: #d1f5df;
}
.lnb-message-row--right.lnb-message-row--ai .lnb-message-bubble {
	background: var(--lnb-green-bg);
	color: var(--lnb-text);
}

.lnb-ai-pill {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--lnb-green);
	margin-bottom: 0.2rem;
}
.lnb-message-body { display: block; white-space: pre-wrap; word-break: break-word; }
.lnb-message-meta { display: block; font-size: 0.68rem; opacity: 0.7; margin-top: 0.25rem; }

.lnb-typing-bubble { display: flex; gap: 4px; align-items: center; padding: 0.75rem 1rem; }
.lnb-typing-dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--lnb-text-muted);
	animation: lnb-typing 1.2s infinite ease-in-out;
}
.lnb-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.lnb-typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes lnb-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* ---------------------------------------------------------------------- */
/* Composer                                                                 */
/* ---------------------------------------------------------------------- */

.lnb-composer {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	padding: 0.85rem 1.25rem;
	border-top: 1px solid var(--lnb-border);
	background: var(--lnb-bg);
}
.lnb-composer textarea {
	flex: 1;
	resize: none;
	min-height: 2.6rem;
	max-height: 6rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--lnb-border);
	border-radius: var(--lnb-radius-md);
	font-family: inherit;
	font-size: 0.88rem;
	transition: border-color 150ms ease;
}
.lnb-composer textarea:focus { outline: none; border-color: var(--lnb-primary); }

.lnb-composer-icon-btn {
	border: none;
	background: var(--lnb-bg-subtle);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1rem;
	transition: background 150ms ease;
	flex-shrink: 0;
}
.lnb-composer-icon-btn:hover:not(:disabled) { background: var(--lnb-gray-bg); }
.lnb-composer-icon-btn:disabled { opacity: 0.4; cursor: default; }

.lnb-send-btn {
	border: none;
	background: var(--lnb-primary-gradient);
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0 1.3rem;
	height: 38px;
	border-radius: var(--lnb-radius-md);
	cursor: pointer;
	transition: box-shadow 150ms ease;
	flex-shrink: 0;
}
.lnb-send-btn:hover:not(:disabled) { box-shadow: var(--lnb-shadow-sm); }
.lnb-send-btn:disabled { opacity: 0.6; cursor: default; }

/* ---------------------------------------------------------------------- */
/* Owner conversation sidebar (AI status, thread info, quick actions)      */
/* ---------------------------------------------------------------------- */

.lnb-conversation-sidebar {
	width: 280px;
	flex-shrink: 0;
	border-left: 1px solid var(--lnb-border);
	padding: 1.25rem;
	overflow-y: auto;
	background: var(--lnb-bg);
}
.lnb-conversation-sidebar h4 {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--lnb-text-muted);
	margin: 1.4rem 0 0.6rem;
}
.lnb-conversation-sidebar h4:first-child { margin-top: 0; }

.lnb-sidebar-stats { margin: 0; }
.lnb-sidebar-stats > div { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.83rem; border-bottom: 1px dashed var(--lnb-border); }
.lnb-sidebar-stats dt { color: var(--lnb-text-muted); }
.lnb-sidebar-stats dd { margin: 0; font-weight: 600; }

.lnb-sidebar-btn-row { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.lnb-sidebar-btn {
	flex: 1;
	border: 1px solid var(--lnb-border);
	background: var(--lnb-bg);
	border-radius: var(--lnb-radius-sm);
	padding: 0.5rem 0.6rem;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 150ms ease, border-color 150ms ease;
}
.lnb-sidebar-btn:hover { border-color: var(--lnb-primary); }
.lnb-sidebar-btn--primary { background: var(--lnb-primary); border-color: var(--lnb-primary); color: #fff; }
.lnb-sidebar-btn--primary:hover { background: var(--lnb-primary-dark); }

.lnb-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.lnb-quick-action-btn {
	border: 1px solid var(--lnb-border);
	background: var(--lnb-bg-subtle);
	border-radius: var(--lnb-radius-sm);
	padding: 0.55rem 0.5rem;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 150ms ease;
}
.lnb-quick-action-btn:hover { background: var(--lnb-gray-bg); }

.lnb-owner-notes {
	width: 100%;
	min-height: 70px;
	resize: vertical;
	border: 1px solid var(--lnb-border);
	border-radius: var(--lnb-radius-sm);
	padding: 0.6rem;
	font-family: inherit;
	font-size: 0.82rem;
	margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------------- */
/* Guest capture modal                                                     */
/* ---------------------------------------------------------------------- */

.lnb-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	animation: lnb-fade-in 150ms ease;
}
@keyframes lnb-fade-in { from { opacity: 0; } to { opacity: 1; } }

.lnb-modal {
	background: #fff;
	border-radius: var(--lnb-radius-lg);
	padding: 1.75rem;
	width: 340px;
	max-width: calc(100vw - 40px);
	box-shadow: var(--lnb-shadow-lg);
}
.lnb-modal h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.lnb-modal-notice { font-size: 0.85rem; color: var(--lnb-text-muted); margin: 0 0 1.1rem; }

.lnb-guest-capture-form input[type="text"],
.lnb-guest-capture-form input[type="email"],
.lnb-guest-capture-form input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.8rem;
	margin-bottom: 0.6rem;
	border: 1px solid var(--lnb-border);
	border-radius: var(--lnb-radius-md);
	font-family: inherit;
	font-size: 0.88rem;
}
.lnb-hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lnb-modal-error { color: var(--lnb-red); font-size: 0.82rem; margin: 0 0 0.6rem; }
.lnb-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.5rem; }
.lnb-modal-actions button {
	padding: 0.55rem 1.1rem;
	border: none;
	border-radius: var(--lnb-radius-sm);
	font-family: inherit;
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	transition: opacity 150ms ease;
}
.lnb-modal-actions button[type="submit"] { background: var(--lnb-primary-gradient); color: #fff; }
.lnb-modal-actions button[type="submit"]:hover { opacity: 0.92; }
.lnb-modal-actions .lnb-modal-cancel { background: var(--lnb-gray-bg); color: var(--lnb-text); }

/* ---------------------------------------------------------------------- */
/* Mobile: WhatsApp-style two-screen navigation, no bottom nav             */
/* ---------------------------------------------------------------------- */

@media (max-width: 780px) {
	.lnb-sidebar { display: none; }
}

@media (max-width: 600px) {
	.lnb-app--full {
		flex-direction: column;
		min-height: 100vh;
		border-radius: 0;
		border: none;
	}
	.lnb-thread-list-pane { width: 100%; border-right: none; }
	.lnb-fab-new-chat { display: flex; align-items: center; justify-content: center; }

	.lnb-app--full .lnb-conversation-view { display: none; }
	.lnb-app--full.lnb-conversation-open .lnb-thread-list-pane { display: none; }
	.lnb-app--full.lnb-conversation-open .lnb-conversation-view { display: flex; }

	.lnb-owner-conversation-layout { flex-direction: column; }
	.lnb-conversation-sidebar { width: 100%; border-left: none; border-top: 1px solid var(--lnb-border); }

	.lnb-conversation-back { display: inline-flex; align-items: center; justify-content: center; }

	.lnb-dropdown-panel { width: calc(100vw - 24px); right: -8px; }
}

.lnb-app--interface-only {
	max-width: 640px;
	margin: 0 auto;
	border: 1px solid var(--lnb-border);
	border-radius: var(--lnb-radius-lg);
	overflow: hidden;
	box-shadow: var(--lnb-shadow-sm);
}
.lnb-app--interface-only .lnb-conversation-view { min-height: 480px; }
