/* ============================================================
 * 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. */
@media (min-width: 860px) 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: 8px; min-width: 0; }
.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-cc:focus-within { background: #fff; border-color: var(--csas-gold); box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.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-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 3a9 9 0 0 0-7.7 13.6L3 21l4.5-1.2A9 9 0 1 0 12 3z'/%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; gap: 6px; max-height: 34vh; overflow-y: auto; }
.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; }
.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; }
.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; }
