/**
 * FixMyCar AI — Customer diagnostic chat stylesheet (B7, redesigned B9 / AI-PATCH-2)
 *
 * Body-only Perplexity-style "answer engine" redesign of the [fixmycar_chat]
 * shortcode. Hand-written, mobile-first, no Tailwind dependency. Class prefix:
 * `fmc-dc-` (diagnose chat). Scope is the `.fmc-dc` root, so nothing here
 * leaks into the host WordPress theme.
 */

/* ============================================================
   1. Tokens
   ============================================================ */
.fmc-dc {
	/* Ink (warm-grey/navy scale) */
	--fmc-dc-ink-50:  #f8fafc;
	--fmc-dc-ink-100: #f1f5f9;
	--fmc-dc-ink-200: #e6e7eb;
	--fmc-dc-ink-300: #cdd0d7;
	--fmc-dc-ink-400: #94a0b1;
	--fmc-dc-ink-500: #64748b;
	--fmc-dc-ink-600: #475569;
	--fmc-dc-ink-700: #334155;
	--fmc-dc-ink-800: #1e293b;
	--fmc-dc-ink-900: #0f172a;

	/* Ember accent — used sparingly, primary CTA only */
	--fmc-dc-ember-50:  #fff5ec;
	--fmc-dc-ember-300: #fdba74;
	--fmc-dc-ember-500: #f97316;
	--fmc-dc-ember-600: #ea580c;
	--fmc-dc-ember-700: #c2410c;

	/* Severity signals */
	--fmc-dc-moss-50:    #f0fdf4;
	--fmc-dc-moss-500:   #16a34a;
	--fmc-dc-moss-700:   #15803d;
	--fmc-dc-saffron-50: #fefce8;
	--fmc-dc-saffron-500:#eab308;
	--fmc-dc-saffron-700:#a16207;
	--fmc-dc-ruby-50:    #fef2f2;
	--fmc-dc-ruby-100:   #fee2e2;
	--fmc-dc-ruby-500:   #dc2626;
	--fmc-dc-ruby-700:   #b91c1c;
	--fmc-dc-ruby-900:   #7f1d1d;

	/* Surfaces */
	--fmc-dc-canvas:   #fafaf9;
	--fmc-dc-surface:  #ffffff;
	--fmc-dc-stone-50: #fafaf9;

	/* Shadows */
	--fmc-dc-shadow-card:  0 1px 0 rgba(15,23,42,.03), 0 1px 2px rgba(15,23,42,.04);
	--fmc-dc-shadow-lift:  0 6px 24px -6px rgba(15,23,42,.12), 0 2px 6px rgba(15,23,42,.04);
	--fmc-dc-shadow-input: 0 1px 2px rgba(15,23,42,.05), inset 0 0 0 1px rgba(15,23,42,.06);

	/* Radii */
	--fmc-dc-radius-sm: 6px;
	--fmc-dc-radius-md: 10px;
	--fmc-dc-radius-lg: 16px;
	--fmc-dc-radius-xl: 20px;

	/* Type stacks */
	--fmc-dc-font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--fmc-dc-font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--fmc-dc-font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============================================================
   2. Root + utilities
   ============================================================ */
.fmc-dc,
.fmc-dc * {
	box-sizing: border-box;
}

.fmc-dc {
	font-family: var(--fmc-dc-font-sans);
	color: var(--fmc-dc-ink-900);
	background: var(--fmc-dc-canvas);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: 'cv11', 'ss01';
	line-height: 1.55;

	/* Break out of the host theme's constrained .entry-content column so the
	   diagnose page reads as a full-bleed canvas. The `alignfull` class on
	   the section (chat-container.php) handles modern block themes; the
	   100vw + calc(50% - 50vw) margin trick handles every other theme. The
	   pair work together — whichever the theme honours wins. overflow-x is
	   the safety net against scrollbar-width rounding causing a horizontal
	   scroll. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 100vh;
	min-height: 100dvh; /* dvh is more accurate on mobile (excludes browser chrome) */
	overflow-x: hidden;

	display: flex;
	flex-direction: column;
}

.fmc-dc [x-cloak] { display: none !important; }

.fmc-dc-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fmc-dc-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	background: var(--fmc-dc-ink-900);
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	z-index: 50;
}
.fmc-dc-skip:focus { left: 16px; }

.fmc-dc :focus-visible {
	outline: 2px solid var(--fmc-dc-ink-800);
	outline-offset: 2px;
	border-radius: 8px;
}

.fmc-dc-eyebrow {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--fmc-dc-ink-500);
}
.fmc-dc-eyebrow-ink { color: var(--fmc-dc-ink-700); }

.fmc-dc-icon {
	width: 14px; height: 14px;
	flex-shrink: 0;
}
.fmc-dc-icon-moss   { color: var(--fmc-dc-moss-500); }
.fmc-dc-icon-muted  { color: var(--fmc-dc-ink-400); }

.fmc-dc-brand-dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--fmc-dc-moss-500);
	display: inline-block;
}
.fmc-dc-brand-dot-pulse { animation: fmc-dc-pulse 2.2s ease-in-out infinite; }

@keyframes fmc-dc-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.55; }
}

.fmc-dc-kbd {
	display: inline-block;
	font-family: var(--fmc-dc-font-mono);
	font-size: 11px;
	background: var(--fmc-dc-ink-100);
	border: 1px solid var(--fmc-dc-ink-200);
	border-radius: 4px;
	padding: 1px 6px;
	color: var(--fmc-dc-ink-700);
}

/* ============================================================
   3. Welcome state
   ============================================================ */
.fmc-dc-welcome {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	padding: 24px 16px 64px;
	/* Full-bleed ember + ink glow — sits behind the centred content column. */
	background:
		radial-gradient(60% 60% at 50% 0%, rgba(249,115,22,0.08), transparent 70%),
		radial-gradient(40% 40% at 80% 30%, rgba(15,23,42,0.04), transparent 70%);
}
.fmc-dc-welcome > * {
	width: 100%;
	max-width: 760px;
}
.fmc-dc-welcome > .fmc-dc-hero {
	max-width: 600px;
}
@media (min-width: 640px) {
	.fmc-dc-welcome { padding: 56px 24px 96px; }
}

.fmc-dc-hero {
	text-align: center;
	width: 100%;
	max-width: 600px;
}

.fmc-dc-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--fmc-dc-ink-200);
	background: var(--fmc-dc-surface);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 500;
	color: var(--fmc-dc-ink-600);
	box-shadow: var(--fmc-dc-shadow-card);
}

.fmc-dc-headline {
	font-family: var(--fmc-dc-font-serif);
	font-size: 34px;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--fmc-dc-ink-900);
	margin: 24px 0 0;
	text-wrap: balance;
	font-weight: 500;
}
@media (min-width: 640px) { .fmc-dc-headline { font-size: 44px; } }
@media (min-width: 768px) { .fmc-dc-headline { font-size: 52px; } }

.fmc-dc-subhead {
	font-size: 15px;
	line-height: 1.55;
	color: var(--fmc-dc-ink-500);
	margin: 16px auto 0;
	max-width: 520px;
}
@media (min-width: 640px) { .fmc-dc-subhead { font-size: 17px; } }

/* ============================================================
   4. Composer — shared base + hero/dock variants
   ============================================================ */
.fmc-dc-composer {
	background: var(--fmc-dc-surface);
	border-radius: var(--fmc-dc-radius-xl);
	box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 0 0 1px var(--fmc-dc-ink-200);
	transition: box-shadow .15s ease;
	padding: 12px;
}
.fmc-dc-composer:focus-within {
	box-shadow:
		0 1px 2px rgba(15,23,42,.06),
		0 0 0 1px var(--fmc-dc-ink-900),
		0 8px 28px -10px rgba(15,23,42,.18);
}
@media (min-width: 640px) { .fmc-dc-composer { padding: 16px; } }

.fmc-dc-composer-hero {
	margin: 32px 0 0;
	width: 100%;
}

.fmc-dc-composer-input {
	width: 100%;
	resize: none;
	background: transparent;
	border: 0;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.55;
	color: var(--fmc-dc-ink-900);
	padding: 4px 8px;
}
.fmc-dc-composer-input:focus { outline: none; }
.fmc-dc-composer-input::placeholder { color: var(--fmc-dc-ink-400); }
.fmc-dc-composer-input:disabled { cursor: not-allowed; opacity: 0.65; }

.fmc-dc-composer-input-hero { font-size: 17px; min-height: 84px; }

.fmc-dc-composer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--fmc-dc-ink-100);
}

.fmc-dc-composer-privacy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--fmc-dc-ink-400);
}

.fmc-dc-composer-spacer { flex: 1 1 auto; }

.fmc-dc-composer-count {
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	color: var(--fmc-dc-ink-400);
}

/* Buttons */
.fmc-dc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	min-height: 40px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.fmc-dc-button-primary {
	background: var(--fmc-dc-ember-500);
	color: #fff;
}
.fmc-dc-button-primary:hover:not(:disabled) { background: var(--fmc-dc-ember-600); }
.fmc-dc-button-primary:disabled {
	background: var(--fmc-dc-ink-100);
	color: var(--fmc-dc-ink-400);
	cursor: not-allowed;
}
.fmc-dc-button-ghost {
	background: var(--fmc-dc-surface);
	color: var(--fmc-dc-ink-700);
	border: 1px solid var(--fmc-dc-ink-200);
	padding: 8px 14px;
	min-height: 36px;
	font-size: 13px;
}
.fmc-dc-button-ghost:hover { background: var(--fmc-dc-ink-50); border-color: var(--fmc-dc-ink-300); }
.fmc-dc-button .fmc-dc-icon { width: 16px; height: 16px; }

.fmc-dc-shortcut-hint {
	text-align: center;
	font-size: 12px;
	color: var(--fmc-dc-ink-400);
	margin: 12px 0 0;
}

/* ============================================================
   5. Suggestion grid (welcome)
   ============================================================ */
.fmc-dc-suggestions { width: 100%; margin: 40px 0 0; }

.fmc-dc-suggestions .fmc-dc-eyebrow { text-align: center; display: block; margin-bottom: 16px; }

.fmc-dc-suggestion-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
@media (min-width: 640px) {
	.fmc-dc-suggestion-grid { grid-template-columns: 1fr 1fr; }
}

.fmc-dc-suggestion {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	width: 100%;
	text-align: left;
	background: var(--fmc-dc-surface);
	border: 1px solid var(--fmc-dc-ink-200);
	border-radius: var(--fmc-dc-radius-md);
	padding: 16px;
	cursor: pointer;
	font-family: inherit;
	color: var(--fmc-dc-ink-900);
	transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.fmc-dc-suggestion:hover {
	border-color: var(--fmc-dc-ink-300);
	background: var(--fmc-dc-ink-50);
}

.fmc-dc-suggestion-icon {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 8px;
	flex-shrink: 0;
}
.fmc-dc-suggestion-icon svg { width: 16px; height: 16px; }

/* Tone variants — colour the icon swatch only, keep card neutral */
.fmc-dc-suggestion-ruby    .fmc-dc-suggestion-icon { background: var(--fmc-dc-ruby-50);    color: var(--fmc-dc-ruby-700); }
.fmc-dc-suggestion-ember   .fmc-dc-suggestion-icon { background: var(--fmc-dc-ember-50);   color: var(--fmc-dc-ember-700); }
.fmc-dc-suggestion-saffron .fmc-dc-suggestion-icon { background: var(--fmc-dc-saffron-50); color: var(--fmc-dc-saffron-700); }
.fmc-dc-suggestion-ink     .fmc-dc-suggestion-icon { background: var(--fmc-dc-ink-100);    color: var(--fmc-dc-ink-700); }

.fmc-dc-suggestion-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fmc-dc-suggestion-title    { font-size: 14.5px; font-weight: 600; color: var(--fmc-dc-ink-900); }
.fmc-dc-suggestion-subtitle { font-size: 13px; color: var(--fmc-dc-ink-500); line-height: 1.45; }

/* ============================================================
   6. Trust strip
   ============================================================ */
.fmc-dc-trust {
	width: 100%;
	margin: 48px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--fmc-dc-ink-200);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 32px;
	font-size: 12.5px;
	color: var(--fmc-dc-ink-500);
}
.fmc-dc-trust-item { display: inline-flex; align-items: center; gap: 8px; }
.fmc-dc-trust-item .fmc-dc-icon { width: 16px; height: 16px; }

/* ============================================================
   7. Conversation state
   ============================================================ */
.fmc-dc-convo {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.fmc-dc-topbar {
	border-bottom: 1px solid var(--fmc-dc-ink-200);
	background: rgba(255,255,255,0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.fmc-dc-topbar-left,
.fmc-dc-topbar > div {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 16px;
	height: 48px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--fmc-dc-ink-500);
}
@media (min-width: 640px) { .fmc-dc-topbar > div { padding: 0 24px; } }
.fmc-dc-topbar-name { font-weight: 500; color: var(--fmc-dc-ink-700); }

.fmc-dc-thread-wrap {
	max-width: 760px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 16px 168px;
}
@media (min-width: 640px) { .fmc-dc-thread-wrap { padding: 40px 24px 200px; } }

/* ============================================================
   8. Turns — serif Q + prose A
   ============================================================ */
.fmc-dc-thread { display: flex; flex-direction: column; gap: 0; }

.fmc-dc-turn { margin: 0; padding: 0; border: 0; }
.fmc-dc-turn + .fmc-dc-turn { margin-top: 32px; }

/* User turn — serif question heading */
.fmc-dc-turn-user-body { display: flex; flex-direction: column; gap: 6px; }
.fmc-dc-question {
	font-family: var(--fmc-dc-font-serif);
	font-size: 24px;
	line-height: 1.3;
	letter-spacing: -0.005em;
	color: var(--fmc-dc-ink-900);
	margin: 0;
	font-weight: 500;
	text-wrap: balance;
}
@media (min-width: 640px) { .fmc-dc-question { font-size: 28px; } }

/* Spacing between consecutive turns is tighter when an assistant follows a user message */
.fmc-dc-turn-user + .fmc-dc-turn-assistant { margin-top: 20px; }

/* Assistant turn — avatar + prose */
.fmc-dc-turn-assistant-body { display: flex; flex-direction: column; gap: 12px; }

.fmc-dc-answer-head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fmc-dc-avatar {
	display: inline-grid;
	place-items: center;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: var(--fmc-dc-ink-900);
	color: #fff;
	flex-shrink: 0;
}
.fmc-dc-avatar svg { width: 14px; height: 14px; }

.fmc-dc-answer { display: block; }
.fmc-dc-answer-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--fmc-dc-ink-800);
	white-space: pre-wrap;
	word-wrap: break-word;
}
@media (min-width: 640px) { .fmc-dc-answer-text { font-size: 16.5px; } }

/* ============================================================
   9. Typing indicator
   ============================================================ */
.fmc-dc-typing {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	font-size: 13.5px;
	color: var(--fmc-dc-ink-500);
}
.fmc-dc-typing-dots { display: inline-flex; gap: 4px; }
.fmc-dc-typing-dot {
	display: inline-block;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--fmc-dc-ink-600);
	animation: fmc-dc-blink 1.3s infinite;
}
.fmc-dc-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.fmc-dc-typing-dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes fmc-dc-blink {
	0%, 80%, 100% { opacity: 0.15; }
	40%           { opacity: 1; }
}

/* ============================================================
   10. Follow-up chips
   ============================================================ */
.fmc-dc-followups {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--fmc-dc-ink-200);
}
.fmc-dc-followups .fmc-dc-eyebrow { display: block; margin-bottom: 12px; }

.fmc-dc-followups-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}
@media (min-width: 640px) {
	.fmc-dc-followups-grid { grid-template-columns: 1fr 1fr; }
}

.fmc-dc-followup {
	text-align: left;
	background: var(--fmc-dc-surface);
	border: 1px solid var(--fmc-dc-ink-200);
	border-radius: 12px;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 14px;
	color: var(--fmc-dc-ink-800);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.fmc-dc-followup:hover {
	border-color: var(--fmc-dc-ink-300);
	background: var(--fmc-dc-ink-50);
}

/* ============================================================
   11. Status (slow / retry)
   ============================================================ */
.fmc-dc-status { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.fmc-dc-status-slow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 14px;
	background: var(--fmc-dc-saffron-50);
	border: 1px solid color-mix(in srgb, var(--fmc-dc-saffron-500) 30%, transparent);
	border-radius: var(--fmc-dc-radius-md);
	font-size: 13.5px;
	color: var(--fmc-dc-saffron-700);
}
.fmc-dc-status-icon { display: inline-grid; place-items: center; color: currentColor; }
.fmc-dc-status-icon svg { width: 16px; height: 16px; }

.fmc-dc-status-retry {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: var(--fmc-dc-ink-50);
	border: 1px solid var(--fmc-dc-ink-200);
	border-radius: var(--fmc-dc-radius-md);
}
.fmc-dc-status-retry-text { font-size: 13.5px; color: var(--fmc-dc-ink-700); flex: 1 1 auto; }

/* ============================================================
   12. Terminal cards (lead_confirmed / escalated / unmatched / error)
   ============================================================ */
.fmc-dc-terminal {
	display: flex;
	gap: 14px;
	margin-top: 24px;
	padding: 18px;
	border-radius: var(--fmc-dc-radius-lg);
	border: 1px solid var(--fmc-dc-ink-200);
	background: var(--fmc-dc-surface);
	box-shadow: var(--fmc-dc-shadow-card);
}
.fmc-dc-terminal-icon {
	width: 36px; height: 36px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.fmc-dc-terminal-icon svg { width: 18px; height: 18px; }

.fmc-dc-terminal-body { min-width: 0; flex: 1 1 auto; }
.fmc-dc-terminal-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--fmc-dc-ink-900);
	line-height: 1.4;
}
.fmc-dc-terminal-ref { margin: 8px 0 0; font-size: 14px; color: var(--fmc-dc-ink-600); }
.fmc-dc-terminal-ref-code {
	font-family: var(--fmc-dc-font-mono);
	font-variant-numeric: tabular-nums;
	color: var(--fmc-dc-ink-900);
	font-weight: 600;
}
.fmc-dc-terminal-note { margin: 8px 0 0; font-size: 13.5px; color: var(--fmc-dc-ink-500); line-height: 1.5; }
.fmc-dc-terminal-action { margin-top: 12px; }

/* Variants — colour the rail + icon only */
.fmc-dc-terminal-success {
	border-color: color-mix(in srgb, var(--fmc-dc-moss-500) 35%, var(--fmc-dc-ink-200));
	background: var(--fmc-dc-moss-50);
}
.fmc-dc-terminal-success .fmc-dc-terminal-icon { background: var(--fmc-dc-moss-500); color: #fff; }
.fmc-dc-terminal-success .fmc-dc-terminal-title { color: var(--fmc-dc-moss-700); }

.fmc-dc-terminal-escalated .fmc-dc-terminal-icon { background: var(--fmc-dc-ink-900); color: #fff; }

.fmc-dc-terminal-unmatched {
	border-color: color-mix(in srgb, var(--fmc-dc-saffron-500) 35%, var(--fmc-dc-ink-200));
	background: var(--fmc-dc-saffron-50);
}
.fmc-dc-terminal-unmatched .fmc-dc-terminal-icon { background: var(--fmc-dc-saffron-500); color: #fff; }
.fmc-dc-terminal-unmatched .fmc-dc-terminal-title { color: var(--fmc-dc-saffron-700); }

.fmc-dc-terminal-error {
	border-color: color-mix(in srgb, var(--fmc-dc-ruby-500) 35%, var(--fmc-dc-ink-200));
	background: var(--fmc-dc-ruby-50);
}
.fmc-dc-terminal-error .fmc-dc-terminal-icon { background: var(--fmc-dc-ruby-500); color: #fff; }
.fmc-dc-terminal-error .fmc-dc-terminal-title { color: var(--fmc-dc-ruby-900); }

/* ============================================================
   13. Sticky bottom composer (conversation state)
   ============================================================ */
.fmc-dc-composer-dock {
	/* Pinned to the viewport bottom so it stays above the thread on long
	   conversations — sticky won't reliably anchor here because the section's
	   scrolling parent is the WordPress page itself, which the plugin can't
	   guarantee. z-index 30 sits comfortably above theme content but below
	   typical theme nav stacks. */
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 30;
	background: rgba(250,250,249,0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-top: 1px solid var(--fmc-dc-ink-200);
	padding: 12px 16px;
}
@media (min-width: 640px) { .fmc-dc-composer-dock { padding: 16px 24px; } }

.fmc-dc-composer-dock-form {
	max-width: 760px;
	margin: 0 auto;
	padding: 8px;
	border-radius: var(--fmc-dc-radius-lg);
}
@media (min-width: 640px) { .fmc-dc-composer-dock-form { padding: 10px; } }

.fmc-dc-composer-textwrap {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.fmc-dc-composer-dock-form .fmc-dc-composer-input {
	flex: 1 1 auto;
	min-height: 40px;
	max-height: 160px;
	font-size: 15.5px;
	padding: 8px 4px;
}

.fmc-dc-composer-send {
	flex-shrink: 0;
	width: 40px; height: 40px;
	border-radius: 10px;
	border: 0;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.fmc-dc-composer-send svg { width: 16px; height: 16px; }
.fmc-dc-composer-send.is-active {
	background: var(--fmc-dc-ember-500);
	color: #fff;
}
.fmc-dc-composer-send.is-active:hover { background: var(--fmc-dc-ember-600); }
.fmc-dc-composer-send.is-idle {
	background: var(--fmc-dc-ink-100);
	color: var(--fmc-dc-ink-400);
	cursor: not-allowed;
}

.fmc-dc-composer-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 6px;
	padding: 0 4px;
	font-size: 11.5px;
	color: var(--fmc-dc-ink-400);
}
.fmc-dc-composer-meta .fmc-dc-composer-privacy { font-size: 11.5px; }
.fmc-dc-composer-meta .fmc-dc-composer-count { font-size: 11.5px; }

/* ============================================================
   14. Disabled state (whole shortcode disabled)
   ============================================================ */
.fmc-dc-disabled {
	padding: 32px 16px;
	text-align: center;
	background: var(--fmc-dc-canvas);
}
.fmc-dc-unavailable {
	color: var(--fmc-dc-ink-500);
	font-size: 15px;
	margin: 0;
}

/* ============================================================
   15. Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.fmc-dc-brand-dot-pulse,
	.fmc-dc-typing-dot { animation: none; }
	.fmc-dc *           { transition: none !important; }
}
