/* Wellness CRM — admin screens. Scoped to .ws-crm so the rest of wp-admin is untouched. */

.ws-crm {
	--ws-primary: #005399;
	--ws-vibrant: #0284C7;
	--ws-navy: #0F2F51;
	--ws-ink: #0F2338;
	--ws-soft: #475569;
	--ws-muted: #64748B;
	--ws-line: #E2EDF5;
	--ws-border: #D0E3F3;
	--ws-card: #FFFFFF;
	--ws-tint: #F4F9FD;
	max-width: 1280px;
	margin-right: 20px;
	color: var(--ws-ink);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ws-crm * { box-sizing: border-box; }

/* Brand bar + tabs */
.ws-crm-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 12px 0 20px;
	padding: 12px 18px;
	border-radius: 14px;
	background: linear-gradient(135deg, #0F2F51 0%, #005399 60%, #0284C7 100%);
	box-shadow: 0 10px 24px -10px rgba(0, 83, 153, 0.45);
	color: #FFFFFF;
}
.ws-crm-brand { display: flex; align-items: center; gap: 10px; }
.ws-crm-brand strong { display: block; font-size: 15px; line-height: 1.2; }
.ws-crm-brand small { display: block; opacity: 0.75; font-size: 11px; }
.ws-crm-mark {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.16);
	font: italic 700 15px Georgia, serif;
}
.ws-crm-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.ws-crm-tabs a {
	padding: 8px 14px;
	border-radius: 9px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.ws-crm-tabs a:hover, .ws-crm-tabs a:focus { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; box-shadow: none; }
.ws-crm-tabs a.is-active { background: #FFFFFF; color: var(--ws-navy); }
.ws-crm-site { color: #E0F2FE; font-size: 12px; font-weight: 600; text-decoration: none; }
.ws-crm-site:hover { color: #FFFFFF; }

.ws-crm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ws-crm-head h1 { margin: 0; padding: 0; color: var(--ws-navy); font-size: 26px; font-weight: 800; letter-spacing: -0.6px; }
.ws-crm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-crm .button-primary {
	border-color: var(--ws-primary);
	background: linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-vibrant) 100%);
	box-shadow: 0 4px 12px rgba(0, 83, 153, 0.25);
}
.ws-crm .button-primary:hover, .ws-crm .button-primary:focus { border-color: #004077; background: linear-gradient(135deg, #004077 0%, var(--ws-primary) 100%); }
.ws-crm .button { border-radius: 8px; }
.ws-crm .button-hero { padding: 0 24px; }
.ws-intro { max-width: 760px; margin: 4px 0 16px; color: var(--ws-soft); }

/* KPI tiles */
.ws-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0; }
.ws-kpi {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	border: 1.5px solid var(--ws-border);
	border-radius: 16px;
	background: linear-gradient(145deg, #FFFFFF 0%, var(--ws-tint) 100%);
	color: var(--ws-ink);
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}
.ws-kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 83, 153, 0.3); color: var(--ws-ink); }
.ws-kpi span { color: var(--ws-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.ws-kpi strong { color: var(--ws-navy); font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.ws-kpi small { color: var(--ws-muted); font-size: 12px; }
.ws-kpi.is-alert { border-color: #FCA5A5; background: linear-gradient(145deg, #FFFFFF 0%, #FEF2F2 100%); }
.ws-kpi.is-alert strong { color: #B91C1C; }

/* Cards & grid */
.ws-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ws-grid-detail { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.ws-card {
	margin: 0 0 16px;
	padding: 20px 22px;
	border: 1px solid var(--ws-line);
	border-radius: 16px;
	background: var(--ws-card);
	box-shadow: 0 2px 10px rgba(15, 47, 81, 0.04);
}
.ws-grid > .ws-card { margin: 0; }
.ws-card-wide { grid-column: 1 / -1; }
.ws-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--ws-navy); font-size: 16px; font-weight: 700; }
.ws-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ws-card-head h2 { margin: 0; }
.ws-more { margin-left: auto; font-size: 12px; font-weight: 600; text-decoration: none; }
.ws-count {
	display: inline-grid;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	place-items: center;
	border-radius: 999px;
	background: var(--ws-tint);
	color: var(--ws-primary);
	font-size: 12px;
	font-weight: 700;
}
.ws-empty { margin: 0; padding: 14px 0; color: var(--ws-muted); }

/* Pipeline bars */
.ws-bars { margin: 0; padding: 0; list-style: none; }
.ws-bars li { margin: 0 0 6px; }
.ws-bars a { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; color: var(--ws-ink); text-decoration: none; }
.ws-bars a:hover { background: var(--ws-tint); }
.ws-bar-label { font-size: 13px; font-weight: 600; }
.ws-bar-track { height: 10px; overflow: hidden; border-radius: 999px; background: #EEF3F8; }
.ws-bar { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--ws-vibrant); }
.ws-bar-new { background: #0284C7; }
.ws-bar-contacted { background: #6366F1; }
.ws-bar-trial { background: #F59E0B; }
.ws-bar-member { background: #10B981; }
.ws-bar-lost { background: #94A3B8; }
.ws-bar-value { color: var(--ws-navy); font-weight: 700; text-align: right; }

/* Lists */
.ws-list { margin: 0; padding: 0; list-style: none; }
.ws-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ws-line); }
.ws-list li:last-child { border-bottom: 0; }
.ws-list-main { flex: 1; color: var(--ws-navy); font-weight: 600; text-decoration: none; }

/* Pills & chips */
.ws-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; }
.ws-pill-new { background: #E0F2FE; color: #075985; }
.ws-pill-contacted { background: #EEF2FF; color: #3730A3; }
.ws-pill-trial { background: #FEF3C7; color: #92400E; }
.ws-pill-member { background: #D1FAE5; color: #065F46; }
.ws-pill-lost { background: #F1F5F9; color: #475569; }
.ws-chip {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #DCFCE7;
	color: #166534;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	vertical-align: middle;
}
.ws-chip:hover { background: #BBF7D0; color: #14532D; }
.ws-chip-star { background: #E0F2FE; color: #075985; }
.ws-overdue { color: #B91C1C; font-weight: 700; }

/* Tables */
.ws-table { border: 1px solid var(--ws-line); border-radius: 12px; overflow: hidden; }
.ws-table th { color: var(--ws-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.ws-table td { vertical-align: middle; }
.ws-strong { color: var(--ws-navy); font-weight: 700; text-decoration: none; }
.ws-strong:hover { color: var(--ws-primary); }
.ws-sub { margin-top: 2px; color: var(--ws-muted); font-size: 12px; }
.ws-contact a { text-decoration: none; }
.ws-muted td { opacity: 0.6; }
.ws-price del { color: var(--ws-muted); }
.ws-price ins { text-decoration: none; font-weight: 700; }
.ws-col-actions { width: 150px; }
.ws-row-actions { white-space: nowrap; }
.ws-row-actions > a, .ws-row-actions > form { margin-right: 10px; }
.ws-inline-form { display: inline; }
.ws-crm .button-link { text-decoration: none; }
.ws-delete, .ws-crm .button-link.ws-delete { color: #B91C1C; }
.ws-delete:hover, .ws-crm .button-link.ws-delete:hover { color: #7F1D1D; }
.ws-code { padding: 3px 8px; border-radius: 6px; background: var(--ws-tint); color: var(--ws-navy); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }

/* Filters */
.ws-status-tabs { margin: 14px 0 6px; }
.ws-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; clear: both; margin: 10px 0 14px; }
.ws-filters input[type="search"] { min-width: 240px; border-radius: 8px; }
.ws-filters select { border-radius: 8px; }
.ws-reset { margin-left: 4px; font-size: 13px; }

/* Forms */
.ws-form .ws-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.ws-form p { margin: 0 0 12px; }
.ws-form .ws-wide { grid-column: 1 / -1; }
.ws-form label, .ws-form legend { display: block; margin-bottom: 5px; color: var(--ws-ink); font-size: 13px; font-weight: 600; }
.ws-form input[type="text"], .ws-form input[type="email"], .ws-form input[type="tel"], .ws-form input[type="url"], .ws-form input[type="password"],
.ws-form input[type="number"], .ws-form input[type="date"], .ws-form select, .ws-form textarea {
	width: 100%;
	max-width: none;
	min-height: 38px;
	padding: 7px 11px;
	border: 1px solid #C9DBEA;
	border-radius: 9px;
	background: #FFFFFF;
	font-size: 14px;
}
.ws-form input:focus, .ws-form select:focus, .ws-form textarea:focus { border-color: var(--ws-primary); box-shadow: 0 0 0 1px var(--ws-primary); }
.ws-form .ws-checks label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 500; }
.ws-form .ws-checks input { margin: 0; }
.ws-checks-scroll { max-height: 220px; margin: 0 0 12px; padding: 10px 12px; overflow: auto; border: 1px solid var(--ws-line); border-radius: 10px; }
.ws-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 8px 0 0; }
.ws-advanced { font-size: 13px; }
.ws-input-row { display: flex; gap: 8px; }
.ws-upper { text-transform: uppercase; }

/* Lead details */
.ws-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ws-facts { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0 0 18px; }
.ws-facts dt { color: var(--ws-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.ws-facts dd { margin: 0; }
.ws-timeline { position: relative; margin: 0; padding: 0 0 0 18px; list-style: none; }
.ws-timeline::before { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 2px; background: var(--ws-line); content: ""; }
.ws-timeline li { position: relative; margin: 0 0 14px; }
.ws-timeline li::before {
	position: absolute;
	top: 5px;
	left: -18px;
	width: 10px;
	height: 10px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
	background: var(--ws-vibrant);
	box-shadow: 0 0 0 1px var(--ws-border);
	content: "";
}
.ws-timeline p { margin: 0 0 2px; }
.ws-timeline small { color: var(--ws-muted); }
.ws-danger { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ws-line); }

/* Media fields */
.ws-media-preview img { display: block; max-width: 180px; max-height: 180px; margin: 4px 0 10px; border: 1px solid var(--ws-line); border-radius: 10px; background: var(--ws-tint); }
.ws-media-clear { margin-left: 10px; }

/* Content screen */
.ws-jump { position: sticky; top: 32px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 10px 0; background: #F0F0F1; }
.ws-jump a { padding: 6px 12px; border: 1px solid var(--ws-border); border-radius: 999px; background: #FFFFFF; color: var(--ws-navy); font-size: 12px; font-weight: 600; text-decoration: none; }
.ws-jump a:hover { border-color: var(--ws-primary); color: var(--ws-primary); }
.ws-content-form .ws-card { scroll-margin-top: 110px; }
.ws-repeater { display: flex; flex-direction: column; gap: 10px; }
.ws-repeater > .button { align-self: flex-start; }
.ws-row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
	align-items: end;
	gap: 0 12px;
	padding: 12px 14px 2px;
	border: 1px solid var(--ws-line);
	border-radius: 12px;
	background: var(--ws-tint);
}
.ws-row[data-type="video"] { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto; }
.ws-row-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) auto; }
.ws-row-tools { display: flex; gap: 10px; margin-bottom: 12px; white-space: nowrap; }
.ws-row-tools .button-link { font-size: 13px; }
.ws-sticky-save {
	position: sticky;
	bottom: 0;
	z-index: 5;
	margin: 0 -20px 0 0;
	padding: 14px 0;
	background: linear-gradient(180deg, rgba(240, 240, 241, 0) 0%, #F0F0F1 35%);
}

/* Email screen */
.ws-side > .ws-card { margin-bottom: 16px; }
.ws-kpi strong.ws-kpi-text { font-size: 18px; letter-spacing: -0.3px; word-break: break-word; }
.ws-mail-hint { display: block; margin-top: 6px; }
.ws-mail-log { margin: 0; padding: 0; list-style: none; }
.ws-mail-log li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ws-line); }
.ws-mail-log li:last-child { border-bottom: 0; }
.ws-mail-log strong { color: var(--ws-navy); font-size: 13px; }
.ws-pill-failed { background: #FEE2E2; color: #991B1B; }
.ws-mail-error { margin-top: 4px; padding: 6px 8px; border-radius: 6px; background: #FEF2F2; color: #991B1B; font-size: 12px; }

@media (max-width: 960px) {
	.ws-grid, .ws-grid-detail { grid-template-columns: 1fr; }
	.ws-row, .ws-row[data-type="video"], .ws-row-faq { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.ws-crm { margin-right: 10px; }
	.ws-form .ws-fields { grid-template-columns: 1fr; }
	.ws-bars a { grid-template-columns: 96px 1fr 32px; }
	.ws-jump { top: 46px; }
	.ws-leads thead { display: none; }
	.ws-leads tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--ws-line); }
	.ws-leads td { display: block; padding: 3px 0; border: 0; }
}

/* ------------------------------------------------------------------ */
/* Plugin additions (shared by wp-admin and the dashboard page)        */
/* ------------------------------------------------------------------ */
.ws-crm [hidden] { display: none !important; }
.ws-crm-logo { display: block; width: 34px; height: 34px; padding: 3px; border-radius: 10px; background: #FFFFFF; }
.ws-icon { flex: none; width: 20px; height: 20px; }
.ws-notice { margin: 14px 0 0; }
.ws-crm [lang="hi"] { font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }

/* Hub on the overview */
.ws-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ws-hub-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--ws-line);
	border-radius: 14px;
	background: var(--ws-tint);
	color: var(--ws-ink);
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ws-hub-card:hover, .ws-hub-card:focus-visible { border-color: var(--ws-primary); color: var(--ws-ink); transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(0, 83, 153, 0.45); }
.ws-hub-icon { display: grid; width: 38px; height: 38px; margin-bottom: 6px; place-items: center; border-radius: 11px; background: #FFFFFF; color: var(--ws-primary); box-shadow: 0 1px 0 var(--ws-line); }
.ws-hub-card strong { color: var(--ws-navy); font-size: 14px; }
.ws-hub-card small { color: var(--ws-muted); font-size: 12px; line-height: 1.45; }

/* Segmented tabs */
.ws-segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 4px; border: 1px solid var(--ws-line); border-radius: 12px; background: #FFFFFF; }
.ws-segmented a { padding: 7px 14px; border-radius: 9px; color: var(--ws-soft); font-size: 13px; font-weight: 600; text-decoration: none; }
.ws-segmented a:hover { background: var(--ws-tint); color: var(--ws-navy); }
.ws-segmented a.is-active { background: var(--ws-navy); color: #FFFFFF; }
.ws-empty-card { text-align: center; }
.ws-empty-card .ws-empty { padding-top: 8px; }
.ws-pill-live { background: #FEE2E2; color: #B91C1C; animation: ws-pulse 1.6s ease-in-out infinite; }
@keyframes ws-pulse { 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .ws-pill-live { animation: none; } }

/* Choice cards (radio) */
.ws-choice { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.ws-choice legend { width: 100%; margin-bottom: 8px; }
.ws-choice-card { position: relative; flex: 1 1 160px; margin: 0 !important; cursor: pointer; }
.ws-choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.ws-choice-card span { display: block; padding: 12px 14px; border: 1.5px solid var(--ws-border); border-radius: 12px; background: #FFFFFF; color: var(--ws-navy); font-weight: 600; text-align: center; transition: border-color 0.15s, background 0.15s; }
.ws-choice-card input:checked + span { border-color: var(--ws-primary); background: var(--ws-tint); box-shadow: 0 0 0 1px var(--ws-primary); }
.ws-choice-card input:focus-visible + span { outline: 2px solid var(--ws-vibrant); outline-offset: 2px; }

/* Checkbox lists */
.ws-form fieldset { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.ws-checks-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 18px; }
.ws-checks-columns legend { grid-column: 1 / -1; }
.ws-check-strong { grid-column: 1 / -1; font-weight: 700 !important; }
.ws-check-group { grid-column: 1 / -1; margin: 8px 0 4px; color: var(--ws-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }

/* Tables that become cards on small screens */
.ws-table-cards { width: 100%; }
.ws-post-row { display: flex; align-items: center; gap: 12px; }
.ws-thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.ws-search { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-search input[type="search"] { min-width: 0; flex: 1 1 180px; min-height: 36px; padding: 6px 10px; border: 1px solid #C9DBEA; border-radius: 9px; }

/* Blog editor */
.ws-form .ws-title-input { min-height: 48px; font-size: 20px; font-weight: 700; }
.ws-editor { margin: 0 0 14px; }
.ws-editor .wp-editor-container { border-color: #C9DBEA; }
.ws-editor .wp-editor-wrap { max-width: 100%; }

/* Team */
.ws-people { margin: 0; padding: 0; list-style: none; }
.ws-people > li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ws-line); }
.ws-people > li:last-child { border-bottom: 0; }
.ws-avatar { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--ws-primary), var(--ws-vibrant)); color: #FFFFFF; font-weight: 700; }
.ws-people-main { flex: 1; min-width: 0; }
.ws-people-main strong { color: var(--ws-navy); }
.ws-people-main .ws-sub { word-break: break-word; }
.ws-perm-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ws-perm { padding: 2px 9px; border-radius: 999px; background: var(--ws-tint); color: var(--ws-primary); font-size: 11px; font-weight: 700; }
.ws-perm-all { background: #DCFCE7; color: #166534; }
.ws-perm-none { background: #F1F5F9; color: var(--ws-soft); }
.ws-form .ws-perm-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ws-perm-fields legend { grid-column: 1 / -1; }
.ws-form .ws-perm-all-toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ws-navy); color: #FFFFFF; }
.ws-form .ws-perm-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--ws-line); border-radius: 10px; background: #FFFFFF; cursor: pointer; }
.ws-perm-option:has(input:checked) { border-color: var(--ws-primary); background: var(--ws-tint); }
.ws-form .ws-perm-option input { margin: 2px 0 0; }
.ws-perm-option strong { display: block; color: var(--ws-navy); font-size: 13px; }
.ws-perm-option small { display: block; color: var(--ws-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }

/* Bilingual fields (English | Hindi) */
.ws-bi-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.ws-bi { margin: 0 0 12px; }
.ws-bi.ws-wide { grid-column: 1 / -1; }
.ws-bi-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ws-form .ws-bi-pair [lang="hi"], .ws-form .ws-row-bi [lang="hi"] { border-style: dashed; background: #FBFDFF; }
.ws-row-bi textarea + textarea, .ws-row-bi input + input { margin-top: 6px; }
.ws-row-media { align-self: end; }

/* Email screen: who gets which notification */
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-chips .ws-chip { margin: 0; padding: 4px 10px; background: var(--ws-tint); color: var(--ws-primary); font-size: 12px; }
.ws-chips .ws-chip:hover { background: #E0F2FE; color: var(--ws-navy); }
.ws-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--ws-tint); }
.ws-legend dt { color: var(--ws-navy); font-size: 12px; font-weight: 700; }
.ws-legend dd { margin: 0; color: var(--ws-muted); font-size: 12px; }
.ws-recipients .ws-row.ws-recipient { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: #FFFFFF; }
.ws-form .ws-recipient-email { display: flex; flex: 1 1 calc(100% - 48px); order: -2; margin: 0 0 2px; }
.ws-recipient-email input { flex: 1; }
.ws-form .ws-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border: 1px solid var(--ws-line); border-radius: 999px; background: var(--ws-tint); color: var(--ws-soft); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; user-select: none; }
.ws-form .ws-toggle input { margin: 0; }
.ws-form .ws-toggle:has(input:checked) { border-color: var(--ws-primary); background: #E0F2FE; color: var(--ws-navy); }
.ws-form .ws-recipient-all { background: #FFFFFF; }
.ws-form .ws-recipient-all:has(input:checked) { border-color: var(--ws-navy); background: var(--ws-navy); color: #FFFFFF; }
.ws-recipient .ws-remove-row { order: -1; margin-left: auto; padding: 4px 8px; font-size: 15px; }
.ws-mail-form .ws-card { scroll-margin-top: 90px; }

@media (max-width: 782px) {
	.ws-bi-list, .ws-bi-pair { grid-template-columns: 1fr; }
	.ws-table-cards thead { display: none; }
	.ws-table-cards, .ws-table-cards tbody, .ws-table-cards tr, .ws-table-cards td { display: block; width: 100%; }
	.ws-table-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--ws-line); }
	.ws-crm .ws-table-cards td { padding: 3px 0; border: 0; }
	.ws-table-cards td[data-label]::before { display: block; color: var(--ws-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; content: attr(data-label); }
	.ws-table-cards td:first-child::before { display: none; }
	.ws-crm .ws-table-cards .ws-row-actions { padding-top: 8px; }
	.ws-col-actions { width: auto; }
	.ws-card { padding: 16px; }
	.ws-kpi strong { font-size: 26px; }
	.ws-card-head { flex-wrap: wrap; }
}
