/* Dentazon Chatbot — "AI assistant" widget, dark-glass / deep-space theme.
   Namespaced under #dzc-chat-root with a unique `dzc-` prefix so it never
   collides with the host theme (which also uses a `dz-` prefix).

   This is a re-skin of the widget to the React "AI Chatbot UI Design" look:
   a translucent dark-glass panel with a blue→indigo gradient accent, a glowing
   AI orb, and frosted surfaces. Every class hook the JS builds is preserved —
   only the visual layer changed. The theme is self-contained (it does NOT read
   --dzc-accent for colors), so the widget looks right regardless of the stored
   accent option. */

#dzc-chat-root {
	/* The blue→indigo brand gradient — spent on header accents, primary buttons,
	   send button, selected pills, and user bubbles. */
	--dzc-grad: linear-gradient(135deg, #4a5cf5 0%, #6a7fff 100%);
	--dzc-grad-soft: linear-gradient(135deg, rgba(74, 92, 245, .92), rgba(106, 127, 255, .92));

	/* Ink + surfaces for a dark, frosted panel. */
	--dzc-fg: #e8ecff;                          /* primary light text */
	--dzc-muted: rgba(165, 185, 255, .58);      /* secondary text / labels */
	--dzc-border: rgba(120, 160, 255, .18);     /* hairline borders */
	--dzc-glass: rgba(255, 255, 255, .06);      /* quiet glass fill */
	--dzc-glass-2: rgba(20, 30, 90, .55);       /* stronger glass fill (inputs, launcher) */

	--dzc-accent-ring: rgba(74, 92, 245, .16);  /* focus glow */
	--dzc-radius: 20px;

	/* Semantic (kept distinct from the brand blue), tuned for dark grounds. */
	--dzc-danger: #ff6b6b;
	--dzc-danger-bg: rgba(220, 38, 38, .16);
	--dzc-danger-solid: #dc2626;
	--dzc-warn: #ffcf8a;
	--dzc-warn-bg: rgba(180, 110, 20, .18);
	--dzc-warn-solid: #b45309;
	--dzc-ok: #8ef0c4;

	position: fixed;
	z-index: 2147483000;
	inset: auto 0 0 auto;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--dzc-fg);
}
#dzc-chat-root *, #dzc-chat-root *::before, #dzc-chat-root *::after { box-sizing: border-box; }

/* ---------- the AI orb (glowing blue sphere) ---------- */
.dzc-orb {
	position: relative;
	flex: 0 0 auto;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 27%, #dbe4ff 0%, #8aa0ff 22%, #4a5cf5 55%, #2a2f9e 100%);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, .4),
		inset 0 -3px 8px rgba(0, 0, 0, .28),
		0 3px 12px rgba(74, 92, 245, .5),
		0 0 22px rgba(96, 120, 255, .4);
	overflow: hidden;
}
.dzc-orb::after {
	content: "";
	position: absolute;
	inset: -35%;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0deg, rgba(210, 224, 255, .55) 60deg, transparent 150deg);
	animation: dzc-spin 4.5s linear infinite;
}
.dzc-orb::before {
	content: "";
	position: absolute;
	left: 24%;
	top: 17%;
	width: 30%;
	height: 22%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%);
	z-index: 1;
}
.dzc-orb-hero   { width: 46px; height: 46px; animation: dzc-float 3.6s ease-in-out infinite; }
.dzc-orb-head   { width: 32px; height: 32px; }
.dzc-orb-avatar { width: 26px; height: 26px; }
.dzc-orb-sm     { width: 34px; height: 34px; }

@keyframes dzc-spin  { to { transform: rotate(360deg); } }
@keyframes dzc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes dzc-rise  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dzc-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 92, 245, .55); } 70% { box-shadow: 0 0 0 16px rgba(74, 92, 245, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 92, 245, 0); } }
@keyframes dzc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ---------- launcher ---------- */
.dzc-launcher {
	position: fixed;
	bottom: 22px;
	right: 22px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 20px 8px 8px;
	border: 1px solid rgba(160, 185, 255, .3);
	border-radius: 999px;
	cursor: pointer;
	background: rgba(74, 92, 245, .72);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 12px 30px rgba(74, 92, 245, .5), inset 0 1px 0 rgba(255, 255, 255, .18);
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.dzc-launcher::before { content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none; animation: dzc-pulse 2.6s infinite; }
.dzc-launcher:hover { transform: translateY(-2px); background: rgba(86, 104, 255, .82); box-shadow: 0 16px 40px rgba(74, 92, 245, .6), inset 0 1px 0 rgba(255, 255, 255, .22); }
.dzc-launcher.dzc-hidden { display: none; }

/* ---------- panel (dark frosted glass with ambient blobs + faint stars) ---------- */
.dzc-panel {
	position: fixed;
	bottom: 22px;
	right: 22px;
	width: min(560px, calc(100vw - 32px));
	max-width: calc(100vw - 24px);
	height: min(800px, calc(100vh - 40px));
	max-height: calc(100vh - 40px);
	background:
		/* faint starfield */
		radial-gradient(1.4px 1.4px at 18% 22%, rgba(255, 255, 255, .55), transparent 60%),
		radial-gradient(1.2px 1.2px at 72% 16%, rgba(255, 255, 255, .45), transparent 60%),
		radial-gradient(1.2px 1.2px at 42% 62%, rgba(255, 255, 255, .40), transparent 60%),
		radial-gradient(1.1px 1.1px at 86% 74%, rgba(255, 255, 255, .40), transparent 60%),
		radial-gradient(1.3px 1.3px at 30% 88%, rgba(255, 255, 255, .35), transparent 60%),
		radial-gradient(1.1px 1.1px at 60% 40%, rgba(255, 255, 255, .30), transparent 60%),
		/* ambient colour blobs */
		radial-gradient(60% 46% at 12% 6%, rgba(74, 92, 245, .30) 0%, transparent 62%),
		radial-gradient(55% 42% at 92% 96%, rgba(0, 160, 255, .18) 0%, transparent 60%),
		radial-gradient(45% 40% at 88% 8%, rgba(120, 60, 220, .16) 0%, transparent 62%),
		/* dark glass base */
		linear-gradient(180deg, rgba(9, 14, 44, .74) 0%, rgba(4, 7, 22, .82) 100%);
	-webkit-backdrop-filter: blur(40px) saturate(160%);
	backdrop-filter: blur(40px) saturate(160%);
	border: 1px solid rgba(120, 160, 255, .2);
	border-radius: var(--dzc-radius);
	box-shadow: 0 32px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transform: translateY(14px) scale(.98);
	transform-origin: bottom right;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s cubic-bezier(.2, .8, .3, 1), width .28s cubic-bezier(.2, .8, .3, 1), height .28s cubic-bezier(.2, .8, .3, 1);
}
.dzc-panel.dzc-open { opacity: 1; transform: none; pointer-events: auto; }
/* Welcome screen keeps the original compact size; onboarding/chat expand. */
.dzc-panel.dzc-welcome-mode { width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); }

/* ---------- header (dark glass, not a gradient bar) ---------- */
.dzc-header {
	position: relative;
	background: rgba(8, 14, 55, .6);
	-webkit-backdrop-filter: blur(30px) saturate(200%);
	backdrop-filter: blur(30px) saturate(200%);
	border-bottom: 1px solid rgba(120, 160, 255, .2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
	color: var(--dzc-fg);
	padding: 11px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	overflow: hidden;
	flex: 0 0 auto;
}
.dzc-header::before { content: ""; position: absolute; width: 200px; height: 200px; right: -60px; top: -120px; background: radial-gradient(circle, rgba(74, 92, 245, .28), transparent 70%); pointer-events: none; }
.dzc-header > * { position: relative; }
/* White circular badge keeps the brand logo legible on the dark header. */
.dzc-head-badge { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: rgba(255, 255, 255, .92); box-shadow: 0 0 12px rgba(74, 92, 245, .3), inset 0 0 0 1px rgba(120, 160, 255, .4); }
.dzc-head-logo { width: 35px; height: 35px; object-fit: contain; display: block; }
.dzc-titles { flex: 1; min-width: 0; }
.dzc-header-actions { display: flex; align-items: center; gap: 6px; }
.dzc-title { font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--dzc-fg); }
.dzc-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; margin-top: 1px; color: var(--dzc-muted); }
.dzc-status .dzc-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dzc-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .28); flex: 0 0 auto; }
.dzc-header button { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: rgba(165, 185, 255, .68); cursor: pointer; padding: 6px; border-radius: 9px; line-height: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.dzc-header button:hover { background: rgba(255, 255, 255, .13); color: var(--dzc-fg); }
.dzc-header button svg { width: 18px; height: 18px; fill: currentColor; }
.dzc-header .dzc-menu-button { flex: 0 0 auto; }

/* ---------- body / conversation ---------- */
.dzc-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 9px; scrollbar-width: thin; scrollbar-color: rgba(100, 140, 255, .3) transparent; }
.dzc-body::-webkit-scrollbar { width: 5px; }
.dzc-body::-webkit-scrollbar-track { background: transparent; }
.dzc-body::-webkit-scrollbar-thumb { background: rgba(100, 140, 255, .3); border-radius: 4px; }

.dzc-row { display: flex; gap: 8px; align-items: flex-end; animation: dzc-rise .3s cubic-bezier(.2, .7, .3, 1) both; }
.dzc-row-user { justify-content: flex-end; }
.dzc-row-bot { justify-content: flex-start; }
.dzc-msg { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.dzc-bot { background: rgba(255, 255, 255, .07); color: #dde4ff; border: 1px solid rgba(120, 160, 255, .15); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-left-radius: 5px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dzc-user { background: var(--dzc-grad-soft); color: #fff; border: 1px solid rgba(160, 185, 255, .3); border-bottom-right-radius: 5px; box-shadow: 0 4px 16px rgba(74, 92, 245, .35), inset 0 1px 0 rgba(255, 255, 255, .15); }
.dzc-disclaimer { align-self: stretch; max-width: 100%; font-size: 12.5px; font-style: italic; color: var(--dzc-muted); padding-left: 12px; border-left: 3px solid rgba(120, 160, 255, .4); animation: dzc-rise .3s ease both; }
.dzc-service-notice { align-self: stretch; max-width: 100%; padding: 10px 12px; border: 1px solid rgba(245, 158, 11, .34); border-radius: 12px; background: rgba(120, 72, 8, .2); color: #fbd38d; font-size: 12.5px; line-height: 1.45; animation: dzc-rise .3s ease both; }
.dzc-type-booking_prompt { border-color: rgba(94, 234, 212, .32); }
.dzc-type-emergency_alert { border-color: rgba(248, 113, 113, .55); box-shadow: inset 3px 0 0 rgba(248, 113, 113, .8); }
.dzc-type-urgent_alert { border-color: rgba(251, 191, 36, .5); box-shadow: inset 3px 0 0 rgba(251, 191, 36, .75); }

.dzc-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: -6px 0 2px 34px; }
.dzc-feedback button { background: none; border: none; cursor: pointer; padding: 3px 6px; border-radius: 8px; color: var(--dzc-muted); font-size: 13px; line-height: 1; opacity: .75; transition: all .15s; }
.dzc-feedback button:hover { background: rgba(255, 255, 255, .08); opacity: 1; }
.dzc-feedback button.dzc-picked { color: #9db4ff; opacity: 1; transform: scale(1.15); }
.dzc-feedback.dzc-done { color: var(--dzc-muted); font-size: 12px; font-style: italic; }
.dzc-feedback-error { flex-basis: 100%; color: var(--dzc-danger); font-size: 11.5px; line-height: 1.35; }
.dzc-clarification { border-color: rgba(140, 160, 255, .42); box-shadow: 0 4px 18px rgba(74, 92, 245, .18), inset 3px 0 0 rgba(120, 150, 255, .65); }
.dzc-message-type { width: max-content; margin-bottom: 5px; padding: 2px 7px; border: 1px solid rgba(140, 165, 255, .34); border-radius: 999px; background: rgba(74, 92, 245, .2); color: #afc0ff; font-size: 9.5px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.dzc-message-text { white-space: pre-wrap; }

/* Negative-feedback comment dialog. */
.dzc-feedback-modal { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 6, 20, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dzc-feedback-dialog { width: min(420px, 100%); padding: 18px; border: 1px solid rgba(120, 160, 255, .28); border-radius: 18px; background: linear-gradient(180deg, rgba(18, 27, 75, .98), rgba(7, 11, 35, .98)); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }
.dzc-feedback-title { color: var(--dzc-fg); font-size: 17px; font-weight: 600; }
.dzc-feedback-hint { margin-top: 3px; color: var(--dzc-muted); font-size: 12.5px; }
.dzc-feedback-comment { display: block; width: 100%; min-height: 104px; max-height: 220px; margin-top: 14px; padding: 11px 12px; resize: vertical; border: 1px solid rgba(120, 160, 255, .22); border-radius: 12px; outline: none; background: rgba(255, 255, 255, .06); color: var(--dzc-fg); font: inherit; font-size: 14px; line-height: 1.45; caret-color: #8da5ff; }
.dzc-feedback-comment::placeholder { color: rgba(160, 185, 255, .42); }
.dzc-feedback-comment:focus { border-color: rgba(120, 160, 255, .55); box-shadow: 0 0 0 3px var(--dzc-accent-ring); }
.dzc-feedback-dialog-error { min-height: 17px; margin-top: 5px; color: var(--dzc-danger); font-size: 11.5px; }
.dzc-feedback-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.dzc-feedback-dialog-actions button { padding: 9px 13px; border-radius: 10px; cursor: pointer; color: var(--dzc-fg); font-family: inherit; font-size: 13px; font-weight: 600; }
.dzc-feedback-cancel { border: 1px solid rgba(120, 160, 255, .2); background: rgba(255, 255, 255, .06); }
.dzc-feedback-submit { border: 1px solid rgba(160, 185, 255, .3); background: var(--dzc-grad-soft); box-shadow: 0 6px 16px rgba(74, 92, 245, .3); }
.dzc-feedback-dialog-actions button:hover { filter: brightness(1.1); }
.dzc-feedback-dialog-actions button:disabled { cursor: wait; opacity: .55; }

.dzc-typing { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(120, 160, 255, .15); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 16px; border-bottom-left-radius: 5px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
.dzc-typing-word { font-size: 13px; font-weight: 600; white-space: nowrap; background: linear-gradient(90deg, rgba(160, 180, 255, .5) 20%, #aebcff 50%, rgba(160, 180, 255, .5) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: dzc-shimmer 1.8s linear infinite; }
.dzc-typing-dots { display: inline-flex; gap: 4px; }
.dzc-typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #7f9bff, #6a7fff); animation: dzc-bounce 1.2s infinite; }
.dzc-typing-dots span:nth-child(2) { animation-delay: .18s; }
.dzc-typing-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes dzc-shimmer { to { background-position: -200% 0; } }

/* ---------- welcome screen (screen 1: no header) ---------- */
.dzc-welcome-mode .dzc-header,
.dzc-welcome-mode .dzc-composer { display: none; }
.dzc-welcome-mode .dzc-body { padding: 0; }

.dzc-welcome { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 20px 20px; }
.dzc-welcome-close, .dzc-welcome-menu { position: absolute; top: 6px; z-index: 2; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .06); color: rgba(165, 185, 255, .68); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, color .15s; }
.dzc-welcome-close { right: 6px; }
.dzc-welcome-menu { left: 6px; }
.dzc-welcome-close:hover, .dzc-welcome-menu:hover { background: rgba(255, 255, 255, .13); color: #e8ecff; }
.dzc-welcome-close svg, .dzc-welcome-menu svg { width: 16px; height: 16px; fill: currentColor; }
.dzc-welcome-main { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.dzc-welcome-orb { display: flex; align-items: center; justify-content: center; }
.dzc-welcome-orb canvas { display: block; }
.dzc-welcome-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; width: 100%; padding: 18px 28px; border-radius: 18px; background: rgba(10, 18, 60, .45); border: 1px solid rgba(120, 160, 255, .18); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 8px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08); }
.dzc-welcome-eyebrow { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(160, 185, 255, .6); }
.dzc-welcome-title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: #fff; text-shadow: 0 0 40px rgba(120, 160, 255, .4); }
.dzc-welcome-powered { margin: 2px 0 0; font-size: 12px; color: rgba(140, 165, 255, .45); }
.dzc-welcome-start { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 16px 12px 22px; border: 1px solid rgba(120, 160, 255, .22); border-radius: 999px; cursor: pointer; font-family: inherit; background: rgba(20, 30, 90, .55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 4px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08); transition: background .2s, border-color .2s, box-shadow .2s; }
.dzc-welcome-start:hover { background: rgba(30, 45, 110, .65); border-color: rgba(120, 160, 255, .4); box-shadow: 0 6px 28px rgba(74, 92, 245, .35), inset 0 1px 0 rgba(255, 255, 255, .1); }
.dzc-welcome-start-text { font-size: 14px; color: rgba(160, 185, 255, .55); }

/* ---------- onboarding heading ---------- */
.dzc-onb-head { text-align: center; padding: 6px 6px 2px; animation: dzc-rise .4s ease both; }
.dzc-onb-title { font-size: 20px; font-weight: 600; color: #eef1ff; letter-spacing: -.01em; text-shadow: 0 0 30px rgba(120, 160, 255, .35); }
.dzc-onb-sub { font-size: 12px; color: var(--dzc-muted); margin-top: 4px; line-height: 1.4; }

/* Previous sessions retained by this browser. Compact and independently scrollable
   so the onboarding controls remain easy to reach on smaller screens. */
.dzc-history { flex: 0 0 auto; padding: 10px; border: 1px solid rgba(120, 160, 255, .18); border-radius: 14px; background: rgba(10, 18, 55, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.dzc-history-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 7px; color: rgba(165, 185, 255, .72); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.dzc-history-count { min-width: 20px; padding: 2px 6px; border-radius: 999px; text-align: center; background: rgba(91, 111, 245, .2); color: #b8c6ff; font-size: 10px; }
.dzc-history-list { display: flex; flex-direction: column; gap: 6px; max-height: 154px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(100, 140, 255, .3) transparent; }
.dzc-history-loading { padding: 9px 8px; color: var(--dzc-muted); font-size: 12px; line-height: 1.4; }
.dzc-history-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid rgba(120, 160, 255, .14); border-radius: 11px; cursor: pointer; background: rgba(255, 255, 255, .045); color: var(--dzc-fg); font-family: inherit; text-align: left; transition: border-color .15s, background .15s, transform .1s; }
.dzc-history-row:hover { border-color: rgba(120, 160, 255, .38); background: rgba(100, 125, 255, .1); }
.dzc-history-row:active { transform: translateY(1px); }
.dzc-history-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dzc-history-title { overflow: hidden; color: #dce4ff; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.dzc-history-date { color: rgba(155, 177, 255, .52); font-size: 10.5px; line-height: 1.2; }
.dzc-history-status { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(120, 160, 255, .22); color: #afc0ff; background: rgba(74, 92, 245, .14); font-size: 9.5px; font-weight: 700; letter-spacing: .03em; }
.dzc-history-open { border-color: rgba(74, 222, 128, .28); color: #86efac; background: rgba(22, 101, 52, .18); }
.dzc-history-booked { border-color: rgba(45, 212, 191, .3); color: #99f6e4; background: rgba(15, 118, 110, .18); }
.dzc-history-emergency { border-color: rgba(248, 113, 113, .35); color: #fca5a5; background: rgba(127, 29, 29, .2); }
.dzc-history-closed { color: var(--dzc-muted); background: rgba(100, 116, 139, .13); }
.dzc-history-empty { padding: 28px 12px; text-align: center; color: var(--dzc-muted); font-size: 12.5px; line-height: 1.5; }
.dzc-history-current { border-color: rgba(130, 155, 255, .46); background: rgba(74, 92, 245, .16); }

/* ---------- chat history drawer ---------- */
.dzc-drawer { position: absolute; inset: 0; z-index: 12; display: flex; overflow: hidden; }
.dzc-drawer.dzc-hidden { display: none; }
.dzc-drawer-backdrop { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: default; background: rgba(2, 5, 20, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: dzc-fade-in .18s ease both; }
.dzc-drawer-panel { position: relative; z-index: 1; width: min(330px, 86%); height: 100%; display: flex; flex-direction: column; padding: 12px; color: var(--dzc-fg); background: linear-gradient(180deg, rgba(15, 23, 68, .99), rgba(6, 10, 32, .99)); border-right: 1px solid rgba(120, 160, 255, .24); box-shadow: 24px 0 60px rgba(0, 0, 0, .5), inset -1px 0 rgba(255, 255, 255, .03); animation: dzc-drawer-in .24s cubic-bezier(.2, .8, .3, 1) both; }
.dzc-drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; margin-bottom: 8px; padding: 0 2px 8px 6px; border-bottom: 1px solid rgba(120, 160, 255, .12); }
.dzc-drawer-title { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.dzc-drawer-close { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(120, 160, 255, .14); border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, .05); color: var(--dzc-muted); }
.dzc-drawer-close:hover { background: rgba(255, 255, 255, .11); color: #fff; }
.dzc-drawer-close svg { width: 16px; height: 16px; fill: currentColor; }
.dzc-drawer-new-chat { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(130, 155, 255, .32); border-radius: 12px; cursor: pointer; background: rgba(74, 92, 245, .16); color: #eef1ff; font-family: inherit; font-size: 13.5px; font-weight: 650; text-align: left; transition: background .15s, border-color .15s, transform .1s; }
.dzc-drawer-new-chat:hover { background: rgba(74, 92, 245, .28); border-color: rgba(140, 165, 255, .58); }
.dzc-drawer-new-chat:active { transform: translateY(1px); }
.dzc-drawer-new-chat svg { width: 19px; height: 19px; fill: currentColor; }
.dzc-drawer-history { min-height: 0; flex: 1 1 auto; margin-top: 14px; overflow: hidden; }
.dzc-drawer-history .dzc-history { height: 100%; display: flex; flex-direction: column; padding: 0; border: 0; background: transparent; box-shadow: none; }
.dzc-drawer-history .dzc-history-heading { padding: 0 4px 8px; }
.dzc-drawer-history .dzc-history-list { max-height: none; min-height: 0; flex: 1 1 auto; padding-right: 2px; }
@keyframes dzc-drawer-in { from { transform: translateX(-105%); } to { transform: translateX(0); } }
@keyframes dzc-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- onboarding ---------- */
/* Ample, consistent spacing between questions; "Continue" pins to the bottom. */
.dzc-onboarding { flex: 1 1 auto; padding: 10px 2px 4px; display: flex; flex-direction: column; gap: 24px; }
.dzc-q { display: flex; flex-direction: column; gap: 8px; }
.dzc-q-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(150, 172, 255, .55); }
.dzc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.dzc-opts-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dzc-opts-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dzc-opts-grid2 .dzc-opt, .dzc-opts-grid3 .dzc-opt { text-align: center; padding: 13px 10px; }
.dzc-opt {
	border: 1px solid rgba(120, 160, 255, .15);
	background: rgba(255, 255, 255, .06);
	color: rgba(165, 185, 255, .78);
	padding: 9px 14px;
	border-radius: 12px;
	cursor: pointer;
	font-size: 13.5px;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.2;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: border-color .15s, background .15s, color .15s, transform .1s, box-shadow .15s;
}
.dzc-opt:hover { border-color: rgba(120, 160, 255, .4); color: #cdd8ff; }
/* Selected = a quieter tinted highlight, distinct from the primary button. */
.dzc-opt.dzc-on { background: rgba(74, 92, 245, .3); color: #fff; border-color: rgba(140, 160, 255, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }

.dzc-age-row { display: flex; gap: 8px; align-items: stretch; }
.dzc-number-field { position: relative; flex: 1; min-width: 0; }
.dzc-age-row input {
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 11px 48px 11px 14px !important;
	border: 1px solid rgba(120, 160, 255, .18);
	border-radius: 12px;
	font-size: 14px;
	font-family: inherit;
	background: rgba(255, 255, 255, .05);
	color: var(--dzc-fg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: border-color .15s, box-shadow .15s;
	-moz-appearance: textfield;
	appearance: textfield;
	color-scheme: dark;
}
.dzc-age-row input::-webkit-inner-spin-button,
.dzc-age-row input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; appearance: none; }
.dzc-number-controls { position: absolute; z-index: 1; top: 1px; right: 1px; bottom: 1px; width: 36px; display: grid; grid-template-rows: 1fr 1fr; overflow: hidden; border-left: 1px solid rgba(120, 160, 255, .18); border-radius: 0 11px 11px 0; background: rgba(74, 92, 245, .13); }
.dzc-number-controls button { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0; border: 0; background: transparent; color: rgba(180, 200, 255, .78); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; }
.dzc-number-controls button + button { border-top: 1px solid rgba(120, 160, 255, .18); }
.dzc-number-controls button:hover { background: rgba(74, 92, 245, .34); color: #fff; }
.dzc-number-controls button:focus-visible { outline: 2px solid rgba(140, 165, 255, .8); outline-offset: -2px; }
.dzc-age-row input::placeholder { color: rgba(160, 185, 255, .4); }
.dzc-age-row input:focus { outline: none; border-color: rgba(120, 160, 255, .5); box-shadow: 0 0 0 3px var(--dzc-accent-ring); }
.dzc-age-row input.dzc-invalid { border-color: var(--dzc-danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.dzc-field-err { font-size: 12px; color: var(--dzc-danger); margin-top: 1px; }
.dzc-seg { display: inline-flex; border: 1px solid rgba(120, 160, 255, .18); border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: rgba(255, 255, 255, .04); }
.dzc-seg button { border: none; background: transparent; color: rgba(160, 185, 255, .6); padding: 10px 15px; cursor: pointer; font-size: 13.5px; font-family: inherit; font-weight: 500; transition: background .15s, color .15s; }
.dzc-seg button + button { border-left: 1px solid rgba(120, 160, 255, .18); }
.dzc-seg button.dzc-on { background: rgba(74, 92, 245, .32); color: #fff; box-shadow: inset 0 0 0 1px rgba(140, 160, 255, .45); }

.dzc-primary {
	margin-top: auto;
	background: var(--dzc-grad-soft);
	color: #fff;
	border: 1px solid rgba(160, 185, 255, .3);
	padding: 13px;
	border-radius: 14px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	letter-spacing: .02em;
	box-shadow: 0 10px 24px rgba(74, 92, 245, .4), inset 0 1px 0 rgba(255, 255, 255, .15);
	transition: transform .15s, box-shadow .15s, filter .15s;
}
.dzc-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 32px rgba(74, 92, 245, .55), inset 0 1px 0 rgba(255, 255, 255, .2); }

/* ---------- action buttons / chips ---------- */
.dzc-actions { display: flex; flex-wrap: wrap; gap: 8px; animation: dzc-rise .3s ease both; }
.dzc-body > .dzc-actions { margin-left: 34px; }
.dzc-action-btn {
	border: 1px solid rgba(120, 160, 255, .3);
	border-radius: 999px;
	padding: 10px 16px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: #c6d2ff;
	background: rgba(255, 255, 255, .06);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: color .15s, background .15s, transform .12s, box-shadow .15s;
}
.dzc-action-btn:hover { color: #fff; background: var(--dzc-grad); border-color: transparent; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(74, 92, 245, .4); }
.dzc-action-btn.dzc-secondary { color: var(--dzc-muted); background: rgba(255, 255, 255, .04); border-color: rgba(160, 175, 210, .25); }
.dzc-action-btn.dzc-secondary:hover { color: #fff; background: linear-gradient(135deg, #64748b, #475569); border-color: transparent; }
.dzc-chip { background: rgba(255, 255, 255, .06); color: #cdd8ff; border: 1px solid rgba(120, 160, 255, .18); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-family: inherit; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, border-color .15s; }
.dzc-chip:hover { background: rgba(74, 92, 245, .22); border-color: rgba(120, 160, 255, .4); }

/* ---------- emergency / urgent ---------- */
.dzc-emergency { align-self: stretch; border-radius: 16px; padding: 15px; border: 1px solid; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: dzc-rise .3s ease both; }
.dzc-emergency.dzc-level-emergency { background: var(--dzc-danger-bg); border-color: rgba(255, 120, 120, .4); }
.dzc-emergency.dzc-level-urgent { background: var(--dzc-warn-bg); border-color: rgba(255, 200, 120, .4); }
.dzc-em-title { font-weight: 700; margin-bottom: 4px; }
.dzc-level-emergency .dzc-em-title { color: var(--dzc-danger); }
.dzc-level-urgent .dzc-em-title { color: var(--dzc-warn); }
.dzc-em-body { font-size: 14px; margin-bottom: 11px; color: #eef1ff; }
.dzc-call-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dzc-call-btns a { display: inline-flex; align-items: center; gap: 6px; background: var(--dzc-danger-solid); color: #fff; text-decoration: none; padding: 10px 15px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: 0 6px 16px rgba(220, 38, 38, .4); }
.dzc-level-urgent .dzc-call-btns a { background: var(--dzc-warn-solid); box-shadow: 0 6px 16px rgba(180, 83, 9, .4); }

/* ---------- confirmation ---------- */
.dzc-confirm { align-self: stretch; background: rgba(16, 185, 129, .14); border: 1px solid rgba(110, 231, 183, .35); border-radius: 16px; padding: 15px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: dzc-rise .3s ease both; }
.dzc-cf-title { font-weight: 700; color: var(--dzc-ok); margin-bottom: 8px; }
.dzc-confirm dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14px; }
.dzc-confirm dt { color: var(--dzc-muted); }
.dzc-confirm dd { margin: 0; font-weight: 600; color: var(--dzc-fg); white-space: pre-line; }
.dzc-confirm a { color: #b8c9ff; text-decoration: underline; text-decoration-color: rgba(184, 201, 255, .45); text-underline-offset: 2px; }
.dzc-confirm a:hover { color: #fff; text-decoration-color: currentColor; }
.dzc-cf-phones { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dzc-cf-map { display: inline-block; }

/* ---------- composer (input pill + separate mic & send circles) ---------- */
.dzc-composer { padding: 12px 14px 14px; background: rgba(5, 8, 22, .5); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid rgba(120, 160, 255, .12); flex: 0 0 auto; }
.dzc-composer-row { display: flex; align-items: flex-end; gap: 10px; }
.dzc-inputwrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-end; gap: 8px; background: rgba(14, 22, 65, .6); border: 1px solid rgba(120, 160, 255, .2); border-radius: 24px; padding: 9px 16px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); transition: border-color .15s, box-shadow .15s, background .15s; }
.dzc-inputwrap:focus-within { background: rgba(20, 30, 90, .7); border-color: rgba(120, 160, 255, .45); box-shadow: 0 0 0 3px var(--dzc-accent-ring), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dzc-composer textarea {
	flex: 1;
	min-width: 0;
	resize: none;
	border: none;
	outline: none;
	background: transparent;
	padding: 0 !important;
	margin: 0;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.5;
	max-height: 120px;
	overflow-y: hidden;
	color: #dde4ff;
	caret-color: #7090ff;
	-webkit-appearance: none;
	appearance: none;
}
.dzc-composer textarea::placeholder { color: rgba(160, 185, 255, .55); }
.dzc-mic, .dzc-send { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dzc-mic { border: 1px solid rgba(120, 160, 255, .2); background: rgba(255, 255, 255, .06); color: rgba(160, 185, 255, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); transition: background .12s, color .12s, border-color .12s; }
.dzc-mic:hover { background: rgba(74, 92, 245, .2); border-color: rgba(120, 160, 255, .4); color: #b4cdff; }
.dzc-mic svg { width: 18px; height: 18px; fill: currentColor; }
.dzc-mic:disabled { opacity: .4; cursor: not-allowed; }
.dzc-mic.dzc-recording { background: var(--dzc-danger-solid); border-color: transparent; color: #fff; animation: dzc-recpulse 1.4s ease-in-out infinite; }
@keyframes dzc-recpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); } 70% { box-shadow: 0 0 0 9px rgba(220, 38, 38, 0); } }
.dzc-send { border: 1px solid rgba(120, 160, 255, .3); background: var(--dzc-grad); box-shadow: 0 4px 16px rgba(74, 92, 245, .5), inset 0 1px 0 rgba(255, 255, 255, .15); transition: transform .12s, filter .12s; }
.dzc-send:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.08); }
.dzc-send svg { width: 18px; height: 18px; fill: #fff; }
.dzc-send:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.dzc-send.dzc-busy { pointer-events: none; cursor: default; }
.dzc-send.dzc-busy:hover { transform: none; filter: none; }
.dzc-send.dzc-busy svg { display: none; }
.dzc-send.dzc-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: dzc-spin .7s linear infinite; }
.dzc-composer.dzc-locked .dzc-inputwrap { opacity: .55; }
.dzc-composer.dzc-locked textarea { pointer-events: none; }

/* ---------- waveform bars (welcome pill + composer) ---------- */
.dzc-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; flex: 0 0 auto; }
.dzc-wave span { width: 3px; min-height: 3px; border-radius: 999px; background: rgba(160, 185, 255, .5); transform-origin: bottom; animation: dzc-wave 1.2s ease-in-out infinite; }
@keyframes dzc-wave { 0%, 100% { transform: scaleY(1); opacity: .55; } 50% { transform: scaleY(.4); opacity: .3; } }

.dzc-closed-banner { padding: 11px 12px; text-align: center; font-size: 13px; color: var(--dzc-muted); background: rgba(20, 26, 48, .6); border-top: 1px solid var(--dzc-border); flex: 0 0 auto; }

/* rate-limit countdown notice (shown above the composer input) */
.dzc-ratelimit { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; text-align: center; font-size: 12.5px; color: var(--dzc-warn); background: var(--dzc-warn-bg); border: 1px solid rgba(255, 200, 120, .3); }

/* dictation feedback notice (mic errors / "didn't catch that") */
.dzc-composer-notice { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; text-align: center; font-size: 12.5px; color: var(--dzc-muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--dzc-border); }

/* mic: spinner while transcribing the recorded clip */
.dzc-mic.dzc-transcribing { pointer-events: none; }
.dzc-mic.dzc-transcribing svg { display: none; }
.dzc-mic.dzc-transcribing::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(160, 185, 255, .4); border-top-color: #b4cdff; animation: dzc-spin .7s linear infinite; }

/* ---------- booking iframe overlay ---------- */
.dzc-booking-overlay { position: absolute; inset: 0; background: rgba(6, 10, 30, .55); display: flex; flex-direction: column; z-index: 5; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dzc-booking-overlay.dzc-hidden { display: none; }
.dzc-booking-bar { background: var(--dzc-grad); color: #fff; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.dzc-booking-bar button { background: rgba(255, 255, 255, .22); border: none; color: #fff; border-radius: 9px; padding: 6px 12px; cursor: pointer; }
.dzc-booking-bar button:hover { background: rgba(255, 255, 255, .34); }
.dzc-booking-overlay iframe { flex: 1; width: 100%; border: none; background: #fff; }

/* ---------- mobile ---------- */
@media (max-width: 600px) {
	/* Give the widget a viewport-sized containing block. Using inset edges instead
	   of 100vw prevents the narrow strip seen on some iOS/WebKit layouts. */
	#dzc-chat-root {
		inset: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		pointer-events: none;
	}
	.dzc-panel,
	.dzc-panel.dzc-welcome-mode {
		top: var(--dzc-viewport-top, 0px);
		bottom: auto;
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
		height: var(--dzc-viewport-height, 100vh);
		height: var(--dzc-viewport-height, 100dvh);
		max-height: none;
		border-width: 0;
		border-radius: 0;
		transform-origin: center bottom;
	}
	.dzc-panel.dzc-open,
	.dzc-launcher { pointer-events: auto; }
	.dzc-launcher {
		bottom: max(16px, env(safe-area-inset-bottom));
		right: max(16px, env(safe-area-inset-right));
	}

	.dzc-header {
		padding-top: max(11px, env(safe-area-inset-top));
		padding-right: max(12px, env(safe-area-inset-right));
		padding-left: max(12px, env(safe-area-inset-left));
	}
	.dzc-body {
		min-width: 0;
		padding-right: max(14px, env(safe-area-inset-right));
		padding-left: max(14px, env(safe-area-inset-left));
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
	.dzc-composer {
		padding-right: max(12px, env(safe-area-inset-right));
		padding-bottom: max(12px, env(safe-area-inset-bottom));
		padding-left: max(12px, env(safe-area-inset-left));
	}
	/* iOS Safari zooms the page when a focused form control is below 16px.
	   Keep text-entry controls at the threshold so the close button and the rest
	   of the full-screen dialog remain in view when the keyboard opens. */
	#dzc-chat-root input,
	#dzc-chat-root textarea,
	#dzc-chat-root select { font-size: 16px !important; }

	.dzc-welcome-mode .dzc-body { padding: 0; }
	.dzc-welcome {
		width: 100%;
		padding-top: max(14px, env(safe-area-inset-top));
		padding-right: max(16px, env(safe-area-inset-right));
		padding-bottom: max(16px, env(safe-area-inset-bottom));
		padding-left: max(16px, env(safe-area-inset-left));
	}
	.dzc-welcome-close, .dzc-welcome-menu {
		top: max(8px, env(safe-area-inset-top));
		width: 40px;
		height: 40px;
	}
	.dzc-welcome-close { right: max(8px, env(safe-area-inset-right)); }
	.dzc-welcome-menu { left: max(8px, env(safe-area-inset-left)); }
	.dzc-drawer-panel {
		width: min(340px, 88%);
		padding-top: max(12px, env(safe-area-inset-top));
		padding-bottom: max(12px, env(safe-area-inset-bottom));
		padding-left: max(12px, env(safe-area-inset-left));
	}
	.dzc-welcome-main { gap: clamp(10px, 2.5dvh, 18px); }
	.dzc-welcome-orb canvas {
		width: clamp(150px, 25dvh, 200px);
		height: auto;
		max-width: 56vw;
	}
	.dzc-welcome-card {
		width: min(100%, 360px);
		padding: 16px clamp(18px, 7vw, 28px);
	}
	.dzc-welcome-start {
		width: min(100%, 360px);
		min-height: 46px;
		margin-inline: auto;
	}

	.dzc-opts-grid2 .dzc-opt,
	.dzc-opts-grid3 .dzc-opt { min-width: 0; }
	.dzc-msg { max-width: 86%; }
	.dzc-feedback-modal { padding: 14px; }
}

@media (max-width: 359px) {
	.dzc-header { gap: 8px; }
	.dzc-head-badge { width: 42px; height: 42px; }
	.dzc-head-logo { width: 31px; height: 31px; }
	.dzc-composer-row { gap: 7px; }
	.dzc-composer .dzc-wave { display: none; }
	.dzc-mic, .dzc-send { width: 38px; height: 38px; }
	.dzc-inputwrap { padding-right: 13px; padding-left: 13px; }
	.dzc-age-row { flex-direction: column; }
	.dzc-seg { align-self: stretch; }
	.dzc-seg button { flex: 1; }
}

/* Keep every welcome action reachable on short phones and in landscape. */
@media (max-width: 600px) and (max-height: 620px) {
	.dzc-welcome { padding-top: max(8px, env(safe-area-inset-top)); }
	.dzc-welcome-main { gap: 8px; }
	.dzc-welcome-orb canvas { width: clamp(110px, 23dvh, 145px); }
	.dzc-welcome-card { gap: 3px; padding-top: 11px; padding-bottom: 11px; }
	.dzc-welcome-title { font-size: 21px; }
	.dzc-welcome-powered { margin-top: 0; }
	.dzc-welcome-start { min-height: 42px; padding-top: 9px; padding-bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
	.dzc-panel, .dzc-launcher, .dzc-orb, .dzc-orb::after, .dzc-orb-hero, .dzc-row, .dzc-typing-dots span, .dzc-typing-word, .dzc-hero, .dzc-actions, .dzc-emergency, .dzc-confirm, .dzc-disclaimer, .dzc-mic.dzc-recording { animation: none !important; transition: none !important; }
}