/* ============================================================
 * CS Agent Service — public design system
 * Light & WhatsApp-like. Soft teal accent on rounded, airy cards.
 * Teal is the single action colour; mint grounds the page.
 * Mobile-first; scales cleanly to desktop.
 * ============================================================ */

:root {
	/* Brand — variable names kept from 1.6.x; values retuned to teal */
	--csas-navy-900: #0b1220;   /* deepest ink (dark admin bars) */
	--csas-navy: #0f172a;       /* slate — headings & dark text */
	--csas-navy-700: #115e59;   /* deep teal */
	--csas-navy-600: #0f766e;   /* deep teal — links, secondary */
	--csas-gold: #14b8a6;       /* teal — primary action/accent */
	--csas-gold-600: #0f766e;   /* teal pressed/hover */
	--csas-gold-050: #d8f3ee;   /* mint tint */

	/* Neutrals */
	--csas-bg: #f0faf8;         /* mint page background */
	--csas-surface: #FFFFFF;
	--csas-ink: #0f172a;
	--csas-ink-2: #475569;
	--csas-muted: #94a3b8;
	--csas-line: #e6eceb;
	--csas-line-strong: #cdeae5;

	/* Feedback */
	--csas-amber: #b45309;
	--csas-amber-bg: #fef3c7;
	--csas-good: #047857;
	--csas-good-bg: #d1fae5;
	--csas-info: #0369a1;
	--csas-info-bg: #e0f2fe;
	--csas-danger: #b42318;

	/* Form / shape */
	--csas-radius: 20px;
	--csas-radius-sm: 14px;
	--csas-radius-pill: 999px;
	--csas-tap: 48px;

	/* Elevation — soft, low-contrast */
	--csas-sh-1: 0 1px 2px rgba(15, 118, 110, .05);
	--csas-sh-2: 0 2px 6px rgba(15, 23, 42, .04), 0 18px 40px -20px rgba(15, 118, 110, .22);
	--csas-sh-3: 0 10px 24px -8px rgba(15, 118, 110, .22), 0 28px 56px -18px rgba(15, 23, 42, .2);

	--csas-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--csas-maxw: 1120px;
}

* { box-sizing: border-box; }

.csas-body {
	margin: 0;
	font-family: var(--csas-font);
	color: var(--csas-ink);
	background: var(--csas-bg);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* Sticky footer: keep the footer at the bottom even on short pages. */
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
.csas-body > .csas-main { flex: 1 0 auto; }
.csas-body > .csas-footer { flex-shrink: 0; margin-top: auto; }
img { max-width: 100%; display: block; }
a { color: var(--csas-navy-600); }
a:hover { color: var(--csas-gold); }

/* ---------- Top bar (light) ---------- */
.csas-topbar {
	position: sticky; top: 0; z-index: 40;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 13px clamp(16px, 4vw, 40px);
	background: rgba(255, 255, 255, .9);
	backdrop-filter: saturate(140%) blur(10px);
	color: var(--csas-ink);
	border-bottom: 1px solid var(--csas-line);
}
.csas-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--csas-ink); text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 16px; }
.csas-brand-mark {
	width: 30px; height: 30px; border-radius: 9px;
	background: var(--csas-gold);
	display: grid; place-items: center;
	color: #fff; font-weight: 800; font-size: 15px;
	box-shadow: 0 4px 10px -3px rgba(20, 184, 166, .5);
}
.csas-topnav { display: none; gap: 2px; }
.csas-topnav a { color: var(--csas-ink-2); text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; }
.csas-topnav a:hover { color: var(--csas-navy-600); background: var(--csas-gold-050); }
.csas-topbar .csas-btn { min-height: 40px; padding: 0 18px; }
.csas-topcta { display: inline-flex; align-items: center; gap: 6px; }
.csas-toplogin { color: var(--csas-navy); text-decoration: none; font-size: 14px; font-weight: 700; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.csas-toplogin:hover { color: var(--csas-navy-600); background: var(--csas-gold-050); }
@media (min-width: 860px) { .csas-topnav { display: flex; } }
@media (max-width: 460px) { .csas-topcta { gap: 2px; } .csas-toplogin { padding: 9px 10px; } .csas-topbar .csas-btn { padding: 0 14px; } }

/* ---------- Layout ---------- */
.csas-main { --csas-gut: clamp(16px, 4vw, 40px); max-width: var(--csas-maxw); margin: 0 auto; padding: clamp(24px, 6vw, 56px) var(--csas-gut) clamp(40px, 5vw, 56px); }
.csas-narrow { max-width: 560px; margin-inline: auto; }
.csas-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--csas-navy-600); background: var(--csas-gold-050); padding: 6px 13px; border-radius: 999px; margin: 0 0 16px; }
.csas-muted { color: var(--csas-muted); }

h1, h2, h3 { color: var(--csas-navy); letter-spacing: -.02em; line-height: 1.18; }

/* ---------- Hero: centred box (legacy, used on inner pages if any) ---------- */
.csas-hero {
	position: relative; overflow: hidden;
	border-radius: 28px;
	background:
		radial-gradient(120% 130% at 50% -20%, rgba(20,184,166,.14), transparent 60%),
		linear-gradient(180deg, #ffffff 0%, var(--csas-gold-050) 100%);
	border: 1px solid var(--csas-line);
	color: var(--csas-ink);
	padding: clamp(32px, 6vw, 60px) clamp(22px, 5vw, 56px);
	text-align: center;
}
.csas-hero .csas-eyebrow { margin-inline: auto; }
.csas-hero h1 { color: var(--csas-navy); font-size: clamp(30px, 5.4vw, 52px); font-weight: 800; margin: 0 auto 16px; max-width: 18ch; }
.csas-hero p { color: var(--csas-ink-2); font-size: clamp(16px, 2.2vw, 19px); max-width: 52ch; margin: 0 auto 28px; }

/* ---------- Hero: full-bleed, centred single column ---------- */
.csas-hero-full {
	position: relative;
	width: 100vw; margin-left: calc(50% - 50vw);
	margin-top: calc(-1 * clamp(28px, 6vw, 64px));
	background:
		radial-gradient(90% 120% at 82% -10%, rgba(20,184,166,.18), transparent 55%),
		radial-gradient(70% 90% at 0% 110%, rgba(246,183,51,.12), transparent 60%),
		linear-gradient(170deg, #ffffff 0%, var(--csas-gold-050) 55%, #E7F6F1 100%);
	border-bottom: 1px solid var(--csas-line);
	overflow: hidden;
}
.csas-hero-inner {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(34px, 5vw, 60px) clamp(16px, 4vw, 40px) clamp(30px, 4vw, 48px);
	text-align: center;
	display: flex; flex-direction: column; align-items: center;
}
.csas-hero-inner .csas-eyebrow { justify-content: center; }
.csas-hero-inner h1 { color: var(--csas-navy); font-size: clamp(32px, 5.4vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin: 10px 0 16px; max-width: 16ch; }
.csas-hero-sub { color: var(--csas-ink-2); font-size: clamp(16px, 2.1vw, 18px); max-width: 52ch; margin: 0 0 clamp(22px, 3vw, 30px); }
.csas-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }
.csas-trust { display: flex; flex-wrap: wrap; gap: 16px 20px; justify-content: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(15,118,110,.14); }
.csas-trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--csas-ink-2); font-size: 13.5px; font-weight: 600; }
.csas-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--csas-gold); }

/* Image sits under the paragraph, compact and centred */
.csas-hero-media { position: relative; width: 100%; margin: 4px 0 clamp(24px, 3vw, 32px); }
.csas-hero-frame { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
.csas-hero-frame > img, .csas-hero-illus { width: 100%; height: auto; display: block; border-radius: 24px; }
.csas-hero-frame > img { max-height: 340px; object-fit: cover; box-shadow: var(--csas-sh-3); }
.csas-hero-illus { filter: drop-shadow(0 18px 38px rgba(7,26,51,.13)); }
.csas-hero-chip {
	position: absolute; display: inline-flex; align-items: center; gap: 6px;
	background: #fff; color: var(--csas-navy); font-size: 12.5px; font-weight: 600;
	padding: 8px 12px; border-radius: 999px; box-shadow: var(--csas-sh-2); white-space: nowrap;
}
.csas-hero-chip strong { color: var(--csas-gold-600); }
.csas-hero-chip-1 { top: 10px; left: -4px; }
.csas-hero-chip-2 { bottom: 16px; right: -4px; }
@media (min-width: 560px) { .csas-hero-chip-1 { left: 10px; } .csas-hero-chip-2 { right: 10px; } }

/* Desktop: text on the left, image on the right. Mobile stays centred. */
@media (min-width: 860px) {
	.csas-hero-inner {
		max-width: 1120px;
		display: grid;
		grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
		grid-template-areas:
			"eyebrow media"
			"title   media"
			"sub     media"
			"cta     media"
			"trust   media";
		align-content: center;
		column-gap: clamp(40px, 5vw, 72px);
		text-align: left;
		padding: clamp(44px, 5vw, 68px) clamp(24px, 4vw, 48px);
	}
	.csas-hero-inner .csas-eyebrow { grid-area: eyebrow; justify-content: flex-start; }
	.csas-hero-inner h1 { grid-area: title; margin: 12px 0 16px; max-width: 15ch; font-size: clamp(40px, 4vw, 56px); }
	.csas-hero-sub { grid-area: sub; margin: 0 0 clamp(22px, 2.4vw, 30px); max-width: 44ch; }
	.csas-hero-media { grid-area: media; align-self: center; margin: 0; }
	.csas-hero-frame { max-width: 480px; margin-left: auto; margin-right: 0; }
	.csas-hero-frame > img { max-height: 480px; }
	.csas-hero-cta { grid-area: cta; justify-content: flex-start; }
	.csas-trust { grid-area: trust; justify-content: flex-start; }
}

/* ---------- Buttons (pill) ---------- */
.csas-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--csas-tap); padding: 0 26px;
	border-radius: var(--csas-radius-pill); border: 1px solid transparent;
	font: inherit; font-weight: 700; font-size: 15px; letter-spacing: -.01em;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.csas-btn:active { transform: translateY(1px); }
.csas-btn-gold { background: var(--csas-gold); color: #fff; box-shadow: 0 8px 18px -6px rgba(20,184,166,.55); }
.csas-btn-gold:hover { background: #0fae9e; box-shadow: 0 12px 24px -6px rgba(20,184,166,.6); transform: translateY(-1px); color: #fff; }
.csas-btn-navy { background: var(--csas-navy-600); color: #fff; }
.csas-btn-navy:hover { background: var(--csas-navy-700); transform: translateY(-1px); color: #fff; }
.csas-btn-ghost { background: var(--csas-gold-050); border-color: var(--csas-line-strong); color: var(--csas-navy-600); }
.csas-btn-ghost:hover { background: #cdeee8; color: var(--csas-navy-700); }
.csas-btn-outline { background: #fff; border-color: var(--csas-line-strong); color: var(--csas-navy-600); }
.csas-btn-outline:hover { border-color: var(--csas-gold); color: var(--csas-navy-700); }
.csas-btn-block { width: 100%; }
.csas-btn[disabled], .csas-btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- Cards ---------- */
.csas-card { background: var(--csas-surface); border: 1px solid var(--csas-line); border-radius: var(--csas-radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--csas-sh-1); }
.csas-card-lift { box-shadow: var(--csas-sh-2); }

/* ---------- Section head ---------- */
.csas-section { margin-top: clamp(28px, 4vw, 46px); }
.csas-section-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(18px, 3vw, 28px); }
.csas-section-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 0 0 10px; }
.csas-section-head p { color: var(--csas-ink-2); font-size: 17px; margin: 0; }

/* ---------- Feature strip ---------- */
.csas-features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .csas-features { grid-template-columns: repeat(3, 1fr); } }
.csas-feature { padding: 24px; }
.csas-feature .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--csas-gold-050); color: var(--csas-navy-600); display: grid; place-items: center; margin-bottom: 14px; }
.csas-feature .ic svg { width: 22px; height: 22px; }
.csas-feature h3 { font-size: 17px; margin: 0 0 6px; }
.csas-feature p { color: var(--csas-ink-2); margin: 0; font-size: 14.5px; }

/* ---------- Plans ---------- */
.csas-plan-grid { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 760px) { .csas-plan-grid { grid-template-columns: repeat(3, 1fr); } }
.csas-plan { display: flex; flex-direction: column; position: relative; transition: transform .16s ease, box-shadow .16s ease; }
.csas-plan:hover { transform: translateY(-3px); box-shadow: var(--csas-sh-2); }
.csas-plan.is-featured { border-color: var(--csas-gold); box-shadow: var(--csas-sh-2); }
.csas-plan.is-featured::before { content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--csas-gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 13px; border-radius: var(--csas-radius-pill); }
.csas-plan-name { font-size: 18px; margin: 0 0 4px; }
.csas-plan-tag { color: var(--csas-muted); font-size: 13px; margin: 0 0 16px; }
.csas-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--csas-line); }
.csas-plan-price .amt { font-size: 34px; font-weight: 800; color: var(--csas-navy-600); letter-spacing: -.03em; }
.csas-plan-price .per { color: var(--csas-muted); font-size: 14px; }
.csas-feature-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.csas-feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--csas-ink); }
.csas-feature-list li.off { color: var(--csas-muted); }
.csas-feature-list .tk { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--csas-good-bg); color: var(--csas-good); }
.csas-feature-list li.off .tk { background: #f1f2f5; color: var(--csas-muted); }
.csas-plan .csas-btn { margin-top: auto; }

/* ---------- Steps / progress (signup) ---------- */
.csas-steps { display: flex; align-items: center; gap: 6px; margin: 0 0 28px; }
.csas-steps .st { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.csas-steps .bar { height: 5px; border-radius: 5px; background: var(--csas-line-strong); }
.csas-steps .st.done .bar, .csas-steps .st.active .bar { background: var(--csas-gold); }
.csas-steps .lbl { font-size: 12px; font-weight: 700; color: var(--csas-muted); }
.csas-steps .st.active .lbl, .csas-steps .st.done .lbl { color: var(--csas-navy-600); }

/* ---------- Forms ---------- */
.csas-form { display: grid; gap: 18px; }
.csas-field { display: grid; gap: 7px; }
.csas-field > label { font-size: 13.5px; font-weight: 700; color: var(--csas-navy); }
.csas-input, .csas-select, .csas-textarea {
	width: 100%; min-height: var(--csas-tap);
	border: 1px solid var(--csas-line-strong); border-radius: var(--csas-radius-sm);
	padding: 12px 14px; font: inherit; font-size: 15px; color: var(--csas-ink); background: #f7fbfa;
	transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.csas-textarea { min-height: 96px; resize: vertical; }
.csas-input:focus, .csas-select:focus, .csas-textarea:focus { outline: none; background: #fff; border-color: var(--csas-gold); box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.csas-hint { font-size: 12.5px; color: var(--csas-muted); }
.csas-field.has-error .csas-input { border-color: var(--csas-danger); }
.csas-error { color: var(--csas-danger); font-size: 12.5px; }

/* OTP inputs */
.csas-otp { display: flex; gap: 10px; justify-content: space-between; }
.csas-otp input { width: 100%; height: 58px; text-align: center; font-size: 24px; font-weight: 700; border: 1px solid var(--csas-line-strong); border-radius: 14px; background: #f7fbfa; }
.csas-otp input:focus { outline: none; background: #fff; border-color: var(--csas-gold); box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.csas-resend { font-size: 13px; color: var(--csas-muted); margin-top: 14px; text-align: center; }

/* ---------- Star rating ---------- */
.csas-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.csas-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.csas-stars label { font-size: 30px; line-height: 1; color: var(--csas-line-strong); cursor: pointer; transition: color .1s ease; }
.csas-stars label:hover, .csas-stars label:hover ~ label, .csas-stars input:checked ~ label { color: var(--csas-gold); }
.csas-stars input:focus-visible + label { outline: 2px solid var(--csas-gold); border-radius: 4px; }

/* ---------- Live selfie capture ---------- */
.csas-selfie { display: grid; gap: 10px; }
.csas-selfie-video, .csas-selfie-preview { width: 100%; max-width: 280px; aspect-ratio: 1/1; object-fit: cover; border-radius: 16px; background: #0b1220; border: 1px solid var(--csas-line-strong); }
.csas-selfie-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.csas-selfie-controls .csas-btn { min-height: 42px; }

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
	.csas-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); transition-delay: var(--csas-reveal-delay, 0ms); will-change: opacity, transform; }
	.csas-reveal.is-in { opacity: 1; transform: none; }
	.csas-hero, .csas-hero-inner > h1, .csas-hero-inner > .csas-eyebrow, .csas-hero-sub { animation: csas-fade-up .55s cubic-bezier(.22,.61,.36,1) both; }
	.csas-hero-media { animation: csas-fade-up .7s cubic-bezier(.22,.61,.36,1) .08s both; }
}
@keyframes csas-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Pill checkboxes (discovery platforms) ---------- */
.csas-pill-check { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--csas-line-strong); border-radius: var(--csas-radius-pill); font-size: 13.5px; cursor: pointer; background: #fff; transition: border-color .12s ease, background .12s ease; }
.csas-pill-check:has(input:checked) { border-color: var(--csas-gold); background: var(--csas-gold-050); color: var(--csas-navy-700); font-weight: 600; }
.csas-pill-check input { accent-color: var(--csas-gold); }
.csas-country-bar select { font-weight: 600; color: var(--csas-navy); }

/* Segmented Yes/No control */
.csas-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.csas-seg { position: relative; display: flex; align-items: center; justify-content: center; padding: 13px 16px; border: 1.5px solid var(--csas-line-strong); border-radius: var(--csas-radius-sm); background: #fff; font-weight: 600; color: var(--csas-navy); cursor: pointer; transition: border-color .12s ease, background .12s ease, box-shadow .12s ease; }
.csas-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.csas-seg:has(input:checked) { border-color: var(--csas-gold); background: var(--csas-gold-050); box-shadow: 0 0 0 3px rgba(20,184,166,.14); }

/* ---------- Alerts ---------- */
.csas-alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--csas-radius-sm); font-size: 14px; border: 1px solid transparent; }
.csas-alert-info { background: var(--csas-info-bg); border-color: #c3e6fb; color: var(--csas-info); }
.csas-alert-good { background: var(--csas-good-bg); border-color: #a7f3cf; color: var(--csas-good); }
.csas-alert-warn { background: var(--csas-amber-bg); border-color: #fbe3a2; color: var(--csas-amber); }
.csas-alert-error { background: #fdecec; border-color: #f7cfcf; color: var(--csas-danger); }

/* ---------- Agreement box ---------- */
.csas-agreement { max-height: 320px; overflow: auto; border: 1px solid var(--csas-line); border-radius: var(--csas-radius-sm); padding: 18px 20px; background: #fcfefe; font-size: 14px; color: var(--csas-ink-2); }
.csas-agreement h4 { color: var(--csas-navy); margin: 16px 0 6px; font-size: 14.5px; }
.csas-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.csas-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--csas-gold); }
.csas-check-inline { align-items: center; }
.csas-check-inline input { margin-top: 0; }

/* ---------- Login / auth ---------- */
.csas-auth { max-width: 440px; margin-top: clamp(8px, 4vw, 40px); }
.csas-auth-head { text-align: center; margin-bottom: 20px; }
.csas-auth-head .csas-brand-mark { width: 44px; height: 44px; border-radius: 13px; font-size: 19px; margin: 0 auto 14px; }
.csas-auth-head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: var(--csas-navy); letter-spacing: -.02em; }
.csas-auth-head p { margin: 0; }
.csas-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 4px; flex-wrap: wrap; }
.csas-auth-link { color: var(--csas-navy-600); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.csas-auth-link:hover { text-decoration: underline; }
.csas-2fa-wrap { margin-top: 2px; }
.csas-2fa-wrap .csas-field { margin-top: 10px; }
.csas-auth-alt { text-align: center; margin: 18px 0 0; font-size: 13.5px; color: var(--csas-ink-2); }
.csas-auth-alt a { color: var(--csas-navy-600); font-weight: 600; text-decoration: none; }
.csas-auth-alt a:hover { text-decoration: underline; }

/* ---------- Plan switch / upgrade (dashboard) ---------- */
.csas-plan-switch { display: flex; flex-direction: column; gap: 10px; }
.csas-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--csas-line); border-radius: var(--csas-radius-sm); background: #fcfefe; }
.csas-switch-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; color: var(--csas-navy); font-size: 15px; }
.csas-switch-price { display: block; width: 100%; color: var(--csas-ink-2); font-size: 13px; font-weight: 600; }
.csas-switch-row .csas-btn { min-height: 38px; padding: 0 18px; }

/* ---------- Chips ---------- */
.csas-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--csas-radius-pill); font-size: 12.5px; font-weight: 700; }
.csas-chip-good { background: var(--csas-good-bg); color: var(--csas-good); }
.csas-chip-warn { background: var(--csas-amber-bg); color: var(--csas-amber); }
.csas-chip-navy { background: var(--csas-info-bg); color: var(--csas-info); }

/* ---------- Steps list (how it works) ---------- */
.csas-howlist { display: grid; gap: 14px; counter-reset: s; }
.csas-howlist li { display: flex; gap: 16px; align-items: flex-start; list-style: none; }
.csas-howlist .num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; background: var(--csas-gold-050); color: var(--csas-navy-600); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.csas-howlist h3 { font-size: 16px; margin: 2px 0 4px; }
.csas-howlist p { margin: 0; color: var(--csas-ink-2); font-size: 14.5px; }

/* ---------- App shell (customer / agent) ---------- */
.csas-variant-app .csas-main { max-width: 820px; }
.csas-appcard { display: grid; gap: 18px; }
.csas-kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--csas-line); font-size: 14.5px; }
.csas-kv:last-child { border-bottom: 0; }
.csas-kv .k { color: var(--csas-muted); }
.csas-kv .v { font-weight: 700; color: var(--csas-navy); }

/* ---------- Receipt ---------- */
.csas-receipt { text-align: center; }
.csas-receipt .seal { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: var(--csas-good-bg); color: var(--csas-good); }

/* ---------- FAQ ---------- */
.csas-faq { display: grid; gap: 14px; max-width: 760px; margin-inline: auto; }
.csas-faq details { border: 1px solid var(--csas-line); border-radius: var(--csas-radius-sm); background: #fff; padding: 2px 18px; }
.csas-faq summary { cursor: pointer; font-weight: 700; color: var(--csas-navy); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.csas-faq summary::-webkit-details-marker { display: none; }
.csas-faq summary::after { content: "+"; color: var(--csas-gold); font-size: 22px; font-weight: 400; flex: 0 0 auto; }
.csas-faq details[open] summary::after { content: "–"; }
.csas-faq p { margin: 0 0 16px; color: var(--csas-ink-2); font-size: 14.5px; }

/* ---------- Public gallery ---------- */
.csas-variant-gallery .csas-main { max-width: 1080px; }
.csas-gallery-head { text-align: center; margin-bottom: 28px; }
.csas-gallery-head h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 6px; }
.csas-gallery-cat { margin-bottom: 36px; }
.csas-gallery-cat > h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--csas-navy-600); border-bottom: 1px solid var(--csas-line); padding-bottom: 8px; margin: 0 0 18px; }
.csas-product-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .csas-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .csas-product-grid { grid-template-columns: repeat(4, 1fr); } }
.csas-product { background: var(--csas-surface); border: 1px solid var(--csas-line); border-radius: var(--csas-radius); overflow: hidden; box-shadow: var(--csas-sh-1); transition: transform .16s ease, box-shadow .16s ease; }
.csas-product:hover { transform: translateY(-3px); box-shadow: var(--csas-sh-2); }
.csas-product-img { aspect-ratio: 1 / 1; background: var(--csas-gold-050); display: grid; place-items: center; overflow: hidden; }
.csas-product-img img { width: 100%; height: 100%; object-fit: cover; }
.csas-noimg { color: var(--csas-navy-600); opacity: .55; }
.csas-noimg svg { width: 38px; height: 38px; }
.csas-product-body { padding: 14px; }
.csas-product-body h3 { font-size: 15px; margin: 0 0 4px; color: var(--csas-navy); }
.csas-product-price { font-weight: 800; color: var(--csas-navy-600); margin: 0 0 6px; }
.csas-product-desc { font-size: 13px; color: var(--csas-ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Footer (compact, centred) ---------- */
.csas-footer { background: var(--csas-navy); color: rgba(255,255,255,.7); }
.csas-footer-inner { max-width: var(--csas-maxw); margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px); text-align: center; }
.csas-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 12px; }
.csas-footer-links a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; font-weight: 500; }
.csas-footer-links a:hover { color: #fff; }
.csas-footer-copy { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.55); }
/* Desktop: links left, copyright right. Mobile stays centred. */
@media (min-width: 620px) {
	.csas-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; }
	.csas-footer-links { margin-bottom: 0; justify-content: flex-start; }
}

/* ---------- Sticky mobile CTA ---------- */
.csas-sticky-cta { position: sticky; bottom: 0; background: linear-gradient(to top, var(--csas-bg) 70%, transparent); padding: 14px 0 4px; margin-top: 8px; }
@media (min-width: 620px) { .csas-sticky-cta { position: static; background: none; padding: 0; } }

/* ---------- Utilities ---------- */
.csas-stack-sm { display: grid; gap: 10px; }
.csas-row { display: flex; gap: 12px; flex-wrap: wrap; }
.csas-center { text-align: center; }
.csas-mt { margin-top: 20px; }
[hidden] { display: none !important; }

/* =====================================================================
   v2.0 — Dashboards (agent + customer), auth extras, mobile widening
   Mobile-first. Bottom tab bar on phones, top tabs from 860px.
   ===================================================================== */

/* Wider forms/cards on small phones: less gutter, less card padding. */
@media (max-width: 520px) {
	.csas-main { --csas-gut: 12px; padding-left: 12px; padding-right: 12px; }
	.csas-card { padding: 18px 16px; border-radius: 18px; }
}
.csas-narrow { max-width: 600px; }
.csas-btn-block { white-space: normal; text-align: center; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
.csas-btn-sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.csas-chip-info { background: var(--csas-gold-050); color: var(--csas-navy-600); }
.csas-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.csas-mt-s { margin-top: 12px; }
.csas-small { margin: 4px 0 0; font-size: 13px; color: var(--csas-ink-2); line-height: 1.5; }
.csas-strong { font-weight: 700; color: var(--csas-navy); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.csas-empty { margin: 8px 0 0; color: var(--csas-ink-2); font-size: 14px; }
.csas-link { color: var(--csas-navy-600); font-weight: 700; font-size: 14px; text-decoration: none; }
.csas-file { width: 100%; font: inherit; font-size: 14px; }

/* Page heading (single line on phones) */
.csas-page-head { text-align: center; margin: 4px 0 18px; }
.csas-page-head h1 { margin: 0 0 6px; font-size: clamp(24px, 6.4vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--csas-navy); white-space: nowrap; }
.csas-page-head p { margin: 0 auto; max-width: 44ch; font-size: 14.5px; }

/* Password show/hide */
.csas-pass { position: relative; }
.csas-pass .csas-input { padding-right: 72px; }
.csas-pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--csas-navy-600); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 10px; cursor: pointer; }

/* ---------- Dashboard shell ---------- */
.csas-variant-dash .csas-main { max-width: 760px; padding-top: 14px; }
.csas-dash { display: flex; flex-direction: column; gap: 14px; }
.csas-dash > .csas-card, .csas-dash > section { margin: 0; }
.csas-flash { margin: 0; }
.csas-alert-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.csas-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.csas-hello { display: flex; align-items: center; gap: 12px; min-width: 0; }
.csas-hello small { display: block; font-size: 13px; color: var(--csas-ink-2); }
.csas-hello strong { display: block; font-size: 20px; font-weight: 800; color: var(--csas-navy); letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.csas-avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--csas-gold), var(--csas-gold-600)); color: #fff; font-weight: 800; font-size: 18px; }
.csas-avatar img { width: 100%; height: 100%; object-fit: cover; }
.csas-avatar-lg { width: 56px; height: 56px; border-radius: 50%; font-size: 22px; }
.csas-avatar-wait { background: var(--csas-gold-050); color: var(--csas-navy-600); }
.csas-iconbtn { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--csas-line); color: var(--csas-navy-600); text-decoration: none; }
.csas-iconbtn:hover { border-color: var(--csas-gold); }

.csas-h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16.5px; font-weight: 800; color: var(--csas-navy); letter-spacing: -.01em; }
.csas-h2-out { margin: 6px 2px 0; }
.csas-h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--csas-navy); }

.csas-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--csas-line); font-size: 14.5px; }
.csas-row:last-child { border-bottom: 0; }
.csas-row-top { padding-top: 0; border-bottom: 0; align-items: flex-start; }
.csas-row-wrap { flex-wrap: wrap; }
.csas-okline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--csas-navy); }
.csas-okline svg { color: var(--csas-good); }

/* Progress */
.csas-progress { display: block; height: 6px; border-radius: 99px; background: rgba(15,118,110,.14); overflow: hidden; margin-top: 10px; }
.csas-progress i { display: block; height: 100%; background: var(--csas-gold); border-radius: 99px; }
.csas-progress-lg { height: 8px; margin: 12px 0 4px; }
.csas-checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.csas-checklist li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--csas-ink-2); }
.csas-checklist li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--csas-line-strong); flex: 0 0 auto; }
.csas-checklist li.is-done { color: var(--csas-navy); font-weight: 600; }
.csas-checklist li.is-done::before { background: var(--csas-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--csas-gold); }

.csas-setupcard { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--csas-amber-bg); border: 1px solid #fbe3a2; text-decoration: none; color: var(--csas-navy); }
.csas-setupcard > div { flex: 1; min-width: 0; }
.csas-setupcard strong { display: block; font-size: 15.5px; }
.csas-setupcard span { display: block; font-size: 13px; color: var(--csas-amber); }
.csas-setupcard .csas-progress { background: rgba(180,83,9,.15); }
.csas-setupcard .csas-progress i { background: var(--csas-amber); }
.csas-setupcard-go { font-size: 28px; line-height: 1; color: var(--csas-amber); }

/* ---------- Shift clock (agent hero) ---------- */
.csas-shift { padding: 20px 18px 18px; border-radius: 22px; background: linear-gradient(150deg, #0f172a, #134e4a); color: #fff; box-shadow: var(--csas-sh-3); }
.csas-shift.is-on { background: linear-gradient(150deg, #0f766e, #14b8a6); }
.csas-shift-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.csas-shift-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; opacity: .92; }
.csas-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.csas-shift.is-on .csas-dot { background: #a7f3d0; box-shadow: 0 0 0 0 rgba(167,243,208,.7); animation: csasPulse 1.8s infinite; }
@keyframes csasPulse { 70% { box-shadow: 0 0 0 9px rgba(167,243,208,0); } 100% { box-shadow: 0 0 0 0 rgba(167,243,208,0); } }
.csas-shift-hours { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.14); }
.csas-timer { margin: 14px 0 2px; font-size: clamp(44px, 14vw, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.csas-shift-sub { margin: 6px 0 16px; font-size: 13.5px; opacity: .85; }
.csas-shift-btn { width: 100%; min-height: 56px; border: 0; border-radius: 16px; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; transition: transform .12s ease; }
.csas-shift-btn:active { transform: scale(.985); }
.csas-shift-btn.is-go { background: var(--csas-gold); color: #fff; box-shadow: 0 10px 24px -8px rgba(20,184,166,.8); }
.csas-shift-btn.is-stop { background: #fff; color: #0f766e; }
.csas-shift form { margin: 0; }

/* ---------- Link WhatsApp box ---------- */
.csas-linkbox { background: #fff; border: 1.5px solid var(--csas-line-strong); border-radius: 18px; padding: 16px; margin-top: 10px; display: grid; gap: 12px; }
.csas-custcard .csas-linkbox { margin-top: 12px; border-style: dashed; }
.csas-linkbox-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.csas-linkbox-head strong { display: block; font-size: 16px; color: var(--csas-navy); }
.csas-copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--csas-line); background: var(--csas-bg); color: var(--csas-navy-600); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.csas-copy svg { width: 15px; height: 15px; }
.csas-copy.is-copied { background: var(--csas-good-bg); color: var(--csas-good); border-color: #a7f3cf; }
.csas-codeform { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; }
.csas-code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; text-align: center; min-height: 54px; }
.csas-code-input::placeholder { letter-spacing: 0; font-family: var(--csas-font); font-size: 14px; font-weight: 500; text-transform: none; }
.csas-codeform .csas-btn { min-height: 54px; padding: 0 20px; border-radius: 14px; }
.csas-codeshow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--csas-gold-050); }
.csas-codeshow span { font-size: 12.5px; color: var(--csas-navy-600); font-weight: 600; }
.csas-codeshow strong { font-family: ui-monospace, Menlo, monospace; font-size: 20px; letter-spacing: 3px; color: var(--csas-navy); }
.csas-codeshow small { font-size: 12.5px; color: var(--csas-ink-2); }

/* Availability pills */
.csas-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: var(--csas-bg); margin: 12px 0 0; }
.csas-pill { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--csas-ink-2); cursor: pointer; }
.csas-pill.is-on { background: #fff; color: var(--csas-navy); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.csas-pill.is-on.is-available { color: var(--csas-good); }
.csas-pill.is-on.is-full { color: var(--csas-amber); }

/* Stats + tiles */
.csas-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.csas-stats div { padding: 12px 8px; border-radius: 14px; background: var(--csas-bg); text-align: center; }
.csas-stats strong { display: block; font-size: 22px; font-weight: 800; color: var(--csas-navy); }
.csas-stats span { font-size: 12px; color: var(--csas-ink-2); font-weight: 600; }
.csas-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.csas-tile { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--csas-line); box-shadow: var(--csas-sh-1); }
.csas-tile span { display: block; font-size: 12.5px; font-weight: 700; color: var(--csas-ink-2); text-transform: uppercase; letter-spacing: .03em; }
.csas-tile strong { display: block; margin: 6px 0 2px; font-size: 26px; font-weight: 800; color: var(--csas-navy); }
.csas-tile small { font-size: 12px; color: var(--csas-muted); }
.csas-minigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.csas-minigrid div { padding: 10px 12px; border-radius: 12px; background: var(--csas-bg); min-width: 0; }
.csas-minigrid span { display: block; font-size: 12px; color: var(--csas-ink-2); font-weight: 600; }
.csas-minigrid strong { display: block; font-size: 15px; color: var(--csas-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csas-urgent { border-color: #fbe3a2; background: #fffbeb; }
.csas-urgent .csas-h2 { color: var(--csas-amber); }
.csas-paycard { padding: 20px 18px; border-radius: 22px; background: linear-gradient(150deg, #0f766e, #14b8a6); color: #fff; }
.csas-paycard span { font-size: 13px; font-weight: 700; opacity: .9; }
.csas-paycard strong { display: block; margin: 6px 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.csas-paycard small { font-size: 12.5px; opacity: .85; }
.csas-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--csas-navy-600); text-decoration: none; }

/* ---------- Customer: linking code hero ---------- */
.csas-codehero { padding: 22px 18px; border-radius: 22px; text-align: center; background: linear-gradient(150deg, #0f766e, #14b8a6); color: #fff; box-shadow: var(--csas-sh-3); }
.csas-codehero-label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .9; }
.csas-codehero-code { display: block; width: 100%; margin: 12px 0 6px; padding: 16px 8px; border: 0; border-radius: 16px; background: #fff; color: var(--csas-navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(28px, 10vw, 40px); font-weight: 800; letter-spacing: .18em; cursor: pointer; }
.csas-codehero-code.is-copied { background: var(--csas-good-bg); color: var(--csas-good); }
.csas-codehero-meta { font-size: 13px; opacity: .9; }
.csas-codehero-steps { text-align: left; margin: 16px 0 0; padding: 14px 14px 14px 34px; border-radius: 14px; background: rgba(255,255,255,.14); display: grid; gap: 6px; font-size: 14px; }
.csas-codehero-foot { margin: 10px 0 0; font-size: 12.5px; opacity: .85; }

/* ---------- Customer: status hero + tracker ---------- */
.csas-statushero { padding: 20px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--csas-line); box-shadow: var(--csas-sh-2); }
.csas-statushero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.csas-statushero-plan { display: block; font-size: 20px; font-weight: 800; color: var(--csas-navy); letter-spacing: -.02em; }
.csas-statushero-state { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 99px; background: var(--csas-gold-050); color: var(--csas-navy-600); font-size: 12.5px; font-weight: 700; }
.csas-statushero-big { text-align: right; }
.csas-statushero-big strong { display: block; font-size: 40px; font-weight: 800; line-height: 1; color: var(--csas-navy); letter-spacing: -.03em; }
.csas-statushero-big span { font-size: 12.5px; color: var(--csas-ink-2); font-weight: 600; }
.csas-statushero-wait { display: inline-block; max-width: 110px; font-size: 13px; font-weight: 700; color: var(--csas-navy-600); }
.csas-tracker { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.csas-tracker::before { content: ""; position: absolute; top: 11px; left: 12.5%; right: 12.5%; height: 3px; background: var(--csas-line); border-radius: 3px; }
.csas-tracker li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--csas-muted); line-height: 1.25; }
.csas-tracker i { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--csas-line); }
.csas-tracker li.is-done { color: var(--csas-navy); }
.csas-tracker li.is-done i { background: var(--csas-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--csas-gold); }
.csas-tracker li.is-now { color: var(--csas-navy-600); }
.csas-tracker li.is-now i { border-color: var(--csas-gold); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }

/* ---------- Customer: agent card ---------- */
.csas-agentcard { display: flex; align-items: center; gap: 14px; }
.csas-agentcard-body small { display: block; font-size: 12.5px; color: var(--csas-ink-2); font-weight: 600; }
.csas-agentcard-body strong { display: block; font-size: 18px; color: var(--csas-navy); margin: 1px 0 6px; }
.csas-upgrade, .csas-fold { margin-top: 12px; }
.csas-fold { margin-top: 0; }
.csas-upgrade .csas-plan-switch { margin-top: 10px; }

/* ---------- Tab bar ---------- */
.csas-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--csas-line); box-shadow: 0 -8px 24px -12px rgba(15,23,42,.15); }
.csas-tabbar a { position: relative; flex: 1; display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; color: var(--csas-muted); text-decoration: none; font-size: 11.5px; font-weight: 700; }
.csas-tabbar a.is-on { color: var(--csas-navy-600); background: var(--csas-gold-050); }
.csas-tabbar svg { width: 22px; height: 22px; }
.csas-badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.csas-variant-dash .csas-dash { padding-bottom: 86px; }
/* Signed-in dashboards: no marketing footer — just the page and the tab bar. */
.csas-variant-dash .csas-footer { display: none; }
/* Top tabs only on real computers (mouse). Phones — even in "Desktop site" mode — keep the bottom bar.
   3.9.21: from 1024px only (the sidebar layout); narrower windows keep the fixed bottom bar instead of a tab strip that floated over the page. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.csas-dash { padding-bottom: 0 !important; }
	.csas-dash-head { order: -2; }
	.csas-tabbar { order: -1; position: sticky; top: 76px; bottom: auto; padding: 6px; border: 1px solid var(--csas-line); border-radius: 16px; box-shadow: var(--csas-sh-1); justify-content: flex-start; }
	.csas-tabbar a { flex: 0 0 auto; grid-auto-flow: column; gap: 8px; padding: 10px 16px; font-size: 14px; }
	.csas-tabbar svg { width: 18px; height: 18px; }
	.csas-badge { position: static; }
	.csas-tiles { grid-template-columns: repeat(4, 1fr); }
}
.csas-variant-dash .csas-topcta { display: none; }

/* ---------- v2.1: dropdowns, link flow, photo picker, quick links ---------- */

/* Professional dropdown (details/summary) — chevron in a circle, animated */
.csas-fold, .csas-howto { margin: 0; }
.csas-fold > summary, .csas-howto > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 44px; font-weight: 800; font-size: 15.5px; color: var(--csas-navy); -webkit-tap-highlight-color: transparent;
}
.csas-fold > summary::-webkit-details-marker, .csas-howto > summary::-webkit-details-marker { display: none; }
.csas-fold > summary::after, .csas-howto > summary::after {
	content: ""; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
	background: var(--csas-gold-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat;
	transition: transform .2s ease, background-color .2s ease;
}
.csas-fold[open] > summary::after, .csas-howto[open] > summary::after { transform: rotate(180deg); background-color: #c6ece4; }
.csas-fold > summary:focus-visible, .csas-howto > summary:focus-visible { outline: 2px solid var(--csas-gold); outline-offset: 4px; border-radius: 10px; }
.csas-howto > summary { font-size: 14px; color: var(--csas-navy-600); min-height: 38px; }
.csas-howto > summary::after { width: 28px; height: 28px; background-size: 14px; }

/* Rows that are links */
.csas-row-link { text-decoration: none; color: var(--csas-navy); font-weight: 600; }
.csas-row-link:hover { color: var(--csas-navy-600); }
.csas-center-text { text-align: center; display: block; }
.csas-price-tag { padding: 6px 12px; border-radius: 99px; background: var(--csas-gold-050); color: var(--csas-navy-600); font-weight: 800; font-size: 15px; white-space: nowrap; }

/* Quick-link card */
.csas-quick { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--csas-navy); }
.csas-quick > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--csas-gold-050); color: var(--csas-navy-600); flex: 0 0 auto; }
.csas-quick > div { flex: 1; min-width: 0; }
.csas-quick strong { display: block; font-size: 15.5px; }
.csas-quick small { font-size: 13px; color: var(--csas-ink-2); }
.csas-quick > b { font-size: 26px; color: var(--csas-muted); font-weight: 400; }

/* Guided link flow (agent) */
.csas-linkbox-num { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.csas-linkbox-num a.csas-copy { text-decoration: none; }
.csas-flow { list-style: none; counter-reset: flow; margin: 2px 0 0; padding: 0; display: grid; gap: 0; }
.csas-flow > li { counter-increment: flow; position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 16px; }
.csas-flow > li:last-child { padding-bottom: 0; }
.csas-flow > li::before { content: counter(flow); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--csas-bg); color: var(--csas-muted); border: 2px solid var(--csas-line); position: relative; z-index: 1; }
.csas-flow > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: var(--csas-line); }
.csas-flow > li.is-now::before { background: var(--csas-gold); color: #fff; border-color: var(--csas-gold); }
.csas-flow > li.is-done::before { content: "✓"; background: var(--csas-good-bg); color: var(--csas-good); border-color: #a7f3cf; }
.csas-flow-body { display: grid; gap: 6px; align-content: start; min-width: 0; padding-top: 3px; }
.csas-flow-body > strong { font-size: 14.5px; color: var(--csas-navy); }
.csas-flow-body > span { font-size: 13.5px; color: var(--csas-ink-2); line-height: 1.5; }
.csas-flow > li:not(.is-now):not(.is-done) .csas-flow-body > strong { color: var(--csas-ink-2); }
.csas-flow-body .csas-btn-sm { justify-self: start; }
.csas-flow-body form { margin: 0; }
.csas-btn-wa { background: #25d366; color: #fff; }
.csas-btn-wa:hover { background: #1ebe5b; color: #fff; }
.csas-codeshow { padding: 10px 12px; }

/* Photo picker (agent profile + signup) */
.csas-photo-pick { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 14px; border: 2px dashed var(--csas-line-strong); border-radius: 18px; background: var(--csas-bg); color: var(--csas-navy-600); font-weight: 700; font-size: 14px; cursor: pointer; overflow: hidden; text-align: center; }
.csas-photo-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.csas-photo-pick img { max-height: 160px; max-width: 100%; border-radius: 12px; object-fit: cover; }
.csas-photo-pick-round { flex-direction: column; width: 120px; height: 120px; min-height: 0; margin: 0 auto; padding: 0; border-radius: 50%; border-style: solid; background: linear-gradient(145deg, var(--csas-gold), var(--csas-gold-600)); color: #fff; font-size: 40px; font-weight: 800; overflow: visible; }
.csas-photo-pick-round img { width: 120px; height: 120px; max-height: none; border-radius: 50%; }
.csas-photo-pick-round em { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--csas-line); color: var(--csas-navy-600); font-style: normal; font-size: 12px; font-weight: 800; box-shadow: var(--csas-sh-1); }

/* ---------- v2.2: phone picker, compact link box ---------- */
.csas-phone { display: flex; align-items: stretch; gap: 0; min-width: 0; border: 1px solid var(--csas-line-strong); border-radius: var(--csas-radius-sm); background: #f7fbfa; transition: border-color .15s ease, box-shadow .15s ease; }
.csas-phone:focus-within { background: #fff; border-color: var(--csas-gold); box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.csas-phone-cc {
	position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
	padding: 0 12px; min-height: var(--csas-tap); border-radius: var(--csas-radius-sm); cursor: pointer;
	background: #f7fbfa; border: 1px solid var(--csas-line-strong); color: var(--csas-navy);
	font-weight: 700; font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.csas-phone .csas-phone-cc { border: 0; border-right: 1px solid var(--csas-line-strong); border-radius: var(--csas-radius-sm) 0 0 var(--csas-radius-sm); background: transparent; }
.csas-phone .csas-phone-cc:focus-within { box-shadow: none; background: rgba(20,184,166,.06); }
.csas-phone .csas-input.csas-phone-input, .csas-phone .csas-input.csas-phone-input:focus { border: 0; border-radius: 0 var(--csas-radius-sm) var(--csas-radius-sm) 0; background: transparent; box-shadow: none; }
.csas-phone-flag { font-size: 20px; line-height: 1; }
.csas-phone-caret { color: var(--csas-muted); }
.csas-phone-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.csas-phone-input { flex: 1 1 auto; min-width: 0; }

.csas-mobile-only { display: none; font-size: 12.5px !important; color: var(--csas-muted) !important; }
@media (hover: none) and (pointer: coarse) { .csas-mobile-only { display: block; } }
.csas-btn-pair { display: flex; flex-wrap: wrap; gap: 8px; }
.csas-btn-pair form { margin: 0; }
.csas-flow-short { margin-top: 4px; }
.csas-fold-mini { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--csas-line); }
.csas-fold-mini > summary { min-height: 36px; font-size: 13.5px; font-weight: 700; color: var(--csas-navy-600); }
.csas-fold-mini > summary::after { width: 26px; height: 26px; background-size: 13px; }
.csas-steps-plain { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--csas-ink-2); }
.csas-steps-plain li::marker { color: var(--csas-gold); font-weight: 800; }

/* =====================================================================
   v3 — WhatsApp Cloud API + AI inbox
   ===================================================================== */
.csas-btn-ghost-light { background: #fff; color: var(--csas-navy); border: 1px solid var(--csas-line-strong); }
.csas-btn-ghost-light:hover { border-color: var(--csas-gold); color: var(--csas-navy-600); }

/* Connect hero */
.csas-connecthero { padding: 26px 20px 22px; border-radius: 24px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #1fd6a6 0%, rgba(31,214,166,0) 55%), linear-gradient(155deg, #0f766e 0%, #0b4f4a 100%); box-shadow: var(--csas-sh-3); display: grid; gap: 12px; }
.csas-connecthero-icon { justify-self: center; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.csas-connecthero h2 { margin: 2px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.csas-connecthero p { margin: 0 auto; max-width: 420px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.86); }
.csas-connecthero [data-csas-wa-connect] { display: grid; gap: 10px; margin-top: 6px; }
.csas-connecthero .csas-btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.csas-connect-msg { min-height: 20px; margin: 2px 0 0; font-size: 13.5px; color: rgba(255,255,255,.92); }
.csas-connect-msg.is-bad { color: #fde68a; }

/* Live card */
.csas-livecard { padding: 20px 18px 16px; border-radius: 24px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #22d3a6 0%, rgba(34,211,166,0) 55%), linear-gradient(155deg, #0f766e 0%, #0b4f4a 100%); box-shadow: var(--csas-sh-3); display: grid; gap: 4px; }
.csas-livecard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.csas-livedot { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.csas-livedot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 0 rgba(110,231,183,.7); animation: csas-pulse 2s infinite; }
@keyframes csas-pulse { 0% { box-shadow: 0 0 0 0 rgba(110,231,183,.7); } 70% { box-shadow: 0 0 0 10px rgba(110,231,183,0); } 100% { box-shadow: 0 0 0 0 rgba(110,231,183,0); } }
.csas-livecard-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.csas-livecard-name { font-size: 14px; color: rgba(255,255,255,.8); }
.csas-livecard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.csas-livecard-stats a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.csas-livecard-stats a.is-hot { background: #fff; color: var(--csas-navy); }
.csas-livecard-stats a.is-hot span { color: var(--csas-danger); }
.csas-livecard-stats strong { font-size: 24px; font-weight: 800; line-height: 1.1; }
.csas-livecard-stats span { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.82); }

/* AI on/off switch */
.csas-aitoggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.16); color: #fff; }
.csas-aitoggle i { position: relative; width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.35); transition: background .2s ease; }
.csas-aitoggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.csas-aitoggle.is-on i { background: #34d399; }
.csas-aitoggle.is-on i::after { transform: translateX(14px); }
.csas-aitoggle-light { background: #fff; color: var(--csas-navy); border: 1px solid var(--csas-line-strong); }
.csas-aitoggle-light i { background: #cbd5e1; }
.csas-aitoggle-light.is-on i { background: var(--csas-gold); }

/* Meters */
.csas-meter { padding: 10px 0; border-bottom: 1px solid var(--csas-line); }
.csas-meter:last-of-type { border-bottom: 0; }
.csas-meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--csas-ink-2); font-weight: 600; }
.csas-meter-top strong { color: var(--csas-navy); font-weight: 800; }
.csas-meter .csas-progress { margin: 8px 0 6px; }
.csas-progress-wa i { background: #25d366; }
.csas-quick-hot { border-color: #a7f3d0; background: linear-gradient(135deg, #ecfdf5, #fff); }
.csas-card-hot { border-color: #fcd34d; background: linear-gradient(135deg, #fffbeb, #fff); }

/* Chat list */
.csas-filterchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.csas-filterchips::-webkit-scrollbar { display: none; }
.csas-filterchips a { flex: 0 0 auto; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--csas-line); color: var(--csas-ink-2); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.csas-filterchips a.is-on { background: var(--csas-navy); border-color: var(--csas-navy); color: #fff; }
.csas-filterchips b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--csas-danger); color: #fff; font-size: 11.5px; }
.csas-chatlist { padding: 6px 8px; }
.csas-chatrow { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 0; text-decoration: none; color: inherit; }
.csas-chatrow + .csas-chatrow { border-top: 1px solid var(--csas-line); }
.csas-chatrow:active, .csas-chatrow:hover { background: var(--csas-bg); }
.csas-avatar-sm { width: 42px; height: 42px; border-radius: 50%; font-size: 16px; }
.csas-chatrow-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.csas-chatrow-top, .csas-chatrow-bot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.csas-chatrow-top strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--csas-navy); }
.csas-chatrow-top small { flex: 0 0 auto; font-size: 12px; color: var(--csas-muted); font-weight: 600; }
.csas-chatrow-bot em { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 13.5px; color: var(--csas-ink-2); }
.csas-chatrow-bot .csas-chip { flex: 0 0 auto; padding: 2px 8px; font-size: 11px; }
.csas-chatrow.is-unread .csas-chatrow-top strong { font-weight: 800; }
.csas-chatrow.is-unread .csas-chatrow-top small { color: #16a34a; }
.csas-unread { flex: 0 0 auto; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #25d366; color: #fff; font-size: 11.5px; font-weight: 800; }
.csas-emptystate { display: grid; gap: 6px; padding: 28px 12px; text-align: center; }
.csas-emptystate strong { font-size: 16px; color: var(--csas-navy); }
.csas-emptystate span { font-size: 14px; color: var(--csas-ink-2); line-height: 1.5; }

/* Thread */
.csas-thread { display: flex; flex-direction: column; gap: 10px; min-height: 60vh; }
.csas-thread-head { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--csas-line); box-shadow: var(--csas-sh-1); }
.csas-thread-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: 26px; line-height: 1; color: var(--csas-navy); text-decoration: none; background: var(--csas-bg); }
.csas-thread-who { flex: 1; min-width: 0; display: grid; }
.csas-thread-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; color: var(--csas-navy); }
.csas-thread-who small { font-size: 12px; color: var(--csas-muted); }
.csas-modepill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; }
.csas-modepill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.csas-modepill.is-ai { background: var(--csas-gold-050); color: var(--csas-navy-600); }
.csas-modepill.is-human { background: #fef3c7; color: var(--csas-amber); }
.csas-handoff { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 13.5px; color: #9a3412; }
.csas-handoff strong { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.csas-bubbles { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; border-radius: 20px; background: #efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23d9d2c5'/%3E%3C/svg%3E"); flex: 1; }
.csas-bubble { max-width: 82%; padding: 8px 10px 5px; border-radius: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08); background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.csas-bubble p { margin: 0; font-size: 14.5px; line-height: 1.45; color: #111b21; overflow-wrap: anywhere; }
.csas-bubble small { display: block; margin-top: 2px; text-align: right; font-size: 11px; color: #667781; }
.csas-bubble.is-out { align-self: flex-end; background: #d9fdd3; border-top-left-radius: 14px; border-top-right-radius: 4px; }
.csas-bubble.is-out.by-ai { background: #e7f8f4; border: 1px solid #c4ece3; }
.csas-bubble-err { color: var(--csas-danger); }
.csas-bubble.is-typing p { letter-spacing: 3px; color: var(--csas-muted); }
.csas-bubble.is-note { align-self: center; max-width: 92%; background: #fff8e1; box-shadow: none; }
.csas-bubble.is-note p { font-size: 13px; color: #8a6d00; text-align: center; }
.csas-composer { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 26px; background: #fff; border: 1px solid var(--csas-line); box-shadow: var(--csas-sh-2); }
.csas-composer textarea { flex: 1; min-height: 40px; max-height: 140px; padding: 9px 12px; border: 0; resize: none; font: inherit; font-size: 15.5px; line-height: 1.4; background: transparent; color: var(--csas-ink); outline: none; }
.csas-composer-send { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--csas-gold); color: #fff; }
.csas-composer.is-busy .csas-composer-send { opacity: .5; pointer-events: none; }
.csas-composer-inline { position: static; margin-top: 10px; box-shadow: none; }
.csas-window-note, .csas-composer-err { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.csas-window-note { background: #f1f5f9; color: var(--csas-ink-2); }
.csas-composer-err { background: #fef2f2; color: var(--csas-danger); }
.csas-bubbles-test { max-height: 380px; min-height: 160px; overflow-y: auto; margin-top: 10px; }

/* My AI */
.csas-magic { border-color: #c7d2fe; background: linear-gradient(135deg, #eef2ff, #fff 60%); }
.csas-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--csas-ink-2); }
.csas-check input { width: 18px; height: 18px; accent-color: var(--csas-gold); }
.csas-segment-3 { grid-template-columns: repeat(3, 1fr); }
.csas-segment-3 .csas-seg { padding: 12px 6px; font-size: 12.5px; text-align: center; }
.csas-sticky-save { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 14px 0 4px; background: linear-gradient(rgba(255,255,255,0), #fff 40%); }
@media (min-width: 860px) and (hover: hover) and (pointer: fine) {
	.csas-composer, .csas-sticky-save { bottom: 16px; }
	.csas-thread-head { top: 140px; }
}

/* ---------- v3.1: agent seat, channels, live alerts, quick replies ---------- */
.csas-agentseat { display: flex; align-items: center; gap: 14px; }
.csas-agentseat-body { display: grid; gap: 3px; min-width: 0; }
.csas-agentseat-body small { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--csas-navy-600); }
.csas-agentseat-body strong { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 17px; color: var(--csas-navy); }
.csas-agentseat-body strong .csas-chip { font-size: 11px; padding: 2px 8px; }
.csas-agentseat-body > span { font-size: 13.5px; line-height: 1.45; color: var(--csas-ink-2); }
.csas-agentseat-body a { color: var(--csas-navy-600); font-weight: 700; }

.csas-channels { display: grid; gap: 4px; }
.csas-chan { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--csas-line); }
.csas-chan:last-of-type { border-bottom: 0; }
.csas-chan-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.csas-chan-ico.is-wa { background: #25d366; }
.csas-chan-ico.is-fb { background: #0866ff; }
.csas-chan-ico.is-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.csas-chan-main { flex: 1; min-width: 0; display: grid; }
.csas-chan-main strong { font-size: 15px; color: var(--csas-navy); }
.csas-chan-main small { font-size: 12.5px; color: var(--csas-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-btn-fb { background: #0866ff; color: #fff; border-color: #0866ff; margin-top: 8px; }
.csas-btn-fb:hover { background: #0753d6; color: #fff; }
.csas-connect-msg-dark { color: var(--csas-ink-2); }
.csas-connect-msg-dark.is-bad { color: var(--csas-danger); }
.csas-pagepick { display: grid; gap: 8px; margin-top: 10px; }
.csas-pagepick-row { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--csas-line-strong); background: #fff; cursor: pointer; font: inherit; }
.csas-pagepick-row:hover { border-color: var(--csas-gold); }
.csas-pagepick-row strong { font-size: 15px; color: var(--csas-navy); }
.csas-pagepick-row small { font-size: 12.5px; color: var(--csas-ink-2); }
.csas-linkbtn { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--csas-ink-2); text-decoration: underline; cursor: pointer; }

/* Channel badge on chat avatars */
.csas-avatar-sm { position: relative; overflow: visible; }
.csas-chanbadge { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: #25d366 center/11px no-repeat; }
.csas-chanbadge.is-whatsapp { background-color: #25d366; background-size: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E"); }
.csas-chanbadge.is-facebook { background-color: #0866ff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2C6.5 2 2 6.1 2 11.3c0 2.9 1.4 5.5 3.7 7.2V22l3.4-1.9c.9.3 1.9.4 2.9.4 5.5 0 10-4.1 10-9.2S17.5 2 12 2z'/%3E%3C/svg%3E"); }
.csas-chanbadge.is-instagram { background-color: #d6249f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' rx='5' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3Ccircle cx='12' cy='12' r='3.6' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E"); }

/* Live alerts */
.csas-pulse { display: contents; }
.csas-alertsbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px dashed #f59e0b; background: #fffbeb; color: #92400e; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.csas-alertsbtn[hidden] { display: none; }
.csas-toast { position: fixed; z-index: 60; left: 12px; right: 12px; top: 74px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #111827; color: #fff; text-decoration: none; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); animation: csas-drop .35s ease; }
.csas-toast[hidden] { display: none; }
.csas-toast-bell { font-size: 22px; animation: csas-ring 1s ease 2; }
.csas-toast-text { flex: 1; min-width: 0; display: grid; }
.csas-toast-text strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-toast-text small { font-size: 12.5px; color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-toast b { flex: 0 0 auto; padding: 8px 12px; border-radius: 99px; background: #25d366; color: #fff; font-size: 13px; }
@keyframes csas-drop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes csas-ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(16deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
@media (min-width: 900px) { .csas-toast { left: auto; right: 24px; width: 380px; top: 90px; } }

/* Quick replies */
.csas-quickreplies { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.csas-quickreplies::-webkit-scrollbar { display: none; }
.csas-quickreplies button { flex: 0 0 auto; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--csas-line-strong); background: #fff; color: var(--csas-navy); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.csas-quickreplies button:active { background: var(--csas-gold-050); }

/* ---------- v3.2: streamlined home, plan summary, unboxed chats ---------- */
.csas-mt-xs { margin-top: 6px; display: inline-flex; }
.csas-howto-body { display: grid; gap: 8px; margin-top: 10px; }
.csas-howto-body > strong { font-size: 14px; color: var(--csas-navy); }
.csas-howto-body .csas-steps-plain { margin-top: 0; }
.csas-ratebox { padding-top: 14px; padding-bottom: 14px; }
.csas-ratebox-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.csas-ratebox-top strong { font-size: 15px; color: var(--csas-navy); }
.csas-stars-sm label { font-size: 24px; }
.csas-ratebox-row { display: flex; gap: 8px; margin-top: 10px; }
.csas-ratebox-row .csas-input { flex: 1; min-width: 0; min-height: 42px; }
.csas-statpair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.csas-statpair a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--csas-bg); text-decoration: none; color: var(--csas-navy); }
.csas-statpair a.is-hot { background: #fff7ed; }
.csas-statpair a.is-hot span { color: var(--csas-danger); }
.csas-statpair strong { font-size: 22px; font-weight: 800; line-height: 1.1; }
.csas-statpair span { font-size: 12.5px; font-weight: 700; color: var(--csas-ink-2); }

.csas-plansum .csas-meter { border-bottom: 0; }
.csas-price-tag small { font-size: 12px; font-weight: 700; opacity: .7; margin-left: 2px; }
.csas-dl { display: grid; margin: 6px 0 0; }
.csas-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--csas-line); font-size: 14px; }
.csas-dl dt { color: var(--csas-ink-2); }
.csas-dl dd { margin: 0; font-weight: 700; color: var(--csas-navy); text-align: right; }
.csas-incl { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--csas-ink-2); }
.csas-incl li::before { content: "✓"; color: var(--csas-gold); font-weight: 800; margin-right: 8px; }
.csas-upgradebox { display: grid; gap: 10px; }
.csas-upgradebox > summary { list-style: none; cursor: pointer; }
.csas-upgradebox > summary::-webkit-details-marker { display: none; }
.csas-upgradebox > summary::after { content: "▾"; margin-left: 8px; font-size: 14px; }
.csas-upgradebox[open] > summary::after { content: "▴"; }
.csas-upgradebox .csas-plan-switch { padding: 6px 14px; border-radius: var(--csas-radius); background: #fff; border: 1px solid var(--csas-line); }
.csas-switch-meta small { display: block; }

/* Chats: free-flowing list, no box */
.csas-chatlist { padding: 0; background: none; border: 0; box-shadow: none; }
.csas-chatlist .csas-chatrow { padding: 12px 2px; }
.csas-chatlist .csas-emptystate { padding: 48px 12px; }
.csas-prefixed { display: flex; align-items: stretch; border: 1px solid var(--csas-line-strong); border-radius: var(--csas-radius-sm); background: #f7fbfa; overflow: hidden; }
.csas-prefixed:focus-within { border-color: var(--csas-gold); box-shadow: 0 0 0 4px rgba(20,184,166,.15); background: #fff; }
.csas-prefixed span { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--csas-ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.csas-prefixed .csas-input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none !important; padding-left: 2px; }

/* v3.2: slim shift bar (was a big clock) */
.csas-shift { padding: 14px 16px; border-radius: 18px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top top" "time btn" "sub sub"; align-items: center; gap: 6px 12px; }
.csas-shift > .csas-shift-top { grid-area: top; }
.csas-shift .csas-timer { grid-area: time; margin: 0; font-size: 28px; }
.csas-shift > form, .csas-shift > .csas-shift-btn { grid-area: btn; }
.csas-shift-sub { grid-area: sub; margin: 0; font-size: 12.5px; }
.csas-shift-btn { width: auto; min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; }
.csas-shift-label { font-size: 12px; }
.csas-shift-hours { font-size: 12px; padding: 3px 9px; }

.csas-connect-msg:empty { display: none; }

/* ---------- v3.3: app header, solid tab bar, full-width pages ---------- */
.csas-brand-id { min-width: 0; }
.csas-brand-text { display: grid; min-width: 0; line-height: 1.15; }
.csas-brand-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-brand-text small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--csas-muted); display: inline-flex; align-items: center; gap: 5px; }
.csas-brand-text small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.csas-brand-text small.is-on { color: #15803d; }
.csas-brand-text small.is-on::before { background: #22c55e; }
.csas-brand-text small.is-warn::before { background: #f59e0b; }
.csas-variant-dash .csas-topnav { display: none; }
/* Pages use the full width on every tab. */
.csas-variant-dash .csas-main { width: 100%; box-sizing: border-box; }
/* Solid tab bar: Samsung Internet paints blurred (backdrop-filter) fixed bars as a blank white block. */
.csas-tabbar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; transform: translateZ(0); }
.csas-thread-head { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Instant tap feedback + top loading bar while the next tab opens */
.csas-tabbar a:active { background: var(--csas-gold-050); }
.csas-loadbar { position: fixed; z-index: 70; top: 0; left: 0; height: 3px; width: 0; background: var(--csas-gold); box-shadow: 0 0 8px rgba(20,184,166,.6); transition: width 1.2s cubic-bezier(.1,.7,.2,1); }
.csas-loadbar.is-go { width: 85%; }

/* v3.3: who replied, claim lock, flat customer list */
.csas-who { display: inline-grid; place-items: center; min-width: 20px; height: 16px; padding: 0 5px; margin-right: 4px; border-radius: 6px; background: rgba(15,118,110,.12); color: #0f766e; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.csas-bubble.is-pending { opacity: .7; }
.csas-claimed { margin: 0; padding: 10px 14px; border-radius: 12px; background: #eff6ff; color: #1d4ed8; font-size: 13.5px; font-weight: 600; }
.csas-composer.is-locked { opacity: .55; pointer-events: none; }
.csas-flatlist { display: grid; }
.csas-flatrow { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--csas-line); }
.csas-flatrow-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.csas-flatrow-main strong { font-size: 15.5px; color: var(--csas-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-flatrow-main small { font-size: 12.5px; color: var(--csas-muted); }
.csas-flatrow-main small.is-on { color: #15803d; }
.csas-flatrow-main small b { color: var(--csas-danger); }
.csas-flatrow .csas-iconbtn { width: 38px; height: 38px; }

/* ===== v3.4: agent Customers page (Needs attention / All customers) ===== */
.csas-subtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 12px; background: #eef2f1; border-radius: 14px; }
.csas-subtabs a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--csas-ink-2); text-decoration: none; }
.csas-subtabs a.is-on { background: #fff; color: var(--csas-navy); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.csas-subtabs b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--csas-danger); color: #fff; font-size: 11.5px; }
.csas-subtabs b.is-muted { background: #dfe6e4; color: var(--csas-ink-2); }
.csas-chatrow-biz { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--csas-navy-600); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.csas-chatrow-biz .csas-chip { padding: 1px 7px; font-size: 10.5px; }
.csas-chatrow-top small.csas-waited { color: var(--csas-danger) !important; }
.csas-flatrow-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: inherit; }
.csas-chandot { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; vertical-align: 0; }
.csas-chandot.is-whatsapp { background: #25d366; } .csas-chandot.is-facebook { background: #0866ff; } .csas-chandot.is-instagram { background: #d6249f; }
.csas-chatsearch { margin: 10px 0 2px; min-height: 44px; }
.csas-note { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: #f1f5f4; color: var(--csas-ink-2); font-size: 13px; }

/* ===== v3.4: Smart Setup — stepper, choices, packs, review ===== */
.csas-setup { background: #fff; border: 1px solid var(--csas-line); border-radius: var(--csas-radius); box-shadow: var(--csas-sh-1); padding: 18px 16px 16px; }
.csas-setup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.csas-setup-head h2 { margin: 0; font-size: 21px; color: var(--csas-navy); letter-spacing: -.01em; }
.csas-setup-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--csas-ink-2); }
.csas-setup-count { font-size: 13px; color: var(--csas-muted); font-weight: 700; white-space: nowrap; }
.csas-setup-count b { font-size: 22px; color: var(--csas-navy-600); }
.csas-setup-bar { height: 6px; border-radius: 6px; background: var(--csas-gold-050); margin: 12px 0 6px; overflow: hidden; }
.csas-setup-bar i { display: block; height: 100%; background: var(--csas-gold); border-radius: 6px; min-width: 6px; transition: width .4s ease; }
.csas-setup-steps { list-style: none; margin: 0; padding: 0; }
.csas-setup-steps > li { padding: 12px 0; border-bottom: 1px solid var(--csas-line); }
.csas-setup-steps > li:last-child { border-bottom: 0; }
.csas-setup-step { display: flex; align-items: center; gap: 12px; }
.csas-setup-step strong { display: block; font-size: 15.5px; color: var(--csas-navy); }
.csas-setup-step small { display: block; font-size: 12.5px; color: var(--csas-ink-2); }
.csas-setup-dot { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #eef2f1; color: var(--csas-muted); }
.csas-setup-steps li.is-now .csas-setup-dot { background: var(--csas-gold); color: #fff; box-shadow: 0 0 0 5px var(--csas-gold-050); }
.csas-setup-steps li.is-done .csas-setup-dot { background: #dcfce7; color: #15803d; }
.csas-setup-steps li.is-todo strong { color: var(--csas-muted); }
.csas-setup-body { margin-top: 14px; }
.csas-setup-body .csas-card { box-shadow: none; padding: 14px; }
.csas-setup-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--csas-gold-050); color: var(--csas-navy-600); font-size: 13px; font-weight: 600; }
.csas-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.csas-choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 148px; padding: 14px 10px 12px; border: 1.5px solid var(--csas-line-strong); border-radius: 16px; background: #fff; text-align: left; text-decoration: none; color: inherit; font: inherit; cursor: pointer; }
.csas-choice:active { transform: scale(.98); }
.csas-choice strong { font-size: 14px; line-height: 1.2; color: var(--csas-navy); }
.csas-choice small { font-size: 11.5px; line-height: 1.3; color: var(--csas-ink-2); }
.csas-choice-ico { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.csas-choice.is-rec { border-color: var(--csas-gold); background: linear-gradient(180deg, #fff, var(--csas-gold-050)); box-shadow: 0 8px 18px -10px rgba(20,184,166,.55); }
.csas-choice em { margin-top: auto; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--csas-gold); padding: 3px 7px; border-radius: 99px; }
@media (max-width: 400px) { .csas-choices { gap: 6px; } .csas-choice { padding: 12px 8px 10px; min-height: 156px; } .csas-choice strong { font-size: 13px; } .csas-choice small { font-size: 11px; } .csas-choice em { font-size: 9.5px; padding: 3px 6px; } }

.csas-auto-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.csas-auto-head .csas-h2 { margin: 0; }
.csas-pill-expert { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--csas-gold); background: #fff; color: var(--csas-navy-600); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.csas-pill-expert:active { background: var(--csas-gold-050); }
.csas-subtabs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.csas-subtabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.csas-subtabs-4 a, .csas-subtabs-3 a { font-size: 12.5px; padding: 0 4px; text-align: center; line-height: 1.15; }
.csas-lockcard { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 18px; background: #fff; border: 1px dashed var(--csas-line-strong); border-radius: var(--csas-radius); }
.csas-lockcard-ico { font-size: 30px; }
.csas-lockcard strong { font-size: 16px; color: var(--csas-navy); }
.csas-lockcard p { margin: 0 0 8px; font-size: 13.5px; color: var(--csas-ink-2); }
.csas-livecard { display: flex; align-items: center; gap: 12px; }
.csas-livecard-ico { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #15803d; font-weight: 800; }
.csas-livecard strong { display: block; color: var(--csas-navy); }
.csas-livecard small { color: var(--csas-ink-2); }

.csas-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.csas-pack { position: relative; display: grid; gap: 2px; min-height: 96px; padding: 12px; border: 1.5px solid var(--csas-line-strong); border-radius: 16px; background: #fff; cursor: pointer; }
.csas-pack input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.csas-pack:has(input:checked) { border-color: var(--csas-gold); background: var(--csas-gold-050); box-shadow: 0 0 0 3px rgba(20,184,166,.14); }
.csas-pack-ico { font-size: 24px; }
.csas-pack strong { font-size: 14px; color: var(--csas-navy); line-height: 1.2; }
.csas-pack small { font-size: 11.5px; color: var(--csas-ink-2); }
.csas-stickybar { position: sticky; bottom: calc(var(--csas-tabbar-h, 64px) + 8px + env(safe-area-inset-bottom)); z-index: 5; margin: 12px 0 0; padding: 8px 0 0; background: linear-gradient(180deg, rgba(240,250,248,0), var(--csas-bg) 30%); }
.csas-btn-lg { min-height: 52px; font-size: 16px; }
.csas-btn.is-busy, button.is-busy { opacity: .75; pointer-events: none; }

.csas-reviewhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.csas-reviewhead .csas-h2 { margin: 0; }
.csas-flowrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 2px; border-top: 1px solid var(--csas-line); text-decoration: none; color: inherit; }
.csas-flowrow-ico { flex: 0 0 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--csas-gold-050); font-size: 18px; }
.csas-flowrow-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.csas-flowrow-main strong { font-size: 15px; color: var(--csas-navy); }
.csas-flowrow-main small { font-size: 12px; color: var(--csas-ink-2); }
.csas-flowrow-main em { font-style: normal; font-size: 12.5px; color: var(--csas-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-num { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 50%; background: var(--csas-gold-050); color: var(--csas-navy-600); font-size: 11.5px; font-weight: 800; }
.csas-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.csas-problems { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #fef3f2; border: 1px solid #fecdca; color: #7a271a; font-size: 13.5px; }
.csas-problems ul { margin: 6px 0 0; padding-left: 18px; }
.csas-testbox { padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--csas-line); }
.csas-testbox > strong { display: block; color: var(--csas-navy); margin-bottom: 6px; }
.csas-testform { display: grid; gap: 8px; margin-top: 8px; }
.csas-coex { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #f0fdf4; font-size: 13.5px; color: var(--csas-navy); cursor: pointer; }
.csas-coex input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #16a34a; flex: 0 0 20px; }
.csas-coex-note { margin: 6px 2px 0; font-size: 12.5px; color: #92400e; }

.csas-prodlist { list-style: none; margin: 8px 0; padding: 0; }
.csas-prodlist > li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--csas-line); }
.csas-prodlist > li.is-off { opacity: .55; }
.csas-prodthumb { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--csas-gold-050); display: grid; place-items: center; }
.csas-prodthumb img { width: 100%; height: 100%; object-fit: cover; }
.csas-prodmain { min-width: 0; display: grid; }
.csas-prodmain strong { font-size: 14.5px; color: var(--csas-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-prodmain small { font-size: 12.5px; color: var(--csas-ink-2); }
.csas-prodmain .csas-warn { color: var(--csas-danger); }
.csas-prodacts { display: flex; gap: 4px; }
.csas-prodacts .csas-iconbtn { width: 36px; height: 36px; font-size: 15px; }
.csas-prodacts .csas-iconbtn:disabled { opacity: .3; }
.csas-prodedit { grid-column: 1 / -1; }
.csas-prodedit summary { font-size: 13px; font-weight: 700; color: var(--csas-navy-600); cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.csas-dropzone { position: relative; display: grid; justify-items: center; gap: 2px; padding: 18px 12px; border: 2px dashed var(--csas-line-strong); border-radius: 16px; background: #fbfefd; text-align: center; cursor: pointer; }
.csas-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.csas-dropzone-ico { font-size: 26px; }
.csas-dropzone strong { color: var(--csas-navy); }
.csas-dropzone small { font-size: 12.5px; color: var(--csas-ink-2); }
.csas-addphoto.is-busy .csas-dropzone { border-color: var(--csas-gold); background: var(--csas-gold-050); }
.csas-photoform { margin-top: 12px; }
.csas-photoform-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.csas-photoform-top img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--csas-gold-050); }

/* ===== v3.4: flow builder ===== */
.csas-builder { margin: 0 -4px; }
.csas-bld-top { display: flex; align-items: center; gap: 6px; padding: 4px 0 8px; }
.csas-bld-back { flex: 0 0 40px; height: 44px; display: grid; place-items: center; font-size: 30px; color: var(--csas-navy); text-decoration: none; }
.csas-bld-title { flex: 1; min-width: 0; display: grid; text-align: left; background: none; border: 0; padding: 4px; font: inherit; cursor: pointer; min-height: 44px; }
.csas-bld-title strong { font-size: 16px; color: var(--csas-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-bld-title small { font-size: 12px; color: var(--csas-ink-2); }
.csas-bld-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; border: 1px solid var(--csas-line); background: #fff; font-size: 20px; color: var(--csas-navy); cursor: pointer; }
.csas-bld-icon:disabled { opacity: .35; }
.csas-pill-sm { min-height: 44px; padding: 0 10px; font-size: 12.5px; }
.csas-bld-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.csas-bld-bar::-webkit-scrollbar { display: none; }
.csas-bld-bar button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--csas-line-strong); background: #fff; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--csas-navy-600); cursor: pointer; }
.csas-bld-bar button.is-primary { margin-left: auto; background: var(--csas-gold); border-color: var(--csas-gold); color: #fff; }
.csas-bld-problems { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: #fffaeb; border: 1px solid #fedf89; font-size: 13px; color: #7a2e0e; }
.csas-bld-problems summary { font-weight: 700; cursor: pointer; min-height: 28px; }
.csas-bld-problems ul { margin: 6px 0 0; padding-left: 18px; }
.csas-bld-canvas { position: relative; height: calc(100dvh - 370px); min-height: 380px; max-height: 760px; overflow: hidden; border-radius: 18px; border: 1px solid var(--csas-line); touch-action: none; -webkit-user-select: none; user-select: none; outline: none;
	background-color: #f7fbfa; background-image: radial-gradient(circle, #d6e6e2 1px, transparent 1px); background-size: 20px 20px; }
.csas-bld-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.csas-bld-world.is-anim { transition: transform .25s ease; }
.csas-bld-edges { position: absolute; left: 0; top: 0; overflow: visible; }
.csas-edge { fill: none; stroke: #5eb8ab; stroke-width: 2.5; }
.csas-edge.is-temp { stroke-dasharray: 6 5; stroke: var(--csas-gold); }
.csas-edge.is-picked { stroke: var(--csas-danger); stroke-width: 3.5; }
.csas-edge-end { fill: #5eb8ab; }
.csas-edge-hit { fill: none; stroke: transparent; stroke-width: 22; cursor: pointer; pointer-events: stroke; }
.csas-edge-chip { position: absolute; transform: translate(-50%, -130%); z-index: 6; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--csas-danger); color: #fff; font: inherit; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.csas-bld-nodes { position: relative; }
.csas-node { position: absolute; }
.csas-node-card { position: relative; padding: 10px 12px 10px 30px; min-height: 64px; border-radius: 18px; background: #fff; border: 1.5px solid var(--csas-line-strong); box-shadow: 0 4px 14px -6px rgba(15,23,42,.18); cursor: pointer; }
.csas-node-card strong { display: block; font-size: 14px; color: var(--csas-navy); line-height: 1.25; }
.csas-node-card small { display: block; font-size: 11px; color: var(--csas-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.csas-node-card p { margin: 4px 0 0; font-size: 12.5px; color: var(--csas-ink-2); line-height: 1.3; max-height: 34px; overflow: hidden; }
.csas-node-note { display: block; margin-top: 4px; font-style: normal; font-size: 11px; color: #b54708; }
.csas-node-grip { position: absolute; left: 0; top: 0; bottom: 0; width: 26px; display: grid; place-items: center; color: #b7c9c5; font-size: 13px; letter-spacing: -2px; border-radius: 18px 0 0 18px; cursor: grab; }
.csas-node-start { position: absolute; right: 10px; top: -10px; padding: 2px 8px; border-radius: 99px; background: var(--csas-gold); color: #fff; font-size: 10.5px; }
.csas-node.is-start .csas-node-card { border-color: var(--csas-gold); }
.csas-node.is-ai .csas-node-card { background: #f5f3ff; } .csas-node.is-handoff .csas-node-card { background: #fff7ed; } .csas-node.is-end .csas-node-card { background: #f8fafc; }
.csas-node.is-lifted { z-index: 5; } .csas-node.is-lifted .csas-node-card { transform: scale(1.04); box-shadow: 0 16px 30px -10px rgba(15,23,42,.35); border-color: var(--csas-gold); }
.csas-node.is-target .csas-node-card { border-style: dashed; border-color: var(--csas-gold); }
.csas-node-ports { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin-top: 2px; }
.csas-port { display: flex; flex-direction: column; align-items: center; min-width: 44px; min-height: 44px; padding: 4px 4px 0; border: 0; background: none; font: inherit; cursor: crosshair; }
.csas-port i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #5eb8ab; }
.csas-port.is-open i { border-color: #f79009; background: #fffaeb; }
.csas-port.is-active i { background: var(--csas-gold); border-color: var(--csas-gold); box-shadow: 0 0 0 6px rgba(20,184,166,.25); }
.csas-port span { max-width: 74px; margin-top: 1px; font-size: 10.5px; font-weight: 700; color: var(--csas-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-bld-hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 6; padding: 8px 14px; border-radius: 99px; background: var(--csas-navy); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.csas-bld-fab { position: absolute; right: 14px; bottom: 14px; z-index: 6; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--csas-gold); color: #fff; font-size: 32px; line-height: 1; box-shadow: 0 10px 22px -6px rgba(20,184,166,.65); cursor: pointer; }
.csas-bld-save { margin: 6px 4px 0; font-size: 12.5px; color: var(--csas-ink-2); min-height: 18px; }
.csas-bld-save.is-bad { color: var(--csas-danger); }

.csas-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,0); transition: background .2s ease; }
.csas-sheet.is-open { background: rgba(15,23,42,.38); }
.csas-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 22px 22px 0 0; padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .2s ease; }
.csas-sheet.is-open .csas-sheet-panel { transform: none; }
@media (min-width: 720px) { .csas-sheet-panel { left: 50%; right: auto; width: 560px; margin-left: -280px; } }
.csas-sheet-grip { width: 40px; height: 5px; border-radius: 5px; background: #dbe4e2; margin: 4px auto 8px; }
.csas-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.csas-sheet-head strong { font-size: 17px; color: var(--csas-navy); }
.csas-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--csas-line); }
.csas-sheet-foot .csas-btn-gold { margin-left: auto; }
.csas-danger { color: var(--csas-danger) !important; }
html.csas-sheet-open, html.csas-sheet-open body { overflow: hidden; }
.csas-txt-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.csas-emoji { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.csas-emoji button { flex: 0 0 34px; height: 34px; border: 0; background: #f4f7f6; border-radius: 8px; font-size: 17px; cursor: pointer; }
.csas-txt-bar small { flex: 0 0 auto; font-size: 11.5px; color: var(--csas-muted); }
.csas-items { display: grid; gap: 6px; margin-bottom: 6px; }
.csas-item { display: grid; grid-template-columns: 1fr 40px; gap: 6px; align-items: center; }
.csas-item .csas-item-desc { grid-column: 1; }
.csas-item select + input { grid-column: 1; }
.csas-item [data-remove] { grid-row: 1; grid-column: 2; width: 40px; height: 40px; }
.csas-addgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.csas-addgrid button { display: grid; justify-items: center; gap: 4px; min-height: 82px; padding: 10px 4px; border: 1px solid var(--csas-line-strong); border-radius: 14px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--csas-navy); cursor: pointer; }
.csas-addgrid button span { font-size: 22px; }
.csas-pickprods { display: grid; gap: 4px; margin-top: 6px; padding: 8px; border-radius: 12px; background: #f8fafc; }
.csas-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.csas-img { position: relative; width: 72px; height: 72px; }
.csas-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.csas-img button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--csas-navy); color: #fff; font-size: 11px; }
.csas-upl { position: relative; cursor: pointer; }
.csas-phone-mock { border-radius: 24px; overflow: hidden; border: 6px solid #0f172a; background: #efeae2; }
.csas-pm-top { padding: 10px 14px; background: #075e54; color: #fff; font-weight: 700; font-size: 14px; }
.csas-pm-chat { height: 56dvh; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.csas-pm-b { max-width: 86%; padding: 7px 10px; border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.35; box-shadow: 0 1px 1px rgba(0,0,0,.08); align-self: flex-start; }
.csas-pm-b.is-me { align-self: flex-end; background: #d9fdd3; }
.csas-pm-b.is-sys { align-self: center; background: #fff8c5; font-size: 12px; }
.csas-pm-b img { display: block; max-width: 100%; border-radius: 8px; margin-bottom: 4px; }
.csas-pm-listbtn { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid #eee; color: #00a5f4; text-align: center; }
.csas-pm-choices { display: grid; gap: 4px; align-self: flex-start; width: 86%; }
.csas-pm-choices button { min-height: 40px; border: 0; border-radius: 10px; background: #fff; color: #00a5f4; font: inherit; font-weight: 600; cursor: pointer; }
.csas-pm-cards { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; padding-bottom: 2px; }
.csas-pm-card { flex: 0 0 140px; display: grid; gap: 2px; padding: 0 0 6px; border: 1px solid #eee; border-radius: 10px; background: #fff; text-align: left; font: inherit; cursor: pointer; overflow: hidden; }
.csas-pm-card img { width: 100%; height: 100px; object-fit: cover; margin: 0; border-radius: 0; }
.csas-pm-card b, .csas-pm-card span { padding: 0 8px; font-size: 13px; }
.csas-pm-card em { margin: 4px 8px 0; padding-top: 4px; border-top: 1px solid #eee; font-style: normal; color: #00a5f4; text-align: center; font-size: 13px; }
.csas-flowrow-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.csas-flowmenu { position: relative; }
.csas-flowmenu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; color: var(--csas-ink-2); cursor: pointer; }
.csas-flowmenu summary::-webkit-details-marker { display: none; }
.csas-flowmenu form { position: absolute; right: 0; top: 44px; z-index: 10; display: grid; min-width: 150px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--csas-line); box-shadow: var(--csas-sh-1); }
.csas-flowmenu form button { min-height: 40px; border: 0; background: none; text-align: left; padding: 0 10px; font: inherit; font-size: 14px; border-radius: 10px; cursor: pointer; }
.csas-flowmenu form button:hover { background: var(--csas-bg); }
.csas-auto.is-building > .csas-auto-head, .csas-auto.is-building > .csas-subtabs { display: none; }
.csas-sheet .csas-field, .csas-txt, .csas-txt-bar, .csas-emoji { min-width: 0; }
.csas-sheet-panel .csas-textarea, .csas-sheet-panel .csas-input { width: 100%; box-sizing: border-box; }

/* ===== v3.4: Hire an expert ===== */
@media (max-width: 520px) { .csas-xsheet .csas-sheet-panel { max-height: 100dvh; height: 100dvh; border-radius: 0; } }
.csas-xcards { display: grid; gap: 8px; margin-top: 10px; }
.csas-xcard { border: 1.5px solid var(--csas-line-strong); border-radius: 16px; background: #fff; }
.csas-xcard[open] { border-color: var(--csas-gold); }
.csas-xcard summary { list-style: none; display: grid; gap: 4px; padding: 12px 14px; cursor: pointer; }
.csas-xcard summary::-webkit-details-marker { display: none; }
.csas-xcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.csas-xcard-top strong { font-size: 15.5px; color: var(--csas-navy); }
.csas-xcard-top b { flex: 0 0 auto; font-size: 15px; color: var(--csas-navy-600); }
.csas-xcard small { font-size: 12.5px; color: var(--csas-ink-2); }
.csas-xcard ul { margin: 2px 0 0; padding-left: 18px; font-size: 13px; color: var(--csas-ink-2); }
.csas-xcard-more { padding: 0 14px 14px; }
.csas-xtrack { padding: 12px; border-radius: 14px; border: 1px solid var(--csas-line); background: #fff; margin-bottom: 8px; }
.csas-xtrack-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.csas-xtrack-top strong { color: var(--csas-navy); }
.csas-xsteps { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.csas-xsteps li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 10.5px; color: var(--csas-muted); line-height: 1.2; }
.csas-xsteps i { width: 100%; height: 5px; border-radius: 5px; background: #e5ecea; }
.csas-xsteps li.is-done i { background: #86efac; } .csas-xsteps li.is-now i { background: var(--csas-gold); } .csas-xsteps li.is-now { color: var(--csas-navy); font-weight: 700; }
.csas-brief { display: grid; gap: 2px; margin: 8px 0; font-size: 13px; }
.csas-brief dt { font-weight: 700; color: var(--csas-navy); margin-top: 6px; }
.csas-brief dd { margin: 0; color: var(--csas-ink-2); }
.csas-adlist { list-style: none; margin: 8px 0 0; padding: 0; }
.csas-adlist > li { padding: 10px 0; border-top: 1px solid var(--csas-line); display: grid; gap: 8px; }
.csas-adrow { display: flex; gap: 10px; align-items: center; }
.csas-adthumb { flex: 0 0 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--csas-gold-050); display: grid; place-items: center; font-size: 22px; }
.csas-adthumb img { width: 100%; height: 100%; object-fit: cover; }
.csas-admain { min-width: 0; display: grid; }
.csas-admain strong { font-size: 14.5px; color: var(--csas-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-admain small { font-size: 12px; color: var(--csas-ink-2); }
.csas-admain em { font-style: normal; font-size: 12.5px; color: #15803d; font-weight: 700; }
.csas-admain em.is-weak { color: #b54708; font-weight: 600; }
.csas-adacts { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.csas-adacts select { min-height: 40px; }

/* ===== v3.4: orders, bookings, payments ===== */
.csas-orderlist { display: grid; gap: 10px; margin-top: 10px; }
.csas-order { padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--csas-line); }
.csas-order.is-cancelled { opacity: .6; }
.csas-order header { display: flex; align-items: center; gap: 8px; }
.csas-order header strong { color: var(--csas-navy); }
.csas-order header b { margin-left: auto; color: var(--csas-navy); }
.csas-ordersum { margin: 8px 0 4px; white-space: pre-wrap; font: inherit; font-size: 13px; color: var(--csas-ink-2); }
.csas-proof { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fffaeb; color: #93370d; font-size: 13px; font-weight: 600; }
.csas-orderacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.csas-statuspick { display: flex; flex-wrap: wrap; gap: 6px; }
.csas-statuspick .csas-pill { min-height: 36px; padding: 0 12px; font-size: 12.5px; }
.csas-resched { display: flex; gap: 6px; margin-top: 6px; }
.csas-paymodes { display: grid; gap: 8px; }
.csas-paymodes .csas-seg { justify-content: flex-start; text-align: left; }
.csas-paymodes .csas-seg span { display: grid; }
.csas-paymodes small { font-weight: 500; font-size: 12px; color: var(--csas-ink-2); }
.csas-copybox { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--csas-line-strong); border-radius: 12px; background: #f8fafc; font: inherit; font-size: 12px; text-align: left; word-break: break-all; cursor: copy; }

/* ===== v3.4: broadcasts ===== */
.csas-bc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.csas-bc-head > p { grid-column: 1 / -1; margin: 0; }
.csas-bc-stat strong { display: block; font-size: 22px; color: var(--csas-navy); }
.csas-bc-stat span { font-size: 12.5px; color: var(--csas-ink-2); }
.csas-bc-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
.csas-bc-preview { margin-top: 10px; padding: 8px; border-radius: 12px; background: #efeae2; display: grid; gap: 4px; }
.csas-bc-preview img { width: 100%; border-radius: 10px; }
.csas-bc-preview p { margin: 0; padding: 8px 10px; background: #fff; border-radius: 10px; font-size: 14px; }
.csas-bc-preview small { padding: 0 10px; color: #667085; font-size: 11.5px; }
.csas-bc-preview b { padding: 8px; background: #fff; border-radius: 10px; color: #00a5f4; text-align: center; }
.csas-bc-review { display: grid; gap: 2px; margin: 12px 0; padding: 14px; border-radius: 14px; background: var(--csas-gold-050); text-align: center; }
.csas-bc-review div { font-size: 15px; color: var(--csas-navy); font-weight: 700; }
.csas-bc-review strong { font-size: 26px; color: var(--csas-navy); }
.csas-bc-review small { font-size: 12px; color: var(--csas-ink-2); }
.csas-bcrow { padding: 10px 0; border-top: 1px solid var(--csas-line); display: grid; gap: 4px; }
.csas-bcrow small { font-size: 12.5px; color: var(--csas-ink-2); }
.csas-warn { color: #b54708; }
.csas-topup { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.csas-txlist { list-style: none; margin: 10px 0 0; padding: 0; }
.csas-txlist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--csas-line); font-size: 13.5px; }
.csas-txlist small { display: block; font-size: 11.5px; color: var(--csas-muted); }
.csas-txlist .is-neg { color: var(--csas-ink-2); } .csas-txlist .is-pos { color: #15803d; }
.csas-teach { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--csas-line); }
.csas-teach strong { color: var(--csas-navy); font-size: 14.5px; }
.csas-teach small { font-size: 11.5px; color: var(--csas-muted); }
.csas-teach-in { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; }
.csas-teach-in .csas-mic { width: 44px; height: 44px; }
.csas-mic.is-on { background: #fee4e2; }
.csas-teach-acts { display: flex; gap: 10px; align-items: center; }
.csas-statgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.csas-statgrid a, .csas-statgrid div { display: grid; gap: 2px; padding: 10px 8px; border-radius: 14px; background: #f8fafc; text-decoration: none; text-align: center; }
.csas-statgrid strong { font-size: 19px; color: var(--csas-navy); }
.csas-statgrid span { font-size: 11.5px; color: var(--csas-ink-2); line-height: 1.2; }
.csas-statgrid .is-hot { background: #fffaeb; }
.csas-replyline { margin: 10px 0 0; font-size: 13px; color: var(--csas-navy-600); font-weight: 600; }

/* =====================================================================
   3.4.1 — header status + bell, clean pages, segmented tabs, stepper,
   agent customer cards, auth pages without boxes
   ===================================================================== */

/* Header: plain status word (no dot) + attention bell */
.csas-brand-text small::before { content: none; display: none; }
.csas-brand-text small { font-weight: 700; }
.csas-brand-text small.is-wait { color: var(--csas-muted); }
.csas-brand-text small.is-warn { color: #b45309; }
.csas-variant-dash .csas-topbar .csas-brand-id { flex: 1; }
.csas-bell { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--csas-navy); background: #f1f5f4; text-decoration: none; transition: background .15s; }
.csas-bell:hover { background: var(--csas-gold-050); }
.csas-bell b { position: absolute; top: 4px; right: 3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.csas-bell.has-new { color: #dc2626; background: #fef2f2; }
.csas-bell.has-new svg { animation: csas-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes csas-ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(12deg); } 93% { transform: rotate(-10deg); } 97% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .csas-bell.has-new svg { animation: none; } }

/* Chats screens use their own header */
.csas-variant-dash.csas-tab-inbox .csas-topbar { display: none; }
.csas-pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; }
.csas-pagehead > div { min-width: 0; }
.csas-pagehead h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--csas-navy); }
.csas-pagehead small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--csas-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Segmented tabs (Flow page) */
.csas-segtabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; margin: 0 0 14px; background: #e9efed; border-radius: 16px; }
.csas-segtabs a { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 42px; padding: 0 6px; border-radius: 12px; color: var(--csas-ink-2); text-decoration: none; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; transition: background .15s, color .15s; }
.csas-segtabs a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-segtabs a.is-on { background: #fff; color: var(--csas-navy); box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 4px 12px -4px rgba(15,23,42,.14); }
.csas-segtabs a.is-locked { color: #94a3b8; }
.csas-segtabs .csas-tablock { position: absolute; top: 5px; right: 6px; width: 10px; height: 10px; opacity: .85; }
.csas-lockcard-ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; background: var(--csas-gold-050); color: var(--csas-navy-600); font-size: 0; }

/* Bottom bar: Material-style pill behind the active icon only */
.csas-tabbar a { padding: 6px 2px 4px; background: none !important; gap: 4px; }
.csas-tabbar a svg { box-sizing: content-box; padding: 4px 18px; border-radius: 99px; transition: background .2s, color .2s; }
.csas-tabbar a.is-on { color: var(--csas-navy); background: none; }
.csas-tabbar a.is-on svg { background: #d7f3ee; color: #0f766e; }
.csas-tabbar a.is-on span { font-weight: 800; }
.csas-tabbar .csas-badge { top: 2px; right: calc(50% - 26px); }
@media (min-width: 860px) and (hover: hover) and (pointer: fine) {
	.csas-tabbar a svg { padding: 0; background: none !important; }
	.csas-tabbar a.is-on { background: #d7f3ee !important; color: #0f766e; }
}

/* Stepper: compact progress row, only the current step below */
.csas-setup-head { display: block; }
.csas-progress3 { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 6px; padding: 0; position: relative; }
.csas-progress3 li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.csas-progress3 li + li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; border-radius: 3px; background: #e5ecea; z-index: 0; }
.csas-progress3 li.is-done + li::before, .csas-progress3 li.is-done::after { background: var(--csas-gold); }
.csas-progress3-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #fff; color: var(--csas-muted); border: 2px solid #dfe7e5; }
.csas-progress3 li.is-now .csas-progress3-dot { background: var(--csas-gold); border-color: var(--csas-gold); color: #fff; box-shadow: 0 0 0 5px var(--csas-gold-050); }
.csas-progress3 li.is-done .csas-progress3-dot { background: var(--csas-gold); border-color: var(--csas-gold); color: #fff; }
.csas-progress3 small { font-size: 12px; font-weight: 700; color: var(--csas-muted); }
.csas-progress3 li.is-now small { color: var(--csas-navy); }
.csas-setup-now { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--csas-line); }
.csas-setup-now strong { display: block; font-size: 17px; color: var(--csas-navy); }
.csas-setup-now small { display: block; margin-top: 2px; font-size: 13px; color: var(--csas-ink-2); }
.csas-setup-steps .csas-setup-body { margin-top: 12px; }

/* Templates tab */
.csas-tplhead { margin: 0 0 12px; }
.csas-tplhead .csas-h3 { margin: 0 0 4px; }

/* Instagram brand button */
.csas-btn-ig { background: linear-gradient(45deg, #feda75 0%, #fa7e1e 22%, #d62976 50%, #962fbf 76%, #4f5bd5 100%); color: #fff; border: 0; margin-top: 8px; }
.csas-btn-ig:hover, .csas-btn-ig:focus { color: #fff; filter: brightness(1.05); }

/* Agent: customer cards with waiting chats */
.csas-custlist { display: grid; gap: 10px; }
.csas-custcard { background: #fff; border: 1px solid var(--csas-line); border-radius: 18px; padding: 12px; box-shadow: var(--csas-sh-1); }
.csas-custcard.has-new { border-color: #fecaca; }
.csas-custcard-head { display: flex; align-items: center; gap: 10px; }
.csas-custcard-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.csas-custcard-main strong { font-size: 15.5px; color: var(--csas-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-custcard-main small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--csas-muted); }
.csas-custcard-main small.is-on { color: #15803d; }
.csas-custcard-acts { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.csas-custcard-acts .csas-iconbtn { width: 38px; height: 38px; border-radius: 12px; }
.csas-chatbtn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--csas-line-strong); color: var(--csas-navy-600); background: #fff; font-size: 14px; font-weight: 800; text-decoration: none; }
.csas-chatbtn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: #ef4444; color: #fff; font-size: 11.5px; }
.csas-chatbtn.has-new { border-color: #fca5a5; color: #b91c1c; }
.csas-custcard-chats { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--csas-line); }
.csas-custcard-chats .csas-chatrow { padding: 10px 2px; }
.csas-count { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: #ef4444; color: #fff; font-size: 11.5px; font-weight: 800; }

/* Agent work roles */
.csas-rolepick { display: flex; flex-wrap: wrap; gap: 8px; }
.csas-rolechip { position: relative; cursor: pointer; }
.csas-rolechip input { position: absolute; opacity: 0; pointer-events: none; }
.csas-rolechip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--csas-line-strong); background: #fff; font-size: 14px; font-weight: 700; color: var(--csas-ink-2); }
.csas-rolechip input:checked + span { border-color: var(--csas-gold); background: var(--csas-gold-050); color: #0f766e; }
.csas-rolechip input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 800; }
.csas-rolechip input:focus-visible + span { outline: 2px solid var(--csas-gold); outline-offset: 2px; }

/* Auth pages: no boxes — form sits on the page */
.csas-auth { max-width: 420px; margin-top: clamp(12px, 5vw, 48px); }
.csas-auth-wide { max-width: 560px; }
.csas-auth .csas-card, .csas-auth form.csas-card { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.csas-auth .csas-auth-head { text-align: left; margin-bottom: 26px; }
.csas-auth .csas-auth-head .csas-brand-mark { margin: 0 0 18px; width: 48px; height: 48px; border-radius: 15px; font-size: 20px; }
.csas-auth .csas-auth-head h1 { font-size: 30px; line-height: 1.1; }
.csas-auth .csas-auth-head p { font-size: 15px; margin-top: 6px; }
.csas-auth .csas-input, .csas-auth .csas-pass .csas-input, .csas-auth select { min-height: 54px; border-radius: 14px; background: #fff; border: 1.5px solid #d7e2df; font-size: 16px; }
.csas-auth .csas-input:focus { border-color: var(--csas-gold); box-shadow: 0 0 0 4px var(--csas-gold-050); }
.csas-auth .csas-field label { font-size: 14px; }
.csas-auth .csas-btn-block, .csas-auth button[type=submit] { min-height: 54px; border-radius: 14px; font-size: 16px; }
.csas-auth .csas-page-head { text-align: left; }
.csas-auth .csas-center { text-align: center; }
.csas-segtabs a.is-on.is-locked { color: var(--csas-navy); }
.csas-custcard-main small { white-space: nowrap; overflow: hidden; }
.csas-custcard-main small span { overflow: hidden; text-overflow: ellipsis; }
.csas-custcard-main strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.csas-custcard-acts { gap: 4px; }
.csas-custcard-acts .csas-iconbtn { width: 34px; height: 36px; border-radius: 11px; }
.csas-chatbtn { height: 36px; padding: 0 10px; gap: 5px; }

/* =====================================================================
   3.4.2 — business header on Home only, page bars, icon tabs,
   full-screen builder, payments, scorecard
   ===================================================================== */

/* Home header: small WhatsApp-style status with a dot */
.csas-brand-text small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--csas-muted) !important; letter-spacing: 0; }
.csas-brand-text small::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b8c4c2; flex: 0 0 auto; }
.csas-brand-text small.is-on::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.16); }
.csas-brand-text small.is-warn::before { background: #f59e0b; }

/* Any page with a page bar hides the business header */
.csas-body:has(.csas-pagebar) .csas-topbar { display: none; }
.csas-pagebar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 6px; min-height: 58px; margin: -14px calc(-1 * var(--csas-gut, 16px)) 2px; padding: 6px max(10px, calc(var(--csas-gut, 16px) - 4px)) 6px max(4px, calc(var(--csas-gut, 16px) - 8px)); background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--csas-line); }
.csas-pagebar-back { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--csas-navy); text-decoration: none; }
.csas-pagebar-back:hover, .csas-pagebar-back:focus-visible { background: #f1f5f4; }
.csas-pagebar-t { flex: 1; min-width: 0; }
.csas-pagebar-t h1 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--csas-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-pagebar-t small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--csas-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-pagebar-r { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.csas-pagebar-r .csas-bell { width: 40px; height: 40px; border-radius: 12px; }
.csas-pagebar-r .csas-pill-expert { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.csas-sectlabel { margin: 4px 2px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--csas-muted); }
.csas-pagehead h1 { font-size: 19px; }

/* Flow: icon tabs (Flows · Templates · AI Brain) */
.csas-icontabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 2px 0 14px; }
.csas-icontabs a { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--csas-line); color: var(--csas-ink-2); text-decoration: none; font-size: 13px; font-weight: 700; transition: border-color .15s, box-shadow .15s, transform .15s; }
.csas-icontabs a i { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #f1f5f4; color: var(--csas-navy-600); font-style: normal; transition: background .15s, color .15s; }
.csas-icontabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-icontabs a.is-on { border-color: var(--csas-gold); box-shadow: 0 6px 18px -10px rgba(13,148,136,.55); color: var(--csas-navy); }
.csas-icontabs a.is-on i { background: var(--csas-gold); color: #fff; }
.csas-icontabs a.is-locked { color: #94a3b8; }
.csas-icontabs a.is-locked i { color: #94a3b8; }
.csas-icontabs .csas-tablock { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: #fff; color: var(--csas-ink-2); box-shadow: 0 1px 3px rgba(15,23,42,.18); }
.csas-icontabs a:active { transform: scale(.98); }

/* Builder: a full empty screen to design on */
.csas-auto.is-building .csas-builder { position: fixed; inset: 0; z-index: 900; margin: 0; padding: max(8px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); background: var(--csas-bg, #f2f8f7); display: flex; flex-direction: column; }
.csas-auto.is-building .csas-bld-canvas { flex: 1; height: auto; max-height: none; min-height: 0; }
.csas-body:has(.csas-auto.is-building) { overflow: hidden; }
.csas-body:has(.csas-auto.is-building) .csas-tabbar, .csas-body:has(.csas-auto.is-building) .csas-topbar { display: none; }

/* Home quick links */
.csas-quicklinks { display: grid; gap: 0; background: #fff; border: 1px solid var(--csas-line); border-radius: 18px; overflow: hidden; box-shadow: var(--csas-sh-1); }
.csas-quicklinks a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: inherit; text-decoration: none; }
.csas-quicklinks a + a { border-top: 1px solid var(--csas-line); }
.csas-quicklinks i { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--csas-gold-050); color: #0f766e; }
.csas-quicklinks span { flex: 1; min-width: 0; display: grid; }
.csas-quicklinks strong { font-size: 15px; color: var(--csas-navy); }
.csas-quicklinks small { font-size: 12.5px; color: var(--csas-muted); }
.csas-quicklinks b { font-size: 22px; color: var(--csas-muted); font-weight: 400; }

/* Agent customers: wider cards (not touching the edge) */
.csas-custlist { margin: 0 calc(-1 * var(--csas-gut, 16px) + 6px); }
.csas-custcard { padding: 14px; border-radius: 20px; }

/* Scorecard */
.csas-scorehero { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; box-shadow: 0 14px 30px -18px rgba(13,148,136,.8); }
.csas-scorehero span { font-size: 13px; font-weight: 600; opacity: .9; }
.csas-scorehero strong { display: block; margin: 4px 0 2px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.csas-scorehero small { font-size: 12.5px; opacity: .92; }
.csas-ring { flex: 0 0 auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.22) 0); }
.csas-ring b { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #109486; font-size: 15px; }
.csas-tile strong.is-hot { color: #dc2626; }
.csas-avatar-xs { width: 28px; height: 28px; border-radius: 50%; font-size: 12px; flex: 0 0 auto; }
.csas-row-who { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--csas-navy); min-width: 0; }

/* Payments */
.csas-payhero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--csas-line); box-shadow: var(--csas-sh-1); }
.csas-payhero.is-on { background: linear-gradient(135deg, #ecfdf5, #f0fdfa); border-color: #a7f3d0; }
.csas-payhero-ico { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #f1f5f4; color: var(--csas-navy-600); }
.csas-payhero.is-on .csas-payhero-ico { background: #10b981; color: #fff; }
.csas-payhero div { min-width: 0; display: grid; gap: 1px; }
.csas-payhero small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--csas-muted); }
.csas-payhero strong { font-size: 17px; color: var(--csas-navy); }
.csas-payhero span { font-size: 13px; color: var(--csas-ink-2); }
.csas-paynote { display: flex; align-items: center; gap: 6px; margin: -4px 4px 0; font-size: 12.5px; color: var(--csas-muted); }
.csas-payform { display: grid; gap: 12px; }
.csas-paylabel { margin: 8px 2px 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--csas-muted); }
.csas-payopts { display: grid; gap: 10px; }
.csas-payopt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--csas-line); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.csas-payopt input { position: absolute; opacity: 0; pointer-events: none; }
.csas-payopt-ico { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #f1f5f4; color: var(--csas-navy-600); }
.csas-payopt-ico.is-bolt { background: #fef3c7; color: #b45309; }
.csas-payopt-ico.is-link { background: #e0f2fe; color: #0369a1; }
.csas-payopt-ico.is-none { background: #ede9fe; color: #6d28d9; }
.csas-payopt-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.csas-payopt-t strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15.5px; color: var(--csas-navy); }
.csas-payopt-t em { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--csas-gold-050); color: #0f766e; }
.csas-payopt-t small { font-size: 13px; color: var(--csas-ink-2); line-height: 1.35; }
.csas-payopt-dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5d3; transition: border-color .15s, box-shadow .15s; }
.csas-payopt:has(input:checked) { border-color: var(--csas-gold); background: #f5fdfb; box-shadow: 0 8px 20px -14px rgba(13,148,136,.6); }
.csas-payopt:has(input:checked) .csas-payopt-dot { border-color: var(--csas-gold); box-shadow: inset 0 0 0 5px var(--csas-gold); }
.csas-payopt:has(input:focus-visible) { outline: 2px solid var(--csas-gold); outline-offset: 2px; }
.csas-paypanel { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--csas-line); }
.csas-paypanel h3 { margin: 0; font-size: 15.5px; color: var(--csas-navy); }
.csas-paypanel .csas-field { margin: 0; }
.csas-gwpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.csas-gw { position: relative; cursor: pointer; }
.csas-gw input { position: absolute; opacity: 0; pointer-events: none; }
.csas-gw span { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--csas-line-strong); font-weight: 800; color: var(--csas-navy); font-size: 14.5px; }
.csas-gw b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font-size: 14px; }
.csas-gw.is-paystack b { background: #0ba4db; }
.csas-gw.is-flutterwave b { background: #f5a623; }
.csas-gw input:checked + span { border-color: var(--csas-gold); background: #f5fdfb; box-shadow: 0 0 0 3px var(--csas-gold-050); }
.csas-keysaved { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #ecfdf5; color: #047857; font-size: 11.5px; font-weight: 800; }
.csas-hookbox { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--csas-line); }
.csas-hookbox strong { font-size: 13.5px; color: var(--csas-navy); }
.csas-hookbox small { font-size: 12px; color: var(--csas-muted); }
.csas-hookbox .csas-copybox { background: #fff; }
.csas-paybank-head { display: flex; align-items: center; gap: 12px; }
.csas-paybank-head > span:last-child { display: grid; }
.csas-paybank-head strong { font-size: 15px; color: var(--csas-navy); }
.csas-paybank-head small { font-size: 12.5px; color: var(--csas-muted); }
.csas-savebar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; padding-top: 4px; }
@media (min-width: 860px) and (hover: hover) and (pointer: fine) { .csas-savebar { bottom: 12px; } }
.csas-dash > .csas-pagebar { order: -1; }

/* =====================================================================
   3.4.3 — flat pill tabs, compact agent home, toggle, blank pages,
   Hire an Expert sheet
   ===================================================================== */

/* Flat pill tabs (Flow / expert workspace) */
.csas-pilltabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; margin: 0 0 14px; background: #fff; border: 1px solid var(--csas-line); border-radius: 99px; box-shadow: var(--csas-sh-1); }
.csas-pilltabs a { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 0 8px; border-radius: 99px; color: var(--csas-ink-2); text-decoration: none; font-size: 13.5px; font-weight: 700; transition: background .15s, color .15s; }
.csas-pilltabs a svg { flex: 0 0 auto; color: inherit; }
.csas-pilltabs a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-pilltabs a.is-on { background: var(--csas-gold); color: #fff; box-shadow: 0 6px 16px -8px rgba(13,148,136,.7); }
.csas-pilltabs a.is-locked:not(.is-on) { color: #94a3b8; }
.csas-pilltabs a:not(.is-on):hover { background: #f1f5f4; }

/* Agent customer cards: a little shorter */
.csas-custcard { padding: 10px 12px; }
.csas-custcard .csas-avatar-sm { width: 40px; height: 40px; }
.csas-custcard-main strong { font-size: 15px; }
.csas-badged { position: relative; }
.csas-badged b { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.csas-badged.has-new { border-color: #fca5a5; color: #b91c1c; }

/* Toggle row (agent availability) */
.csas-togglerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--csas-line); border-radius: 18px; box-shadow: var(--csas-sh-1); }
.csas-togglerow > span { display: grid; min-width: 0; }
.csas-togglerow strong { font-size: 15.5px; color: var(--csas-navy); }
.csas-togglerow small { font-size: 12.5px; color: var(--csas-muted); }
.csas-togglerow.is-busy { opacity: .6; pointer-events: none; }
.csas-switch-ui { position: relative; flex: 0 0 auto; width: 52px; height: 32px; cursor: pointer; }
.csas-switch-ui input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.csas-switch-ui i { position: absolute; inset: 0; border-radius: 99px; background: #cbd5e1; transition: background .2s; pointer-events: none; }
.csas-switch-ui i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.3); transition: transform .2s; }
.csas-switch-ui input:checked + i { background: #22c55e; }
.csas-switch-ui input:checked + i::after { transform: translateX(20px); }
.csas-switch-ui input:focus-visible + i { outline: 2px solid var(--csas-gold); outline-offset: 2px; }

/* Agent Home: at a glance + compact list */
.csas-glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.csas-glance a { display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--csas-line); box-shadow: var(--csas-sh-1); text-decoration: none; color: inherit; min-width: 0; }
.csas-glance i { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 11px; background: var(--csas-gold-050); color: #0f766e; }
.csas-glance strong { font-size: 22px; line-height: 1.1; font-weight: 800; color: var(--csas-navy); }
.csas-glance span { font-size: 12px; font-weight: 600; color: var(--csas-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.csas-glance a.is-hot { border-color: #fecaca; background: #fff7f7; }
.csas-glance a.is-hot i { background: #fee2e2; color: #dc2626; }
.csas-glance a.is-hot strong { color: #dc2626; }
.csas-glance a.is-new { border-color: #bfdbfe; }
.csas-glance a.is-new i { background: #dbeafe; color: #1d4ed8; }
.csas-minilist { background: #fff; border: 1px solid var(--csas-line); border-radius: 18px; box-shadow: var(--csas-sh-1); overflow: hidden; }
.csas-minilist header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; }
.csas-minilist h2 { margin: 0; font-size: 15px; color: var(--csas-navy); }
.csas-minilist header a { font-size: 13.5px; font-weight: 700; color: #0f766e; text-decoration: none; }
.csas-minilist > a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: inherit; text-decoration: none; border-top: 1px solid var(--csas-line); }
.csas-minilist-t { flex: 1; min-width: 0; display: grid; }
.csas-minilist-t strong { font-size: 14.5px; color: var(--csas-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csas-minilist-t small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--csas-muted); }
.csas-minilist-t small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b8c4c2; }
.csas-minilist-t small.is-on::before { background: #22c55e; }
.csas-minilist em { font-style: normal; font-size: 20px; color: var(--csas-muted); }

/* Unboxed full-page messages */
.csas-blank { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 32px 12px; }
.csas-blank-page { min-height: 52vh; align-content: center; max-width: 440px; margin: 0 auto; }
.csas-blank-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--csas-gold-050); color: #0f766e; margin-bottom: 6px; }
.csas-blank h1, .csas-blank strong { margin: 0; font-size: 22px; font-weight: 800; color: var(--csas-navy); letter-spacing: -.01em; }
.csas-blank strong { font-size: 18px; }
.csas-blank p { margin: 0 0 8px; font-size: 14.5px; color: var(--csas-ink-2); max-width: 34ch; }

/* Hire an Expert sheet */
.csas-xsheet .csas-sheet-panel { padding-top: 6px; background: #f6faf9; }
.csas-xs-head { position: sticky; top: -6px; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 0 -16px; padding: 10px 16px 12px; background: #f6faf9; }
.csas-xs-head > div { flex: 1; min-width: 0; display: grid; }
.csas-xs-head strong { font-size: 18px; color: var(--csas-navy); }
.csas-xs-head small { font-size: 12.5px; color: var(--csas-muted); }
.csas-xs-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--csas-line); font-size: 22px; }
.csas-xs-trust { list-style: none; display: grid; gap: 6px; margin: 2px 0 12px; padding: 12px; background: #fff; border: 1px solid var(--csas-line); border-radius: 16px; }
.csas-xs-trust li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--csas-ink-2); }
.csas-xs-trust b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--csas-gold-050); color: #0f766e; font-size: 12px; flex: 0 0 auto; }
.csas-xs-list { display: grid; gap: 10px; margin-top: 10px; }
.csas-xs-card { display: grid; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--csas-line); border-radius: 18px; box-shadow: var(--csas-sh-1); }
.csas-xs-card[hidden] { display: none; }
.csas-xs-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.csas-xs-card header div { display: grid; min-width: 0; }
.csas-xs-card header small { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #0f766e; }
.csas-xs-card header strong { font-size: 16.5px; color: var(--csas-navy); line-height: 1.25; }
.csas-xs-card header b { flex: 0 0 auto; font-size: 18px; font-weight: 800; color: var(--csas-navy); }
.csas-xs-time { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 4px 10px; border-radius: 99px; background: #f1f5f4; font-size: 12.5px; font-weight: 700; color: var(--csas-ink-2); }
.csas-xs-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.csas-xs-card li { position: relative; padding-left: 24px; font-size: 14px; color: var(--csas-ink-2); line-height: 1.4; }
.csas-xs-card li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #d1fae5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.csas-xs-more summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: #0f766e; list-style: none; }
.csas-xs-more summary::-webkit-details-marker { display: none; }
.csas-xs-more[open] summary { margin-bottom: 8px; }
.csas-xs-more p { margin: 8px 0 0; font-size: 13.5px; color: var(--csas-ink-2); }
.csas-xs-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px 10px 8px; }
.csas-xs-empty > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; border: 1px solid var(--csas-line); color: #0f766e; }
.csas-xs-empty strong { font-size: 18px; color: var(--csas-navy); }
.csas-xs-empty p { margin: 0 0 8px; font-size: 14px; color: var(--csas-ink-2); max-width: 32ch; }
.csas-xs-diy { display: block; margin: 14px 0 4px; text-align: center; font-size: 14px; font-weight: 700; color: #0f766e; text-decoration: none; }
.csas-pilltabs a { gap: 5px; padding: 0 6px; font-size: 13px; letter-spacing: -.01em; }
.csas-pilltabs a svg { width: 15px; height: 15px; }
@media (max-width: 340px) { .csas-pilltabs a svg { display: none; } }

/* Saved answers (AI Brain) */
.csas-saved-row { border-top: 1px solid var(--csas-line); }
.csas-saved-row summary { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; }
.csas-saved-row summary::-webkit-details-marker { display: none; }
.csas-saved-q { flex: 1; min-width: 0; display: grid; gap: 2px; }
.csas-saved-q strong { font-size: 14.5px; color: var(--csas-navy); }
.csas-saved-q small { font-size: 13px; color: var(--csas-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.csas-saved-meta { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; }
.csas-saved-meta em { font-style: normal; }
.csas-saved-meta small { font-size: 11.5px; color: var(--csas-muted); }
.csas-saved-row.is-stale .csas-saved-q { opacity: .65; }
.csas-saved-edit { display: grid; gap: 8px; padding: 0 0 14px; }
.csas-saved-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.csas-saved-add { border-top: 1px solid var(--csas-line); padding-top: 12px; }
.csas-saved-add summary { cursor: pointer; font-weight: 800; color: #0f766e; list-style: none; min-height: 32px; }
.csas-saved-add summary::-webkit-details-marker { display: none; }
.csas-danger { color: #b91c1c !important; }

/* Trial, paused, WhatsApp meter (Home) */
.csas-trialbar, .csas-meter { display: grid; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--csas-line); border-radius: 18px; box-shadow: var(--csas-sh-1); }
.csas-trialbar { background: linear-gradient(135deg, #f0fdfa, #fff); border-color: #99f6e4; }
.csas-trialbar-top, .csas-meter-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.csas-trialbar strong, .csas-meter strong { font-size: 15px; color: var(--csas-navy); }
.csas-trialbar-top a { font-size: 13.5px; font-weight: 800; color: #0f766e; text-decoration: none; }
.csas-trialbar p, .csas-meter p { margin: 0; font-size: 13.5px; color: var(--csas-ink-2); }
.csas-trialbar small, .csas-meter small { font-size: 12.5px; color: var(--csas-muted); }
.csas-meterbar { display: block; height: 8px; border-radius: 99px; background: #e5ecea; overflow: hidden; }
.csas-meterbar i { display: block; height: 100%; border-radius: 99px; background: var(--csas-gold); transition: width .3s; }
.csas-meter.is-warn { border-color: #fcd34d; background: #fffbeb; }
.csas-meter.is-warn .csas-meterbar i { background: #f59e0b; }
.csas-meter.is-paused { border-color: #fecaca; background: #fef2f2; }
.csas-meter.is-paused .csas-meterbar i { background: #ef4444; }
.csas-meter-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.csas-paused { display: flex; gap: 14px; padding: 16px; border-radius: 20px; background: #fff7ed; border: 1px solid #fed7aa; }
.csas-paused-ico { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #ffedd5; color: #c2410c; }
.csas-paused > div { display: grid; gap: 8px; min-width: 0; }
.csas-paused strong { font-size: 16.5px; color: var(--csas-navy); }
.csas-paused p { margin: 0; font-size: 14px; color: var(--csas-ink-2); }
.csas-paused small { font-size: 12.5px; color: var(--csas-muted); }
.csas-otp-input { font-size: 24px !important; letter-spacing: .3em; text-align: center; }

/* Setup Helper */
.csas-helpbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 8px; padding: 0 12px; border: 1px dashed #99f6e4; border-radius: 12px; background: #f0fdfa; color: #0f766e; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.csas-hsheet .csas-sheet-panel { background: #f6faf9; }
.csas-hs-step { display: grid; gap: 10px; padding-bottom: 6px; }
.csas-hs-card { margin: 0; background: #fff; border: 1px solid var(--csas-line); border-radius: 18px; overflow: hidden; }
.csas-hs-card img { display: block; width: 100%; max-height: 220px; object-fit: contain; background: #f2f8f7; }
.csas-hs-card figcaption { display: grid; gap: 6px; padding: 12px 14px; font-size: 14px; color: var(--csas-ink-2); }
.csas-hs-card b { display: inline-block; min-width: 72px; color: #0f766e; }
.csas-hs-chat { display: grid; align-content: start; gap: 6px; max-height: 34vh; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.csas-hs-chat:empty { display: none; }
.csas-hs-msg { margin: 0; max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; white-space: pre-line; }
.csas-hs-msg.is-me { justify-self: end; background: #d9fdd3; border-bottom-right-radius: 4px; }
.csas-hs-msg.is-bot { justify-self: start; background: #fff; border: 1px solid var(--csas-line); border-bottom-left-radius: 4px; }
.csas-hs-ask { display: grid; gap: 8px; position: sticky; bottom: 0; z-index: 2; padding: 8px 0 4px; background: #f6faf9; } /* 3.6.14: screenshot, text box and Ask always visible */
.csas-hs-shot { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px dashed var(--csas-line-strong); border-radius: 14px; background: #fff; font-size: 14px; font-weight: 700; color: var(--csas-navy-600); cursor: pointer; }
.csas-hs-shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.csas-hs-row { display: flex; gap: 8px; }
.csas-hs-row .csas-input { flex: 1; min-width: 0; }
/* Card help */
.csas-guide { display: grid; gap: 12px; }
.csas-guide-lead { margin: 0; font-size: 15.5px; color: var(--csas-ink-2); line-height: 1.5; }
.csas-guide section { padding: 14px 16px; background: #fff; border: 1px solid var(--csas-line); border-radius: 18px; }
.csas-guide section.is-good { border-color: #a7f3d0; background: #f0fdf4; }
.csas-guide h2 { margin: 0 0 4px; font-size: 16px; color: var(--csas-navy); }
.csas-guide p, .csas-guide li { margin: 0; font-size: 14.5px; color: var(--csas-ink-2); line-height: 1.5; }
.csas-guide ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.csas-guide-acts { display: grid; gap: 8px; }
.csas-seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: #e9efed; border-radius: 14px; }
.csas-seg2 label { position: relative; cursor: pointer; }
.csas-seg2 input { position: absolute; opacity: 0; pointer-events: none; }
.csas-seg2 span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--csas-ink-2); }
.csas-seg2 input:checked + span { background: #fff; color: var(--csas-navy); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.csas-digibox { display: grid; gap: 8px; padding: 12px; border: 1px solid #99f6e4; border-radius: 14px; background: #f0fdfa; }
.csas-digibox[hidden] { display: none; }
.csas-digibox strong { font-size: 14px; color: var(--csas-navy); }
.csas-digibox small { font-size: 12.5px; color: var(--csas-muted); }
.csas-formpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.csas-chipcheck { position: relative; cursor: pointer; }
.csas-chipcheck input { position: absolute; opacity: 0; pointer-events: none; }
.csas-chipcheck span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--csas-line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--csas-ink-2); background: #fff; }
.csas-chipcheck input:checked + span { background: var(--csas-navy); border-color: var(--csas-navy); color: #fff; }
.csas-chipcheck input:checked + span::before { content: "✓"; margin-right: 6px; }
.csas-chipcheck input:disabled + span { opacity: .85; }
.csas-digiadd { display: block; width: 100%; margin-top: 10px; min-height: 44px; text-align: center; font-size: 13.5px; }

/* ===== v3.5 sources / comments / growth ===== */
.csas-srcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.csas-srcgrid > a, .csas-srcgrid > span { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 10px 12px; border-radius: 14px; background: #f4f7f6; color: inherit; text-decoration: none; }
.csas-srcgrid b { font-size: 22px; line-height: 1.1; color: var(--csas-navy); font-variant-numeric: tabular-nums; }
.csas-srcgrid span span, .csas-srcgrid small { font-size: 12px; color: var(--csas-muted); line-height: 1.25; }
.csas-srcgrid .is-warn { background: #fff7ed; }
.csas-srcgrid .is-warn b { color: #c2410c; }
.csas-srcgrid-flat { margin: 0 0 12px; }
.csas-srcgrid-flat > span { background: #fff; border: 1px solid var(--csas-line); }
.csas-cmset .csas-togglerow + .csas-togglerow { border-top: 1px solid var(--csas-line); }
.csas-cmsafe { margin: 10px 0 0; font-size: 12.5px; color: var(--csas-muted); line-height: 1.45; }
.csas-cmch { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #f1f5f9; color: #334155; }
.csas-cmrow, .csas-cmlist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--csas-line); }
.csas-cmrow:first-of-type, .csas-cmlist li:first-child { border-top: 0; }
.csas-cmlist { list-style: none; margin: 0; padding: 0; }
.csas-cmlist p, .csas-cmrow p { margin: 2px 0; font-size: 14px; color: var(--csas-ink); word-break: break-word; }
.csas-cmlist small, .csas-cmrow small { font-size: 12px; color: var(--csas-muted); line-height: 1.45; }
.csas-cmtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.csas-cmtop strong { font-size: 14px; }
.csas-cmlist li > div, .csas-cmrow > div { flex: 1; min-width: 0; }
.csas-cmneed { border-color: #fed7aa; background: #fffbf5; }
.csas-postlist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.csas-postlist li { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--csas-line); border-radius: 14px; scroll-margin-top: 80px; }
.csas-postthumb { position: relative; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.csas-postthumb img { width: 100%; height: 100%; object-fit: cover; }
.csas-postthumb i { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fff; color: #334155; }
.csas-postthumb i svg { width: 14px; height: 14px; }
.csas-postmain { flex: 1; min-width: 0; }
.csas-postmain p { margin: 0 0 2px; font-size: 14px; line-height: 1.35; }
.csas-postmain > small { font-size: 12px; color: var(--csas-muted); }
.csas-postmatch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.csas-postmatch select { flex: 1 1 180px; min-height: 44px; font-size: 14px; }
.csas-glch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.csas-glch label { position: relative; cursor: pointer; }
.csas-glch input { position: absolute; opacity: 0; pointer-events: none; }
.csas-glch span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--csas-line); border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; color: var(--csas-ink-2); }
.csas-glch span svg { width: 18px; height: 18px; }
.csas-glch .is-whatsapp input:checked + span { border-color: #25D366; background: #ecfdf3; color: #0f7a3a; }
.csas-glch .is-messenger input:checked + span { border-color: #0866FF; background: #eff5ff; color: #0647b5; }
.csas-glch .is-instagram input:checked + span { border-color: #C13584; background: #fdf2f8; color: #9d174d; }
.csas-gllist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.csas-glcard { scroll-margin-top: 80px; }
.csas-glhead { display: flex; align-items: center; gap: 10px; }
.csas-glhead > div { flex: 1; min-width: 0; }
.csas-glhead strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-glhead small { font-size: 12px; color: var(--csas-muted); }
.csas-glhead code { font-size: 11.5px; padding: 1px 5px; border-radius: 6px; background: #f1f5f9; }
.csas-glch-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; }
.csas-glch-ico.is-whatsapp { background: #25D366; }
.csas-glch-ico.is-messenger { background: #0866FF; }
.csas-glch-ico.is-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.csas-glstat { text-align: right; }
.csas-glstat b { display: block; font-size: 20px; color: var(--csas-navy); line-height: 1.1; }
.csas-glstat small { font-size: 11px; white-space: nowrap; }
.csas-glbody { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.csas-glqr { flex: 0 0 auto; width: 132px; height: 132px; border-radius: 12px; border: 1px solid var(--csas-line); background: #fff; }
.csas-glacts { display: grid; gap: 8px; flex: 1; min-width: 0; }
.csas-glacts .csas-btn { min-height: 40px; width: 100%; }
.csas-glurl { margin-top: 10px; font-size: 12.5px; color: var(--csas-muted); }
.csas-gledit { margin-top: 8px; font-size: 13px; }
.csas-gledit summary { cursor: pointer; color: var(--csas-muted); min-height: 32px; display: flex; align-items: center; }
.csas-gledit .csas-row { flex-wrap: nowrap; gap: 6px; }
.csas-gledit .csas-input { flex: 1; min-width: 0; }
.csas-danger { color: #b91c1c; }
.csas-center { text-align: center; }
@media (max-width: 380px) { .csas-glqr { width: 112px; height: 112px; } }
.csas-srcgrid-flat { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.csas-srcgrid-flat > span { padding: 8px; min-height: 58px; }
.csas-srcgrid-flat b { font-size: 19px; }
.csas-srcgrid-flat small { font-size: 11px; }
.csas-dash .screen-reader-text, .csas-body .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ===== Legal pages ===== */
.csas-legal { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; color: var(--csas-ink); }
.csas-legal-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 22px; }
.csas-legal-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--csas-line); font-size: 13.5px; font-weight: 600; color: var(--csas-ink-2); text-decoration: none; background: #fff; }
.csas-legal-nav a[aria-current] { background: var(--csas-navy); border-color: var(--csas-navy); color: #fff; }
.csas-legal h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.csas-legal-date { margin: 0 0 22px; font-size: 13.5px; color: var(--csas-muted); }
.csas-legal-body { font-size: 15.5px; line-height: 1.7; }
.csas-legal-body h2 { font-size: 18px; font-weight: 800; margin: 28px 0 8px; }
.csas-legal-body p, .csas-legal-body ul, .csas-legal-body ol { margin: 0 0 12px; }
.csas-legal-body ul, .csas-legal-body ol { padding-left: 20px; }
.csas-legal-body li { margin-bottom: 6px; }
.csas-legal-body a { color: var(--csas-teal, #0f766e); }
.csas-legal-body .csas-btn { color: #fff; text-decoration: none; }
.csas-legal-check { display: grid; gap: 8px; margin: 0 0 22px; padding: 16px; border: 1px solid var(--csas-line); border-radius: 16px; background: #f8faf9; }
.csas-legal-check label { font-weight: 700; font-size: 14px; }
.csas-legal-check > div { display: flex; gap: 8px; }
.csas-legal-check .csas-input { flex: 1; min-width: 0; min-height: 44px; text-transform: uppercase; }
.csas-legal-status { display: grid; gap: 2px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.csas-legal-check .csas-legal-status { margin: 0; }
.csas-legal-status.is-done { background: #ecfdf3; color: #065f46; }
.csas-legal-status.is-miss { background: #fff7ed; color: #9a3412; }
.csas-pagebar.is-root { padding-left: var(--csas-gut, 16px); }
.csas-pagebar.is-root .csas-pagebar-t h1 { font-size: 21px; }

/* ===== 3.5.1 Scorecard ===== */
.csas-sc-main { padding: 18px; }
.csas-sc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.csas-sc-head > span { font-size: 13px; font-weight: 600; color: var(--csas-muted); }
.csas-sc-lvl { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.csas-sc-lvl.is-good { background: #ecfdf3; color: #067647; }
.csas-sc-lvl.is-warn { background: #fffaeb; color: #b54708; }
.csas-sc-lvl.is-bad { background: #fef3f2; color: #b42318; }
.csas-sc-big { display: block; margin: 6px 0 14px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--csas-navy); font-variant-numeric: tabular-nums; }
.csas-sc-bar { position: relative; height: 8px; border-radius: 999px; background: #eef2f1; overflow: visible; }
.csas-sc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--csas-navy); }
.csas-sc-bar b { position: absolute; top: -4px; width: 2px; height: 16px; background: #94a3b8; border-radius: 1px; }
.csas-sc-note { display: block; margin-top: 8px; font-size: 12.5px; color: var(--csas-muted); }
.csas-sc-grid { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.csas-sc-grid > div { padding: 14px 16px; }
.csas-sc-grid > div:nth-child(odd) { border-right: 1px solid var(--csas-line); }
.csas-sc-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--csas-line); }
.csas-sc-grid span { display: block; font-size: 12.5px; font-weight: 600; color: var(--csas-muted); }
.csas-sc-grid strong { display: block; margin: 4px 0 2px; font-size: 24px; font-weight: 800; color: var(--csas-navy); font-variant-numeric: tabular-nums; }
.csas-sc-grid strong.is-hot { color: #d92d20; }
.csas-sc-grid small { font-size: 12px; color: var(--csas-muted); }
.csas-sc-grid small a { color: var(--csas-navy); font-weight: 700; text-decoration: none; }
.csas-sc-star { font-style: normal; font-size: 18px; color: #f59e0b; margin-left: 2px; }
.csas-sc-biz { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--csas-line); }
.csas-sc-biz:first-of-type { border-top: 0; }
.csas-sc-biz > div { flex: 1; min-width: 0; }
.csas-sc-biz strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-sc-share { display: block; height: 4px; margin-top: 6px; border-radius: 999px; background: #eef2f1; }
.csas-sc-share i { display: block; height: 100%; border-radius: inherit; background: #14b8a6; }
.csas-sc-biz small { font-size: 12.5px; color: var(--csas-muted); white-space: nowrap; }
.csas-sc-tip { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--csas-line); font-size: 12.5px; color: var(--csas-muted); line-height: 1.5; }

/* ===== 3.5.1 Pay ===== */
.csas-pay-sum { padding: 18px; }
.csas-pay-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.csas-pay-top > span { font-size: 13px; font-weight: 600; color: var(--csas-muted); }
.csas-pay-net { display: block; margin: 4px 0 12px; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--csas-navy); font-variant-numeric: tabular-nums; }
.csas-pay-net.is-empty { color: #cbd5e1; }
.csas-pay-note { margin: -4px 0 12px; font-size: 13px; color: var(--csas-muted); }
.csas-pay-break { margin: 0 0 14px; padding: 10px 0 0; border-top: 1px solid var(--csas-line); }
.csas-pay-break > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.csas-pay-break dt { color: var(--csas-ink-2); }
.csas-pay-break dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.csas-pay-break .is-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--csas-line); font-weight: 800; }
.csas-pay-break .is-total dt, .csas-pay-break .is-total dd { color: var(--csas-navy); font-weight: 800; }
.is-neg { color: #b42318 !important; }
.csas-pay-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.csas-pay-mini span { display: grid; gap: 1px; padding: 10px; border-radius: 12px; background: #f4f7f6; }
.csas-pay-mini b { font-size: 15px; color: var(--csas-navy); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-pay-mini small { font-size: 11.5px; color: var(--csas-muted); }
.csas-bankcard { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #0b1324, #1e293b); color: #fff; }
.csas-bankcard-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); }
.csas-bankcard > div { flex: 1; min-width: 0; }
.csas-bankcard strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-bankcard small { font-size: 12.5px; opacity: .75; }
.csas-bankcard code { font-size: 14px; letter-spacing: .06em; background: none; color: #fff; }
.csas-pay-lock { margin: 10px 0 0; font-size: 12px; color: var(--csas-muted); }
.csas-paylist { list-style: none; margin: 0; padding: 0; }
.csas-paylist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--csas-line); }
.csas-paylist li:first-child { border-top: 0; }
.csas-paylist li > div { min-width: 0; }
.csas-paylist strong { display: block; font-size: 14px; }
.csas-paylist small { font-size: 12px; color: var(--csas-muted); }
.csas-paylist li > span { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.csas-paylist li > span b { font-size: 15px; font-variant-numeric: tabular-nums; }
.csas-paylist form { margin: 0; }
.csas-pay-clean { margin: 6px 0 0; font-size: 14px; color: #067647; font-weight: 600; }

/* ===== 3.5.1 Agent availability (top of profile) ===== */
.csas-avail { margin-bottom: 12px; border: 1px solid var(--csas-line); border-radius: 16px; background: #fff; }
.csas-avail.is-on { border-color: #a7f3d0; background: #f0fdf7; }

/* ===== 3.5.1 Customer profile ===== */
.csas-pfhead { display: flex; align-items: center; gap: 14px; padding: 18px 16px; margin-bottom: 6px; border-radius: 20px; background: #fff; border: 1px solid var(--csas-line); }
.csas-pfhead-av { flex: 0 0 auto; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; font-size: 26px; font-weight: 800; }
.csas-pfhead > div { min-width: 0; }
.csas-pfhead strong { display: block; font-size: 18px; font-weight: 800; color: var(--csas-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-pfhead small { display: block; font-size: 12.5px; color: var(--csas-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-pfhead-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.csas-pfhead-chips em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.csas-pfhead-chips em i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.csas-pfhead-chips em.is-on { background: #ecfdf3; color: #067647; }
.csas-pfhead-chips em.is-on i { background: #12b76a; }
.csas-pflabel { margin: 18px 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--csas-muted); }
.csas-pfcard { padding: 4px 16px; }
.csas-pfcard > .csas-fold { padding: 6px 0; }
.csas-pfcard > .csas-fold + .csas-pfrow, .csas-pfrow + .csas-pfrow { border-top: 1px solid var(--csas-line); }
.csas-pfcard .csas-fold summary span { display: grid; }
.csas-pfcard .csas-fold summary small { font-size: 12px; font-weight: 500; color: var(--csas-muted); }
.csas-pfrow { display: flex; align-items: center; gap: 12px; min-height: 56px; color: inherit; text-decoration: none; }
.csas-pfrow > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f1f5f4; color: var(--csas-navy); }
.csas-pfrow > span { flex: 1; min-width: 0; }
.csas-pfrow strong { display: block; font-size: 14.5px; font-weight: 600; }
.csas-pfrow small { font-size: 12px; color: var(--csas-muted); }
.csas-pfrow > b { font-size: 20px; color: #94a3b8; }
.csas-pfdanger { margin-top: 22px; text-align: center; }
.csas-pfdanger summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13.5px; font-weight: 600; color: #b42318; cursor: pointer; list-style: none; }
.csas-pfdanger summary::-webkit-details-marker { display: none; }
.csas-pfdanger details[open] { padding: 14px; border: 1px solid #fecdca; border-radius: 16px; background: #fffbfa; text-align: left; }
.csas-pfdanger p { margin: 0 0 12px; font-size: 13px; color: #7a271a; line-height: 1.5; }
.csas-btn-danger { background: #d92d20; color: #fff; border-color: #d92d20; }
.csas-btn-danger:hover { background: #b42318; }

/* ==================================================================
 * 3.6 Public site. Ink + teal on a cool paper ground; Schibsted Grotesk
 * for headlines and figures, Manrope for reading. One moving part: the
 * hero conversation. Everything else is quiet.
 * ================================================================== */
.csas-body:not(.csas-variant-dash) {
	--mk-ink: #0e1a2b; --mk-ink-2: #3d4b62; --mk-muted: #6b788d; --mk-line: #dfe5ea;
	--mk-paper: #f3f6f5; --mk-white: #fff; --mk-teal: #0f766e; --mk-teal-2: #0d9488; --mk-mint: #ddf1ec; --mk-saffron: #f2b230;
	--mk-display: "Schibsted Grotesk", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mk-gut: clamp(16px, 4vw, 40px);
	background: var(--mk-paper);
}
.csas-variant-marketing .csas-main { max-width: none; width: 100%; padding: 0; }
.mk-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--mk-gut); }
.mk-narrow { max-width: 780px; }

/* Buttons */
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 700 15px/1 var(--csas-font); text-decoration: none; border: 1.5px solid transparent; transition: background .15s ease, border-color .15s ease, transform .15s ease; cursor: pointer; white-space: nowrap; }
.mk-btn:active { transform: translateY(1px); }
.mk-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.mk-btn-block { width: 100%; }
.mk-btn-primary { background: var(--mk-teal); color: #fff; }
.mk-btn-primary:hover { background: #0b5f58; color: #fff; }
.mk-btn-dark { background: var(--mk-ink); color: #fff; }
.mk-btn-dark:hover { background: #1c2c45; color: #fff; }
.mk-btn-quiet { color: var(--mk-ink); border-color: var(--mk-line); background: var(--mk-white); }
.mk-btn-quiet:hover { border-color: var(--mk-ink-2); color: var(--mk-ink); }
.mk-btn-light { background: #fff; color: var(--mk-ink); }
.mk-btn-light:hover { background: var(--mk-mint); color: var(--mk-ink); }
.mk-btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.mk-btn-outline-light:hover { border-color: #fff; color: #fff; }
.mk-btn:focus-visible, .mk-links a:focus-visible, .mk-faq summary:focus-visible { outline: 3px solid var(--mk-teal-2); outline-offset: 2px; }

/* Header */
.mk-nav { position: sticky; top: 0; z-index: 40; background: rgba(243,246,245,.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; }
.mk-nav-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.mk-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--mk-display); letter-spacing: -.02em; color: var(--mk-ink); text-decoration: none; }
.mk-brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--mk-ink); color: #fff; font-size: 17px; }
.mk-links { display: none; gap: 4px; margin-left: 12px; }
.mk-links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--mk-ink-2); text-decoration: none; }
.mk-links a:hover { color: var(--mk-ink); background: rgba(14,26,43,.05); }
.mk-nav-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mk-login { display: none; padding: 8px 12px; font-size: 15px; font-weight: 600; color: var(--mk-ink); text-decoration: none; }
.mk-menu { position: relative; }
.mk-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; list-style: none; cursor: pointer; color: var(--mk-ink); }
.mk-menu summary::-webkit-details-marker { display: none; }
.mk-menu[open] summary { background: rgba(14,26,43,.06); }
.mk-menu-panel { position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--mk-line); box-shadow: 0 18px 40px -16px rgba(14,26,43,.25); display: grid; }
.mk-menu-panel a { padding: 12px 14px; border-radius: 8px; font-weight: 600; color: var(--mk-ink); text-decoration: none; }
.mk-menu-panel a:hover { background: var(--mk-paper); }
@media (min-width: 860px) {
	.mk-links, .mk-login { display: flex; }
	.mk-menu { display: none; }
}

/* Type */
.mk-hero h1, .mk-page-head h1 { margin: 0; font: 700 clamp(38px, 6.4vw, 68px)/1.02 var(--mk-display); letter-spacing: -.035em; color: var(--mk-ink); text-wrap: balance; }
.mk-head h2, .mk-cta h2 { margin: 0; font: 700 clamp(28px, 3.6vw, 42px)/1.08 var(--mk-display); letter-spacing: -.025em; color: var(--mk-ink); text-wrap: balance; }
.mk-lede { margin: 20px 0 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--mk-ink-2); }
.mk-fine { margin: 14px 0 0; font-size: 14px; color: var(--mk-muted); }
.mk-mt { margin-top: 20px; }

/* Sections */
.mk-section { padding: clamp(56px, 8vw, 104px) 0; }
.mk-section-tight { padding-top: clamp(24px, 4vw, 40px); }
.mk-section-white { background: var(--mk-white); }
.mk-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.mk-head p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--mk-ink-2); }
.mk-head-left { margin-left: 0; text-align: left; }
.mk-head-left .mk-btn { margin-top: 24px; }

/* Hero */
.mk-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.mk-hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .mk-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.mk-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.mk-channels { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.mk-channels li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mk-ink-2); }
.mk-channels svg { width: 20px; height: 20px; }
.mk-channels .is-wa svg { color: #1faa59; }
.mk-channels .is-ig svg { color: #c13584; }
.mk-channels .is-fb svg { color: #0866ff; }

/* The phone conversation */
.mk-phone { position: relative; margin: 0 auto; width: min(100%, 380px); padding: 12px; border-radius: 42px; background: var(--mk-ink); box-shadow: 0 40px 80px -40px rgba(14,26,43,.55); }
.mk-phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-radius: 32px 32px 0 0; background: #0b5f58; color: #fff; }
.mk-phone-top strong { display: block; font-size: 15px; }
.mk-phone-top small { font-size: 12px; opacity: .8; }
.mk-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e7d3b6; color: #6a4a1c; font-weight: 800; }
.mk-chat { display: flex; flex-direction: column; gap: 8px; min-height: 420px; padding: 14px 12px 18px; border-radius: 0 0 32px 32px; background: #ece5dc; }
.mk-msg { position: relative; max-width: 82%; margin: 0; padding: 8px 10px 18px; border-radius: 12px; font-size: 14px; line-height: 1.4; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: mk-in .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.mk-msg time { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: #667781; }
.mk-msg.is-in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.mk-msg.is-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; }
.mk-msg u { color: #027eb5; text-decoration: none; }
.mk-msg.is-note { align-self: center; padding: 6px 12px; border-radius: 8px; background: #fff6d6; font-size: 12.5px; font-weight: 600; color: #54480f; }
.mk-card { display: grid; gap: 2px; width: 82%; padding: 6px 6px 18px; }
.mk-card-img { height: 112px; border-radius: 8px; margin-bottom: 6px; background: linear-gradient(135deg, #1e3a8a 0 25%, #f2b230 25% 35%, #1e3a8a 35% 60%, #0d9488 60% 70%, #1e3a8a 70%); background-size: 46px 46px; }
.mk-card strong { padding: 0 4px; font-size: 14px; }
.mk-card > span { padding: 0 4px; font-size: 13px; color: #3b4a54; }
.mk-card-btns { display: grid; gap: 1px; margin-top: 8px; padding: 0 !important; border-top: 1px solid rgba(0,0,0,.08); }
.mk-card-btns b { padding: 8px 0 2px; text-align: center; color: #027eb5; font-weight: 600; font-size: 13.5px; }
.mk-phone-cap { margin: 14px 4px 2px; text-align: center; font-size: 13px; color: #b8c2d3; }
@keyframes mk-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-msg { animation: none; } }

/* What happens to messages */
.mk-routes { display: grid; border-top: 1px solid var(--mk-line); }
.mk-route { display: grid; gap: 10px 28px; padding: 22px 0; border-bottom: 1px solid var(--mk-line); align-items: center; }
@media (min-width: 860px) { .mk-route { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 140px; } }
.mk-bubble { justify-self: start; max-width: 100%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--mk-line); font-size: 15px; font-weight: 600; color: var(--mk-ink); }
.mk-route-what { font-size: 15.5px; line-height: 1.55; color: var(--mk-ink-2); }
.mk-speed { justify-self: start; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
@media (min-width: 860px) { .mk-speed { justify-self: end; } }
.mk-speed::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.mk-speed.is-fast { color: var(--mk-teal); } .mk-speed.is-fast::before { background: var(--mk-teal-2); }
.mk-speed.is-ai { color: #6d4ad1; } .mk-speed.is-ai::before { background: #8b6cf0; }
.mk-speed.is-human { color: #a15c07; } .mk-speed.is-human::before { background: var(--mk-saffron); }

/* Features */
.mk-feat { display: grid; gap: 40px; }
@media (min-width: 980px) { .mk-feat { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .mk-feat .mk-head { position: sticky; top: 100px; } }
.mk-featlist { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mk-line); }
@media (min-width: 640px) { .mk-featlist { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.mk-featlist li { display: flex; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--mk-line); }
.mk-featlist i { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--mk-mint); color: var(--mk-teal); }
.mk-featlist h3 { margin: 0 0 4px; font: 700 17px/1.3 var(--mk-display); letter-spacing: -.01em; color: var(--mk-ink); }
.mk-featlist p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--mk-ink-2); }

/* Steps (a real sequence) */
.mk-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: mk; }
@media (min-width: 860px) { .mk-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.mk-steps li { counter-increment: mk; padding-top: 22px; border-top: 2px solid var(--mk-ink); }
.mk-steps li::before { content: counter(mk); display: block; margin-bottom: 14px; font: 700 15px/1 var(--mk-display); color: var(--mk-teal); }
.mk-steps h3 { margin: 0 0 8px; font: 700 21px/1.25 var(--mk-display); letter-spacing: -.015em; color: var(--mk-ink); }
.mk-steps p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--mk-ink-2); }

/* Templates */
.mk-packs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mk-packs li { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--mk-paper); font-size: 15px; font-weight: 600; color: var(--mk-ink); }

/* FAQ */
.mk-faq-wrap { display: grid; gap: 24px; }
@media (min-width: 980px) { .mk-faq-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.mk-faq { border-top: 1px solid var(--mk-line); }
.mk-faq details { border-bottom: 1px solid var(--mk-line); }
.mk-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 17px/1.4 var(--csas-font); color: var(--mk-ink); cursor: pointer; list-style: none; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; flex: 0 0 auto; font: 400 26px/1 var(--csas-font); color: var(--mk-muted); transition: transform .2s ease; }
.mk-faq details[open] summary::after { transform: rotate(45deg); }
.mk-faq details p { margin: -6px 0 20px; max-width: 62ch; font-size: 15.5px; line-height: 1.65; color: var(--mk-ink-2); }

/* Closing band */
.mk-cta { padding: clamp(56px, 8vw, 96px) 0; background: var(--mk-ink); color: #fff; text-align: center; }
.mk-cta h2 { color: #fff; }
.mk-cta p { margin: 14px auto 0; max-width: 36em; font-size: 17px; color: #b8c2d3; }
.mk-cta .mk-ctas { justify-content: center; }

/* Page head (inner pages) */
.mk-page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 3vw, 32px); }
.mk-page-head h1 { font-size: clamp(36px, 5.4vw, 60px); }
.mk-page-head .mk-lede a { color: var(--mk-teal); }

/* Pricing */
.mk-trial { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding: 20px 22px; border-radius: 16px; background: var(--mk-mint); }
.mk-trial strong { display: block; font: 700 19px/1.3 var(--mk-display); color: var(--mk-ink); }
.mk-trial span { font-size: 15px; color: var(--mk-ink-2); }
.mk-plans { display: grid; gap: 16px; }
@media (min-width: 760px) { .mk-plans-2 { grid-template-columns: repeat(2, 1fr); } .mk-plans-3, .mk-plans-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .mk-plans-3 { grid-template-columns: repeat(3, 1fr); } .mk-plans-4 { grid-template-columns: repeat(4, 1fr); } }
.mk-plan { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; border-radius: 20px; background: var(--mk-white); border: 1px solid var(--mk-line); }
.mk-plan header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-plan h2 { margin: 0; font: 700 22px/1.2 var(--mk-display); letter-spacing: -.015em; color: var(--mk-ink); }
.mk-plan-flag { padding: 5px 10px; border-radius: 999px; background: var(--mk-saffron); color: var(--mk-ink); font-size: 12.5px; font-weight: 700; }
.mk-plan-for { margin: -8px 0 0; font-size: 15px; line-height: 1.5; color: var(--mk-ink-2); }
.mk-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.mk-price b { font: 700 clamp(36px, 4vw, 44px)/1 var(--mk-display); letter-spacing: -.03em; color: var(--mk-ink); font-variant-numeric: tabular-nums; }
.mk-price span { font-size: 15px; color: var(--mk-muted); }
.mk-price-na { font-size: 15px !important; color: var(--mk-ink-2) !important; }
.mk-plan-list { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--mk-line); }
.mk-plan-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--mk-ink); }
.mk-plan-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 13px; height: 7px; border-left: 2.2px solid var(--mk-teal); border-bottom: 2.2px solid var(--mk-teal); transform: rotate(-45deg); }
.mk-plan.is-featured { background: var(--mk-ink); border-color: var(--mk-ink); }
.mk-plan.is-featured h2, .mk-plan.is-featured .mk-price b, .mk-plan.is-featured .mk-plan-list li { color: #fff; }
.mk-plan.is-featured .mk-plan-for, .mk-plan.is-featured .mk-price span { color: #b8c2d3; }
.mk-plan.is-featured .mk-plan-list { border-color: rgba(255,255,255,.14); }
.mk-plan.is-featured .mk-plan-list li::before { border-color: #5eead4; }
.mk-plan.is-featured .mk-btn-primary { background: var(--mk-teal-2); }
.mk-compare-wrap { overflow-x: auto; border: 1px solid var(--mk-line); border-radius: 16px; }
.mk-compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.mk-compare th, .mk-compare td { padding: 14px 18px; border-bottom: 1px solid var(--mk-line); text-align: center; }
.mk-compare tbody tr:last-child th, .mk-compare tbody tr:last-child td { border-bottom: 0; }
.mk-compare thead th { font: 700 16px/1.2 var(--mk-display); color: var(--mk-ink); background: var(--mk-paper); }
.mk-compare tbody th { position: sticky; left: 0; text-align: left; font-weight: 600; color: var(--mk-ink-2); background: var(--mk-white); }
.mk-yes { color: var(--mk-teal); font-weight: 800; font-size: 17px; }
.mk-no { color: #b5bfcc; }
.mk-empty { font-size: 16px; color: var(--mk-ink-2); }

/* How it works timeline (a real sequence) */
.mk-timeline { max-width: 760px; margin: 0; padding: 0; list-style: none; counter-reset: tl; }
.mk-timeline > li { counter-increment: tl; position: relative; padding: 0 0 40px 64px; }
.mk-timeline > li::before { content: counter(tl); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mk-ink); color: #fff; font: 700 16px/1 var(--mk-display); }
.mk-timeline > li::after { content: ""; position: absolute; left: 19px; top: 48px; bottom: 8px; width: 2px; background: var(--mk-line); }
.mk-timeline > li:last-child::after { content: none; }
.mk-timeline h2 { margin: 6px 0 8px; font: 700 22px/1.25 var(--mk-display); letter-spacing: -.015em; color: var(--mk-ink); }
.mk-timeline p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mk-ink-2); }
.mk-timeline ul { margin: 12px 0 0; padding-left: 18px; color: var(--mk-ink-2); font-size: 15px; line-height: 1.7; }

/* Footer */
.mk-foot { padding: 56px 0 28px; background: var(--mk-white); border-top: 1px solid var(--mk-line); }
.mk-foot-in { display: grid; gap: 32px; }
@media (min-width: 860px) { .mk-foot-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.mk-foot-brand p { margin: 14px 0 0; max-width: 32em; font-size: 14.5px; line-height: 1.6; color: var(--mk-ink-2); }
.mk-foot nav { display: grid; gap: 10px; align-content: start; }
.mk-foot nav h2 { margin: 0 0 4px; font: 700 14px/1.3 var(--csas-font); color: var(--mk-ink); }
.mk-foot nav a { font-size: 14.5px; color: var(--mk-ink-2); text-decoration: none; }
.mk-foot nav a:hover { color: var(--mk-ink); }
.mk-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--mk-line); }
.mk-foot-base p { margin: 0; font-size: 13px; color: var(--mk-muted); }

/* Legal pages sit inside the new chrome */
.csas-variant-marketing .csas-legal { padding: clamp(32px, 6vw, 72px) var(--mk-gut) 64px; }
.csas-variant-marketing .csas-legal h1 { font-family: var(--mk-display); letter-spacing: -.03em; }
@media (min-width: 760px) { .mk-plans-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .mk-plans-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .mk-plans-5 .mk-plan { padding: 24px 18px; } .mk-plans-5 .mk-price b { font-size: 32px; } }

/* Auth pages in the public chrome */
.csas-variant-app .csas-main:has(.mk-auth) { max-width: 1180px; }
.mk-auth { display: grid; gap: 48px; align-items: start; }
.mk-auth-form { width: 100%; max-width: 520px; margin: 0 auto; }
.mk-auth-side { display: none; }
@media (min-width: 1000px) {
	.mk-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
	.mk-auth-form { margin: 0 0 0 auto; }
	.mk-auth-side { display: block; position: sticky; top: 96px; padding: 36px; border-radius: 24px; background: var(--mk-ink); color: #fff; }
	.mk-auth-side h2 { margin: 28px 0 0; font: 700 28px/1.15 var(--mk-display); letter-spacing: -.02em; color: #fff; }
	.mk-auth-side ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
	.mk-auth-side li { position: relative; padding-left: 26px; font-size: 15px; color: #c9d2e0; }
	.mk-auth-side li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 6px; border-left: 2px solid #5eead4; border-bottom: 2px solid #5eead4; transform: rotate(-45deg); }
	.mk-auth-chat { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #ece5dc; }
	.mk-auth-chat .mk-msg { animation: none; }
}
.csas-body:not(.csas-variant-dash) .csas-btn-gold { background: var(--mk-teal); border-color: var(--mk-teal); box-shadow: none; }
.csas-body:not(.csas-variant-dash) .csas-btn-gold:hover { background: #0b5f58; }
.csas-variant-app .csas-brand-mark { background: var(--mk-ink); }
.csas-variant-app h1, .csas-variant-app .csas-auth h1, .csas-variant-app h2.csas-h2 { font-family: var(--mk-display); letter-spacing: -.025em; }
@media (max-width: 859px) { .mk-foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; } .mk-foot-brand { grid-column: 1 / -1; } .mk-foot nav a { font-size: 14px; } }

/* ===== 3.6.1 Plan ===== */
.csas-psum { padding: 18px; margin-bottom: 12px; border-radius: 20px; background: #fff; border: 1px solid var(--csas-line); }
.csas-psum-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.csas-psum-label { font-size: 12.5px; font-weight: 600; color: var(--csas-muted); }
.csas-psum h3 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--csas-navy); }
.csas-psum-price { margin: 12px 0 0; }
.csas-psum-price b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--csas-navy); font-variant-numeric: tabular-nums; }
.csas-psum-price span { margin-left: 4px; font-size: 14px; color: var(--csas-muted); }
.csas-psum-bar { display: grid; gap: 6px; margin-top: 14px; }
.csas-psum-bar small, .csas-psum-hint { font-size: 13px; color: var(--csas-muted); }
.csas-psum-hint { margin: 10px 0 0; }
.csas-psum-acts { display: grid; gap: 8px; margin-top: 16px; }
.csas-psum-acts form { margin: 0; }
.csas-pdl { margin: 0; }
.csas-pdl > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--csas-line); font-size: 14px; }
.csas-pdl > div:first-child { border-top: 0; }
.csas-pdl dt { color: var(--csas-muted); }
.csas-pdl dd { margin: 0; font-weight: 700; color: var(--csas-navy); text-align: right; }
.csas-pnote { margin: 4px 4px 14px; font-size: 12.5px; color: var(--csas-muted); }
.csas-plist { display: grid; gap: 12px; }
.csas-pcard { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--csas-line); }
.csas-pcard.is-current { border: 2px solid var(--csas-navy); }
.csas-pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.csas-pcard h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--csas-navy); }
.csas-pcard-price { margin: 8px 0 12px; }
.csas-pcard-price b { font-size: 26px; font-weight: 800; color: var(--csas-navy); }
.csas-pcard-price span { margin-left: 4px; font-size: 13.5px; color: var(--csas-muted); }
.csas-pcard-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--csas-line); }
.csas-pcard-list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--csas-ink); }
.csas-pcard-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid #0f766e; border-bottom: 2px solid #0f766e; transform: rotate(-45deg); }
.csas-pcard form { margin: 0; }

/* ===== 3.6.1 No sideways drift on phones ===== */
html, body.csas-body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { html, body.csas-body { overflow-x: hidden; } }

/* ===== 3.6.1 Agent application ===== */
.csas-kyc { display: grid; gap: 14px; margin-top: 18px; }
.csas-kyc-step { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--csas-line); }
.csas-kyc-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; font-weight: 800; color: var(--csas-navy); }
.csas-kyc-step h2 span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--csas-navy); color: #fff; font-size: 13px; }
.csas-kyc-step .csas-field:last-child { margin-bottom: 0; }
.csas-kyc-photo { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1.5px dashed #cbd5e1; border-radius: 14px; cursor: pointer; }
.csas-kyc-photo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.csas-kyc-photo-ph { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f1f5f4; color: #64748b; flex: 0 0 auto; }
.csas-kyc-photo-t { display: grid; }
.csas-kyc-photo-t strong { font-size: 14.5px; color: var(--csas-navy); }
.csas-kyc-photo-t small { font-size: 12.5px; color: var(--csas-muted); }
.csas-kyc-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.csas-kyc-doc { display: grid; gap: 10px; }
.csas-kyc-doc img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; background: #f8fafc; border: 1px solid var(--csas-line); }
.csas-kyc-doc-empty { display: grid; place-items: center; gap: 6px; padding: 22px 12px; border: 1.5px dashed #cbd5e1; border-radius: 14px; color: #64748b; font-size: 13px; text-align: center; }
.csas-kyc-doc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.csas-kyc-doc-acts .csas-btn { min-height: 46px; cursor: pointer; }
.csas-kyc-selfie { display: grid; gap: 10px; }
.csas-kyc-cam { position: relative; width: 100%; max-width: 320px; aspect-ratio: 3 / 4; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #f1f5f4; }
.csas-kyc-cam video, .csas-kyc-cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.csas-kyc-cam video { transform: scaleX(-1); }
.csas-kyc-cam-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #64748b; font-size: 13px; }
.csas-kyc-guide { position: absolute; left: 18%; right: 18%; top: 14%; bottom: 22%; border: 2px dashed rgba(255,255,255,.8); border-radius: 50%; pointer-events: none; }
.csas-kyc-cam:has(.csas-kyc-cam-empty:not([hidden])) .csas-kyc-guide { border-color: #cbd5e1; }
.csas-kyc-selfie-acts { display: grid; gap: 8px; max-width: 320px; width: 100%; margin: 0 auto; }
.csas-kyc-selfie .csas-hint { text-align: center; }
.csas-kyc-accept { padding: 4px 2px; }


/* ===== 3.6.1 Hero phone: modern titanium iPhone playing three scenes ===== */
.mk-stage { display: grid; justify-items: center; gap: 18px; }
.mk-iphone { position: relative; margin: 0; width: min(100%, 318px); aspect-ratio: 9 / 19.3; padding: 9px; border-radius: 56px;
	background: linear-gradient(140deg, #f5f6f8 0%, #d3d8de 28%, #f0f2f4 52%, #bcc3cb 78%, #e8ebee 100%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 0 0 2.5px #aab1ba, 0 50px 90px -40px rgba(14,26,43,.45), 0 18px 40px -24px rgba(14,26,43,.3); }
.mk-iphone-btn { position: absolute; width: 3px; border-radius: 2px; background: #b6bdc6; }
.mk-iphone-btn.is-a { left: -2px; top: 108px; height: 26px; }
.mk-iphone-btn.is-b { left: -2px; top: 150px; height: 46px; }
.mk-iphone-btn.is-c { right: -2px; top: 160px; height: 70px; }
.mk-screen { position: relative; height: 100%; border-radius: 47px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2.5px #101113; isolation: isolate; }
.mk-status { position: absolute; z-index: 5; inset: 0 0 auto; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0; font: 600 13px/1 -apple-system, "SF Pro Text", var(--csas-font); color: #0b0b0c; }
.mk-island { position: absolute; left: 50%; top: 10px; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #0b0b0c; }
.mk-status-r { display: flex; align-items: flex-end; gap: 2px; }
.mk-status-r b { width: 3px; border-radius: 1px; background: #0b0b0c; }
.mk-status-r b:nth-child(1) { height: 5px; } .mk-status-r b:nth-child(2) { height: 7px; } .mk-status-r b:nth-child(3) { height: 9px; }
.mk-status-r em { width: 20px; height: 10px; margin-left: 5px; border-radius: 3px; border: 1.5px solid #0b0b0c; position: relative; }
.mk-status-r em::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; border-radius: 1px; background: #0b0b0c; }
.mk-home { position: absolute; z-index: 6; left: 50%; bottom: 7px; width: 110px; height: 4px; margin-left: -55px; border-radius: 3px; background: #0b0b0c; opacity: .85; }
.mk-scene { position: absolute; inset: 46px 0 0; display: flex; flex-direction: column; opacity: 0; transform: scale(.985); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.mk-scene.is-active { opacity: 1; transform: none; }
.mk-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.mk-av.is-shop { background: #0f766e; }
.mk-av.is-ig { background: conic-gradient(from 210deg, #f58529, #dd2a7b, #8134af, #515bd4, #f58529); box-shadow: inset 0 0 0 2px #fff; }
.mk-av.is-fb { background: #0866ff; }
/* WhatsApp */
.mk-wa-head { display: flex; align-items: center; gap: 9px; padding: 8px 12px 9px; background: #fff; border-bottom: 1px solid #ececec; }
.mk-wa-head strong { display: block; font-size: 13.5px; color: #111b21; }
.mk-wa-head small { font-size: 11px; color: #667781; }
.mk-back { font-size: 26px; line-height: 1; color: #0f766e; margin-right: -2px; }
.mk-wa-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 9px 26px; background: #efeae2; overflow: hidden; scroll-behavior: smooth; }
.mk-b { max-width: 84%; margin: 0; padding: 7px 9px; border-radius: 10px; font-size: 12.5px; line-height: 1.38; color: #111b21; box-shadow: 0 1px .5px rgba(0,0,0,.12); }
.mk-b.is-in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.mk-b.is-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.mk-b.is-tap { background: #fff; color: #027eb5; font-weight: 600; }
.mk-b.is-note { align-self: center; background: #fff7d1; color: #54480f; font-weight: 700; font-size: 11.5px; }
.mk-b u { color: #027eb5; text-decoration: none; }
.mk-qr { display: flex; gap: 6px; margin-top: 7px; }
.mk-qr i { flex: 1; padding: 5px 0; border-radius: 7px; background: rgba(255,255,255,.75); color: #027eb5; font-style: normal; font-weight: 700; text-align: center; transition: transform .2s ease, background .2s ease; }
.mk-carousel { align-self: stretch; overflow: hidden; margin: 0 -9px; padding: 2px 9px; }
.mk-track { display: flex; gap: 8px; transform: translateX(var(--x, 0)); transition: transform .55s cubic-bezier(.3,.7,.2,1); }
.mk-prod { flex: 0 0 148px; display: grid; gap: 1px; padding: 5px 5px 0; border-radius: 10px; background: #fff; box-shadow: 0 1px .5px rgba(0,0,0,.12); }
.mk-prod-img { display: grid; place-items: center; height: 104px; border-radius: 7px; margin-bottom: 5px; }
.mk-prod-img svg { width: 84%; height: 84%; }
.mk-prod-img.is-big { height: 100%; border-radius: 0; margin: 0; }
.mk-prod strong { padding: 0 3px; font-size: 12px; color: #111b21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-prod > span:not(.mk-prod-img) { padding: 0 3px; font-size: 11.5px; color: #3b4a54; }
.mk-buy { margin-top: 5px; padding: 8px 0; border-top: 1px solid #eee; text-align: center; color: #027eb5; font-size: 12.5px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.is-target.is-tapped { background: #dbeafe; transform: scale(.96); border-radius: 6px; }
/* Instagram / Facebook */
.mk-ig-head, .mk-fb-head { display: flex; align-items: center; gap: 9px; padding: 8px 12px; font-size: 13px; color: #111; }
.mk-ig-head strong { font-size: 13px; }
.mk-dots { margin-left: auto; color: #333; letter-spacing: 1px; }
.mk-fb-head strong { display: block; font-size: 13px; }
.mk-fb-head small { font-size: 11px; color: #65676b; }
.mk-fb-text { margin: 0 12px 8px; font-size: 12.5px; color: #050505; }
.mk-comments { display: flex; flex-direction: column; gap: 8px; padding: 6px 12px 24px; overflow: hidden; }
.mk-c { margin: 0; font-size: 12.5px; line-height: 1.4; color: #111; }
.mk-c b { font-weight: 700; margin-right: 3px; }
.mk-c.is-reply { margin-left: 16px; padding-left: 10px; border-left: 2px solid #efefef; }
.mk-comments.is-fb .mk-c { padding: 7px 10px; border-radius: 14px; background: #f0f2f5; }
.mk-comments.is-fb .mk-c.is-reply { margin-left: 22px; border-left: 0; }
.mk-dm { display: block; width: max-content; margin-top: 7px; padding: 7px 14px; border-radius: 9px; font-size: 12px; font-weight: 700; color: #fff; }
.mk-dm.is-ig { background: #0095f6; }
.mk-dm.is-fb { background: #0866ff; }
.mk-c.is-note { align-self: center; padding: 6px 10px; border-radius: 8px; background: #f1f5f9; font-size: 11.5px; font-weight: 600; color: #334155; }
/* Reveal steps (driven by JS) */
/* Not-yet-sent messages take no space, so the chat always scrolls to the newest real message. */
[data-feed] > [data-at]:not(.is-on) { display: none; }
[data-feed] > [data-at].is-on { animation: mkin .35s ease both; }
@keyframes mkin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) { .mk-iphone { width: 290px; } .mk-ig-post { height: 200px; } }
@media (prefers-reduced-motion: reduce) { [data-feed] > [data-at] { animation: none !important; } .mk-track, .mk-scene { transition: none; } }
[data-feed] > * { flex-shrink: 0; }
.mk-hero h1 .mk-l { display: block; }

/* ===== 3.6.1 Pricing refinements ===== */
.mk-plan { border: 1.5px solid #d4dce3; box-shadow: 0 1px 0 rgba(14,26,43,.03); }
.mk-plan:not(.is-featured):hover { border-color: #9fb0bf; }
.mk-plan.is-trial { border: 1.5px dashed var(--mk-teal); background: #f6fbfa; }
.mk-plan-flag.is-new { background: var(--mk-mint); color: var(--mk-teal); }
@media (min-width: 1040px) { .mk-plans-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) and (max-width: 1039px) { .mk-plans-6 { grid-template-columns: repeat(2, 1fr); } }
.mk-compare { min-width: 0; }
.mk-compare thead th { vertical-align: bottom; padding-top: 18px; }
.mk-compare thead th small { display: block; margin-top: 4px; font: 600 13px/1.2 var(--csas-font); color: var(--mk-muted); }
.mk-compare tbody th { font-weight: 600; color: var(--mk-ink); }
.mk-compare td b { font-weight: 700; color: var(--mk-ink); }
.mk-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mk-mint); color: var(--mk-teal); }
.mk-cmp-pick { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mk-cmp-pick label { flex: 1; min-width: 0; }
.mk-cmp-pick select { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid #d4dce3; border-radius: 12px; background: #fff; font: 700 15px/1 var(--csas-font); color: var(--mk-ink); }
.mk-cmp-pick > span { font-size: 13px; font-weight: 700; color: var(--mk-muted); }
@media (max-width: 759px) {
	.mk-cmp-pick[hidden] { display: flex; }
	.mk-compare [data-c] { display: none; }
	.mk-compare [data-c].is-show { display: table-cell; }
	.mk-compare th, .mk-compare td { padding: 12px 10px; font-size: 14px; }
	.mk-compare tbody th { position: static; width: 46%; }
	.mk-compare-wrap { overflow: visible; }
}

/* Agent training + quick check (3.6.1) */
.csas-tlist { counter-reset: t; list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.csas-tlist li { counter-increment: t; position: relative; padding: 12px 14px 12px 50px; border: 1px solid #e3e8ee; border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.5; color: #1f2a37; }
.csas-tlist li::before { content: counter(t); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #ddf1ec; color: #0f766e; font: 700 12px/24px var(--csas-font, inherit); text-align: center; }
.csas-tquiz { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e3e8ee; display: grid; gap: 14px; }
.csas-tquiz-h { margin: 0; font-size: 18px; }
.csas-tquiz .csas-hint { margin: -8px 0 0; }
.csas-tq { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.csas-tq legend { padding: 0 0 6px; font-weight: 700; font-size: 15px; color: #0e1a2b; }
.csas-tq-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #e3e8ee; border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; }
.csas-tq-opt input { margin: 0; accent-color: #0f766e; flex: none; }
.csas-tq-opt:has(input:checked) { border-color: #0f766e; background: #f0faf7; }

/* Demo 3.6.2: channel switcher above the phone, WhatsApp pay button, Instagram/Facebook comment sheets */
.mk-scenes { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--mk-line); box-shadow: 0 6px 20px -12px rgba(14,26,43,.25); max-width: 100%; }
.mk-scenes button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: none; font: 600 13.5px/1 var(--csas-font); color: var(--mk-ink-2); cursor: pointer; white-space: nowrap; transition: background .3s ease, color .3s ease; }
.mk-scenes svg { width: 18px; height: 18px; flex: none; }
.mk-scenes .is-wa svg { color: #1faa59; } .mk-scenes .is-ig svg { color: #c13584; } .mk-scenes .is-fb svg { color: #0866ff; }
.mk-scenes button.is-active { background: var(--mk-ink); color: #fff; }
.mk-scenes button.is-active svg { color: #fff; }
@media (max-width: 380px) { .mk-scenes button { padding: 0 10px 0 8px; font-size: 12.5px; gap: 5px; } .mk-scenes svg { width: 16px; height: 16px; } }

.mk-b.is-cta { padding: 0; overflow: hidden; }
.mk-cta-txt { display: block; padding: 7px 9px 8px; }
.mk-cta-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 0; border-top: 1px solid rgba(17,27,33,.1); color: #027eb5; font-weight: 700; font-size: 13px; transition: background .2s ease; }
.mk-cta-btn svg { width: 15px; height: 15px; }
.mk-cta-btn.is-tapped { background: rgba(2,126,181,.12); transform: none; border-radius: 0; }

.mk-ig-post { height: 218px; flex: 0 0 auto; }
.is-fb .mk-ig-post { height: 196px; }
.mk-dots { margin-left: auto; display: flex; gap: 3px; }
.mk-dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: #111; }
.mk-ig-acts { display: flex; align-items: center; gap: 15px; padding: 9px 12px 4px; color: #111; }
.mk-ig-acts svg { width: 23px; height: 23px; display: block; }
.mk-ig-save { margin-left: auto; }
.mk-ig-tap { display: grid; place-items: center; border-radius: 50%; transition: transform .2s ease, background .2s ease; }
.mk-ig-tap.is-tapped { transform: scale(.86); background: rgba(0,0,0,.06); border-radius: 50%; }
.mk-ig-cap { margin: 0; padding: 2px 12px; font-size: 12px; line-height: 1.45; color: #111; }
.mk-fb-stats { display: flex; justify-content: space-between; padding: 7px 12px; font-size: 11.5px; color: #65676b; }
.mk-fb-like { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #0866ff; font-size: 9px; }
.mk-fb-acts { display: flex; justify-content: space-around; margin: 0 10px; padding: 6px 0; border-top: 1px solid #e4e6eb; color: #65676b; font-size: 12.5px; font-weight: 600; }
.mk-fb-acts > span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; }
.mk-fb-acts svg { width: 17px; height: 17px; }
.mk-fb-acts .mk-ig-tap.is-tapped { border-radius: 8px; transform: scale(.95); }

/* the comments sheet slides up from the bottom, like the apps */
.mk-sheet { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 63%; display: flex; flex-direction: column; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.14); transform: translateY(105%); transition: transform .5s cubic-bezier(.25,.8,.25,1); }
.mk-sheet.is-on { transform: none; }
.mk-sheet-grab { width: 36px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: #d4d4d8; flex: none; }
.mk-sheet-title { margin: 0; padding: 9px 12px 9px; text-align: center; font-weight: 700; font-size: 13.5px; color: #111; border-bottom: 1px solid #efefef; flex: none; }
.mk-sheet.is-fb .mk-sheet-title { text-align: left; display: flex; justify-content: space-between; align-items: baseline; }
.mk-sheet-title small { font-size: 11.5px; font-weight: 600; color: #65676b; }
.mk-sheet-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 10px; overflow: hidden; scroll-behavior: smooth; }
.mk-cm { display: flex; align-items: flex-start; gap: 9px; }
.mk-cm .mk-av { width: 28px; height: 28px; font-size: 12px; }
.mk-cm.is-reply { padding-left: 34px; }
.mk-cm.is-reply .mk-av { width: 24px; height: 24px; font-size: 11px; }
.mk-cm p { flex: 1; min-width: 0; margin: 0; font-size: 12.3px; line-height: 1.42; color: #111; }
.mk-cm b { font-weight: 700; }
.mk-cm i { font-style: normal; color: #737373; font-size: 11px; margin-left: 4px; }
.mk-cm em { font-style: normal; font-size: 10.5px; font-weight: 600; color: #737373; }
.mk-cm small { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: #737373; }
.mk-cm .is-s { width: 13px; height: 13px; color: #8e8e8e; margin-top: 8px; flex: none; }
.mk-fbb { display: inline-block; padding: 7px 10px; border-radius: 16px; background: #f0f2f5; }
.mk-fbb em { color: #0866ff; }
.mk-cm .mk-dm { margin-top: 7px; }
.mk-cm-note { align-self: center; margin: 2px 0 0; padding: 6px 11px; border-radius: 999px; background: #f1f5f9; font-size: 11px; font-weight: 600; color: #334155; }
.mk-cm-note::before { content: "✓ "; color: #0f766e; }
.mk-sheet-input { display: flex; align-items: center; gap: 9px; margin: 0 10px 22px; padding: 7px 12px 7px 7px; border: 1px solid #dbdbdb; border-radius: 999px; font-size: 12px; color: #8e8e8e; flex: none; }
.mk-sheet-input .mk-av { width: 24px; height: 24px; font-size: 11px; }
.mk-sheet-input.is-fb { border: 0; background: #f0f2f5; }
.mk-av.is-u1 { background: #e98a5b; } .mk-av.is-u2 { background: #64748b; } .mk-av.is-u3 { background: #6d5bd0; }

@media (max-width: 380px) { .mk-ig-post { height: 186px; } .is-fb .mk-ig-post { height: 168px; } }
@media (prefers-reduced-motion: reduce) { .mk-sheet { transition: none; } }

/* Channels 3.6.2: one connect button per channel */
.csas-chan-off { margin: -4px 0 6px 52px; }
.csas-chan-off .csas-linkbtn { font-size: 12.5px; color: var(--csas-muted, #64748b); }
.csas-chan .csas-btn-sm { margin-top: 0; white-space: nowrap; }
.csas-pagepick-h { margin: 10px 0 6px; font-weight: 700; font-size: 14px; }
@media (max-width: 420px) {
	.csas-chan { flex-wrap: wrap; }
	.csas-chan > .csas-btn { flex: 1 0 calc(100% - 52px); margin-left: 52px; justify-content: center; text-align: center; }
	.csas-chan > [data-csas-wa-connect] { flex: 1 0 calc(100% - 52px); margin-left: 52px; }
	.csas-chan > [data-csas-wa-connect] .csas-btn { width: 100%; justify-content: center; }
}

/* Pricing 3.6.2: tighter numbers; Business = dark "Recommended"; top plan = its own deep-teal card */
.mk-price b, .mk-plans-5 .mk-price b { font-variant-numeric: normal; font-feature-settings: "tnum" 0; letter-spacing: -.035em; word-spacing: -.1em; }
.mk-plan.is-top { position: relative; overflow: hidden; border: 0; color: #fff;
	background:
		radial-gradient(120% 70% at 100% 0%, rgba(242,178,48,.30) 0%, rgba(242,178,48,0) 55%),
		repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
		linear-gradient(165deg, #12857b 0%, #0b5d56 52%, #073f3b 100%);
	box-shadow: 0 24px 48px -28px rgba(7,63,59,.75); }
.mk-plan.is-top h2, .mk-plan.is-top .mk-price b, .mk-plan.is-top .mk-plan-list li { color: #fff; }
.mk-plan.is-top .mk-plan-for, .mk-plan.is-top .mk-price span { color: #c7e8e2; }
.mk-plan.is-top .mk-plan-list { border-color: rgba(255,255,255,.18); }
.mk-plan.is-top .mk-plan-list li::before { border-color: var(--mk-saffron); }
.mk-plan-flag.is-top { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.mk-plan.is-top .mk-btn-primary { background: var(--mk-saffron); color: var(--mk-ink); }
.mk-plan.is-top .mk-btn-primary:hover { background: #f5c04f; color: var(--mk-ink); }

/* 3.6.5: the page body is a flex column; auto margins made <main> shrink to its content on wider phones. */
.csas-body > .csas-main { width: 100%; box-sizing: border-box; }
/* Auth pages: same side margins as the header, slightly shorter fields, no logo mark */
.csas-auth .csas-auth-head .csas-brand-mark { display: none; }
.csas-auth { max-width: 480px; }
.csas-auth .csas-input, .csas-auth .csas-pass .csas-input, .csas-auth select { min-height: 48px; }
.csas-auth .csas-btn-block, .csas-auth button[type=submit] { min-height: 50px; }
@media (max-width: 600px) {
	.csas-variant-app .csas-main:has(.mk-auth) { padding-left: 16px; padding-right: 16px; }
	.mk-auth-form, .csas-auth { max-width: none; }
}
/* Demo: the business "typing…" before it answers */
[data-feed] > .is-gone { display: none !important; }
.mk-b.mk-typing { display: inline-flex; gap: 4px; align-items: center; padding: 10px 12px; }
.mk-typing i { width: 6px; height: 6px; border-radius: 50%; background: #7a8a86; animation: mkdot 1s infinite ease-in-out; }
.mk-typing i:nth-child(2) { animation-delay: .15s; } .mk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mkdot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }


/* Agent payout: bank or mobile money (3.6.5) */
.csas-paytoggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #eef2f1; }
.csas-paytoggle label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 11px; font-weight: 700; font-size: 14px; color: #475569; cursor: pointer; text-align: center; }
.csas-paytoggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.csas-paytoggle label:has(input:checked) { background: #fff; color: #0e1a2b; box-shadow: 0 1px 3px rgba(14,26,43,.12); }
.csas-paymeth .csas-paymeth-momo { display: none; }
.csas-paymeth:has(input[value="momo"]:checked) .csas-paymeth-momo { display: block; }
.csas-paymeth:has(input[value="momo"]:checked) .csas-paymeth-bank { display: none; }
.csas-paymeth.is-momo .csas-paymeth-momo { display: block; } .csas-paymeth.is-momo .csas-paymeth-bank { display: none; }
.csas-bankcard-ico.is-momo { background: #fff7e0; color: #b7791f; }
.mk-brand img { width: 34px; height: 34px; border-radius: 10px; flex: none; display: block; object-fit: cover; }

/* Agent support (3.6.6): floating button at the side + short page-aware tip */
.csas-xs-badge.is-logo { padding: 0; overflow: hidden; background: #000; }
.csas-xs-badge.is-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csas-support { position: fixed; z-index: 60; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.csas-support > * { pointer-events: auto; }
.csas-support-btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 6px; border: 0; border-radius: 999px; background: #14b8a6; color: #fff; font: 800 15px/1 var(--csas-font, inherit); letter-spacing: -.01em; box-shadow: 0 12px 28px -10px rgba(15,118,110,.7); cursor: pointer; transition: transform .15s ease; }
.csas-support-btn:active { transform: scale(.96); }
.csas-support-btn img { width: 38px; height: 38px; border-radius: 50%; background: #000; object-fit: cover; }
.csas-support-tip { display: flex; align-items: center; gap: 6px; margin: 0; max-width: 220px; padding: 9px 8px 9px 14px; border-radius: 16px 16px 4px 16px; background: #fff; color: #0e1a2b; font-weight: 700; font-size: 13.5px; line-height: 1.3; box-shadow: 0 10px 30px -8px rgba(14,26,43,.35); border: 1px solid #e3e8ee; cursor: pointer; opacity: 0; transform: translateX(10px) scale(.96); transform-origin: right center; transition: opacity .3s ease, transform .3s cubic-bezier(.2,.9,.3,1.2); }
.csas-support.has-tip .csas-support-tip { opacity: 1; transform: none; }
.csas-support-tip button { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: 15px; line-height: 1; cursor: pointer; }
.csas-support.is-live .csas-support-btn { animation: csassp 1.4s ease-in-out 2; }
@keyframes csassp { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
html.csas-sheet-open .csas-support { display: none; }
@media (min-width: 900px) { .csas-support { right: 24px; bottom: 24px; } }

/* Install-app bar (3.6.6): slim line that drops in above the header */
.csas-appbar { position: fixed; z-index: 1000; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: #0e1a2b; color: #fff; box-shadow: 0 6px 20px -8px rgba(0,0,0,.45); transform: translateY(-110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); font-family: var(--csas-font, system-ui, sans-serif); }
.csas-appbar.is-in { transform: none; }
html.csas-has-appbar body { padding-top: calc(54px + env(safe-area-inset-top, 0px)); transition: padding-top .35s ease; }
.csas-appbar img { width: 34px; height: 34px; border-radius: 9px; flex: none; background: #000; }
.csas-appbar-txt { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.csas-appbar-txt strong { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csas-appbar-txt small { font-size: 12px; color: #a9bad0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csas-appbar-go { flex: none; min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: #14b8a6; color: #04201c; font-family: inherit; font-weight: 800; font-size: 13.5px; line-height: 1; cursor: pointer; }
.csas-appbar-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.csas-appbar-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.csas-appbar-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #14b8a6, #f2b230); transition: width .12s linear; }
.csas-appbar.is-done { background: #0f766e; }
.csas-appbar.is-done .csas-appbar-go { background: #fff; color: #0f766e; }
@media (prefers-reduced-motion: reduce) { .csas-appbar { transition: none; } }

/* Shop page off (3.6.6) */
.csas-shopoff { max-width: 440px; margin: clamp(32px, 9vh, 90px) auto 48px; padding: 0 4px; text-align: center; }
.csas-shopoff-av { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: linear-gradient(150deg, #14b8a6, #0f766e); color: #fff; font: 800 32px/1 var(--csas-font, inherit); box-shadow: 0 16px 34px -16px rgba(15,118,110,.7); }
.csas-shopoff-name { margin: 14px 0 0; font-weight: 700; color: #64748b; font-size: 15px; }
.csas-shopoff h1 { margin: 6px 0 10px; font-size: clamp(26px, 6vw, 34px); letter-spacing: -.02em; color: #0e1a2b; }
.csas-shopoff p { margin: 0 auto; max-width: 34ch; color: #475569; font-size: 16px; line-height: 1.55; }
.csas-shopoff-acts { display: grid; gap: 10px; margin-top: 24px; }
.csas-shopoff-own { margin-top: 26px !important; font-size: 14px !important; }
.csas-shopoff-own a { color: #0f766e; font-weight: 700; }
.csas-brand-logo { width: 48px; height: 48px; border-radius: 14px; display: block; margin-bottom: 14px; }

/* =====================================================================
   3.6.8 — branded dialogs & pickers, setup next step, flow builder,
   Support pill, install bar
   ===================================================================== */

/* Next step on Home (setup not finished) */
.csas-nextstep { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; background: #0e1a2b; color: #fff; text-decoration: none; box-shadow: 0 14px 30px -18px rgba(14,26,43,.8); }
.csas-nextstep-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #14b8a6; color: #04201c; }
.csas-nextstep > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.csas-nextstep strong { font-size: 15px; font-weight: 800; }
.csas-nextstep small { font-size: 13px; color: #a9bad0; }
.csas-nextstep b { font-size: 26px; line-height: 1; color: #14b8a6; }

/* Flow tab: how should we reply? */
.csas-startpick { margin: 0 0 16px; }
.csas-startpick h2 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; color: var(--csas-navy); }
.csas-startpick > p { margin: 4px 0 14px; color: var(--csas-ink-2, #475569); font-size: 14.5px; }
.csas-startpick-list { display: grid; gap: 10px; }
.csas-startpick-form { margin: 0; }
.csas-startpick-opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 1.5px solid var(--csas-line-strong); border-radius: 18px; background: #fff; color: var(--csas-navy); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.csas-startpick-opt:hover, .csas-startpick-opt:focus-visible { border-color: #14b8a6; box-shadow: 0 0 0 4px rgba(20,184,166,.14); outline: none; }
.csas-startpick-opt.is-rec { border-color: #14b8a6; background: linear-gradient(180deg, #f2fdfb, #fff); }
.csas-startpick-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #e6f7f4; color: #0f766e; }
.csas-startpick-opt.is-rec .csas-startpick-ico { background: #14b8a6; color: #fff; }
.csas-startpick-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.csas-startpick-txt strong { font-size: 15.5px; font-weight: 800; }
.csas-startpick-txt small { font-size: 13px; line-height: 1.4; color: #64748b; }
.csas-startpick-opt em { position: absolute; top: -9px; right: 14px; padding: 3px 9px; border-radius: 99px; background: #0e1a2b; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }

/* Dialogs (confirm, info) and bottom-sheet pickers */
html.csas-dlg-open { overflow: hidden; }
.csas-dlg { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(14,26,43,0); transition: background .18s ease; font-family: var(--csas-font, system-ui, sans-serif); }
.csas-dlg.is-open { background: rgba(14,26,43,.5); }
.csas-dlg-panel { width: 100%; max-width: 380px; max-height: min(78vh, 640px); overflow: auto; padding: 22px 20px 18px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -20px rgba(14,26,43,.55); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .18s ease, transform .18s ease; }
.csas-dlg.is-open .csas-dlg-panel { opacity: 1; transform: none; }
.csas-dlg-title { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #0e1a2b; letter-spacing: -.01em; }
.csas-dlg-msg { margin: 0; font-size: 15px; line-height: 1.5; color: #334155; }
.csas-dlg-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: #334155; }
.csas-dlg-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.csas-dlg-btn { min-height: 44px; padding: 0 18px; border: 1px solid #dbe4e2; border-radius: 999px; background: #fff; color: #0e1a2b; font-family: inherit; font-weight: 700; font-size: 14.5px; line-height: 1; cursor: pointer; }
.csas-dlg-btn.is-main { border-color: #14b8a6; background: #14b8a6; color: #fff; }
.csas-dlg-btn.is-danger { border-color: #d92d20; background: #d92d20; color: #fff; }
.csas-dlg-btn:focus-visible { outline: 3px solid rgba(20,184,166,.35); outline-offset: 2px; }
.csas-dlg.is-sheet { place-items: end center; padding: 0; }
.csas-dlg.is-sheet .csas-dlg-panel { max-width: 520px; border-radius: 24px 24px 0 0; padding: 8px 12px calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
.csas-dlg.is-sheet.is-open .csas-dlg-panel { transform: none; }
.csas-dlg.is-sheet .csas-dlg-title { margin: 6px 8px 8px; font-size: 15px; color: #64748b; font-weight: 700; }
.csas-dlg-grip { display: block; width: 40px; height: 5px; margin: 2px auto 6px; border-radius: 99px; background: #dbe4e2; }
@media (min-width: 700px) { .csas-dlg.is-sheet { place-items: center; padding: 20px; } .csas-dlg.is-sheet .csas-dlg-panel { max-width: 420px; border-radius: 22px; padding: 10px 12px 14px; } .csas-dlg-grip { display: none; } }
.csas-pick-list { display: grid; gap: 2px; }
.csas-pick-group { margin: 10px 8px 4px; font-size: 12px; font-weight: 800; color: #94a3b8; }
.csas-pick-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 12px; border: 0; border-radius: 14px; background: none; color: #0e1a2b; font-family: inherit; font-weight: 600; font-size: 15.5px; line-height: 1.3; text-align: left; cursor: pointer; }
.csas-pick-opt span { flex: 1; }
.csas-pick-opt i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; }
.csas-pick-opt:hover, .csas-pick-opt:focus-visible { background: #f1f8f7; outline: none; }
.csas-pick-opt.is-on { background: #e8f8f5; font-weight: 800; }
.csas-pick-opt.is-on i { border: 0; background: #14b8a6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.csas-pick-opt:disabled { opacity: .4; cursor: default; }

/* The branded select button (the real <select> stays in the form, out of sight) */
.csas-select-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
button.csas-select { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--csas-tap, 48px); padding: 0 14px; border: 1px solid var(--csas-line-strong); border-radius: var(--csas-radius-sm, 14px); background: #f7fbfa; color: var(--csas-ink); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.25; text-align: left; cursor: pointer; }
button.csas-select span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.csas-select svg { flex: none; color: #0f766e; }
button.csas-select:focus-visible { outline: none; background: #fff; border-color: var(--csas-gold); box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
button.csas-select:disabled { opacity: .5; }
button.csas-select.is-sm { min-height: 38px; font-size: 14px; }
.csas-item button.csas-select { min-height: 44px; }

/* ---------------- Flow builder ---------------- */
.csas-bld-top { gap: 8px; }
.csas-bld-back { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: #fff; border: 1px solid var(--csas-line); font-size: 26px; }
.csas-bld-title strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.csas-bld-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; }
.csas-bld-bar { gap: 8px; align-items: center; }
.csas-bld-bar button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 12px; border-color: var(--csas-line); color: #0e1a2b; box-shadow: 0 1px 0 rgba(14,26,43,.04); }
.csas-bld-bar button svg { color: #0f766e; }
.csas-bld-bar button:hover { border-color: #14b8a6; }
.csas-bld-bar button.is-primary { padding: 0 20px; background: #0e1a2b; border-color: #0e1a2b; color: #fff; font-weight: 800; }
.csas-bld-bar button.is-primary:disabled { opacity: .7; }
.csas-bld-canvas { background-color: #f6faf9; background-image: radial-gradient(#cfe0dc 1px, transparent 1px); background-size: 20px 20px; border-color: #dfe9e6; }
.csas-node-card { padding: 10px 12px 11px; border-radius: 16px; border: 1px solid #dde7e4; box-shadow: 0 1px 2px rgba(14,26,43,.06), 0 8px 18px -12px rgba(14,26,43,.25); }
.csas-node-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.csas-node-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #e6f7f4; color: #0f766e; flex: none; }
.csas-node-ico svg { width: 16px; height: 16px; }
.csas-node-kind { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 700; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-node-card strong { font-size: 14.5px; font-weight: 800; letter-spacing: -.005em; }
.csas-node-card p { font-size: 12.5px; color: #475569; }
.csas-node-grip { position: static; width: 22px; height: 22px; display: grid; grid-template-columns: repeat(2, 3px); grid-auto-rows: 3px; gap: 3px; place-content: center; border-radius: 6px; cursor: grab; background: none; }
.csas-node-grip i { width: 3px; height: 3px; border-radius: 50%; background: #b5c5c1; }
.csas-node-grip i:nth-child(1)::after, .csas-node-grip i:nth-child(2)::after, .csas-node-grip i:nth-child(3)::after { content: ""; }
.csas-node-start { position: static; padding: 3px 8px; font-size: 10.5px; font-weight: 800; border-radius: 99px; background: #0e1a2b; color: #fff; }
.csas-node.is-start .csas-node-card { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.18), 0 8px 18px -12px rgba(14,26,43,.25); }
.csas-node.is-ai .csas-node-card, .csas-node.is-handoff .csas-node-card, .csas-node.is-end .csas-node-card { background: #fff; }
.csas-node.is-ai .csas-node-ico { background: #efeafe; color: #6d28d9; }
.csas-node.is-handoff .csas-node-ico { background: #fff1e6; color: #c2410c; }
.csas-node.is-carousel .csas-node-ico, .csas-node.is-product .csas-node-ico, .csas-node.is-order .csas-node-ico, .csas-node.is-paylink .csas-node-ico, .csas-node.is-booking .csas-node-ico { background: #fef6e0; color: #a16207; }
.csas-node.is-buttons .csas-node-ico, .csas-node.is-list .csas-node-ico, .csas-node.is-form .csas-node-ico { background: #e7f0fe; color: #1d4ed8; }
.csas-node-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.csas-node-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 99px; background: #f1f5f4; color: #0f766e; font-size: 11px; font-weight: 700; }
.csas-node-tag svg { width: 12px; height: 12px; }
.csas-node-note { display: none; }
.csas-node-ports { gap: 4px; margin-top: 4px; }
.csas-port span { max-width: 84px; padding: 2px 7px; border-radius: 99px; background: #fff; border: 1px solid #e2ebe8; font-size: 10.5px; color: #334155; margin-top: 3px; }
.csas-port i { width: 14px; height: 14px; border: 3px solid #14b8a6; }
.csas-port.is-open i { border-color: #f59e0b; background: #fffbeb; }
.csas-port.is-optional i { border-color: #94a3b8; border-style: dashed; background: #fff; }
.csas-bld-fab { width: auto; height: 52px; padding: 0 20px 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: #0e1a2b; font: 800 15px/1 var(--csas-font, inherit); box-shadow: 0 14px 28px -12px rgba(14,26,43,.75); }
.csas-bld-fab svg { color: #14b8a6; }
.csas-bld-hint { background: #0e1a2b; }

/* Add a step */
.csas-addgroup { margin: 14px 2px 8px; font-size: 12.5px; font-weight: 800; color: #94a3b8; }
.csas-addgroup:first-of-type { margin-top: 4px; }
.csas-addgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.csas-addgrid button { display: flex; align-items: center; justify-items: start; gap: 10px; min-height: 64px; padding: 10px 12px; text-align: left; border-color: #e2ebe8; border-radius: 16px; transition: border-color .12s ease, background .12s ease; }
.csas-addgrid button:hover, .csas-addgrid button:focus-visible { border-color: #14b8a6; background: #f6fdfc; outline: none; }
.csas-addgrid button span.csas-add-ico { font-size: 0; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e6f7f4; color: #0f766e; }
.csas-add-ico.is-ai { background: #efeafe !important; color: #6d28d9 !important; }
.csas-add-ico.is-handoff { background: #fff1e6 !important; color: #c2410c !important; }
.csas-add-ico.is-carousel, .csas-add-ico.is-product, .csas-add-ico.is-order, .csas-add-ico.is-booking, .csas-add-ico.is-paylink { background: #fef6e0 !important; color: #a16207 !important; }
.csas-add-ico.is-buttons, .csas-add-ico.is-list, .csas-add-ico.is-form { background: #e7f0fe !important; color: #1d4ed8 !important; }
.csas-addgrid button span.csas-add-txt { font-size: 14px; display: grid; gap: 2px; min-width: 0; }
.csas-add-txt b { font-size: 14px; font-weight: 800; color: #0e1a2b; }
.csas-add-txt small { font-size: 12px; font-weight: 600; color: #64748b; line-height: 1.3; }
@media (max-width: 360px) { .csas-addgrid { grid-template-columns: 1fr; } }

/* Add to this message: photos + products */
.csas-attach { margin-top: 6px; padding: 14px; border-radius: 16px; background: #f6faf9; border: 1px solid #e2ebe8; }
.csas-attach-h { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; color: #0e1a2b; }
.csas-attach .csas-imgs:empty { display: none; }
.csas-attach-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.csas-attach-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 1px solid #d6e3e0; border-radius: 14px; background: #fff; color: #0e1a2b; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; }
.csas-attach-btn svg { color: #0f766e; flex: none; }
.csas-attach-btn.is-on { border-color: #14b8a6; background: #e8f8f5; color: #0f766e; }
.csas-attach-prods { margin-top: 12px; display: grid; gap: 10px; }
.csas-seg2 { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: #e9f1ef; }
.csas-seg2 label { position: relative; }
.csas-seg2 input { position: absolute; opacity: 0; }
.csas-seg2 span { display: grid; place-items: center; min-height: 38px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #475569; cursor: pointer; }
.csas-seg2 input:checked + span { background: #fff; color: #0e1a2b; box-shadow: 0 1px 3px rgba(14,26,43,.12); }
.csas-seg2 input:focus-visible + span { outline: 2px solid #14b8a6; }
.csas-attach .csas-pickprods { display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.csas-prodpick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e2ebe8; border-radius: 12px; background: #fff; cursor: pointer; }
.csas-prodpick input { width: 18px; height: 18px; accent-color: #14b8a6; flex: none; }
.csas-prodpick img, .csas-prodpick-ph { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; background: #f1f5f4; display: grid; place-items: center; color: #94a3b8; }
.csas-prodpick > span:last-child { display: grid; min-width: 0; }
.csas-prodpick b { font-size: 14px; color: #0e1a2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-prodpick small { font-size: 12.5px; color: #64748b; }

/* ---------------- Support pill: the tip rolls out of it ---------------- */
.csas-support { gap: 0; }
.csas-support-pill { position: relative; display: inline-flex; align-items: center; border-radius: 999px; background: #14b8a6; box-shadow: 0 12px 28px -10px rgba(15,118,110,.7); transition: background .3s ease; }
.csas-support.has-tip .csas-support-pill { background: #0e1a2b; }
.csas-support-btn { height: 44px; padding: 0 14px 0 4px; gap: 8px; background: transparent; box-shadow: none; font-size: 14px; }
.csas-support-btn img { width: 36px; height: 36px; }
.csas-support-lbl { display: inline-block; max-width: 90px; overflow: hidden; white-space: nowrap; transition: max-width .3s ease, opacity .2s ease; }
.csas-support.has-tip .csas-support-lbl { max-width: 0; opacity: 0; margin-left: -8px; }
.csas-support-tip { display: inline-grid; gap: 1px; max-width: 0; overflow: hidden; white-space: nowrap; text-align: left; line-height: 1.15; opacity: 0; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; border-radius: 0; transform: none; transition: max-width .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
.csas-support.has-tip .csas-support-tip { max-width: 240px; opacity: 1; transform: none; }
.csas-support-tip b { font-size: 13.5px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.csas-support-tip em { font-style: normal; font-size: 12.5px; font-weight: 800; color: #5eead4; }
.csas-support-x { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; opacity: 0; transition: opacity .25s ease; }
.csas-support.has-tip .csas-support-x { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .csas-support-lbl, .csas-support-tip, .csas-support-x { transition: none; } }

/* Support sheet: narrower and a little shorter */
.csas-hsheet .csas-sheet-panel { max-width: 420px; margin: 0 auto; max-height: 72vh; }
@media (min-width: 700px) { .csas-hsheet .csas-sheet-panel { left: auto; right: 24px; bottom: 24px; width: 380px; margin: 0; border-radius: 22px; max-height: 64vh; } }
.csas-hs-intro { margin: 2px 0 10px; font-size: 14px; color: #475569; line-height: 1.45; }
.csas-hs-shot span { display: inline-flex; align-items: center; gap: 6px; }

/* Install bar: Download app · Install now */
.csas-appbar { padding: 7px 8px 7px 12px; padding-top: calc(7px + env(safe-area-inset-top, 0px)); background: #000; }
html.csas-has-appbar body { padding-top: calc(48px + env(safe-area-inset-top, 0px)); }
.csas-appbar img { width: 30px; height: 30px; border-radius: 8px; }
.csas-appbar-txt strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.csas-appbar-go { min-height: 32px; padding: 0 16px; background: #14b8a6; color: #fff; font-weight: 800; font-size: 13.5px; }
.csas-appbar-x { width: 28px; height: 28px; background: transparent; color: #94a3b8; }

/* Smart replies: products & photos */
.csas-aimedia-strip { display: flex; gap: 8px; overflow-x: auto; margin: 12px -4px 4px; padding: 0 4px 6px; scrollbar-width: thin; }
.csas-aimedia-prod { flex: 0 0 104px; display: grid; gap: 2px; }
.csas-aimedia-prod img, .csas-aimedia-prod i { width: 104px; height: 104px; border-radius: 14px; object-fit: cover; background: #eef4f3; display: block; }
.csas-aimedia-prod b { font-size: 12.5px; color: #0e1a2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-aimedia-prod small { font-size: 12px; color: #0f766e; font-weight: 700; }
.csas-aimedia-h { margin: 18px 0 2px; font-size: 14.5px; font-weight: 800; color: #0e1a2b; }
.csas-aimedia-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.csas-aimedia-list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 6px; border: 1px solid #e2ebe8; border-radius: 14px; }
.csas-aimedia-list img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.csas-aimedia-list span { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; color: #0e1a2b; }
.csas-aimedia-list form { margin: 0; }
.csas-aimedia-add { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
@media (min-width: 560px) { .csas-aimedia-add { grid-template-columns: auto 1fr auto; align-items: center; } }
.csas-aimedia-file { position: relative; }
.csas-aimedia-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.csas-aimedia-file span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px dashed #b9d6d0; border-radius: 14px; color: #0f766e; font-weight: 700; font-size: 14px; background: #f6fbfa; }
.csas-aimedia-file input:focus-visible + span { outline: 3px solid rgba(20,184,166,.3); }
.csas-tc-img { display: block; max-width: 220px; border-radius: 12px; }
.csas-bubble.is-cards { background: transparent !important; padding: 0 !important; box-shadow: none !important; max-width: 100% !important; }
.csas-tc-cards { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.csas-tc-card { flex: 0 0 140px; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid #e2ebe8; }
.csas-tc-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
.csas-tc-card b { font-size: 13px; color: #0e1a2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-tc-card small { font-size: 12.5px; color: #0f766e; font-weight: 700; }
.csas-tc-card em { margin-top: 4px; padding: 6px; text-align: center; border-radius: 9px; background: #e8f8f5; color: #0f766e; font-style: normal; font-weight: 800; font-size: 12px; }
.is-wa-only { opacity: .62; }
.is-wa-only small { color: #15803d !important; font-weight: 700; }
.csas-attach-btn, .csas-attach-btn.csas-upl { font-size: 14px; font-weight: 700; }
.csas-attach-btn span { font-size: 14px; font-weight: 700; }
@media (max-width: 520px) {
	.csas-bld-bar button[data-bld="arrange"], .csas-bld-bar button[data-bld="fit"] { padding: 0; width: 40px; justify-content: center; }
	.csas-bld-bar button[data-bld="arrange"] span, .csas-bld-bar button[data-bld="fit"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* Keep Support clear of sticky action bars (Templates "Set it up for me", Save bars, the chat composer) */
body:has(.csas-stickybar) .csas-support, body:has(.csas-sticky-save) .csas-support, body:has(.csas-composer) .csas-support { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { body:has(.csas-stickybar) .csas-support, body:has(.csas-sticky-save) .csas-support, body:has(.csas-composer) .csas-support { bottom: 96px; } }

/* =====================================================================
   3.6.9 — Chat screen: fixed header, scrolling messages, composer at the bottom
   ===================================================================== */
.csas-thread { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; gap: 0; min-height: 0; background: #efeae2; }
html.csas-in-thread, html.csas-in-thread body { overflow: hidden; height: 100%; }
html.csas-in-thread .csas-tabbar, html.csas-in-thread .csas-support, html.csas-in-thread .csas-appbar, html.csas-in-thread .csas-pagebar { display: none !important; }
html.csas-in-thread body { padding-top: 0 !important; }
.csas-thread-head { position: relative; top: auto; flex: none; display: flex; align-items: center; gap: 10px; height: calc(60px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 12px 0 6px; border: 0; border-bottom: 1px solid #e3e8e6; border-radius: 0; background: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 2; }
.csas-thread-back { width: 40px; height: 40px; border-radius: 12px; background: transparent; color: #0e1a2b; font-size: 0; }
.csas-thread-back:hover { background: #f1f5f4; }
.csas-thread-head .csas-avatar { position: relative; flex: none; }
.csas-thread-who strong { font-size: 16px; font-weight: 800; }
.csas-thread-who small { font-size: 12.5px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-modebar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 8px 6px 14px; font-size: 13.5px; font-weight: 600; z-index: 1; }
.csas-modebar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-modebar.is-ai { background: #fff6dd; color: #6b4e00; }
.csas-modebar.is-human { background: #e6f6f2; color: #0f5f50; }
.csas-modebar button { flex: none; min-height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent; color: #0f7a5c; font-family: inherit; font-weight: 800; font-size: 13.5px; line-height: 1; cursor: pointer; }
.csas-modebar button:hover, .csas-modebar button:focus-visible { background: rgba(15,122,92,.1); outline: none; }
.csas-thread .csas-bubbles { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: 0; padding: 14px 12px 10px; gap: 6px; }
.csas-thread .csas-bubble { max-width: 80%; }
.csas-bubble.is-out.by-ai { background: #dff3ea; border: 0; }
.csas-bubble-ai { display: block; margin: 0 0 1px; font-size: 11px; font-weight: 800; color: #0f7a5c; }
.csas-bubble-img { display: block; max-width: 240px; width: 100%; border-radius: 10px; margin: 0 0 4px; }
.csas-bubble-btns { display: grid; gap: 4px; margin-top: 6px; }
.csas-bubble-btns i { display: block; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.75); color: #0b6bdc; font-style: normal; font-weight: 700; font-size: 13.5px; text-align: center; }
.csas-chatcards { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -12px 0 0; scrollbar-width: none; }
.csas-chatcards::-webkit-scrollbar { display: none; }
.csas-chatcards.is-out { align-self: flex-end; max-width: 100%; }
.csas-chatcard { flex: 0 0 150px; display: grid; gap: 1px; padding: 0 0 8px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.csas-chatcard img { width: 100%; height: 110px; object-fit: cover; display: block; margin-bottom: 6px; background: #f2efe8; }
.csas-chatcard b { padding: 0 10px; font-size: 13.5px; color: #111b21; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-chatcard small { padding: 0 10px; font-size: 12.5px; font-weight: 700; color: #0f7a5c; }
.csas-chatcard em { margin: 6px 8px 0; padding: 7px 0; border-radius: 10px; background: #0e1a2b; color: #fff; text-align: center; font-style: normal; font-weight: 800; font-size: 12.5px; }
.csas-thread-foot { flex: none; display: grid; gap: 8px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #e3e8e6; }
.csas-thread-foot > [hidden] { display: none !important; }
.csas-actchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.csas-actchips::-webkit-scrollbar { display: none; }
.csas-actchips button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid #dbe4e2; border-radius: 99px; background: #fff; color: #0e1a2b; font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1; cursor: pointer; white-space: nowrap; }
.csas-actchips button svg { color: #0f7a5c; }
.csas-actchips button:disabled { opacity: .5; }
.csas-thread .csas-composer { position: static; bottom: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; align-items: flex-end; }
.csas-thread .csas-composer textarea { min-height: 44px; padding: 11px 16px; border-radius: 22px; background: #f1f5f4; }
.csas-thread .csas-composer-send { width: 44px; height: 44px; background: #0f7a5c; }
.csas-thread .csas-window-note { padding: 8px 12px; font-size: 13px; background: #fff8e1; color: #6b4e00; }
.csas-thread .csas-composer-err { padding: 8px 12px; font-size: 13px; }
.csas-thread .csas-claimed { margin: 0; font-size: 13px; color: #64748b; }
@media (min-width: 900px) {
	.csas-thread { position: relative; inset: auto; z-index: 1; height: calc(100vh - 170px); min-height: 480px; border: 1px solid var(--csas-line); border-radius: 20px; overflow: hidden; box-shadow: var(--csas-sh-1); }
	html.csas-in-thread, html.csas-in-thread body { overflow: auto; height: auto; }
	html.csas-in-thread .csas-tabbar { display: flex !important; }
	html.csas-in-thread .csas-pagebar { display: flex !important; }
	.csas-thread-head { height: 64px; padding-top: 0; }
	.csas-thread-foot { padding-bottom: 10px; }
}
.csas-appbar-go { color: #0e1a2b !important; background: #14b8a6; }

/* 3.6.9 — Home channels: one tidy row each, Connect opposite the name */
.csas-chan { flex-wrap: nowrap !important; min-height: 60px; padding: 8px 0; }
.csas-chan > .csas-btn, .csas-chan > [data-csas-wa-connect] { flex: none !important; margin-left: 0 !important; }
.csas-chan .csas-btn-sm, .csas-chan > [data-csas-wa-connect] .csas-btn { width: auto !important; min-height: 38px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 800; }
.csas-chan-ico { width: 38px; height: 38px; border-radius: 11px; }
.csas-chan-ico svg { width: 20px; height: 20px; }
.csas-chan-main strong { font-size: 15.5px; font-weight: 800; }
.csas-chan .csas-chan-off { margin: 0 0 0 4px; }
.csas-chan .csas-chan-off .csas-linkbtn { font-size: 12.5px; color: #94a3b8; padding: 6px 4px; }
.csas-coex { margin: 0 0 6px 50px; padding: 8px 10px; font-size: 13px; align-items: center; }
.csas-coex input { width: 18px; height: 18px; flex: none; }
/* 3.6.9 — lines stay clear at any zoom */
.csas-edge { stroke: #1f9e8c; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.csas-edge-end { fill: #1f9e8c; }
.csas-edge.is-temp { vector-effect: non-scaling-stroke; }
.csas-flowrow.is-slot { margin: 0; }
.csas-flowrow.is-slot .csas-flowrow-link { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.csas-chip-gold { background: #14b8a6; color: #fff; }
.csas-gm-gal { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.csas-gm-ph { display: grid; gap: 4px; width: 84px; font-size: 12px; color: #64748b; }
.csas-gm-ph img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.csas-chip-like { background: #fdeef3; color: #c0265a; text-decoration: none; font-weight: 800; }
.csas-likelist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.csas-likelist li { display: flex; align-items: center; gap: 10px; }
.csas-likelist .csas-avatar { position: relative; }
.csas-likelist li > span:last-child { display: grid; }
.csas-likelist small { color: #64748b; font-size: 12px; }
.csas-thread .csas-bubbles > * { flex-shrink: 0; }
@media (max-width: 520px) {
	.csas-bld-bar button[data-bld="revert"] { padding: 0; width: 40px; justify-content: center; }
	.csas-bld-bar button[data-bld="revert"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* 3.6.10 — Comments, revamped */
.csas-cm2-set .csas-h3, .csas-cm2-need .csas-h3 { margin: 0; }
.csas-cm2-lede { margin: 2px 0 12px; font-size: 13px; color: var(--csas-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csas-cm2-toggles { display: grid; border: 1px solid var(--csas-line); border-radius: 16px; overflow: hidden; }
.csas-cm2-toggle { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; background: #fff; }
.csas-cm2-toggle + .csas-cm2-toggle { border-top: 1px solid var(--csas-line); }
.csas-cm2-toggle.is-busy { opacity: .6; pointer-events: none; }
.csas-cm2-txt { display: grid; min-width: 0; }
.csas-cm2-txt strong { font-size: 15px; color: var(--csas-navy); }
.csas-cm2-txt small { font-size: 12.5px; color: var(--csas-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csas-cm2-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #f1f5f9; flex: 0 0 36px; }
.csas-cm2-ico svg { width: 20px; height: 20px; }
.csas-cm2-ico.is-facebook { background: #e8f0fe; color: #0866ff; }
.csas-cm2-ico.is-instagram { background: #fdeef4; color: #d6249f; }
.csas-cm2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.csas-cm2-stats > span { display: grid; gap: 2px; padding: 14px 12px; text-align: center; min-width: 0; }
.csas-cm2-stats > span + span { border-left: 1px solid var(--csas-line); }
.csas-cm2-stats b { font-size: 22px; line-height: 1.1; color: var(--csas-navy); font-variant-numeric: tabular-nums; }
.csas-cm2-stats small { font-size: 12px; color: var(--csas-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csas-cm2-stats .is-warn b { color: #c2410c; }
.csas-cm2-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.csas-cm2-head .csas-h3 { margin: 0; }
.csas-cm2-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 999px; }
.csas-cm2-tabs button { appearance: none; border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--csas-muted); cursor: pointer; white-space: nowrap; }
.csas-cm2-tabs button em { font-style: normal; font-weight: 500; opacity: .7; margin-left: 2px; }
.csas-cm2-tabs button[aria-selected="true"] { background: #fff; color: var(--csas-navy); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.csas-cm2-tabs button:focus-visible { outline: 2px solid var(--csas-gold); outline-offset: 1px; }
.csas-cm2-list { list-style: none; margin: 0; padding: 0; }
.csas-cm2-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--csas-line); }
.csas-cm2-list li:first-child { border-top: 0; }
.csas-cm2-list li[hidden] { display: none; }
.csas-cm2-body { flex: 1; min-width: 0; }
.csas-cm2-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.csas-cm2-top strong { font-size: 14.5px; color: var(--csas-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csas-cm2-top time { font-size: 12px; color: var(--csas-muted); white-space: nowrap; }
.csas-cm2-top .csas-chip { margin-left: auto; flex: 0 0 auto; }
.csas-cm2-body > p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--csas-ink); word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.csas-cm2-body > p.csas-cm2-reply { margin-top: 6px; padding: 7px 10px; border-left: 3px solid var(--csas-gold); background: #f4f7f6; border-radius: 0 10px 10px 0; font-size: 13px; color: var(--csas-navy); -webkit-line-clamp: 2; }
.csas-cm2-meta { display: flex; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--csas-muted); }
.csas-cm2-meta a { font-weight: 600; }
.csas-cm2-empty { margin: 8px 0 0; font-size: 13.5px; color: var(--csas-muted); }
@media (max-width: 420px) {
	.csas-cm2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.csas-cm2-stats > span:nth-child(3) { border-left: 0; }
	.csas-cm2-stats > span:nth-child(n+3) { border-top: 1px solid var(--csas-line); }
	.csas-cm2-tabs { width: 100%; }
	.csas-cm2-tabs button { flex: 1; padding: 7px 6px; }
}
.csas-chan-ico.is-cm { background: #0f172a; }
.csas-chan-cm .csas-chan-main small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.csas-cmsw { display: flex; gap: 8px; flex: 0 0 auto; }
.csas-cmsw form { margin: 0; }
.csas-cmsw-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1.5px solid var(--csas-line); background: #fff; color: #94a3b8; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.csas-cmsw-btn svg { width: 20px; height: 20px; filter: grayscale(1); opacity: .55; }
.csas-cmsw-btn i { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; }
.csas-cmsw-btn.is-on { border-color: transparent; color: #fff; }
.csas-cmsw-btn.is-on svg { filter: none; opacity: 1; }
.csas-cmsw-btn.is-on i { background: #16a34a; }
.csas-cmsw-btn.is-fb.is-on { background: #0866ff; }
.csas-cmsw-btn.is-ig.is-on { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.csas-cmsw-btn:disabled { cursor: not-allowed; opacity: .45; }
.csas-cmsw-btn:focus-visible { outline: 2px solid var(--csas-gold); outline-offset: 2px; }
.csas-hs-msg.is-typing { color: var(--csas-muted); letter-spacing: 2px; animation: csasHsPulse 1s ease-in-out infinite; }
@keyframes csasHsPulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .csas-hs-msg.is-typing { animation: none; } }
.mk-price-local { margin: -6px 0 14px; font-size: 13px; color: var(--mk-muted); }
.mk-plan.is-featured .mk-price-local { color: rgba(255,255,255,.75); }
.csas-moneypick { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 12px; font-size: 13px; color: var(--csas-muted); }
.csas-moneypick select { max-width: 62%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--csas-line); border-radius: 10px; background: #fff; font: inherit; color: var(--csas-navy); }
.csas-moneypick.is-busy { opacity: .6; }
.csas-dlcard { margin-top: 16px; }
.csas-dl-preview { list-style: none; margin: -4px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.csas-dl-preview li { padding: 6px 10px; border-radius: 999px; background: #f1f5f9; font-size: 13px; color: var(--csas-navy); }
.csas-cm2-style .csas-segment { margin-bottom: 12px; }
.csas-cm2-err { margin: 0 0 12px; }
/* 3.6.11 — app install bar inside Home */
.csas-appslot { margin: 0 0 14px; }
.csas-appbar.is-inline { position: relative; z-index: auto; transform: none; padding: 12px 12px 12px 14px; border-radius: 18px; background: #000; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.csas-appbar.is-inline .csas-appbar-go { background: #fff; color: #000; }
.csas-appbar.is-inline .csas-appbar-prog { border-radius: 0 0 18px 18px; overflow: hidden; }
/* 3.6.11 — Quick shop setup chat */
.csas-ob { padding: 0; overflow: hidden; }
.csas-ob-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--csas-line); }
.csas-ob-head > div { flex: 1; min-width: 0; display: grid; }
.csas-ob-head strong { font-size: 15.5px; color: var(--csas-navy); }
.csas-ob-head small { font-size: 12.5px; color: var(--csas-muted); }
.csas-ob-head form { margin: 0; }
.csas-ob-av img { width: 34px; height: 34px; border-radius: 10px; display: block; background: #000; }
.csas-ob-chat { display: grid; gap: 8px; padding: 14px 16px; background: #efeae2; max-height: 460px; overflow-y: auto; }
.csas-ob-msg { margin: 0; max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.csas-ob-msg.is-bot { justify-self: start; background: #fff; border-top-left-radius: 4px; color: var(--csas-ink); }
.csas-ob-msg.is-me { justify-self: end; background: #d9fdd3; border-top-right-radius: 4px; color: var(--csas-ink); }
.csas-ob-err { margin: 0; justify-self: start; max-width: 86%; padding: 8px 12px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 13.5px; }
.csas-ob-reply { padding: 12px 16px 16px; display: grid; gap: 10px; }
.csas-ob-form { display: grid; gap: 10px; margin: 0; }
.csas-ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.csas-ob-chips .csas-btn { flex: 1 1 0; min-width: 96px; }
.csas-ob-file { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px; border: 1.5px dashed var(--csas-line); border-radius: 14px; background: #fafbfc; font-weight: 600; color: var(--csas-navy); cursor: pointer; text-align: center; }
.csas-ob-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.csas-ob-file:focus-within { outline: 2px solid var(--csas-gold); outline-offset: 2px; }
.csas-ob-preview { justify-self: stretch; display: grid; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; }
.csas-ob-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.csas-ob-cards figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--csas-line); background: #fff; scroll-snap-align: start; }
.csas-ob-cards img, .csas-ob-cards i { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.csas-ob-cards i { background: #f1f5f9; }
.csas-ob-cards figcaption { display: grid; gap: 2px; padding: 8px 8px 0; font-size: 12.5px; }
.csas-ob-cards figcaption b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--csas-navy); }
.csas-ob-cards figcaption span { color: var(--csas-muted); }
.csas-ob-cards figcaption em { margin: 6px -8px 0; padding: 8px 0; border-top: 1px solid var(--csas-line); font-style: normal; font-weight: 600; text-align: center; color: #0a7cff; }
.csas-ob-preview dl { margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.csas-ob-preview dl div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.csas-ob-preview dt { color: var(--csas-muted); }
.csas-ob-preview dd { margin: 0; color: var(--csas-navy); }
.csas-obcta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: inherit; border: 1.5px solid var(--csas-gold); }
.csas-obcta > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.csas-obcta strong { font-size: 15.5px; color: var(--csas-navy); }
.csas-obcta small { font-size: 13px; color: var(--csas-muted); }
.csas-obcta-ico { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff7e6; }
.csas-obcta b { font-size: 22px; color: var(--csas-muted); }
.csas-bubble-why { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: 12px; line-height: 1.4; white-space: normal; }
.csas-chan-err { display: block; margin-top: 4px; color: #b91c1c; font-size: 12px; line-height: 1.35; }

/* 3.6.14 — sign-up / login: the joined phone box matches the other fields */
.csas-auth .csas-phone { border: 1.5px solid #d7e2df; border-radius: 14px; background: #fff; }
.csas-auth .csas-phone .csas-input.csas-phone-input { min-height: 52px; border: 0; background: transparent; }
.csas-auth .csas-phone .csas-phone-cc { min-height: 52px; }

/* ==========================================================================
   3.6.18 — Computer layout: one app. Sidebar on the left, the page beside it,
   and Chats as list + open chat side by side. Phones are unchanged.
   ========================================================================== */
.csas-ix-empty { display: none; }
@media not all and (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.csas-ix.is-open .csas-ix-side { display: none; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.csas-variant-dash { --csas-sb: 248px; background: #f4f7f6; }
	.csas-variant-dash .csas-topbar { display: flex !important; position: fixed; top: 0; left: 0; width: var(--csas-sb); height: 68px; z-index: 46; padding: 0 12px 0 18px; box-sizing: border-box; background: #fff; border: 0; border-right: 1px solid #e6ecea; box-shadow: none; justify-content: space-between; gap: 8px; }
	.csas-variant-dash .csas-topbar .csas-brand-id { min-width: 0; }
	.csas-variant-dash .csas-topbar .csas-brand-text { min-width: 0; }
	.csas-variant-dash .csas-topbar .csas-brand-text > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.csas-variant-dash .csas-topbar .csas-bell { width: 36px; height: 36px; border-radius: 10px; flex: none; }
	.csas-variant-dash .csas-tabbar { position: fixed !important; top: 68px; left: 0; bottom: 0; right: auto; width: var(--csas-sb); z-index: 45; order: 0; display: flex !important; flex-direction: column; justify-content: flex-start; gap: 2px; margin: 0; padding: 10px 12px 24px; box-sizing: border-box; overflow-y: auto; background: #fff; border: 0; border-right: 1px solid #e6ecea; border-radius: 0; box-shadow: none; }
	.csas-variant-dash .csas-tabbar a { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #4b5b6b; background: none; transition: background .15s, color .15s; }
	.csas-variant-dash .csas-tabbar a span { font-weight: inherit !important; }
	.csas-variant-dash .csas-tabbar a:hover { background: #f2f6f5 !important; color: #0f172a; }
	.csas-variant-dash .csas-tabbar a.is-on { background: #e4f4f0 !important; color: #0f766e; font-weight: 750; }
	.csas-variant-dash .csas-tabbar svg { width: 19px; height: 19px; padding: 0 !important; background: none !important; }
	.csas-variant-dash .csas-tabbar .csas-badge { position: static; margin-left: auto; }
	.csas-variant-dash .csas-tabbar a:focus-visible { outline: 2px solid #14b8a6; outline-offset: 1px; }
	.csas-variant-dash .csas-main { --csas-gut: 40px; width: auto; max-width: none; margin: 0 0 0 var(--csas-sb); padding: 24px 40px 48px; }
	.csas-variant-dash .csas-pagebar-r .csas-bell { display: none; } /* the bell lives in the sidebar */
	.csas-variant-dash .csas-dash { max-width: 920px; margin: 0 auto; padding-bottom: 0; }
	.csas-variant-dash .csas-pagebar { top: 0; margin: -24px -40px 4px; padding: 8px 40px; background: rgba(244,247,246,.92); border-bottom: 0; }
	.csas-variant-dash .csas-pagebar-t h1 { font-size: 22px; }
	.csas-variant-dash .csas-card { box-shadow: 0 1px 2px rgba(15,23,42,.04); border-color: #e6ecea; }
	.csas-variant-dash .csas-thread-head { top: 0; }

	/* Chats: list + open chat, full height */
	.csas-variant-dash .csas-main:has(.csas-ix) { padding: 0; }
	.csas-variant-dash .csas-dash:has(.csas-ix) { max-width: none; height: 100vh; gap: 0; }
	.csas-dash:has(.csas-ix) > :not(.csas-ix):not(.csas-tabbar) { margin: 12px 20px 0; }
	.csas-ix { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); }
	.csas-ix-side { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 14px 20px; background: #fff; border-right: 1px solid #e6ecea; }
	.csas-ix-side .csas-pagebar { margin: 0 -14px; padding: 8px 18px; background: #fff; border-bottom: 1px solid #eef2f1; }
	.csas-ix-side .csas-chatsearch { margin: 0; }
	.csas-ix-side .csas-chatlist { gap: 2px; }
	.csas-ix-side .csas-chatrow { padding: 10px; border-radius: 12px; border: 0; }
	.csas-ix-side .csas-chatrow:hover { background: #f4f7f6; }
	.csas-ix-side .csas-chatrow.is-active { background: #e4f4f0; }
	.csas-ix-main { min-height: 0; display: flex; flex-direction: column; padding: 16px 20px; }
	.csas-ix-main .csas-thread { flex: 1; height: auto; min-height: 0; border-radius: 16px; }
	.csas-dash:has(.csas-ix) .csas-alertsbtn { margin: 12px 20px 0; width: auto; }
	.csas-ix-main .csas-thread-back { display: none; } /* the list is right there */
	.csas-ix-empty { display: grid; justify-items: center; gap: 4px; margin: auto; text-align: center; color: #64748b; font-size: 14px; }
	.csas-ix-empty span { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 18px; background: #e4f4f0; color: #0f766e; }
	.csas-ix-empty strong { font-size: 16px; color: #0f172a; }
}

/* ==========================================================================
   3.7.0 — Scan AI
   ========================================================================== */
.csas-scan { display: grid; gap: 16px; padding: 18px; }
.csas-scan-demo { position: relative; width: min(280px, 100%); margin: 0 auto; aspect-ratio: 640 / 505; border-radius: 18px; overflow: hidden; background: #e8efed; box-shadow: 0 10px 28px -14px rgba(15, 23, 42, .45); }
.csas-scan-demo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.csas-scan-beam { position: absolute; left: 38%; width: 24.4%; top: 22%; height: 3px; border-radius: 3px; background: #2dd4bf; box-shadow: 0 0 14px 4px rgba(45, 212, 191, .7); animation: csas-scan-beam 6s ease-in-out infinite; }
.csas-scan-box { position: absolute; border: 2px solid #2dd4bf; border-radius: 6px; background: rgba(45, 212, 191, .12); opacity: 0; transform: scale(.7); animation: csas-scan-box 6s ease-out infinite; }
.csas-scan-box.b1 { left: 40.5%; top: 39%; width: 7.5%; height: 16%; animation-delay: .1s; }
.csas-scan-box.b2 { left: 49%; top: 39%; width: 7.5%; height: 16%; animation-delay: .35s; }
.csas-scan-box.b3 { left: 56.5%; top: 39%; width: 5.5%; height: 16%; animation-delay: .6s; }
.csas-scan-box.b4 { left: 44%; top: 60%; width: 12%; height: 17%; animation-delay: .85s; }
.csas-scan-done { position: absolute; left: 50%; bottom: 9px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--csas-ink); font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(15, 23, 42, .45); opacity: 0; animation: csas-scan-done 6s ease-out infinite; }
.csas-scan-done b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #14b8a6; color: #fff; font-size: 11px; }
@keyframes csas-scan-beam { 0% { top: 22%; opacity: 0; } 5% { opacity: 1; } 30% { top: 86%; opacity: 1; } 36%, 100% { top: 86%; opacity: 0; } }
@keyframes csas-scan-box { 0%, 32% { opacity: 0; transform: scale(.7); } 38%, 88% { opacity: 1; transform: scale(1); } 95%, 100% { opacity: 0; transform: scale(1); } }
@keyframes csas-scan-done { 0%, 50% { opacity: 0; transform: translate(-50%, 8px); } 56%, 88% { opacity: 1; transform: translate(-50%, 0); } 95%, 100% { opacity: 0; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
	.csas-scan-beam { display: none; }
	.csas-scan-box, .csas-scan-done { animation: none; opacity: 1; transform: none; }
	.csas-scan-done { transform: translate(-50%, 0); }
}
.csas-scan-copy { display: grid; gap: 10px; text-align: center; }
.csas-scan-t { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; color: var(--csas-ink); }
.csas-scan-copy > p { margin: 0 auto 4px; max-width: 34em; font-size: 14.5px; line-height: 1.5; color: #55657a; }
.csas-scan-form { display: grid; gap: 10px; margin: 0; }
.csas-scan-go { position: relative; gap: 8px; cursor: pointer; min-height: 50px; font-size: 15.5px; }
.csas-scan-go input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.csas-scan-go:focus-within { outline: 2px solid #14b8a6; outline-offset: 2px; }
.csas-scan-form.is-scanning .csas-scan-go { pointer-events: none; opacity: .6; }
.csas-scan-progress { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #0f766e; }
.csas-scan-progress[hidden] { display: none; }
.csas-scan-progress i { display: block; height: 6px; border-radius: 6px; background: #e3efec; overflow: hidden; }
.csas-scan-progress b { display: block; height: 100%; width: 6%; border-radius: 6px; background: linear-gradient(90deg, #14b8a6, #0f766e); transition: width .5s ease; }
.csas-scan-manual { margin: 0; text-align: left; }
.csas-scan-manual > summary { list-style: none; cursor: pointer; min-height: 46px; }
.csas-scan-manual > summary::-webkit-details-marker { display: none; }
.csas-scan-manual[open] > summary { margin-bottom: 12px; }
.csas-scan-manual .csas-ob { margin: 0; box-shadow: none; }
.csas-scan-manual-p { margin: 0; font-size: 14px; color: #55657a; text-align: center; }

.csas-scanrev { display: grid; gap: 12px; }
.csas-scanrev-head .csas-h3 { margin: 0 0 2px; }
.csas-scanrev-head small { color: #64748b; font-size: 13px; }
.csas-scanrev-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.csas-scanrev-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef2f1; }
.csas-scanrev-list li:last-child { border-bottom: 0; }
.csas-scanrev-img { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #e6ecea; display: grid; place-items: center; color: #94a3b8; }
.csas-scanrev-img img { width: 100%; height: 100%; object-fit: contain; }
.csas-scanrev-img.is-empty { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.csas-scanrev-n { min-width: 0; display: grid; }
.csas-scanrev-n b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--csas-ink); }
.csas-scanrev-n small { font-size: 12.5px; color: #64748b; }
.csas-scanrev-in { display: flex; align-items: center; gap: 8px; }
.csas-scanrev-in .csas-input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; }
.csas-scanrev-in em { flex: 1; font-style: normal; font-weight: 700; color: var(--csas-ink); font-size: 14px; }
.csas-scanrev-photo, .csas-scanrev-x { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #e2e8e6; background: #fff; color: #475569; cursor: pointer; }
.csas-scanrev-photo.is-need { border-color: #fdba74; background: #fff7ed; color: #c2410c; }
.csas-scanrev-photo input, .csas-scanrev-x input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.csas-scanrev-photo:has(input:valid:not([value=""])) { }
.csas-scanrev-x span[aria-hidden] { font-size: 20px; line-height: 1; }
.csas-scanrev-x:has(input:checked) { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.csas-scanrev-x:focus-within, .csas-scanrev-photo:focus-within { outline: 2px solid #14b8a6; outline-offset: 1px; }

.csas-scan-more { padding: 0; }
.csas-scan-more > summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer; }
.csas-scan-more > summary::-webkit-details-marker { display: none; }
.csas-scan-more > summary > span { flex: 1; display: grid; }
.csas-scan-more > summary strong { font-size: 15.5px; color: var(--csas-ink); }
.csas-scan-more > summary small { font-size: 12.5px; color: #64748b; }
.csas-scan-more > summary em { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.csas-scan-more > summary em.is-on { background: #dcfce7; color: #15803d; }
.csas-scan-more > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); margin: -4px 4px 0; transition: transform .2s; }
.csas-scan-more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.csas-scan-more-in { display: grid; gap: 14px; padding: 0 14px 16px; }
@media (min-width: 760px) {
	.csas-scan { grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 28px; padding: 24px; }
	.csas-scan-copy { text-align: left; }
	.csas-scan-copy > p { margin-left: 0; }
	.csas-scan-form, .csas-scan-manual { max-width: 360px; }
	.csas-scan-manual[open] { max-width: none; }
	.csas-scan-manual-p { text-align: left; }
}

/* 3.7.0 — notifications */
.csas-notify { display: grid; gap: 0; }
.csas-notify-row { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 0; border-bottom: 1px solid #eef2f1; }
.csas-notify-row:last-child { border-bottom: 0; }
.csas-notify-row > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.csas-notify-row strong { font-size: 15px; color: var(--csas-ink); }
.csas-notify-row small { font-size: 12.5px; line-height: 1.45; color: #64748b; }
.csas-alertsbtn.is-required { background: #fef2f2; border-color: #fca5a5; border-style: solid; color: #b91c1c; animation: csas-req 2.4s ease-in-out infinite; }
@keyframes csas-req { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .25); } 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } }
@media (prefers-reduced-motion: reduce) { .csas-alertsbtn.is-required { animation: none; } }
.csas-alertsblocked { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; line-height: 1.45; }
.csas-alertsblocked.is-required { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; font-weight: 600; }
.csas-appbar-help { display: block; margin-top: 1px; text-align: left; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .7); font: inherit; font-size: 11.5px; text-decoration: underline; cursor: pointer; }
.csas-dlg-note { margin: 10px 0 0; font-size: 13px; color: #64748b; }

/* 3.7.0 — computer Home: greeting header + two-column dashboard. Phones: unchanged order. */
.csas-deskhead { display: none; }
.csas-home { display: contents; }
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
	.csas-variant-dash .csas-dash:has(.csas-home) { max-width: 1120px; }
	.csas-deskhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 6px; }
	.csas-deskhead h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; color: var(--csas-ink); }
	.csas-deskhead p { margin: 6px 0 0; font-size: 14px; color: #64748b; }
	.csas-deskhead p b { color: #dc2626; }
	.csas-deskhead nav { display: flex; gap: 10px; }
	.csas-deskhead .csas-btn { min-height: 42px; padding: 0 18px; }
	.csas-deskhead-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #fff; color: #b91c1c; font-size: 12px; font-weight: 800; }
	.csas-home {
		display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 18px; row-gap: 0; align-items: start;
		grid-template-areas: "alert alert" "rate rate" "today agent" "today links" "chan links" "bill howto" "src howto";
	}
	.csas-home > * { margin: 0 0 18px !important; min-width: 0; }
	.csas-home > .csas-home-alert { grid-area: alert; }
	.csas-home > .csas-ratebox { grid-area: rate; }
	.csas-home > .csas-home-today { grid-area: today; }
	.csas-home > .csas-agentseat { grid-area: agent; }
	.csas-home > .csas-channels { grid-area: chan; }
	.csas-home > .csas-home-bill { grid-area: bill; }
	.csas-home > .csas-sources { grid-area: src; }
	.csas-home > .csas-quicklinks { grid-area: links; }
	.csas-home > .csas-home-howto { grid-area: howto; }
	.csas-home > :not([class*="csas-"]) { display: none; }
	.csas-home .csas-agentseat { padding: 18px; }
	.csas-home .csas-quicklinks a { padding-top: 12px; padding-bottom: 12px; }
	.csas-variant-dash .csas-appslot { margin-top: 0; }
}

/* 3.8.0 — Page + Instagram picker */
.csas-pagepick-card { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid #e2e8e6; border-radius: 14px; background: #fff; }
.csas-pagepick-opt { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.csas-pagepick-opt:hover { background: #f6f9f8; }
.csas-pagepick-opt input { width: 20px; height: 20px; accent-color: #0f766e; flex: none; }
.csas-pagepick-opt > span:last-child { display: grid; min-width: 0; }
.csas-pagepick-opt strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-pagepick-opt small { font-size: 12.5px; color: #64748b; }
.csas-pagepick-none { margin: 0; padding: 0 8px; font-size: 12.5px; color: #64748b; }

/* ==========================================================================
   3.8.0 — Scan AI as its own page · steps · crop · switcher · support button
   ========================================================================== */
.csas-scanpage { display: grid; gap: 14px; padding-bottom: 64px; }
@media (max-width: 759px) {
	.csas-scanpage > .csas-card, .csas-scanpage > .csas-ob, .csas-scanpage .csas-ob { margin-left: -6px; margin-right: -6px; }
	.csas-scan-demo { width: min(320px, 100%); }
}
.csas-scan-picked { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.csas-scan-picked[hidden] { display: none; }
.csas-scan-picked img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid #e2e8e6; box-shadow: 0 2px 6px rgba(15,23,42,.08); }
.csas-steps { display: flex; gap: 6px; }
.csas-steps i { flex: 1; height: 5px; border-radius: 5px; background: #e3ecea; }
.csas-steps i.is-on { background: #14b8a6; }
.csas-steps-out { padding: 0 2px; }
.csas-scanrev .csas-scan-t { font-size: 18px; margin: 4px 0 2px; }
.csas-shelfthumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.csas-shelfthumbs::-webkit-scrollbar { display: none; }
.csas-shelfthumb { flex: none; width: 58px; height: 58px; padding: 0; border: 1px solid #e2e8e6; border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; }
.csas-shelfthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csas-scangroup { margin: 0 0 14px; padding: 12px 12px 4px; border: 1px solid #e6ecea; border-radius: 16px; background: #fbfdfc; }
.csas-scangroup-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.csas-scangroup-h b { font-size: 15px; color: var(--csas-ink); }
.csas-scangroup-h small { flex: none; font-size: 12px; color: #64748b; }
.csas-scangroup-price { display: grid; gap: 6px; margin-bottom: 6px; }
.csas-scangroup-price > span { font-size: 13px; font-weight: 600; color: #334155; }
.csas-scangroup-price .csas-input { height: 44px; }
.csas-need { font-style: normal; font-size: 11.5px; font-weight: 700; color: #c2410c; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.csas-scangroup .csas-scanrev-list { margin: 0; }
@media (min-width: 1024px) { .csas-scanpage, .csas-scannav { max-width: 760px; } .csas-scanpage { margin: 0 auto; width: 100%; } }
.csas-scanrev-act { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 12px; border: 1px solid #e2e8e6; background: #fff; color: #334155; font-size: 10.5px; font-weight: 600; line-height: 1; cursor: pointer; }
.csas-scanrev-act.is-need { border-color: #fdba74; background: #fff7ed; color: #c2410c; }
.csas-scanrev-act input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.csas-scanrev-act:focus-within, .csas-scanrev-act:focus-visible { outline: 2px solid #14b8a6; outline-offset: 1px; }
.csas-scan-alt { display: block; margin-top: 12px; text-align: center; font-size: 14px; font-weight: 600; color: #0f766e; }
.csas-scan-manual > summary.csas-sr { position: absolute; }

/* Switcher above the bottom bar */
.csas-scannav { position: fixed; left: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.96); border: 1px solid #e2e8e6; box-shadow: 0 8px 24px -10px rgba(15,23,42,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: calc(100% - 82px); overflow-x: auto; scrollbar-width: none; }
.csas-scannav::-webkit-scrollbar { display: none; }
.csas-scannav a { flex: none; padding: 8px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #334155; text-decoration: none; white-space: nowrap; }
.csas-scannav a:hover, .csas-scannav a:focus-visible { background: #e4f4f0; color: #0f766e; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.csas-scannav { position: sticky; bottom: 16px; left: auto; transform: none; margin: 8px auto 0; width: max-content; }
	.csas-scanpage { padding-bottom: 0; }
}

/* Crop + zoom */
.csas-cropdlg, .csas-zoomdlg { border: 0; padding: 0; border-radius: 18px; max-width: min(560px, 94vw); width: 94vw; background: #fff; }
.csas-cropdlg::backdrop, .csas-zoomdlg::backdrop { background: rgba(15,23,42,.6); }
.csas-cropdlg-in { display: grid; gap: 12px; padding: 14px; }
.csas-cropdlg-t { margin: 0; font-weight: 700; color: var(--csas-ink); text-align: center; }
.csas-cropstage { position: relative; touch-action: none; user-select: none; line-height: 0; border-radius: 12px; overflow: hidden; background: #000; }
.csas-cropstage img { width: 100%; height: auto; max-height: 62vh; object-fit: contain; display: block; pointer-events: none; }
.csas-croprect { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); border-radius: 6px; cursor: move; }
.csas-croprect i { position: absolute; right: -10px; bottom: -10px; width: 22px; height: 22px; border-radius: 50%; background: #14b8a6; border: 3px solid #fff; cursor: nwse-resize; }
.csas-cropdlg-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.csas-zoomdlg img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
.csas-zoomdlg-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* Payment chips: fit their words */
.csas-ob-paychips { display: flex; flex-wrap: wrap; gap: 8px; }
.csas-ob-paychips .csas-btn { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 16px; font-size: 14.5px; white-space: nowrap; }

/* Support: a round logo that briefly says “Support” */
.csas-support-btn { padding: 0 4px; gap: 0; }
.csas-support-lbl { max-width: 0; opacity: 0; }
.csas-support.is-peek .csas-support-btn, .csas-support-pill:hover .csas-support-btn { padding: 0 14px 0 4px; gap: 8px; }
.csas-support.is-peek .csas-support-lbl, .csas-support-pill:hover .csas-support-lbl { max-width: 90px; opacity: 1; }
.csas-support-btn { transition: padding .3s ease, gap .3s ease; }
.csas-friendform { margin: 0 0 0 auto; }
.csas-friendbtn { padding: 6px 10px; border-radius: 999px; border: 1px solid #e2e8e6; background: #fff; color: #475569; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.csas-friendbtn.is-on { background: #fef9c3; border-color: #fde68a; color: #92400e; }

/* 3.8.1 — Instagram "Allow access to messages" tip under the channel row */
.csas-chan-tip{margin:-2px 0 10px;padding:9px 12px;border-radius:12px;background:#fdf2f8;color:#9d174d;font-size:12.5px;line-height:1.45;font-weight:500}

/* ===================== 3.9.0 — Scan AI: review cards, manual button, back pill ===================== */
.csas-scannav { display: none !important; }
.csas-scan-manualbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin-top: 10px; border-radius: 999px; border: 1.5px solid #cfe3df; background: #fff; color: #0f766e; font-weight: 700; font-size: 15.5px; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.csas-scan-manualbtn:hover, .csas-scan-manualbtn:focus-visible { background: #f0fdfa; border-color: #14b8a6; }
.csas-backpill { position: fixed; z-index: 59; left: 16px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 18px 0 12px; border-radius: 999px; background: #fff; color: #0e1a2b; font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1px solid #e3e8ee; box-shadow: 0 10px 26px -12px rgba(14,26,43,.35); }
.csas-backpill:active { transform: scale(.97); }
@media (min-width: 900px) { .csas-backpill { bottom: 24px; left: calc(var(--csas-side, 240px) + 24px); } }
.csas-scanpage { padding-bottom: 72px; }

.csas-scanrev .csas-scan-t { font-size: 20px; letter-spacing: -.015em; }
.csas-scangroup { margin: 0 0 12px; padding: 0; border: 1px solid #e6ecea; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 1px 0 rgba(14,26,43,.03); }
.csas-scangroup.is-multi .csas-scangroup-h { margin: 0; padding: 12px 16px; background: #f8faf9; border-bottom: 1px solid #eef2f1; }
.csas-scangroup.is-allgone { opacity: .55; }
.csas-scangroup .csas-scanrev-list { margin: 0; gap: 0; }
.csas-scangroup .csas-scanrev-list li.csas-scanitem { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #eef2f1; }
.csas-scangroup .csas-scanrev-list li.csas-scanitem:last-child { border-bottom: 0; }
.csas-scanitem-main { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 12px; align-items: center; }
.csas-scanitem .csas-scanrev-img { grid-row: auto; width: 64px; height: 64px; padding: 0; border-radius: 14px; border: 1px solid #e6ecea; background: #fff; cursor: zoom-in; }
.csas-scanitem .csas-scanrev-img.is-empty { cursor: default; background: repeating-linear-gradient(-45deg, #fff8f1 0 6px, #fff 6px 12px); border: 1.5px dashed #fdba74; }
.csas-scanitem .csas-scanrev-n b { font-size: 15.5px; font-weight: 700; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; text-transform: none; }
.csas-scanitem .csas-scanrev-n small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.csas-scanitem .csas-scanrev-n em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.csas-scanitem em.csas-need { background: #fff1e6; color: #c2410c; border: 0; }
.csas-scanitem em.csas-ok { background: #e7f8f4; color: #0f766e; }
.csas-scanitem-price { font-weight: 700; color: #0e1a2b; font-size: 13.5px; }
.csas-scanitem .csas-scanrev-x { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: #94a3b8; }
.csas-scanitem .csas-scanrev-x:hover, .csas-scanitem .csas-scanrev-x:focus-visible { background: #fef2f2; color: #dc2626; }
.csas-scanitem .csas-scanrev-in { display: flex; gap: 8px; padding-left: 76px; }
.csas-scanitem .csas-scanrev-act { flex-direction: row; gap: 6px; height: 36px; min-width: 0; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid #e2e8e6; background: #fff; color: #334155; }
.csas-scanitem .csas-scanrev-act.is-need { background: #0e1a2b; border-color: #0e1a2b; color: #fff; }
.csas-scanitem-gone { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #64748b; font-size: 13.5px; font-weight: 600; }
.csas-scanitem-gone[hidden] { display: none; }
.csas-scanitem-gone button { border: 0; background: none; color: #0f766e; font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 6px 2px; }
li.csas-scanitem.is-removed .csas-scanitem-main, li.csas-scanitem.is-removed .csas-scanrev-in { display: none; }
li.csas-scanitem.is-removed { background: #fafafa; }
.csas-scangroup .csas-scangroup-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 16px; background: #f8faf9; border-top: 1px solid #eef2f1; }
.csas-scangroup .csas-scangroup-price > span:first-child { font-size: 13.5px; font-weight: 700; color: #0e1a2b; }
.csas-pricebox { display: flex; align-items: center; width: 150px; height: 44px; border-radius: 12px; border: 1.5px solid #fdba74; background: #fff; overflow: hidden; }
.csas-pricebox:focus-within { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.csas-pricebox i { font-style: normal; padding: 0 4px 0 12px; color: #64748b; font-weight: 700; }
.csas-pricebox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font: 700 16px/1 inherit; color: #0e1a2b; background: transparent; padding-right: 10px; }
.csas-shelfthumbs { margin-bottom: 4px; }
.csas-scanrev { grid-template-columns: minmax(0, 1fr); }
.csas-scanrev > *, .csas-scanrev form > * { min-width: 0; }
.csas-scanitem-main > * { min-width: 0; }
.csas-scanitem .csas-scanrev-act input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.csas-scanitem .csas-scanrev-in { padding-left: 0; }
.csas-scanitem .csas-scanrev-act { flex: 1 1 0; justify-content: center; white-space: nowrap; }
@media (min-width: 560px) { .csas-scanitem .csas-scanrev-in { padding-left: 76px; } .csas-scanitem .csas-scanrev-act { flex: 0 0 auto; } }

/* ===================== 3.9.0 — WhatsApp message templates ===================== */
.csas-mt { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; width: 100%; }
.csas-mt-flash { margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.csas-mt-flash.is-ok { background: #e7f8f4; color: #0f766e; }
.csas-mt-flash.is-bad { background: #fef2f2; color: #b91c1c; }
.csas-mt-flash.is-warn { background: #fff7ed; color: #9a3412; }
.csas-mt-back { font-size: 14px; font-weight: 600; color: #0f766e; text-decoration: none; }
.csas-mt-head h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; color: #0e1a2b; }
.csas-mt-head p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.45; }
.csas-mt-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.csas-mt-headrow .csas-btn { flex: none; }
.csas-mt-empty { padding: 22px 18px; border-radius: 18px; background: #fff; border: 1px dashed #cfe3df; text-align: center; color: #475569; }
.csas-mt-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e6ecea; border-radius: 18px; overflow: hidden; }
.csas-mt-list li + li { border-top: 1px solid #eef2f1; }
.csas-mt-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; text-decoration: none; color: inherit; }
.csas-mt-lname { display: grid; min-width: 0; }
.csas-mt-lname b { font-size: 15px; color: #0e1a2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.csas-mt-lname small { color: #64748b; font-size: 12.5px; }
.csas-mt-chip { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.csas-mt-chip.is-draft { background: #f1f5f9; color: #475569; }
.csas-mt-chip.is-pending { background: #fef9c3; color: #854d0e; }
.csas-mt-chip.is-ok { background: #dcfce7; color: #166534; }
.csas-mt-chip.is-bad { background: #fee2e2; color: #b91c1c; }
.csas-mt-sync { text-align: center; }
.csas-mt-group h3 { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; font-size: 15px; color: #0e1a2b; }
.csas-mt-gico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e7f8f4; color: #0f766e; }
.csas-mt-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.csas-mt-libcard { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e6ecea; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.csas-mt-libcard:hover, .csas-mt-libcard:focus-visible { border-color: #14b8a6; transform: translateY(-1px); }
.csas-mt-libtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.csas-mt-libtop b { font-size: 14.5px; color: #0e1a2b; }
.csas-mt-libtop em { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.csas-mt-cat-marketing { background: #fae8ff; color: #86198f; }
.csas-mt-cat-utility { background: #e0f2fe; color: #075985; }
.csas-mt-cat-authentication { background: #fef3c7; color: #92400e; }
.csas-mt-libtxt { font-size: 13px; line-height: 1.45; color: #64748b; }
.csas-mt-edit { background: #fff; border: 1px solid #e6ecea; border-radius: 20px; padding: 18px; }
.csas-mt-cols { display: grid; gap: 22px; }
@media (min-width: 860px) { .csas-mt-cols { grid-template-columns: minmax(0, 1fr) 320px; } .csas-mt-prev { position: sticky; top: 16px; align-self: start; } }
.csas-mt-fields { display: grid; gap: 16px; min-width: 0; }
.csas-mt-f { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.csas-mt-f > span, .csas-mt-f > legend { font-size: 13.5px; font-weight: 700; color: #0e1a2b; display: flex; justify-content: space-between; padding: 0; }
.csas-mt-f > span em { font-style: normal; font-weight: 600; color: #94a3b8; font-size: 12px; }
.csas-mt-f small { color: #64748b; font-size: 12px; }
.csas-mt-row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .csas-mt-row2 { grid-template-columns: 1.4fr 1fr; } }
.csas-mt-cats { display: grid; gap: 8px; }
@media (min-width: 560px) { .csas-mt-cats { grid-template-columns: repeat(3, 1fr); } .csas-mt-cats legend { grid-column: 1 / -1; } }
.csas-mt-cat { position: relative; display: grid; gap: 3px; padding: 12px 12px 12px 38px; border: 1.5px solid #e2e8e6; border-radius: 14px; cursor: pointer; }
.csas-mt-cat input { position: absolute; left: 12px; top: 14px; accent-color: #14b8a6; }
.csas-mt-cat b { font-size: 14px; color: #0e1a2b; }
.csas-mt-cat small { line-height: 1.35; }
.csas-mt-cat:has(input:checked) { border-color: #14b8a6; background: #f0fdfa; }
.csas-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #f1f5f9; gap: 2px; width: max-content; }
.csas-seg label { cursor: pointer; }
.csas-seg input { position: absolute; opacity: 0; pointer-events: none; }
.csas-seg span { display: block; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #475569; }
.csas-seg input:checked + span { background: #fff; color: #0e1a2b; box-shadow: 0 1px 3px rgba(14,26,43,.12); }
.csas-seg input:focus-visible + span { outline: 2px solid #14b8a6; }
.csas-mt-himg { display: flex; align-items: center; gap: 10px; }
.csas-mt-himg img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.csas-mt-himg[hidden], [data-csas-mt-htext][hidden], .csas-mt-btn input[hidden] { display: none !important; }
.csas-mt-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.csas-mt-addvar { border: 1px dashed #14b8a6; background: #f0fdfa; color: #0f766e; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.csas-mt-exs { display: grid; gap: 8px; }
.csas-mt-ex { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; }
.csas-mt-ex i { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 700; color: #0f766e; background: #e7f8f4; border-radius: 8px; text-align: center; padding: 7px 0; }
.csas-mt-btns { display: grid; gap: 8px; }
.csas-mt-btn { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px; }
.csas-mt-btn input[data-csas-mt-burl], .csas-mt-btn input[data-csas-mt-bphone] { grid-column: 1 / -1; }
.csas-mt-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fffbeb; color: #78350f; font-size: 13.5px; line-height: 1.45; }
.csas-mt-auth[hidden], .csas-mt-std[hidden], [data-csas-mt-exwrap][hidden] { display: none; }
.csas-mt-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.csas-mt-checks li { position: relative; padding: 8px 12px 8px 30px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 13px; line-height: 1.4; }
.csas-mt-checks li::before { content: "!"; position: absolute; left: 11px; top: 8px; font-weight: 800; }
.csas-mt-checks li.is-ok { background: #ecfdf5; color: #047857; }
.csas-mt-checks li.is-ok::before { content: "✓"; }
.csas-mt-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.csas-mt-state { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.csas-mt-why { font-size: 13px; color: #64748b; }
.csas-mt-prev { display: grid; gap: 8px; justify-items: center; }
.csas-mt-phone { width: 100%; max-width: 320px; min-height: 260px; padding: 18px 14px; border-radius: 22px; background: #efeae2 radial-gradient(circle at 20% 20%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0 / 22px 22px; border: 1px solid #e2dbd0; }
.csas-mt-bubble { position: relative; max-width: 92%; padding: 6px 8px 18px; border-radius: 0 12px 12px 12px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.csas-mt-pimg { margin: 0 0 6px; border-radius: 8px; overflow: hidden; background: #dfe5e7; aspect-ratio: 1.91 / 1; display: grid; place-items: center; }
.csas-mt-pimg[hidden] { display: none; }
.csas-mt-pimg img { width: 100%; height: 100%; object-fit: cover; }
.csas-mt-ph { display: block; font-size: 14.5px; color: #111b21; margin: 2px 2px 4px; }
.csas-mt-ph:empty { display: none; }
.csas-mt-pb { margin: 0 2px; font-size: 14px; line-height: 1.42; color: #111b21; word-wrap: break-word; }
.csas-mt-pf { display: block; margin: 6px 2px 0; font-size: 12.5px; color: #667781; }
.csas-mt-pf:empty { display: none; }
.csas-mt-time { position: absolute; right: 8px; bottom: 4px; font-size: 11px; color: #667781; }
.csas-mt-pbtns { display: grid; gap: 2px; max-width: 92%; margin-top: 2px; }
.csas-mt-pbtns[hidden] { display: none; }
.csas-mt-pbtns span { display: block; padding: 10px; border-radius: 10px; background: #fff; color: #027eb5; text-align: center; font-size: 14px; font-weight: 600; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.csas-mt-prevnote { color: #94a3b8; font-size: 12px; }
.csas-mt-more { display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid #e6ecea; border-radius: 18px; }
.csas-mt-test { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.csas-mt-del { color: #b91c1c; }

/* ===================== 3.9.0 — Automation ===================== */
.csas-am { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; width: 100%; }
.csas-am-nav { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #eef3f1; overflow-x: auto; scrollbar-width: none; }
.csas-am-nav a { flex: 1 0 auto; text-align: center; padding: 9px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: #475569; text-decoration: none; white-space: nowrap; }
.csas-am-nav a[aria-current] { background: #fff; color: #0e1a2b; box-shadow: 0 1px 3px rgba(14,26,43,.12); }
.csas-am-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.csas-am-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid #e6ecea; border-radius: 16px; }
.csas-am-lmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.csas-am-lico, .csas-am-sico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e7f8f4; color: #0f766e; }
.csas-am-ltxt { display: grid; min-width: 0; }
.csas-am-ltxt b { font-size: 15px; color: #0e1a2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-am-ltxt small { font-size: 12.5px; color: #64748b; }
.csas-am-toggle { position: relative; width: 46px; height: 28px; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: background .2s ease; }
.csas-am-toggle i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.csas-am-toggle.is-on { background: #14b8a6; }
.csas-am-toggle.is-on i { transform: translateX(18px); }
.csas-am-recipes h3 { margin: 6px 0 10px; font-size: 15px; color: #0e1a2b; }
.csas-am-rgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.csas-am-recipe { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #e6ecea; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.csas-am-recipe:hover, .csas-am-recipe:focus-visible { border-color: #14b8a6; }
.csas-am-recipe b { font-size: 14.5px; color: #0e1a2b; line-height: 1.3; }
.csas-am-recipe small { font-size: 13px; color: #64748b; line-height: 1.45; }
.csas-am-builder { display: grid; gap: 14px; }
.csas-am-name .csas-input { font-size: 17px; font-weight: 700; height: 50px; }
.csas-am-canvas { display: grid; justify-items: stretch; padding: 18px 14px; border-radius: 20px; background: #f4f8f7 radial-gradient(circle, #dbe6e3 1px, transparent 1.5px) 0 0 / 18px 18px; border: 1px solid #e6ecea; }
.csas-am-node { position: relative; list-style: none; }
.csas-am-node.is-trigger { padding: 14px; border-radius: 18px; background: #0e1a2b; color: #fff; display: grid; gap: 12px; }
.csas-am-node.is-trigger .csas-mt-f > span { color: #e2e8f0; }
.csas-am-node.is-trigger .csas-mt-f small, .csas-am-node.is-trigger .csas-am-hint, .csas-am-node.is-trigger .csas-am-hint a { color: #94a3b8; }
.csas-am-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #14b8a6; color: #fff; font-size: 12px; font-weight: 800; }
.csas-am-trigs { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.csas-am-trig { cursor: pointer; }
.csas-am-trig input { position: absolute; opacity: 0; }
.csas-am-trig span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1.5px solid transparent; font-size: 13.5px; font-weight: 600; color: #cbd5e1; }
.csas-am-trig input:checked + span { background: rgba(20,184,166,.18); border-color: #14b8a6; color: #fff; }
.csas-am-trig input:focus-visible + span { outline: 2px solid #5eead4; }
.csas-am-tcfg[hidden] { display: none; }
.csas-am-steps { margin: 0; padding: 0; display: grid; }
.csas-am-steps > li { padding-top: 34px; }
.csas-am-steps > li::before { content: ""; position: absolute; left: 50%; top: 0; height: 34px; border-left: 2px dashed #b6cbc6; }
.csas-am-ins { position: absolute; left: 50%; top: 5px; transform: translateX(-50%); z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #b6cbc6; background: #fff; color: #0f766e; font-weight: 800; line-height: 1; cursor: pointer; opacity: .9; }
.csas-am-ins:hover, .csas-am-ins:focus-visible { border-color: #14b8a6; background: #14b8a6; color: #fff; }
.csas-am-card { position: relative; background: #fff; border: 1px solid #e2e8e6; border-radius: 16px; box-shadow: 0 2px 8px -4px rgba(14,26,43,.12); }
.csas-am-node.is-open .csas-am-card { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.12); }
.csas-am-node.is-wait .csas-am-sico { background: #fef3c7; color: #92400e; }
.csas-am-node.is-cond .csas-am-sico { background: #ede9fe; color: #5b21b6; }
.csas-am-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 104px 12px 12px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.csas-am-stxt { display: grid; min-width: 0; }
.csas-am-stxt b { font-size: 14.5px; color: #0e1a2b; }
.csas-am-stxt small { font-size: 12.5px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-am-tools { position: absolute; top: 12px; right: 10px; display: flex; gap: 2px; }
.csas-am-tools button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #64748b; font-size: 15px; cursor: pointer; }
.csas-am-tools button:hover:not([disabled]) { background: #f1f5f9; color: #0e1a2b; }
.csas-am-tools button[disabled] { opacity: .3; cursor: default; }
.csas-am-body { display: grid; gap: 12px; padding: 4px 14px 14px; border-top: 1px solid #eef2f1; padding-top: 14px; }
.csas-am-done { justify-self: end; }
.csas-am-add { justify-self: center; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1.5px dashed #14b8a6; background: #fff; color: #0f766e; font-weight: 700; font-size: 14px; cursor: pointer; }
.csas-am-add span { font-size: 18px; line-height: 1; }
.csas-am-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.95); border: 1px solid #e6ecea; box-shadow: 0 10px 30px -14px rgba(14,26,43,.35); backdrop-filter: blur(6px); z-index: 5; }
@media (min-width: 900px) { .csas-am-bar { bottom: 16px; } }
.csas-am-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.csas-am-switch input { position: absolute; opacity: 0; }
.csas-am-switch i { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #cbd5e1; transition: background .2s ease; }
.csas-am-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.csas-am-switch input:checked + i { background: #14b8a6; }
.csas-am-switch input:checked + i::after { transform: translateX(18px); }
.csas-am-switch input:focus-visible + i { outline: 2px solid #14b8a6; outline-offset: 2px; }
.csas-am-help, .csas-am-hint { margin: 0; color: #64748b; font-size: 12.5px; line-height: 1.5; }
.csas-am-pick { width: min(560px, calc(100vw - 24px)); max-height: 82vh; padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(14,26,43,.5); }
.csas-am-pick::backdrop { background: rgba(14,26,43,.45); }
.csas-am-pickin { padding: 16px; display: grid; gap: 4px; }
.csas-am-pickin header { display: flex; align-items: center; justify-content: space-between; }
.csas-am-pickin header b { font-size: 17px; }
.csas-am-pickin header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 18px; cursor: pointer; }
.csas-am-pickin h4 { margin: 12px 0 6px; font-size: 12.5px; color: #64748b; font-weight: 700; }
.csas-am-pgrid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.csas-am-pgrid button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e6ecea; border-radius: 12px; background: #fff; text-align: left; font: 600 13.5px/1.3 inherit; color: #0e1a2b; cursor: pointer; }
.csas-am-pgrid button:hover, .csas-am-pgrid button:focus-visible { border-color: #14b8a6; background: #f0fdfa; }
.csas-am-pgrid .csas-am-sico { width: 34px; height: 34px; border-radius: 10px; }
.csas-am-search .csas-input { height: 46px; }
.csas-am-tagbar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.csas-am-tagbar a { flex: none; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid #e2e8e6; font-size: 13px; font-weight: 600; color: #334155; text-decoration: none; }
.csas-am-tagbar a i { font-style: normal; color: #94a3b8; margin-left: 2px; }
.csas-am-tagbar a[aria-current] { background: #0e1a2b; border-color: #0e1a2b; color: #fff; }
.csas-am-people { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e6ecea; border-radius: 18px; overflow: hidden; }
.csas-am-people li + li { border-top: 1px solid #eef2f1; }
.csas-am-people a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; }
.csas-am-ava { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e2e8f0; color: #334155; font-weight: 800; }
.csas-am-ava.is-whatsapp { background: #dcfce7; color: #166534; }
.csas-am-ava.is-facebook { background: #dbeafe; color: #1d4ed8; }
.csas-am-ava.is-instagram { background: #fce7f3; color: #be185d; }
.csas-am-ava.is-web { background: #fef3c7; color: #92400e; }
.csas-am-ptxt { flex: 1; display: grid; min-width: 0; }
.csas-am-ptxt b { font-size: 14.5px; color: #0e1a2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-am-ptxt small { font-size: 12.5px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-am-ptags { display: flex; gap: 4px; flex: none; }
.csas-am-ptags em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
@media (max-width: 420px) { .csas-am-ptags em + em { display: none; } }
.csas-am-contact, .csas-am-form, .csas-am-integr, .csas-am-share { display: grid; gap: 14px; padding: 18px; background: #fff; border: 1px solid #e6ecea; border-radius: 20px; }
.csas-am-chead { display: flex; align-items: center; gap: 12px; }
.csas-am-chead .csas-am-ava { width: 52px; height: 52px; font-size: 20px; }
.csas-am-chead b { display: block; font-size: 18px; color: #0e1a2b; }
.csas-am-chead small { color: #64748b; font-size: 13px; }
.csas-am-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: center; }
.csas-am-kv i { font-style: normal; font-size: 13px; font-weight: 600; color: #475569; overflow: hidden; text-overflow: ellipsis; }
.csas-am-kv.is-new { grid-template-columns: 120px minmax(0, 1fr); }
.csas-am-frow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #f1f5f4; }
.csas-am-req { grid-column: 1 / -1; display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: #475569; }
@media (min-width: 640px) { .csas-am-frow { grid-template-columns: minmax(0, 1fr) 170px auto; } .csas-am-req { grid-column: auto; } }
.csas-am-share h3 { margin: 0; font-size: 16px; }
.csas-am-share p { margin: 0; color: #475569; font-size: 13.5px; }
.csas-am-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.csas-am-code textarea, .csas-am-code input { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #f8faf9; resize: vertical; }
.csas-am-int { border: 1px solid #e6ecea; border-radius: 16px; padding: 0 14px; }
.csas-am-int[open] { padding-bottom: 14px; }
.csas-am-int > summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.csas-am-int > summary::-webkit-details-marker { display: none; }
.csas-am-int > summary b { flex: 1; font-size: 15px; color: #0e1a2b; }
.csas-am-int > summary em { font-style: normal; font-size: 12px; font-weight: 700; color: #64748b; }
.csas-am-int[open] > summary { border-bottom: 1px solid #eef2f1; margin-bottom: 12px; }
.csas-am-int > :not(summary) + :not(summary) { margin-top: 12px; }
.csas-am-intico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 800; color: #fff; }
.csas-am-intico.is-gs { background: #16a34a; } .csas-am-intico.is-wh { background: #f97316; } .csas-am-intico.is-mc { background: #1f2937; } .csas-am-intico.is-hs { background: #ea580c; } .csas-am-intico.is-br { background: #0b996e; }
.csas-am-steps-txt { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #334155; font-size: 13.5px; line-height: 1.5; }
.csas-am-delete { text-align: center; }
.csas-studio-note { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #0f766e; }
/* 3.9.0 — product pictures always shown whole (contain), tap to expand */
.csas-scanrev-img img, .csas-pq-img img, .csas-gm-ph img { object-fit: contain; background: #fff; }

/* ===================== 3.9.1 — Tools tab ===================== */
.csas-am .csas-mt-head h2, .csas-mt .csas-mt-headrow h2 { display: none; }
.csas-mt-headrow { align-items: center; }
.csas-tools { max-width: 760px; margin: 0 auto; width: 100%; }
.csas-tools-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e6ecea; border-radius: 20px; overflow: hidden; }
.csas-tools-list li + li { border-top: 1px solid #eef2f1; }
.csas-tools-list a { display: flex; align-items: center; gap: 14px; padding: 16px; min-height: 72px; text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.csas-tools-list a:active { background: #f6faf9; }
.csas-tools-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #e7f8f4; color: #0f766e; }
.csas-tools-ico.is-contacts { background: #e0f2fe; color: #0369a1; }
.csas-tools-ico.is-wtpl { background: #dcfce7; color: #15803d; }
.csas-tools-ico.is-forms { background: #fef3c7; color: #a16207; }
.csas-tools-ico.is-integrations { background: #ede9fe; color: #6d28d9; }
.csas-tools-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.csas-tools-txt b { font-size: 15.5px; color: #0e1a2b; }
.csas-tools-txt small { font-size: 13px; color: #64748b; line-height: 1.35; }
.csas-tools-list em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: #0f766e; background: #f0fdfa; padding: 4px 9px; border-radius: 999px; }
.csas-tools-go { flex: none; color: #94a3b8; }
/* No sideways wobble on phones */
.csas-dash-cust { overflow-x: clip; }
.csas-am, .csas-mt, .csas-tools { min-width: 0; max-width: 100%; }

/* ===================== 3.9.1 — every button shows it's working ===================== */
.csas-loading { position: relative !important; pointer-events: none !important; }
.csas-loading > * { opacity: .25; transition: opacity .15s ease; }
.csas-loading { color: transparent !important; }
.csas-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid currentColor; border-color: rgba(15,118,110,.25); border-top-color: #0f766e; animation: csas-spin .7s linear infinite; }
.csas-btn-gold.csas-loading::after, .csas-btn-navy.csas-loading::after, .csas-btn-primary.csas-loading::after, .csas-loading.is-dark::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.csas-tabbar a.csas-loading { color: inherit !important; }
.csas-tabbar a.csas-loading svg { opacity: .2; }
.csas-tabbar a.csas-loading::after { top: 34%; }
@keyframes csas-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .csas-loading::after { animation-duration: 1.6s; } }

/* ===================== 3.9.1 — Scan AI: compact rows, studio preview ===================== */
.csas-scanrev-head { margin-bottom: 4px; }
.csas-scanrev .csas-scan-t { font-size: 18px; margin: 0; }
.csas-scangroup .csas-scanrev-list li.csas-scanitem { gap: 0; padding: 12px 12px 12px 14px; }
.csas-scanitem-main { grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 12px; align-items: start; }
.csas-studio-tile { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #f6f6f4 100%) !important; border: 1px solid #edf0ef !important; }
.csas-studio-tile::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 7%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(15,23,42,.16), transparent); pointer-events: none; }
.csas-studio-tile img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain !important; padding: 8% 8% 12%; background: transparent !important; mix-blend-mode: multiply; }
.csas-studio-tile.is-empty::after { display: none; }
.csas-scanitem .csas-scanrev-img { width: 72px; height: 72px; border-radius: 16px; cursor: pointer; }
.csas-scanitem .csas-scanrev-n b { font-size: 15px; -webkit-line-clamp: 2; }
.csas-scanitem .csas-scanrev-n small { margin-top: 4px; }
.csas-scanitem .csas-scanrev-in, .csas-scanitem .csas-scanrev-in { display: flex; gap: 6px; padding: 0 !important; margin-top: 8px; }
.csas-scanitem .csas-scanrev-act { position: relative; flex: 0 0 auto !important; height: 30px; padding: 0 11px; font-size: 12.5px; gap: 5px; }
.csas-scanitem .csas-scanrev-act svg { width: 14px; height: 14px; }
.csas-scanitem .csas-scanrev-x { width: 36px; height: 36px; margin-top: -4px; }
.csas-scangroup .csas-scangroup-price { padding: 10px 14px; }
.csas-pricebox { height: 42px; width: 140px; }
.csas-pricebox.is-missing { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.14); }
.csas-scan-err { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 13.5px; font-weight: 600; }
.csas-scan-err[hidden] { display: none; }
.csas-pvdlg { width: min(380px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(14,26,43,.5); }
.csas-pvdlg::backdrop { background: rgba(14,26,43,.5); }
.csas-pvdlg-in { display: grid; gap: 12px; padding: 14px; }
.csas-pvdlg-in header { display: flex; align-items: center; justify-content: space-between; }
.csas-pvdlg-in header b { font-size: 16px; color: #0e1a2b; }
.csas-pvdlg-in header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 18px; cursor: pointer; }
.csas-pv-chat { padding: 18px; border-radius: 16px; background: #efeae2; }
.csas-pv-card { width: 230px; padding: 6px 6px 0; border-radius: 14px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13); display: grid; }
.csas-pv-img { aspect-ratio: 1; border-radius: 10px; }
.csas-pv-img span { color: #94a3b8; font-size: 13px; z-index: 1; }
.csas-pv-card b { margin: 8px 6px 0; font-size: 14.5px; color: #111b21; line-height: 1.3; }
.csas-pv-card > span { margin: 2px 6px 8px; font-size: 13.5px; color: #667781; }
.csas-pv-card i { font-style: normal; margin: 0 -6px; padding: 11px; border-top: 1px solid #eef0f1; text-align: center; color: #027eb5; font-weight: 600; font-size: 14px; }
.csas-pv-full { justify-self: center; font-size: 13.5px; font-weight: 600; color: #0f766e; }
.csas-pv-full[hidden] { display: none; }
.csas-mt-row2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .csas-mt-row2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.csas-mt-edit, .csas-am-contact, .csas-am-form, .csas-am-integr, .csas-am-share { padding: 16px 14px; }
.csas-mt .csas-input, .csas-am .csas-input { min-width: 0; width: 100%; box-sizing: border-box; }

/* ===================== 3.9.2 — Scan AI tighter rows, edit link, option buttons ===================== */
.csas-scangroup .csas-scanrev-list li.csas-scanitem { padding: 10px 10px 10px 12px; }
.csas-scanitem-main { grid-template-columns: 60px minmax(0, 1fr) 32px; gap: 10px; align-items: center; }
.csas-scanitem .csas-scanrev-img { width: 60px; height: 60px; border-radius: 14px; }
.csas-scanitem .csas-scanrev-n b { font-size: 14.5px; line-height: 1.25; }
.csas-scanitem .csas-scanrev-in { margin-top: 6px; }
.csas-scanitem .csas-scanrev-act { height: 28px; padding: 0 10px; font-size: 12px; }
.csas-scanitem .csas-scanrev-x { width: 32px; height: 32px; margin: 0; align-self: start; }
.csas-scangroup .csas-scangroup-price { padding: 8px 12px; }
.csas-scangroup .csas-scangroup-price > span:first-child { font-size: 13px; }
.csas-pricebox { height: 36px; width: 120px; border-radius: 10px; border-width: 1.5px; }
.csas-pricebox input { font-size: 15px; }
.csas-scan-editlink { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; padding: 7px 12px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid #dfe7e5; color: #0f766e; font-weight: 700; font-size: 13px; text-decoration: none; }
.csas-ob-opts { display: grid; gap: 8px; }
.csas-ob-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #dbe5e2; background: #fff; color: #0e1a2b; font: 600 15px/1.2 inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.csas-ob-opt::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5d2; flex: none; }
.csas-ob-opt:hover, .csas-ob-opt:focus-visible { border-color: #14b8a6; background: #f0fdfa; }
.csas-ob-opt.csas-loading { color: transparent; }

/* 3.9.2 — Contacts: search + actions, channel chips, lead filter, broadcast chooser */
.csas-am-ctop { display: grid; gap: 10px; }
.csas-am-ctop .csas-am-search .csas-input { height: 46px; border-radius: 14px; }
.csas-am-cact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.csas-am-cact .csas-btn, .csas-am-cact form, .csas-am-cact form .csas-btn { width: 100%; height: 44px; }
@media (min-width: 720px) { .csas-am-ctop { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .csas-am-cact { grid-template-columns: auto auto; } .csas-am-cact .csas-btn { min-width: 120px; } }
.csas-am-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.csas-am-chips::-webkit-scrollbar, .csas-am-tagbar::-webkit-scrollbar { display: none; }
.csas-am-chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #e2e8e6; font-size: 13.5px; font-weight: 600; color: #334155; text-decoration: none; }
.csas-am-chips a i { font-style: normal; font-size: 12px; color: #94a3b8; font-weight: 700; }
.csas-am-chips a[aria-current] { background: #0e1a2b; border-color: #0e1a2b; color: #fff; }
.csas-am-chips a[aria-current] i { color: #94a3b8; }
.csas-am-tagbar { align-items: center; }
.csas-am-tagbar > span { flex: none; font-size: 12px; font-weight: 700; color: #94a3b8; margin-right: 2px; }
.csas-am-tagbar a { padding: 5px 11px; font-size: 12.5px; }
.csas-am-cmeta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: #64748b; }
.csas-am-cmeta span { font-weight: 700; color: #0e1a2b; }
.csas-am-cmeta a { color: #0f766e; font-weight: 600; text-decoration: none; }
.csas-am-bc { width: min(420px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(14,26,43,.5); }
.csas-am-bc::backdrop { background: rgba(14,26,43,.45); }
.csas-am-bcin { display: grid; gap: 8px; padding: 16px; }
.csas-am-bcin header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.csas-am-bcin header b { font-size: 17px; }
.csas-am-bcin header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 18px; cursor: pointer; }
.csas-am-bcopt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid #e6ecea; text-decoration: none; color: inherit; }
.csas-am-bcopt:hover, .csas-am-bcopt:focus-visible { border-color: #14b8a6; background: #f0fdfa; }
.csas-am-bcopt > span:last-child { display: grid; }
.csas-am-bcopt b { font-size: 15px; color: #0e1a2b; } .csas-am-bcopt small { color: #64748b; font-size: 12.5px; }
.csas-am-bcopt .csas-tools-ico { font-weight: 800; font-size: 16px; }
.csas-am-to { margin: 0; padding: 10px 12px; border-radius: 12px; background: #f0fdfa; color: #0f766e; font-weight: 700; font-size: 14px; }
/* Tools pages on a computer: centred column, roomier rows */
@media (min-width: 900px) {
	.csas-tools, .csas-am, .csas-mt { max-width: 820px; }
	.csas-tools-list a { padding: 18px 20px; }
	.csas-am-people a { padding: 14px 18px; }
}

/* 3.9.2 — site header: the brand name stays on one line on every phone */
.mk-brand { white-space: nowrap; flex: none; min-width: 0; }
.mk-nav-in { gap: 10px; }
.mk-nav-cta { flex-wrap: nowrap; min-width: 0; }
@media (max-width: 560px) {
	.mk-brand { font-size: 17px; gap: 8px; }
	.mk-brand img { width: 30px; height: 30px; border-radius: 9px; }
	.mk-nav-cta { gap: 6px; }
	.mk-nav-cta .mk-btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; white-space: nowrap; }
	.mk-login { display: none; }
}
@media (max-width: 359px) {
	.mk-nav-cta .mk-btn-primary.mk-btn-sm { display: none; }
}
.csas-scan-editlink { justify-self: start; width: max-content; }

/* 3.9.3 — Scan AI · Edit products: one card per product (mock-up). */
.csas-pc-chip { display: inline-block; justify-self: start; background: #E1F5EE; color: #085041; font-size: 12px; line-height: 1.4; padding: 4px 10px; border-radius: 999px; margin: 0 0 10px; }
.csas-pc-list { list-style: none; margin: 0; padding: 0; }
.csas-pc { background: #fff; border: 1px solid #E3ECEA; border-radius: 18px; margin: 0 0 12px; overflow: hidden; }
.csas-pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.csas-pc-name { font-size: 15px; font-weight: 500; color: #0F2A2A; min-width: 0; overflow-wrap: anywhere; }
.csas-pc-right { display: flex; align-items: center; gap: 8px; flex: none; }
.csas-pc-src { font-size: 11px; background: #EEF3F2; color: #4B6360; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.csas-pc-x { border: 0; background: none; padding: 2px; margin: -2px; color: #7C8F8C; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.csas-pc-x:hover { color: #b42318; }
.csas-pc-tabs { display: flex; gap: 4px; background: #EEF3F2; margin: 0 14px; padding: 4px; border-radius: 999px; }
.csas-pc-tab { flex: 1; text-align: center; padding: 7px 0; font: inherit; font-size: 13px; line-height: 1.2; border-radius: 999px; cursor: pointer; color: #4B6360; background: transparent; border: none; }
.csas-pc-tab.is-on { background: #fff; color: #0B6E63; font-weight: 500; box-shadow: 0 0 0 1px #14B8A6 inset; }
.csas-pc-tab:focus-visible, .csas-pc-x:focus-visible, .csas-pc-act:focus-within, .csas-pc-act:focus-visible { outline: 2px solid #14B8A6; outline-offset: 2px; }
.csas-pc-body { padding: 10px 14px 2px; }
.csas-pc-ib { aspect-ratio: 1 / 1; width: 140px; margin: 0 auto; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #F7F4EE; color: #7C8F8C; }
.csas-pc[data-view="o"] .csas-pc-ib { background: #D9D6D0; }
.csas-pc-ib img { width: 100%; height: 100%; object-fit: contain; display: block; }
.csas-pc-ib small { font-size: 11px; padding: 0 10px; text-align: center; }
.csas-pc-cp { text-align: center; font-size: 12px; color: #5C7370; margin: 8px 0 6px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.csas-pc-cp svg { flex: none; }
.csas-pc-cp.is-warn { color: #B45309; }
.csas-pc-acts { display: flex; justify-content: center; gap: 14px; margin: 0 0 6px; }
.csas-pc-act { position: relative; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12px; color: #0B6E63; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.csas-pc-act[hidden] { display: none; }
.csas-pc-act input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.csas-pc-act.is-need { font-weight: 600; color: #B45309; }
.csas-pc-sp { width: 26px; height: 26px; border: 3px solid #CDE9E4; border-top-color: #14B8A6; border-radius: 50%; animation: csas-pc-spin .9s linear infinite; }
@keyframes csas-pc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .csas-pc-sp { animation: none; } }
.csas-pc-price { display: flex; justify-content: space-between; align-items: center; background: #F7F9F8; border-top: 1px solid #E3ECEA; padding: 10px 14px; margin-top: 6px; }
.csas-pc-price b { font-size: 15px; font-weight: 500; color: #0F2A2A; }
.csas-pc-price .csas-pricebox { width: auto; min-width: 130px; max-width: 160px; height: 40px; border-color: #F5B461; }
.csas-pc .csas-scanitem-gone { padding: 12px 14px; }
.csas-pc.is-removed > :not(.csas-scanitem-gone) { display: none; }
.csas-pc.is-removed { background: #F7F9F8; }

/* 3.9.4 — Home: agent line on one line */
.csas-agentseat-body { min-width: 0; }
.csas-agentseat-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 3.9.4 — Edit products: one product per page (swipe / arrows), tap the picture to see it large */
.csas-pc-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin: 0 0 12px; }
.csas-pc-list::-webkit-scrollbar { display: none; }
.csas-pc-list > .csas-pc { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; margin: 0; }
.csas-pc-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.csas-pc-pager[hidden] { display: none; }
.csas-pc-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #E3ECEA; background: #fff; color: #0B6E63; display: grid; place-items: center; cursor: pointer; padding: 0; }
.csas-pc-nav:disabled { opacity: .35; cursor: default; }
.csas-pc-nav:focus-visible { outline: 2px solid #14B8A6; outline-offset: 2px; }
.csas-pc-count { font-size: 13px; font-weight: 600; color: #4B6360; font-variant-numeric: tabular-nums; }
.csas-pc-ib { cursor: zoom-in; }
.csas-pc-ib:focus-visible { outline: 2px solid #14B8A6; outline-offset: 2px; }
.csas-pc.is-going { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* 3.9.4 — WhatsApp templates: the preview sits at the top of the editor on every screen size */
@media (min-width: 860px) { .csas-mt-cols { grid-template-columns: minmax(0, 1fr); max-width: 760px; } .csas-mt-prev { position: static; } }
.csas-mt-prev { justify-items: stretch; }
.csas-mt-prev .csas-mt-phone { width: 100%; max-width: 420px; margin: 0 auto; }
.csas-mt-prev .csas-mt-phone { min-height: 0; }

/* =====================================================================
   3.9.4 — Tools pages: one design system for Workflows, Contacts,
   WhatsApp templates, Website forms and Integrations.
   ===================================================================== */
.csas-am, .csas-mt { max-width: 880px; margin-inline: auto; }
.csas-th { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0 0 10px; background: #fff; border: 1px solid #E3ECEA; border-radius: 18px; }
.csas-th-ico.csas-tools-ico { width: 44px; height: 44px; border-radius: 13px; }
.csas-th-line { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.4; color: #4B6360; }
.csas-th-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; min-height: 42px; border-radius: 999px; font-size: 14px; }
.csas-th-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.csas-th-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid #E3ECEA; border-radius: 14px; min-width: 0; }
.csas-th-stats dd { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.1; color: #0F2A2A; font-variant-numeric: tabular-nums; }
.csas-th-stats dt { font-size: 12px; color: #5C7370; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csas-th.is-flows .csas-th-stats dd, .csas-th-stats > div:first-child dd { color: #0B6E63; }
.csas-tsec { margin: 18px 2px 10px; font-size: 13px; font-weight: 600; color: #4B6360; letter-spacing: .01em; }
.csas-tpill { flex: none; font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #EEF3F2; color: #4B6360; white-space: nowrap; }
.csas-tpill.is-ok { background: #E1F5EE; color: #085041; }

/* rows */
.csas-trows { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #E3ECEA; border-radius: 18px; overflow: hidden; }
.csas-trows > li + li { border-top: 1px solid #EEF3F2; }
.csas-trows a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: inherit; text-decoration: none; }
.csas-trows a:hover { background: #F7FBFA; }
.csas-trows .csas-tools-ico { width: 40px; height: 40px; border-radius: 12px; }
.csas-trow-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.csas-trow-txt b { font-size: 15px; font-weight: 600; color: #0F2A2A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-trow-txt small { font-size: 12.5px; color: #5C7370; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-trow-go { flex: none; color: #A3B4B1; }
.csas-tempty { display: grid; justify-items: center; gap: 10px; padding: 30px 18px; text-align: center; background: #fff; border: 1px dashed #CFE0DC; border-radius: 18px; }
.csas-tempty p { margin: 0; color: #4B6360; font-size: 14px; }
.csas-tempty .csas-btn { min-width: 200px; }

/* workflows */
.csas-wf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.csas-wf { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid #E3ECEA; border-radius: 18px; }
.csas-wf.is-on { border-color: #BFE6DE; box-shadow: inset 3px 0 0 #14B8A6; }
.csas-wf-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; }
.csas-wf-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #E7F8F4; color: #0F766E; }
.csas-wf-txt { min-width: 0; display: grid; gap: 6px; }
.csas-wf-txt > b { font-size: 15px; font-weight: 600; color: #0F2A2A; line-height: 1.3; }
.csas-wf-txt > small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5C7370; }
.csas-wf-dot { width: 7px; height: 7px; border-radius: 50%; background: #A3B4B1; }
.csas-wf.is-on .csas-wf-dot { background: #14B8A6; box-shadow: 0 0 0 3px #D5F3EE; }
.csas-wf-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.csas-wf-flow i { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #F1F5F4; color: #3E5653; border: 1px solid #E3ECEA; }
.csas-wf-flow i.is-trig { background: #0B6E63; color: #fff; border-color: #0B6E63; }
.csas-wf-flow b { color: #A3B4B1; font-weight: 400; font-size: 13px; }
.csas-wf-grid { display: grid; gap: 10px; }
.csas-wf-recipe { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid #E3ECEA; border-radius: 18px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.csas-wf-recipe:hover { border-color: #9ADBD0; box-shadow: 0 6px 18px rgba(15, 42, 42, .06); }
.csas-wf-recipe > b { font-size: 15px; font-weight: 600; line-height: 1.35; color: #0F2A2A; }
.csas-wf-rtop { display: flex; justify-content: space-between; align-items: center; }
.csas-wf-rtop em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #0B6E63; padding: 5px 12px; border-radius: 999px; background: #E1F5EE; }
@media (min-width: 760px) { .csas-wf-grid { grid-template-columns: 1fr 1fr; } }

/* contacts */
.csas-am-ctop { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; }
.csas-am-ctop .csas-am-search { flex: 1; min-width: 0; position: relative; }
.csas-am-ctop .csas-am-search .csas-input { width: 100%; padding-left: 40px; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237C8F8C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 14px 50%; }
.csas-am-ctop .csas-am-cact { flex: none; display: flex; }
.csas-am-export { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; }
@media (max-width: 420px) { .csas-am-export span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .csas-am-export { width: 44px; padding: 0; justify-content: center; } }
.csas-am-people { background: #fff; border: 1px solid #E3ECEA; border-radius: 18px; overflow: hidden; }

/* integrations */
.csas-am-int { background: #fff; border: 1px solid #E3ECEA; border-radius: 18px; margin: 0 0 10px; padding: 0 14px; }
.csas-am-int > summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.csas-am-int > summary::-webkit-details-marker { display: none; }
.csas-am-int > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid #A3B4B1; border-bottom: 2px solid #A3B4B1; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
.csas-am-int[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.csas-am-int[open] > summary { border-bottom: 1px solid #EEF3F2; margin-bottom: 12px; }
.csas-am-int[open] { padding-bottom: 14px; }
.csas-am-intname { flex: 1; min-width: 0; display: grid; gap: 2px; }
.csas-am-intname b { font-size: 15px; font-weight: 600; color: #0F2A2A; }
.csas-am-intname small { font-size: 12.5px; color: #5C7370; }
@media (min-width: 760px) { .csas-am-integr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; align-items: start; } .csas-am-integr > .csas-btn, .csas-am-integr > input { grid-column: 1 / -1; } .csas-am-int[open] { grid-column: 1 / -1; } }

/* templates */
.csas-mt-catico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 700; font-size: 15px; background: #DCFCE7; color: #15803D; }
.csas-mt-catico.is-marketing { background: #FEF3C7; color: #A16207; }
.csas-mt-catico.is-authentication { background: #E0F2FE; color: #0369A1; }
.csas-mt-group h3 { font-size: 13px; font-weight: 600; color: #4B6360; margin: 18px 2px 10px; }
.csas-mt-libcard { display: grid; gap: 8px; }
.csas-mt-libsnip { font-size: 12.5px; line-height: 1.45; color: #5C7370; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.csas-mt-head p { margin: 4px 0 0; font-size: 14px; color: #4B6360; }
.csas-am-ctop .csas-am-cact form { width: auto; height: auto; }
.csas-am-ctop .csas-am-cact .csas-am-export { width: auto; height: 44px; min-width: 0; }
@media (max-width: 420px) { .csas-am-ctop .csas-am-cact .csas-am-export { width: 44px; } }
.csas-am-integr { background: none; border: 0; padding: 0; box-shadow: none; }
.csas-am-integr { gap: 10px; } .csas-am-integr .csas-am-int { margin: 0; }
.csas-pc-list { align-items: flex-start; }

/* 3.9.5 — Upload manually: thumbnails of the picked pictures */
.csas-ob-file.has-thumbs { display: grid; justify-items: center; gap: 8px; }
.csas-ob-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.csas-ob-thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid #E3ECEA; background: #F7F4EE; }

/* 3.9.5 — Home: dedicated agents as a row of faces, each with a live dot */
.csas-agentstack { display: flex; flex: none; padding-left: 10px; }
.csas-agentstack-av { position: relative; width: 48px; height: 48px; margin-left: -12px; border-radius: 50%; background: #E1F5EE; color: #0B6E63; font-weight: 700; font-size: 17px; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(15, 42, 42, .1); }
.csas-agentstack-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.csas-agentstack-dot { position: absolute; right: -1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }
.csas-agentseat .csas-agentseat-body strong { font-size: 16px; }

/* 3.9.5 — Learn from website / file / text */
.csas-learn-f { display: grid; gap: 8px; }
.csas-learn-file { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 14px; border: 1.5px dashed #BFD3CF; border-radius: 14px; background: #F7FBFA; color: #0B6E63; font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; }
.csas-learn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.csas-learn-file.has-file { border-style: solid; border-color: #14B8A6; }
.csas-agentseat .csas-agentseat-line { font-size: 13.5px; } .csas-scanrev .csas-steps { margin-bottom: 14px; }

/* 3.9.6 — "Scan more products" opens the camera right here */
.csas-scan-more { margin: 0; display: grid; justify-items: center; gap: 8px; }
.csas-scan-more .csas-scan-alt { position: relative; cursor: pointer; }
.csas-scan-more .csas-scan-alt input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.csas-scan-more.is-scanning .csas-scan-alt { opacity: .5; pointer-events: none; }
.csas-scan-more .csas-scan-progress { width: 100%; }
/* 3.9.6 — the product pages never widen the screen */
.csas-scanpage, .csas-scanrev, .csas-scanrev form, .csas-pc-list { min-width: 0; max-width: 100%; }
.csas-scanrev { overflow: hidden; }
.csas-pc-list > .csas-pc { min-width: 0; max-width: 100%; }
.csas-pc { position: relative; }

/* 3.9.6 — Dedicated agents: title on top, faces centred (room for 5), tip underneath */
.csas-agentseat.is-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.csas-agentseat.is-team .csas-agentseat-t { font-size: 16px; font-weight: 700; color: #0F2A2A; }
.csas-agentseat.is-team .csas-agentstack { padding-left: 12px; justify-content: center; }
.csas-agentseat.is-team .csas-agentseat-line { font-size: 13.5px; color: #5C7370; white-space: normal; max-width: 100%; }

/* 3.9.7 — product title: reads like the title, tap to edit; "Enter title" when the AI couldn't read it */
.csas-pc-name { flex: 1; min-width: 0; display: block; }
.csas-pc-name input { width: 100%; border: 0; background: transparent; padding: 2px 0; margin: 0; font: inherit; font-size: 15px; font-weight: 500; color: #0F2A2A; border-radius: 6px; outline: none; text-overflow: ellipsis; }
.csas-pc-name input:focus { background: #F7FBFA; box-shadow: 0 0 0 2px #CDE9E4; padding: 2px 6px; }
.csas-pc-name input::placeholder { color: #B45309; font-weight: 600; opacity: 1; }
.csas-pc-name.is-empty input { text-decoration: underline dashed #F5B461; text-underline-offset: 4px; }
.csas-pc-name.is-need input::placeholder { color: #b42318; }
/* 3.9.7 — "Scan more products" looks as before (just opens the camera now) */
.csas-scanrev form[data-csas-scanrev] { margin-bottom: 0; }
.csas-scan-more { display: block; margin: 0; padding: 0; }
.csas-scan-more label.csas-scan-alt { display: block; margin: 12px 0 0; text-align: center; font-size: 15px; font-weight: 600; color: #0f766e; text-decoration: underline; text-underline-offset: 3px; line-height: 1.4; }
.csas-scan-more .csas-scan-progress { margin-top: 10px; }

/* 3.9.10 — swipe a chat to delete · clear chat · audio stays inside its bubble */
.csas-swiperow { position: relative; overflow: hidden; transition: max-height .25s ease, opacity .25s ease; }
.csas-swiperow + .csas-swiperow { border-top: 1px solid var(--csas-line); }
.csas-ix-side .csas-swiperow + .csas-swiperow { border-top: 0; }
.csas-swiperow > .csas-chatrow { position: relative; z-index: 1; background: #fff; transition: transform .22s ease; touch-action: pan-y; }
.csas-swiperow > .csas-chatrow:hover, .csas-swiperow > .csas-chatrow:active { background: var(--csas-bg); }
.csas-ix-side .csas-swiperow > .csas-chatrow:hover { background: #f4f7f6; }
.csas-ix-side .csas-swiperow > .csas-chatrow.is-active { background: #e4f4f0; }
.csas-swipedel { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; border: 0; background: #e5484d; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-weight: 700; font-size: 12px; line-height: 1; font-family: inherit; cursor: pointer; }
.csas-swiperow.is-gone { max-height: 0 !important; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
	.csas-swipedel { top: 50%; right: 8px; bottom: auto; width: 34px; height: 34px; margin-top: -17px; border-radius: 10px; z-index: 2; opacity: 0; background: #fff; color: #e5484d; box-shadow: 0 1px 4px rgba(15,23,42,.14); transition: opacity .15s ease; }
	.csas-swipedel span { display: none; }
	.csas-swipedel { pointer-events: none; }
	.csas-swiperow.is-menu .csas-swipedel { opacity: 1; pointer-events: auto; } /* 3.9.13: right-click a chat to show Delete — never on hover */
	.csas-swiperow.is-menu .csas-chatrow-top small { visibility: hidden; }
}
.csas-clearchat { flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--csas-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.csas-clearchat:hover { background: rgba(229,72,77,.08); color: #e5484d; }
.csas-bubble { box-sizing: border-box; min-width: 0; overflow: hidden; }
.csas-bubble audio { display: block; width: 100%; max-width: 100%; min-width: 0; height: 40px; margin: 2px 0 4px; }
.csas-bubble:has(audio) { width: 260px; max-width: 82%; }
@media not all and (hover: hover) and (pointer: fine) {
	.csas-swiperow:not(.is-open):not(.is-drag) .csas-swipedel { visibility: hidden; }
}

/* 3.9.11 — Shop rows fit any phone · a product's own questions · products inside the builder */
.csas-gmrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "img t chip" "act act act"; align-items: center; gap: 10px 12px; padding: 12px; border: 1px solid var(--csas-line); border-radius: 14px; background: #fff; }
.csas-gmrow-img { grid-area: img; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #f1f5f4; display: grid; place-items: center; color: #94a3b8; }
.csas-gmrow-img img { width: 100%; height: 100%; object-fit: cover; }
.csas-gmrow-t { grid-area: t; min-width: 0; display: grid; gap: 2px; }
.csas-gmrow-t b { font-weight: 650; color: var(--csas-navy); line-height: 1.3; overflow-wrap: anywhere; }
.csas-gmrow-t small { font-size: 12.5px; color: var(--csas-muted); }
.csas-gmrow > .csas-chip { grid-area: chip; white-space: nowrap; }
.csas-gmrow-act { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--csas-line); }
.csas-gmrow-act form { display: contents; }
.csas-gmbtn { flex: 1 1 0; min-width: 0; min-height: 36px; padding: 0 10px; border: 1px solid var(--csas-line-strong); border-radius: 10px; background: #fff; color: var(--csas-navy); font-weight: 600; font-size: 13px; line-height: 1; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; white-space: nowrap; }
.csas-gmbtn:hover { border-color: var(--csas-gold); color: var(--csas-navy-600); }
.csas-gmbtn.is-del { color: #c2410c; }
.csas-gmbtn.is-del:hover { border-color: #fca5a5; background: #fff7f5; }
@media (min-width: 720px) {
	.csas-gmrow { grid-template-columns: 48px minmax(0, 1fr) auto auto; grid-template-areas: "img t chip act"; }
	.csas-gmrow-act { padding-top: 0; border-top: 0; flex-wrap: nowrap; }
	.csas-gmbtn { flex: 0 0 auto; }
}

.csas-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 4px 0 12px; border: 1px solid var(--csas-line); border-radius: 12px; background: #fff; font-weight: 600; color: var(--csas-navy); cursor: pointer; }
.csas-switchrow input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: #cbd5d1; transition: background .2s ease; cursor: pointer; }
.csas-switchrow input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.25); transition: transform .2s ease; }
.csas-switchrow input:checked { background: #14b8a6; }
.csas-switchrow input:checked::after { transform: translateX(18px); }
.csas-switchrow input:focus-visible { outline: 2px solid #14b8a6; outline-offset: 2px; }

.csas-bq { padding: 12px; margin-bottom: 10px; border: 1px solid #dbe7e3; border-radius: 14px; background: #f8fbfa; }
.csas-bq-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.csas-bq-head .csas-input { flex: 1; min-width: 0; font-weight: 600; }
.csas-bo { display: grid; grid-template-columns: minmax(0, 1fr) 96px 36px; gap: 6px; align-items: center; margin-bottom: 6px; }
.csas-bo .csas-input { min-width: 0; }
.csas-bq .csas-linkbtn { border: 0; background: none; padding: 6px 2px; color: #0f766e; font-weight: 600; font-size: 13.5px; line-height: 1; font-family: inherit; cursor: pointer; }
.csas-bq .csas-linkbtn:hover { text-decoration: underline; }

.csas-bprods { display: grid; gap: 8px; margin: 10px 0; }
.csas-bprod { display: flex; align-items: center; gap: 8px; }
.csas-bprod > input { display: none; width: 18px; height: 18px; accent-color: #14b8a6; flex: none; }
.csas-bprods.is-pick .csas-bprod > input { display: block; }
.csas-bprod-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e2ebe8; border-radius: 12px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.csas-bprod-main:hover { border-color: #99d8cc; }
.csas-bprod-main img, .csas-bprod-ph { width: 42px; height: 42px; flex: none; border-radius: 10px; object-fit: cover; background: #f1f5f4; display: grid; place-items: center; color: #94a3b8; }
.csas-bprod-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.csas-bprod-t b { font-size: 14px; color: var(--csas-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-bprod-t small { font-size: 12px; color: var(--csas-muted); }
.csas-bprod-go { font-size: 22px; line-height: 1; color: #94a3b8; }
.csas-bp-photo { display: flex; justify-content: center; margin: 4px 0 12px; }
.csas-bp-pic { display: grid; justify-items: center; gap: 6px; cursor: pointer; color: #0f766e; font-weight: 600; font-size: 13px; }
.csas-bp-pic img, .csas-bp-pic .csas-bprod-ph { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; }

/* 3.9.12 — builder editor: full screen on phones, header and actions always in view · Options step */
.csas-bldsheet .csas-sheet-head { position: sticky; top: -6px; z-index: 3; margin: -6px -16px 12px; padding: 14px 16px 12px; background: #fff; border-bottom: 1px solid var(--csas-line); }
.csas-bldsheet .csas-sheet-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csas-bldsheet .csas-sheet-foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); z-index: 3; margin: 14px -16px calc(-16px - env(safe-area-inset-bottom)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; }
@media (max-width: 719px) {
	.csas-bldsheet .csas-sheet-panel { top: 0; max-height: none; height: 100dvh; border-radius: 0; padding-top: 6px; }
	.csas-bldsheet .csas-sheet-grip { display: none; }
}
.csas-chitem { display: grid; grid-template-columns: minmax(0, 1fr) 104px 36px; gap: 6px; align-items: center; }
.csas-chitem .csas-input { min-width: 0; }
.csas-chprice { text-align: right; }
.csas-node.is-choice .csas-node-ico { background: #ecfdf5; color: #0f766e; }
.csas-add-ico.is-choice { background: #ecfdf5; color: #0f766e; }
.csas-port.is-optional span { opacity: .85; }
.csas-item.csas-chitem [data-remove] { grid-row: 1; grid-column: 3; width: 36px; }
.csas-bprod-opt { flex: none; min-height: 34px; padding: 0 10px; border: 1px solid #99d8cc; border-radius: 10px; background: #f0fdfa; color: #0f766e; font-weight: 600; font-size: 12.5px; font-family: inherit; cursor: pointer; white-space: nowrap; }
.csas-bprod-opt.is-on { background: #0f766e; border-color: #0f766e; color: #fff; }

/* 3.9.13 — sign-in pages: the home page's live phone demo on the right */
@media (min-width: 1000px) {
	.mk-auth-side.is-phone { padding: 0; background: none; border-radius: 0; color: inherit; top: 84px; }
	.mk-auth-side.is-phone .mk-stage { margin: 0 auto; max-width: 400px; }
}

/* 3.9.14 — Chats on a computer: menu on the left, the open chat in the middle, the chat list on the right */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.csas-ix { grid-template-columns: minmax(0, 1fr) 360px; }
	.csas-ix > .csas-ix-side { order: 2; border-right: 0; border-left: 1px solid #e6ecea; }
}

/* 3.9.13 — sign-in pages: the home page's live phone demo on the right */
@media (min-width: 1000px) {
	.mk-auth-side.is-phone { padding: 0; background: none; border-radius: 0; color: inherit; top: 84px; }
	.mk-auth-side.is-phone .mk-stage { margin: 0 auto; max-width: 400px; }
}

/* 3.9.13 — Chats on a computer: contacts left, the chat in the middle, the menu as a slim rail on the right */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.csas-variant-dash:has(.csas-ix) { --csas-rail: 88px; }
	.csas-variant-dash:has(.csas-ix) .csas-topbar { left: auto; right: 0; width: var(--csas-rail); height: 116px; flex-direction: column; justify-content: center; gap: 10px; padding: 12px 0; border-right: 0; border-left: 1px solid #e6ecea; }
	.csas-variant-dash:has(.csas-ix) .csas-topbar .csas-brand-text { display: none; }
	.csas-variant-dash:has(.csas-ix) .csas-topbar .csas-brand-id { justify-content: center; }
	.csas-variant-dash:has(.csas-ix) .csas-tabbar { left: auto; right: 0; top: 116px; width: var(--csas-rail); padding: 8px 8px 24px; gap: 4px; border-right: 0; border-left: 1px solid #e6ecea; }
	.csas-variant-dash:has(.csas-ix) .csas-tabbar a { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 4px; font-size: 11.5px; text-align: center; }
	.csas-variant-dash:has(.csas-ix) .csas-tabbar svg { width: 21px; height: 21px; }
	.csas-variant-dash:has(.csas-ix) .csas-tabbar .csas-badge { position: absolute; top: 4px; right: 14px; margin: 0; }
	.csas-variant-dash:has(.csas-ix) .csas-main { margin: 0 var(--csas-rail) 0 0; }
}

/* 3.9.16 — plan subtitles, copy steps from another flow */
.csas-item.csas-chitem .csas-chsub { grid-column: 1 / -1; grid-row: 2; font-size: 13.5px; }
.csas-chitem { padding-bottom: 8px; border-bottom: 1px dashed #e2ebe8; margin-bottom: 8px; }
.csas-copyrow { display: flex; gap: 8px; align-items: center; }
.csas-copyrow .csas-input { flex: 1; min-width: 0; }

/* 3.9.17 — plans side by side in Options */
.csas-plcols { display: grid; gap: 6px; margin-bottom: 8px; }
.csas-plcol { display: grid; grid-template-columns: 28px minmax(0, 1fr) 36px; gap: 6px; align-items: center; }
.csas-plcol b { width: 28px; height: 28px; border-radius: 8px; background: #ecfdf5; color: #0f766e; display: grid; place-items: center; font-size: 13px; }
.csas-item.csas-chitem [data-remove] { grid-row: 1; grid-column: 3; }
.csas-chitems.has-cols .csas-item.csas-chitem { grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)) 36px; }
.csas-chitems.has-cols .csas-chitem [data-title] { grid-row: 1; grid-column: 1 / -2; }
.csas-chitems.has-cols .csas-chitem [data-remove] { grid-row: 1; grid-column: -2 / -1; }
.csas-chitems.has-cols .csas-chitem [data-pcol] { grid-row: 2; }
.csas-opt { font-weight: 500; color: var(--csas-muted); font-size: 12px; }
.csas-pm-plans { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12.5px; }
.csas-pm-plans th { text-align: right; font-weight: 700; padding: 2px 4px; }
.csas-pm-plans th small { display: block; font-weight: 500; color: #64748b; font-size: 10.5px; }
.csas-pm-plans td { padding: 3px 4px; border-top: 1px solid rgba(15,23,42,.06); }
.csas-pm-plans td + td { text-align: right; white-space: nowrap; font-weight: 600; }
.csas-chitems.has-cols .csas-chitem { padding-bottom: 6px; }

/* 3.9.21 — Chats on a computer: slim menu on the left, the chat list beside it, the open chat on the right.
   Menu and list start at the same top line; the alerts prompt is a small card at the bottom of the list. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.csas-variant-dash:has(.csas-ix) .csas-topbar { left: 0; right: auto; border-left: 0; border-right: 1px solid #e6ecea; height: 116px; }
	.csas-variant-dash:has(.csas-ix) .csas-tabbar { left: 0; right: auto; border-left: 0; border-right: 1px solid #e6ecea; }
	.csas-variant-dash:has(.csas-ix) .csas-main { margin: 0 0 0 var(--csas-rail); }
	.csas-ix { grid-template-columns: 360px minmax(0, 1fr); }
	.csas-ix > .csas-ix-side { order: 0; border-left: 0; border-right: 1px solid #e6ecea; }
	.csas-ix-side > * { flex-shrink: 0; } /* the All / Needs you / Auto-reply chips were squeezed to a sliver */
	.csas-ix-side .csas-pagebar { min-height: 64px; box-sizing: border-box; display: flex; align-items: center; }
	.csas-dash:has(.csas-ix) .csas-pulse .csas-alertsbtn, .csas-dash:has(.csas-ix) .csas-pulse .csas-alertsblocked { position: fixed; z-index: 30; left: calc(var(--csas-rail) + 14px); bottom: 14px; width: 332px; margin: 0; padding: 10px 12px; font-size: 13px; line-height: 1.35; border-radius: 12px; box-sizing: border-box; box-shadow: 0 10px 28px -12px rgba(15,23,42,.35); }
	.csas-dash:has(.csas-ix):has(.csas-alertsbtn:not([hidden])) .csas-ix-side, .csas-dash:has(.csas-ix):has(.csas-alertsblocked:not([hidden])) .csas-ix-side { padding-bottom: 96px; }
	/* the open chat starts on the same top line as the menu and the list, its header the same height as "Chats" */
	.csas-ix-main { padding: 0; }
	.csas-ix-main .csas-thread { border-radius: 0; border: 0; box-shadow: none; }
	.csas-ix-main .csas-thread-head { min-height: 64px; box-sizing: border-box; }
}
