/* ============================================================
   Sudarshan Chakra — Digital Growth Workspace
   Palette: deep royal purple, electric violet, neon magenta,
   electric blue and subtle golden yellow.
   ============================================================ */

:root {
	--bg: #f6f3fb;
	--surface: #ffffff;
	--surface-2: #faf7ff;
	--ink: #180a2e;
	--ink-2: #3c2b55;
	--muted: #6f6484;
	--faint: #9a90ad;
	--line: #e9e2f4;
	--line-strong: #d9cfeb;

	--primary: #7200d8;
	--primary-600: #5b00ae;
	--primary-100: #f0e4fd;
	--primary-050: #f8f2ff;

	--green: #0f9d76;
	--green-bg: #e6f7f1;
	--amber: #9a6b00;
	--amber-bg: #fff5d6;
	--orange: #c2410c;
	--orange-bg: #ffedd5;
	--red: #d61f45;
	--red-bg: #ffe4ea;
	--sky: #174bff;
	--sky-bg: #e6ecff;
	--violet: #7200d8;
	--violet-bg: #f0e4fd;
	--slate: #55496b;
	--slate-bg: #f0ecf6;

	--royal: #24005a;
	--violet-hot: #7200d8;
	--magenta: #f000c8;
	--blue: #174bff;
	--gold: #ffd500;

	--sidebar: #1b0240;
	--sidebar-2: #26055c;

	--radius: 16px;
	--radius-sm: 10px;
	--radius-lg: 22px;

	--shadow-sm: 0 1px 2px rgba(36, 0, 90, 0.05);
	--shadow: 0 1px 3px rgba(36, 0, 90, 0.06), 0 18px 40px -26px rgba(36, 0, 90, 0.38);

	--font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
	--gradient: linear-gradient(120deg, #24005a 0%, #7200d8 46%, #f000c8 100%);
	--gradient-cool: linear-gradient(120deg, #24005a 0%, #174bff 100%);
	--gradient-warm: linear-gradient(120deg, #7200d8 0%, #f000c8 62%, #ffd500 140%);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover {
	color: var(--primary-600);
}

img, svg {
	display: inline-block;
	vertical-align: middle;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

::selection {
	background: #dcdcfb;
	color: #1e1b4b;
}

.icon {
	flex: 0 0 auto;
}

/* ------------------------------ Layout ------------------------------ */

.app-shell {
	display: flex;
	min-height: 100vh;
}

.app-main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.page {
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
	padding: 30px 36px 44px;
	flex: 1 0 auto;
}

.app-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 36px 26px;
	color: var(--faint);
	font-size: 12px;
	border-top: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.45);
}

/* ------------------------------ Sidebar ------------------------------ */

.sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex: 0 0 268px;
	flex-direction: column;
	width: 268px;
	height: 100vh;
	padding: 24px 18px 18px;
	overflow-y: auto;
	background:
		radial-gradient(120% 60% at 10% 0%, rgba(99, 102, 241, 0.28) 0%, rgba(11, 18, 32, 0) 55%),
		radial-gradient(100% 50% at 100% 100%, rgba(14, 165, 233, 0.16) 0%, rgba(11, 18, 32, 0) 60%),
		var(--sidebar);
	color: #cbd5e1;
	z-index: 40;
	scrollbar-width: thin;
	scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 4px 8px 22px;
	color: #fff;
}

.brand:hover {
	color: #fff;
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	color: #fff;
	background: linear-gradient(140deg, #818cf8 0%, #5b5bd6 55%, #0ea5e9 130%);
	box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand__mark .icon {
	width: 22px;
	height: 22px;
}

.brand__text {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.brand__text span {
	color: #a5b4fc;
}

.nav {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nav__label {
	margin: 18px 12px 7px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #64748b;
}

.nav__label:first-child {
	margin-top: 4px;
}

.nav__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 12px;
	border-radius: 10px;
	color: #a8b4c7;
	font-size: 13.5px;
	font-weight: 500;
	transition: background 0.16s ease, color 0.16s ease;
}

.nav__item .icon {
	width: 18px;
	height: 18px;
	color: #7c8aa0;
	transition: color 0.16s ease;
}

.nav__item:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #f1f5f9;
}

.nav__item:hover .icon {
	color: #c7d2fe;
}

.nav__item.is-active {
	background: linear-gradient(90deg, rgba(91, 91, 214, 0.32) 0%, rgba(91, 91, 214, 0.1) 100%);
	color: #fff;
	font-weight: 600;
	box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.18);
}

.nav__item.is-active::before {
	content: "";
	position: absolute;
	left: -18px;
	top: 9px;
	bottom: 9px;
	width: 3px;
	border-radius: 0 4px 4px 0;
	background: #818cf8;
}

.nav__item.is-active .icon {
	color: #c7d2fe;
}

.sidebar__foot {
	margin-top: auto;
	padding-top: 20px;
}

.sidebar__user {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.07);
	color: #e2e8f0;
	transition: background 0.16s ease;
}

.sidebar__user:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.sidebar__user-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	line-height: 1.3;
}

.sidebar__user-meta strong {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar__user-meta small {
	font-size: 11px;
	color: #7c8aa0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar__user > .icon {
	width: 16px;
	height: 16px;
	color: #64748b;
}

.sidebar__logout {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 6px;
	padding: 9px 12px;
	border-radius: 9px;
	color: #7c8aa0;
	font-size: 12.5px;
}

.sidebar__logout:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #fca5a5;
}

.sidebar__logout .icon {
	width: 16px;
	height: 16px;
}

.sidebar-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
	z-index: 35;
}

/* ------------------------------ Topbar ------------------------------ */

.topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 36px;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.topbar__heading {
	min-width: 0;
}

.topbar__eyebrow {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--faint);
}

.topbar__title {
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.25;
	color: var(--ink);
}

.topbar__subtitle {
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--muted);
}

.topbar__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.topbar__search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 250px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--surface);
	color: var(--faint);
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.topbar__search:focus-within {
	border-color: #b9b9f0;
	box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.12);
}

.topbar__search .icon {
	width: 16px;
	height: 16px;
}

.topbar__search input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 13px;
	color: var(--ink);
}

.topbar__search input::placeholder {
	color: var(--faint);
}

.topbar__burger {
	display: none;
}

.topbar__avatar {
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--line);
}

/* --------------------------- New menu --------------------------- */

.new-menu {
	position: relative;
}

.new-menu > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.new-menu > summary::-webkit-details-marker {
	display: none;
}

.new-menu > summary:focus-visible {
	outline: 2px solid var(--primary-600);
	outline-offset: 2px;
}

.new-menu > summary .icon:last-child {
	width: 13px;
	height: 13px;
	opacity: 0.8;
	transition: transform 0.16s ease;
}

.new-menu[open] > summary .icon:last-child {
	transform: rotate(180deg);
}

.new-menu__panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 40;
	display: grid;
	gap: 2px;
	min-width: 224px;
	max-width: calc(100vw - 28px);
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: var(--surface);
	box-shadow: 0 22px 46px -24px rgba(15, 23, 42, 0.42), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.new-menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 9px;
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.14s ease, color 0.14s ease;
}

.new-menu__item:hover,
.new-menu__item:focus-visible {
	background: var(--surface-2);
	color: var(--ink);
	outline: none;
}

.new-menu__icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--primary-050);
	color: var(--primary-600);
}

.new-menu__icon .icon {
	width: 15px;
	height: 15px;
}

/* ------------------------------ Avatars ------------------------------ */

.avatar {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--avatar, var(--primary));
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.avatar--sm {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	font-size: 11.5px;
}

.avatar--lg {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	font-size: 20px;
}

.avatar--xl {
	width: 76px;
	height: 76px;
	border-radius: 22px;
	font-size: 24px;
}

/* ------------------------------ Flash ------------------------------ */

.flash {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-bottom: 20px;
	padding: 13px 15px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: 13.5px;
	animation: flash-in 0.28s ease;
}

@keyframes flash-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.flash p {
	flex: 1;
}

.flash__icon {
	display: grid;
	place-items: center;
}

.flash__icon .icon {
	width: 18px;
	height: 18px;
}

.flash--success {
	background: #eaf8f2;
	border-color: #c6ecdf;
	color: #086a51;
}

.flash--error {
	background: #fdecec;
	border-color: #f8d3d3;
	color: #a11d1d;
}

.flash__close {
	display: grid;
	place-items: center;
	padding: 2px;
	border: 0;
	background: transparent;
	color: currentColor;
	opacity: 0.6;
}

.flash__close:hover {
	opacity: 1;
}

.flash__close .icon {
	width: 15px;
	height: 15px;
}

/* ------------------------------ Buttons ------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 15px;
	border: 1px solid transparent;
	border-radius: 11px;
	background: var(--surface);
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn .icon {
	width: 16px;
	height: 16px;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: linear-gradient(180deg, #6a6ae0 0%, #5656ce 100%);
	border-color: #4d4dc2;
	color: #fff;
	box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary:hover {
	background: linear-gradient(180deg, #6363db 0%, #4c4cc6 100%);
	color: #fff;
}

.btn--ghost {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-2);
	box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
	border-color: var(--line-strong);
	background: #fbfcff;
	color: var(--ink);
}

.btn--soft {
	background: var(--primary-050);
	border-color: #e0e0fb;
	color: var(--primary-600);
}

.btn--soft:hover {
	background: var(--primary-100);
	color: var(--primary-600);
}

.btn--danger {
	background: #fef2f2;
	border-color: #fbd5d5;
	color: #b91c1c;
}

.btn--danger:hover {
	background: #fee2e2;
	color: #991b1b;
}

.btn--sm {
	height: 32px;
	padding: 0 10px;
	border-radius: 9px;
	font-size: 12px;
	gap: 6px;
}

.btn--sm .icon {
	width: 14px;
	height: 14px;
}

.btn--block {
	width: 100%;
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--muted);
	transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.icon-btn:hover {
	background: var(--surface-2);
	color: var(--ink);
	border-color: var(--line-strong);
}

.icon-btn .icon {
	width: 17px;
	height: 17px;
}

.icon-btn--danger:hover {
	background: #fef2f2;
	border-color: #f8d3d3;
	color: #b91c1c;
}

.link-btn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--primary);
	font-size: 12.5px;
	font-weight: 600;
}

.link-btn:hover {
	text-decoration: underline;
}

/* ------------------------------ Cards & grids ------------------------------ */

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.card + .card {
	margin-top: 20px;
}

.card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px 0;
}

.card__title {
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.card__sub {
	margin-top: 3px;
	font-size: 12.5px;
	color: var(--muted);
}

.card__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.card__body {
	padding: 20px 22px;
}

.card__head + .card__body {
	padding-top: 16px;
}

.card__foot {
	padding: 14px 22px;
	border-top: 1px solid var(--line);
	background: #fbfcfe;
	border-radius: 0 0 var(--radius) var(--radius);
	font-size: 12.5px;
	color: var(--muted);
}

.grid {
	display: grid;
	gap: 20px;
}

.grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--main-side {
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.grid--side-main {
	grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
}

.section {
	margin-top: 26px;
}

.section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.section__title {
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -0.015em;
}

.section__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--primary);
}

.section__link .icon {
	width: 14px;
	height: 14px;
}

/* ------------------------------ Stats ------------------------------ */

.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.stat {
	position: relative;
	overflow: hidden;
	padding: 19px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.stat__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.stat__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
}

.stat__icon .icon {
	width: 20px;
	height: 20px;
}

.stat__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--muted);
}

.stat__value {
	margin-top: 4px;
	font-size: 27px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.15;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.stat__foot {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 9px;
	font-size: 11.5px;
	color: var(--muted);
}

.stat__delta {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 6px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.stat__delta .icon {
	width: 12px;
	height: 12px;
}

.stat__delta--up {
	color: var(--green);
	background: var(--green-bg);
}

.stat__delta--down {
	color: var(--red);
	background: var(--red-bg);
}

.stat__delta--flat {
	color: var(--slate);
	background: var(--slate-bg);
}

/* tones */

.tone-indigo { color: #4f46e5; background: #eef2ff; }
.tone-sky    { color: #0369a1; background: #e0f2fe; }
.tone-green  { color: #047857; background: #d9f6ec; }
.tone-amber  { color: #b45309; background: #fef3c7; }
.tone-red    { color: #b91c1c; background: #fee2e2; }
.tone-violet { color: #7c3aed; background: #f3e8ff; }
.tone-slate  { color: #475569; background: #eef2f7; }

/* ------------------------------ Pills & badges ------------------------------ */

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 650;
	line-height: 1.5;
	white-space: nowrap;
}

.pill__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.85;
}

.pill--green  { color: #087a5b; background: var(--green-bg); }
.pill--amber  { color: #a16207; background: var(--amber-bg); }
.pill--orange { color: #b5430c; background: var(--orange-bg); }
.pill--red    { color: #b91c1c; background: var(--red-bg); }
.pill--sky    { color: #0369a1; background: var(--sky-bg); }
.pill--violet { color: #7c3aed; background: var(--violet-bg); }
.pill--slate  { color: #475569; background: var(--slate-bg); }

.tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 7px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}

/* ------------------------------ Tables ------------------------------ */

.table-wrap {
	width: 100%;
	overflow-x: auto;
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.table th {
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	background: #fbfcfe;
	color: var(--faint);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	white-space: nowrap;
}

.table th:first-child {
	padding-left: 22px;
}

.table th:last-child {
	padding-right: 22px;
}

.table td {
	padding: 14px;
	border-bottom: 1px solid #eef1f7;
	vertical-align: middle;
	color: var(--ink-2);
}

.table td:first-child {
	padding-left: 22px;
}

.table td:last-child {
	padding-right: 22px;
}

.table tbody tr:last-child td {
	border-bottom: 0;
}

.table tbody tr {
	transition: background 0.12s ease;
}

.table tbody tr:hover {
	background: #fafbff;
}

.table .cell-strong {
	font-weight: 600;
	color: var(--ink);
}

.table .cell-muted {
	color: var(--muted);
	font-size: 12px;
}

.table .cell-actions {
	width: 1%;
	white-space: nowrap;
	text-align: right;
}

.table .cell-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.table .cell-tight {
	width: 1%;
	white-space: nowrap;
}

.row-actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.identity {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.identity__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.identity__text strong {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
}

.identity__text small {
	font-size: 11.5px;
	color: var(--muted);
}

.identity a {
	color: inherit;
}

.identity a:hover strong {
	color: var(--primary);
}

.avatar--xs {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	font-size: 10px;
}

/* ------------------------------ Toolbar & filters ------------------------------ */

.toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.toolbar__filters {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 0;
	min-width: 0;
	flex-wrap: wrap;
}

.toolbar__search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 1 260px;
}

.toolbar__filters > .select {
	width: auto;
	min-width: 150px;
	max-width: 210px;
}

.toolbar__search .icon {
	position: absolute;
	left: 12px;
	width: 16px;
	height: 16px;
	color: var(--faint);
	pointer-events: none;
}

.toolbar__search .input {
	width: 100%;
	padding-left: 36px;
}

.toolbar__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-size: 12.5px;
}

/* Tasks page: filters on the first row, dates + actions + count on the next. */

.toolbar--compact {
	gap: 10px 14px;
}

.toolbar--compact .toolbar__filters {
	flex: 1 1 100%;
}

.toolbar--compact .toolbar__filters > .select {
	flex: 0 1 auto;
	min-width: 0;
}

.toolbar--compact .toolbar__secondary {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 100%;
	flex-wrap: wrap;
}

.toolbar--compact .toolbar__meta {
	margin-left: auto;
}

.toolbar__dates {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.toolbar__dates .input {
	flex: 0 0 auto;
	width: 158px;
}

.toolbar__dates-sep {
	font-size: 12px;
	color: var(--faint);
}

@media (max-width: 720px) {
	.toolbar__dates {
		flex: 1 1 100%;
		flex-wrap: wrap;
	}

	.toolbar__dates .input {
		flex: 1 1 100%;
		width: 100%;
	}

	.toolbar__dates-sep {
		display: none;
	}
}

/* Keep all six filters on a single row on laptop-width screens. */
@media (min-width: 901px) and (max-width: 1400px) {
	.toolbar--compact .toolbar__search {
		flex: 0 1 240px;
	}

	.toolbar--compact .toolbar__filters > .select {
		max-width: 130px;
	}
}

.filter-select {
	min-width: 140px;
}

.count-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line);
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
}

.segmented {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-2);
}

.segmented__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
	transition: background 0.12s ease, color 0.12s ease;
}

.segmented__item .icon {
	width: 14px;
	height: 14px;
}

.segmented__item:hover {
	color: var(--ink);
}

.segmented__item.is-active {
	background: var(--surface);
	color: var(--primary-600);
	box-shadow: 0 1px 2px rgba(36, 0, 90, 0.12);
}

.crm-toolbar .toolbar__meta {
	order: -1;
	width: 100%;
	justify-content: flex-end;
}

.crm-toolbar .toolbar__filters {
	flex: 1 1 100%;
}

@media (max-width: 720px) {
	.crm-toolbar .toolbar__meta {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.crm-toolbar .toolbar__meta .btn {
		margin-left: auto;
	}
}

.followup-card {
	overflow: hidden;
}

.followup-card .card__head {
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 16px;
	padding-bottom: 16px;
}

.followup-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-left: auto;
}

.followup-filters .input--date {
	flex: 0 0 auto;
	width: 148px;
}

.followup-filters .select {
	width: auto;
	min-width: 130px;
}

.followup-table th:first-child,
.followup-table td:first-child {
	padding-left: 22px;
}

.table-link {
	font-weight: 600;
	color: var(--ink);
}

.table-link:hover {
	color: var(--primary);
}

@media (max-width: 720px) {
	.followup-filters {
		width: 100%;
		margin-left: 0;
	}

	.followup-filters .input--date {
		flex: 1 1 100%;
		width: 100%;
	}
}

/* ------------------------------ Forms ------------------------------ */

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.form-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.field--full {
	grid-column: 1 / -1;
}

.field__label {
	font-size: 12px;
	font-weight: 650;
	color: var(--ink-2);
}

.field__label span {
	color: var(--red);
}

.field__hint {
	font-size: 11.5px;
	color: var(--faint);
}

.field__error {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--red);
}

.input,
.select,
.textarea {
	width: 100%;
	height: 42px;
	padding: 0 13px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font-size: 13px;
	outline: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
	height: auto;
	min-height: 100px;
	padding: 11px 13px;
	resize: vertical;
	line-height: 1.55;
}

.input[type="file"] {
	height: auto;
	min-height: 42px;
	padding: 8px 12px;
	line-height: 1.4;
	cursor: pointer;
}

.input[type="file"]::file-selector-button {
	margin: -1px 12px -1px -4px;
	padding: 7px 13px;
	border: 0;
	border-radius: 7px;
	background: var(--surface-2);
	color: var(--ink-2);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.input[type="file"]::file-selector-button:hover {
	background: #e9e9fb;
}

.input[type="file"]::-webkit-file-upload-button {
	margin-right: 12px;
	padding: 7px 13px;
	border: 0;
	border-radius: 7px;
	background: var(--surface-2);
	color: var(--ink-2);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.select {
	appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.input:focus,
.select:focus,
.textarea:focus {
	border-color: #a5a5ee;
	box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.12);
}

.input::placeholder,
.textarea::placeholder {
	color: #a8b2c2;
}

.input[disabled],
.select[disabled],
.textarea[disabled] {
	background: var(--surface-2);
	color: var(--muted);
	cursor: not-allowed;
}

.input--error,
.select--error,
.textarea--error {
	border-color: #f3a9a9;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.input-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.input-group__prefix {
	display: grid;
	place-items: center;
	height: 42px;
	min-width: 42px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}

.check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	color: var(--ink-2);
	cursor: pointer;
}

.check input {
	width: 16px;
	height: 16px;
	accent-color: var(--primary);
}

.card__head .check {
	white-space: nowrap;
}

.form-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.form-actions__hint {
	margin-right: auto;
	font-size: 12px;
	color: var(--faint);
}

.form-card {
	max-width: 880px;
}

.form-section-title {
	grid-column: 1 / -1;
	margin-top: 6px;
	padding-top: 18px;
	border-top: 1px dashed var(--line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.form-section-title:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* ------------------------------ Page header ------------------------------ */

.page-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.page-head__lead {
	font-size: 13px;
	color: var(--muted);
	max-width: 620px;
}

.page-head__actions {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
}

.back-link:hover {
	color: var(--primary);
}

.back-link .icon {
	width: 14px;
	height: 14px;
}

/* ------------------------------ Profile header ------------------------------ */

.profile-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 22px;
	flex-wrap: wrap;
	padding: 24px;
	background:
		radial-gradient(120% 180% at 0% 0%, rgba(91, 91, 214, 0.08) 0%, rgba(255, 255, 255, 0) 55%),
		var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.profile-head__main {
	display: flex;
	align-items: flex-start;
	gap: 17px;
	min-width: 0;
}

.profile-head__info {
	min-width: 0;
}

.profile-head__name {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.25;
}

.profile-head__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	margin-top: 5px;
	color: var(--muted);
	font-size: 12.5px;
}

.profile-head__meta .dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--faint);
}

.profile-head__actions {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}

.profile-stats {
	display: flex;
	align-items: stretch;
	gap: 28px;
	flex-wrap: wrap;
	margin-top: 18px;
	padding-top: 17px;
	border-top: 1px solid var(--line);
	width: 100%;
}

.profile-stat {
	min-width: 110px;
}

.profile-stat span {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--faint);
}

.profile-stat strong {
	display: block;
	margin-top: 2px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.contact-row {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--muted);
	font-size: 12.5px;
}

.contact-row .icon {
	width: 14px;
	height: 14px;
	color: var(--faint);
}

.detail-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 24px;
}

.detail-list__item > span {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.detail-list__item strong,
.detail-list__item p {
	display: block;
	margin-top: 3px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink-2);
	word-break: break-word;
}

/* ------------------------------ Charts ------------------------------ */

.chart-card__body {
	padding-top: 10px;
}

.bar-chart {
	width: 100%;
}

.chart-legend {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
	font-size: 11.5px;
	color: var(--muted);
}

.chart-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.chart-legend__item i {
	width: 8px;
	height: 8px;
	border-radius: 3px;
}

.bar-chart__plot {
	position: relative;
	height: 230px;
	padding-top: 8px;
}

.bar-chart__grid {
	position: absolute;
	inset: 8px 0 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bar-chart__grid span {
	border-top: 1px dashed #e9edf5;
}

.bar-chart__groups {
	position: absolute;
	inset: 0 0 0 0;
	display: flex;
	align-items: stretch;
	gap: 6px;
}

.bar-group {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	padding-bottom: 0;
}

.bar-group__bars {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
	width: 100%;
	height: calc(100% - 30px);
}

.bar {
	position: relative;
	width: 34%;
	max-width: 30px;
	min-height: 3px;
	border-radius: 6px 6px 3px 3px;
	background: linear-gradient(180deg, var(--bar-color) 0%, color-mix(in srgb, var(--bar-color) 78%, white) 100%);
	background: var(--bar-color);
	opacity: 0.92;
	transition: opacity 0.16s ease, transform 0.16s ease;
	transform-origin: bottom;
}

.bar:hover {
	opacity: 1;
	transform: scaleY(1.015);
}

.bar__tip {
	position: absolute;
	bottom: calc(100% + 7px);
	left: 50%;
	transform: translateX(-50%) translateY(3px);
	padding: 4px 8px;
	border-radius: 7px;
	background: #0f172a;
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.16s ease, transform 0.16s ease;
	z-index: 2;
}

.bar:hover .bar__tip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.bar-group__label {
	margin-top: 10px;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--faint);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bar-group:first-child .bar-group__label {
	color: var(--ink-2);
}

.donut {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.donut__ring {
	position: relative;
	display: grid;
	place-items: center;
	width: 156px;
	height: 156px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.donut__ring::after {
	content: "";
	position: absolute;
	inset: 24px;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03);
}

.donut__center {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.2;
}

.donut__center strong {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.donut__center span {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--faint);
}

.donut__legend {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 9px;
	min-width: 170px;
}

.donut__legend li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--ink-2);
}

.donut__dot {
	width: 8px;
	height: 8px;
	border-radius: 3px;
	flex: 0 0 auto;
}

.donut__label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.donut__value {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.donut__empty {
	color: var(--faint);
	font-size: 12px;
}

/* ------------------------------ Progress ------------------------------ */

.progress {
	position: relative;
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: #eef1f7;
	overflow: hidden;
	min-width: 70px;
}

.progress__bar {
	height: 100%;
	border-radius: inherit;
	background: var(--primary);
}

.progress__bar--green { background: var(--green); }
.progress__bar--amber { background: #d97706; }
.progress__bar--red   { background: var(--red); }

.progress-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.progress-row span {
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	min-width: 34px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------ Empty state ------------------------------ */

.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 46px 24px;
	text-align: center;
}

.empty__icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 14px;
	border-radius: 16px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	color: var(--faint);
}

.empty__icon .icon {
	width: 23px;
	height: 23px;
}

.empty h3 {
	font-size: 14.5px;
	font-weight: 650;
}

.empty p {
	max-width: 340px;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--muted);
}

.empty .btn {
	margin-top: 16px;
}

/* ------------------------------ Pagination ------------------------------ */

.pagination {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	padding: 15px 22px;
	border-top: 1px solid var(--line);
}

.page-link {
	display: inline-grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	padding: 0 9px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.page-link:hover {
	background: var(--surface-2);
	color: var(--ink);
	border-color: var(--line);
}

.page-link--current {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.page-link--current:hover {
	background: var(--primary);
	color: #fff;
}

.page-link--nav {
	padding: 0 12px;
}

/* ------------------------------ Feed & activity ------------------------------ */

.feed {
	display: flex;
	flex-direction: column;
}

.feed__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 11px 0;
}

.feed__item + .feed__item {
	border-top: 1px solid #f0f3f9;
}

.feed__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	color: var(--muted);
}

.feed__icon .icon {
	width: 15px;
	height: 15px;
}

.feed__body {
	min-width: 0;
	flex: 1;
}

.feed__text {
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.5;
}

.feed__text strong {
	font-weight: 600;
	color: var(--ink);
}

.feed__time {
	margin-top: 2px;
	font-size: 11px;
	color: var(--faint);
}

.activity-list .feed__item {
	padding: 14px 0;
}

.activity-user {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 3px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink);
}

/* ------------------------------ Tasks ------------------------------ */

.task-list {
	display: flex;
	flex-direction: column;
}

.task-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
}

.task-row + .task-row {
	border-top: 1px solid #f0f3f9;
}

.task-form {
	margin: 0;
	padding-top: 2px;
}

.task-check {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 1.5px solid var(--line-strong);
	border-radius: 6px;
	background: var(--surface);
	color: transparent;
	transition: all 0.15s ease;
}

.task-check:hover {
	border-color: var(--primary);
	background: var(--primary-050);
}

.task-check .icon {
	width: 12px;
	height: 12px;
}

.task-check--done {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.task-row__body {
	flex: 1;
	min-width: 0;
}

.task-row__title {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.4;
}

.task-row__title--done {
	color: var(--faint);
	text-decoration: line-through;
}

.task-row__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	margin-top: 4px;
	font-size: 11px;
	color: var(--faint);
}

.task-row__meta strong {
	font-weight: 600;
	color: var(--muted);
}

.priority {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.priority::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}

.priority--high   { color: #dc2626; }
.priority--medium { color: #d97706; }
.priority--low    { color: #64748b; }

.due {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.due .icon {
	width: 11px;
	height: 11px;
}

.due--overdue {
	color: var(--red);
	font-weight: 700;
}

/* ------------------------------ Invoice document ------------------------------ */

.invoice-doc {
	max-width: 900px;
	margin: 0 auto;
	padding: 46px 50px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	color: var(--ink-2);
}

.invoice-doc__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
	padding-bottom: 28px;
	border-bottom: 2px solid #eef1f7;
}

.invoice-doc__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.invoice-doc__brand-mark {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: linear-gradient(140deg, #818cf8, #5b5bd6 60%, #0ea5e9);
	color: #fff;
}

.invoice-doc__brand-mark .icon {
	width: 23px;
	height: 23px;
}

.invoice-doc__brand strong {
	display: block;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.invoice-doc__brand span {
	display: block;
	font-size: 11px;
	color: var(--muted);
}

.invoice-doc__label {
	text-align: right;
}

.invoice-doc__label h2 {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--ink);
	line-height: 1;
}

.invoice-doc__label p {
	margin-top: 7px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

.invoice-doc__info {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	padding: 26px 0;
}

.invoice-doc__info h4 {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 6px;
}

.invoice-doc__info p {
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.6;
}

.invoice-doc__info strong {
	font-weight: 600;
	color: var(--ink);
}

.invoice-doc__dates {
	display: grid;
	grid-template-columns: repeat(2, auto);
	gap: 8px 30px;
	font-size: 12.5px;
}

.invoice-doc__dates span {
	color: var(--faint);
}

.invoice-doc__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-top: 6px;
}

.invoice-doc__table th {
	padding: 10px 0;
	border-bottom: 1px solid var(--line-strong);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
	text-align: left;
}

.invoice-doc__table th:last-child,
.invoice-doc__table td:last-child {
	text-align: right;
}

.invoice-doc__table td {
	padding: 15px 0;
	border-bottom: 1px solid #eef1f7;
	vertical-align: top;
}

.invoice-doc__table td small {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	color: var(--faint);
}

.invoice-doc__totals {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

.invoice-doc__totals-inner {
	width: 290px;
	max-width: 100%;
}

.invoice-doc__totals-row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 6px 0;
	font-size: 13px;
	color: var(--muted);
}

.invoice-doc__totals-row strong {
	color: var(--ink-2);
	font-weight: 600;
}

.invoice-doc__totals-row--grand {
	margin-top: 8px;
	padding: 12px 0;
	border-top: 2px solid #eef1f7;
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}

.invoice-doc__totals-row--grand strong {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.invoice-doc__totals-row--paid strong {
	color: var(--green);
}

.invoice-doc__pay {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-top: 26px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.invoice-doc__pay h4 {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 6px;
}

.invoice-doc__pay p {
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.7;
}

.invoice-doc__qr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--faint);
	text-align: center;
}

.invoice-doc__qr svg {
	width: 108px;
	height: 108px;
	border-radius: 8px;
	background: #fff;
	padding: 4px;
	border: 1px solid var(--line);
}

.invoice-items__table td {
	padding: 6px 4px;
	vertical-align: middle;
}

.invoice-items__table th {
	padding: 8px 4px;
}

.invoice-items__table .input,
.invoice-items__table .select {
	min-width: 0;
}

.invoice-doc__notes {
	margin-top: 26px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.invoice-doc__notes h4 {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 5px;
}

.invoice-doc__notes p {
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.6;
}

.invoice-doc__foot {
	margin-top: 34px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 11px;
	color: var(--faint);
}

/* --------------------- Dashboard attendance & birthdays --------------------- */

.attendance-card {
	overflow: hidden;
	margin-bottom: 22px;
}

.attendance-card__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 18px;
}

.attendance-card__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.attendance-card__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--slate-bg);
	color: var(--slate);
}

.attendance-card__icon.is-live {
	background: var(--green-bg);
	color: var(--green);
}

.attendance-card__icon .icon {
	width: 18px;
	height: 18px;
}

.attendance-card__identity strong {
	display: block;
	font-size: 13.5px;
	font-weight: 650;
	color: var(--ink);
}

.attendance-card__identity small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}

.attendance-card__hint {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 7px 0 0;
	font-size: 11.5px;
	font-weight: 550;
	color: var(--primary);
}

.attendance-card__hint .icon {
	width: 13px;
	height: 13px;
}

.attendance-card__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.attendance-card__actions form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.birthday-strip .card__body {
	padding-top: 14px;
}

.birthday-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.birthday-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 190px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
}

.birthday-chip.is-today {
	border-color: #f0d28a;
	background: linear-gradient(180deg, #fffdf5 0%, #fff4d6 100%);
}

.birthday-chip__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--amber);
}

.birthday-chip__icon .icon {
	width: 15px;
	height: 15px;
}

.birthday-chip strong {
	display: block;
	font-size: 12.8px;
	font-weight: 650;
	color: var(--ink);
}

.birthday-chip small {
	display: block;
	margin-top: 1px;
	font-size: 11.5px;
	color: var(--muted);
}

.birthday-empty {
	display: grid;
	gap: 12px;
}

.birthday-empty__note {
	display: flex;
	align-items: center;
	gap: 12px;
}

.birthday-empty__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--amber-bg);
	color: var(--amber);
}

.birthday-empty__icon .icon {
	width: 18px;
	height: 18px;
}

.birthday-empty__note strong {
	display: block;
	font-size: 13px;
	font-weight: 650;
	color: var(--ink);
}

.birthday-empty__note p {
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--muted);
}

/* Next celebration, shown as a warm highlight instead of a plain list row. */

.birthday-spotlight {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	overflow: hidden;
	padding: 12px 14px 12px 16px;
	border: 1px solid #f0d28a;
	border-radius: 14px;
	background: linear-gradient(135deg, #fffdf6 0%, #fff4d6 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.birthday-spotlight::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: linear-gradient(180deg, #f6c945 0%, #e0a800 100%);
}

.birthday-spotlight .avatar {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(154, 107, 0, 0.16);
}

.birthday-spotlight__who {
	display: grid;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}

.birthday-spotlight__who strong {
	overflow: hidden;
	font-size: 13.5px;
	font-weight: 650;
	color: var(--ink);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.birthday-spotlight__who small {
	overflow: hidden;
	font-size: 11.8px;
	color: #8a6a1f;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.birthday-spotlight__when {
	display: grid;
	justify-items: end;
	gap: 3px;
	flex: 0 0 auto;
	text-align: right;
}

.birthday-spotlight__when > span:first-child {
	padding: 3px 9px;
	border: 1px solid #f0d28a;
	border-radius: 999px;
	background: #fff;
	font-size: 11.5px;
	font-weight: 650;
	color: #8a5a00;
	white-space: nowrap;
}

.birthday-spotlight__turns {
	font-size: 11px;
	color: #9a7a2e;
	white-space: nowrap;
}

.birthday-editor {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed var(--line);
}

.birthday-editor > summary {
	display: inline-flex;
	width: fit-content;
	cursor: pointer;
	list-style: none;
}

.birthday-editor > summary::-webkit-details-marker {
	display: none;
}

.birthday-editor[open] > summary {
	margin-bottom: 12px;
}

.birthday-editor__form {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) 88px 132px 112px auto;
	align-items: end;
	gap: 10px;
}

.birthday-editor__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 1px;
}

.task-filters {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-bottom: 14px;
}

.task-date-range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.task-date-range .input {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

.task-date-range__sep {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--faint);
}

.task-filter-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

@media (max-width: 900px) {
	.birthday-editor__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.birthday-editor__person,
	.birthday-editor__actions {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.task-date-range {
		flex-wrap: wrap;
	}

	.task-date-range .input {
		flex: 1 1 100%;
		width: 100%;
	}

	.task-date-range__sep {
		display: none;
	}

	.attendance-card__actions,
	.attendance-card__actions form {
		width: 100%;
	}

	.attendance-card__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

@media (max-width: 560px) {
	.birthday-editor__form {
		grid-template-columns: minmax(0, 1fr);
	}

	.birthday-chip {
		min-width: 0;
		width: 100%;
	}

	.birthday-spotlight {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.birthday-spotlight__when {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
		padding-top: 2px;
		text-align: left;
	}
}

/* ------------------------------ Auth pages ------------------------------ */

body.auth-body {
	background:
		radial-gradient(65% 60% at 18% 20%, rgba(56, 189, 248, 0.09) 0%, rgba(7, 13, 24, 0) 62%),
		radial-gradient(55% 55% at 82% 80%, rgba(99, 102, 241, 0.12) 0%, rgba(7, 13, 24, 0) 60%),
		#070d18;
	overflow-x: hidden;
}

.auth-chakra-canvas {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.auth {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	min-height: 100vh;
	background: transparent;
}

.auth__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	padding: 48px 54px;
	background:
		radial-gradient(90% 70% at 0% 0%, rgba(99, 102, 241, 0.42) 0%, rgba(11, 18, 32, 0) 62%),
		radial-gradient(80% 60% at 100% 100%, rgba(14, 165, 233, 0.22) 0%, rgba(11, 18, 32, 0) 58%),
		linear-gradient(160deg, rgba(8, 14, 27, 0.64) 0%, rgba(15, 24, 43, 0.5) 100%);
	color: #e2e8f0;
	backdrop-filter: blur(2px);
}

.auth__brand::before {
	content: "";
	position: absolute;
	top: -120px;
	right: -100px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	border: 1px solid rgba(148, 163, 184, 0.14);
	box-shadow: 0 0 0 70px rgba(148, 163, 184, 0.04), 0 0 0 140px rgba(148, 163, 184, 0.025);
	pointer-events: none;
}

.auth__brand-top {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.auth__brand-top .brand__mark {
	width: 44px;
	height: 44px;
}

.auth__headline {
	position: relative;
	max-width: 460px;
	margin-top: 52px;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.045em;
	color: #fff;
}

.auth__headline em {
	font-style: normal;
	background: linear-gradient(100deg, #a5b4fc 0%, #7dd3fc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.auth__copy {
	position: relative;
	max-width: 420px;
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.7;
	color: #94a3b8;
}

.auth__points {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 30px;
}

.auth__point {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 13px;
	color: #cbd5e1;
}

.auth__point .check-dot {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(16, 185, 129, 0.16);
	color: #34d399;
	flex: 0 0 auto;
}

.auth__point .check-dot .icon {
	width: 12px;
	height: 12px;
}

.auth__brand-foot {
	position: relative;
	font-size: 11.5px;
	color: #64748b;
}

.auth__panel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 32px;
	background: rgba(251, 252, 255, 0.84);
	backdrop-filter: blur(16px);
}

.auth__form {
	width: 100%;
	max-width: 380px;
}

.auth__form-head {
	margin-bottom: 26px;
}

.auth__form-head h1 {
	font-size: 27px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.2;
}

.auth__form-head p {
	margin-top: 6px;
	font-size: 13px;
	color: var(--muted);
}

.auth__form .field + .field {
	margin-top: 16px;
}

.auth__submit {
	width: 100%;
	height: 44px;
	margin-top: 22px;
}

.auth__demo {
	margin-top: 22px;
	padding: 13px 15px;
	border-radius: 11px;
	border: 1px dashed #d6d6f7;
	background: #f7f7ff;
	font-size: 11.5px;
	color: var(--muted);
	line-height: 1.65;
}

.auth__demo strong {
	color: var(--ink-2);
	font-weight: 600;
}

.auth__legal {
	margin-top: 26px;
	font-size: 11px;
	color: var(--faint);
	text-align: center;
}

/* ------------------------------ Error page ------------------------------ */

.error-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 30px;
	background:
		radial-gradient(70% 60% at 50% 0%, rgba(91, 91, 214, 0.12) 0%, rgba(244, 246, 251, 0) 70%),
		var(--bg);
}

.error-card {
	max-width: 460px;
	padding: 40px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.error-code {
	font-size: 54px;
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 1;
	color: var(--primary);
}

.error-card h1 {
	margin-top: 10px;
	font-size: 20px;
	letter-spacing: -0.03em;
}

.error-card p {
	margin-top: 7px;
	font-size: 13px;
	color: var(--muted);
}

.error-card .btn {
	margin-top: 22px;
}

/* ------------------------------ Misc components ------------------------------ */

.inline-form {
	display: inline-block;
	margin: 0;
}

.calc-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--line);
}

.calc-strip__item {
	padding: 12px 14px;
	background: var(--surface-2);
}

.calc-strip__item span {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.calc-strip__item strong {
	display: block;
	margin-top: 3px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.calc-strip__item--total {
	background: var(--primary-050);
}

.calc-strip__item--total strong {
	color: var(--primary-600);
}

/* ------------------------------ Utilities ------------------------------ */

.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.text-ink { color: var(--ink); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-right { text-align: right; }
.text-nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; }
.small { font-size: 12px; }
.strong { font-weight: 650; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

.meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--muted);
}

.divider {
	height: 1px;
	background: var(--line);
	margin: 18px 0;
	border: 0;
}

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 1280px) {
	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1120px) {
	.topbar__subtitle {
		display: none;
	}

	.topbar__search {
		width: 210px;
	}

	.grid--main-side,
	.grid--side-main {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.sidebar {
		position: fixed;
		left: 0;
		top: 0;
		transform: translateX(-104%);
		transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
		box-shadow: 24px 0 60px -20px rgba(2, 6, 23, 0.5);
	}

	body.sidebar-open .sidebar {
		transform: translateX(0);
	}

	body.sidebar-open .sidebar-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	.topbar {
		padding: 16px 22px;
		gap: 13px;
	}

	.topbar__burger {
		display: inline-grid;
	}

	.topbar__title {
		font-size: 20px;
	}

	.page {
		padding: 22px 22px 36px;
	}

	.app-footer {
		padding: 16px 22px 22px;
	}

	.grid--2,
	.grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.detail-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.profile-head {
		padding: 20px;
	}

	.auth {
		grid-template-columns: minmax(0, 1fr);
	}

	.auth__brand {
		display: none;
	}
}

@media (max-width: 720px) {
	.topbar__search {
		display: none;
	}

	.stats,
	.grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.topbar__new span {
		display: none;
	}

	.topbar__new {
		width: 40px;
		padding: 0;
	}

	.new-menu > summary .icon:last-child {
		display: none;
	}

	.toolbar__search .input {
		width: 100%;
	}

	.toolbar__search {
		flex: 1 1 100%;
	}

	.toolbar__filters > .select {
		max-width: none;
	}

	.toolbar__filters {
		width: 100%;
	}

	.toolbar__filters .filter-select {
		flex: 1;
		min-width: 120px;
	}

	.card__head,
	.card__body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.table th:first-child,
	.table td:first-child {
		padding-left: 16px;
	}

	.table th:last-child,
	.table td:last-child {
		padding-right: 16px;
	}

	.donut {
		justify-content: center;
	}

	.invoice-doc {
		padding: 28px 22px;
	}

	.invoice-doc__top {
		flex-direction: column;
	}

	.invoice-doc__label {
		text-align: left;
	}

	.page-head {
		flex-direction: column;
	}

	.profile-head__actions {
		width: 100%;
	}

	.app-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

@media (max-width: 480px) {
	.page {
		padding: 18px 14px 30px;
	}

	.topbar {
		padding: 14px 16px;
	}

	.topbar__eyebrow {
		display: none;
	}

	.auth__panel {
		padding: 30px 18px;
	}

	.profile-head__main {
		flex-direction: column;
	}

	.calc-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------ Print ------------------------------ */

@media print {
	body {
		background: #fff;
	}

	.sidebar,
	.topbar,
	.app-footer,
	.flash,
	.no-print,
	.sidebar-backdrop,
	.page-head,
	.back-link {
		display: none !important;
	}

	.page {
		padding: 0;
		max-width: none;
	}

	.invoice-doc {
		border: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 0;
		max-width: none;
	}

	.invoice-doc__table th {
		color: #555;
	}

	@page {
		margin: 18mm;
	}
}

/* ============================================================
   Expansion modules — CRM, renewals, recurring, reporting,
   time tracking, HR, WhatsApp and the public client portal.
   ============================================================ */

/* ------------------------------ Shared atoms ------------------------------ */

.text-amber  { color: var(--amber); }
.text-violet { color: var(--violet); }
.text-sky    { color: var(--sky); }

.cell-sub {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	color: var(--faint);
	line-height: 1.4;
}

.strong { font-weight: 650; }

.stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.small-value {
	font-size: 18px !important;
	letter-spacing: -0.02em;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 34px 0 16px;
}

.section-head__title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.section-head__sub {
	margin-top: 3px;
	font-size: 12.5px;
	color: var(--muted);
}

.section-head__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tiny-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--slate-bg);
	color: var(--slate);
	font-size: 10.5px;
	font-weight: 650;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.tiny-badge .icon {
	width: 11px;
	height: 11px;
}

.tiny-badge--amber { background: var(--amber-bg); color: #a16207; }
.tiny-badge--green { background: var(--green-bg); color: #087a5b; }
.tiny-badge--red   { background: var(--red-bg); color: #b91c1c; }
.tiny-badge--violet{ background: var(--violet-bg); color: #7c3aed; }
.tiny-badge--sky   { background: var(--sky-bg); color: #0369a1; }
.tiny-badge--slate { background: var(--slate-bg); color: var(--slate); }
.tiny-badge--indigo{ background: var(--violet-bg); color: #6d1fd4; }

.check-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-2);
	font-size: 12.5px;
	color: var(--ink-2);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.check-chip:hover {
	border-color: var(--line-strong);
	background: #fff;
}

.check-chip input {
	width: 15px;
	height: 15px;
	accent-color: var(--primary);
	margin: 0;
}

.check-chip span {
	line-height: 1.35;
}

/* [hidden] must beat component display rules (.field, .check-chip, ...) */
[hidden] {
	display: none !important;
}

.check-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.select--mini {
	height: 30px;
	padding: 0 26px 0 9px;
	font-size: 11.5px;
	border-radius: 8px;
}

.field--inline {
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.field--inline .field__label {
	white-space: nowrap;
	margin: 0;
}

.field--inline .input {
	width: 148px;
}

.asset-icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	flex: 0 0 auto;
}

.asset-icon .icon {
	width: 15px;
	height: 15px;
}

.is-muted-row td {
	background: var(--surface-2);
	color: var(--faint);
}

/* ------------------------------ Alerts ------------------------------ */

.alert-banner {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--surface-2);
}

.alert-banner__icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	flex: 0 0 auto;
	background: #fff;
	color: var(--slate);
	border: 1px solid var(--line);
}

.alert-banner__icon .icon {
	width: 15px;
	height: 15px;
}

.alert-banner__body {
	min-width: 0;
	flex: 1;
}

.alert-banner__body strong {
	font-size: 13px;
	font-weight: 650;
}

.alert-banner__body p {
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
	line-height: 1.55;
}

.alert-banner__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.alert-banner--amber {
	background: #fffbeb;
	border-color: #fde68a;
}

.alert-banner--amber .alert-banner__icon { color: var(--amber); background: #fff; border-color: #fde68a; }

.alert-banner--red {
	background: #fef2f2;
	border-color: #fecaca;
}

.alert-banner--red .alert-banner__icon { color: var(--red); background: #fff; border-color: #fecaca; }

.alert-banner--green {
	background: #ecfdf5;
	border-color: #a7f3d0;
}

.alert-banner--green .alert-banner__icon { color: var(--green); background: #fff; border-color: #a7f3d0; }

/* ------------------------------ Pipeline (CRM) ------------------------------ */

.pipeline-bars {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.pipeline-bar {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 10px;
	font-size: 12px;
}

.pipeline-bar__label {
	color: var(--muted);
	font-weight: 600;
}

.pipeline-bar__track {
	height: 7px;
	border-radius: 99px;
	background: var(--slate-bg);
	overflow: hidden;
}

.pipeline-bar__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--primary);
	transition: width 0.3s ease;
}

.pipeline-bar__fill--new        { background: #38bdf8; }
.pipeline-bar__fill--contacted  { background: #0ea5e9; }
.pipeline-bar__fill--qualified  { background: #8b5cf6; }
.pipeline-bar__fill--proposal   { background: #f59e0b; }
.pipeline-bar__fill--won        { background: #10b981; }
.pipeline-bar__fill--lost       { background: #f43f5e; }

.pipeline-bar__value {
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-weight: 650;
	color: var(--ink-2);
}

.mini-list {
	display: flex;
	flex-direction: column;
}

.mini-list__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	color: inherit;
}

.mini-list__row:last-child {
	border-bottom: 0;
}

a.mini-list__row:hover strong {
	color: var(--primary-600);
}

.mini-list__body {
	min-width: 0;
}

.mini-list__body strong {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mini-list__body small {
	display: block;
	margin-top: 1px;
	font-size: 11px;
	color: var(--faint);
}

.kanban {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(210px, 1fr);
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 6px;
	align-items: start;
}

.kanban__col {
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 14px;
	min-width: 0;
}

.kanban__head {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 11px 13px;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
}

.kanban__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--faint);
	flex: 0 0 auto;
}

.kanban__col--new .kanban__dot        { background: #38bdf8; }
.kanban__col--contacted .kanban__dot   { background: #0ea5e9; }
.kanban__col--qualified .kanban__dot   { background: #8b5cf6; }
.kanban__col--proposal .kanban__dot    { background: #f59e0b; }
.kanban__col--won .kanban__dot         { background: #10b981; }
.kanban__col--lost .kanban__dot        { background: #f43f5e; }

.kanban__count {
	display: inline-grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 10.5px;
	font-weight: 700;
	color: var(--ink-2);
}

.kanban__value {
	margin-left: auto;
	font-size: 10.5px;
	font-weight: 650;
	color: var(--faint);
	font-variant-numeric: tabular-nums;
}

.kanban__body {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 10px;
}

.kanban__empty {
	padding: 14px 4px;
	text-align: center;
	font-size: 11.5px;
	color: var(--faint);
}

.lead-card {
	padding: 11px 12px;
	border-radius: 11px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.lead-card:hover {
	border-color: var(--line-strong);
	transform: translateY(-1px);
}

.lead-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.lead-card__title {
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink);
	line-height: 1.35;
}

.lead-card__title:hover {
	color: var(--primary-600);
}

.lead-card__value {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--ink-2);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.lead-card__contact {
	margin-top: 5px;
	font-size: 11px;
	color: var(--muted);
	word-break: break-word;
}

.lead-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 11px;
}

.lead-card__follow {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--slate-bg);
	color: var(--slate);
	font-size: 10.5px;
	font-weight: 600;
}

.lead-card__follow.is-late {
	background: var(--red-bg);
	color: #b91c1c;
}

.lead-card__foot {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 9px;
	padding-top: 9px;
	border-top: 1px dashed var(--line);
}

.lead-card__foot .select {
	flex: 1;
	min-width: 0;
}

.timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-left: 20px;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 4px;
	bottom: 4px;
	width: 1px;
	background: var(--line);
}

.timeline__item {
	position: relative;
}

.timeline__dot {
	position: absolute;
	left: -19px;
	top: 4px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--primary);
}

.timeline__body {
	min-width: 0;
}

.timeline__text {
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.6;
}

.timeline__meta {
	margin-top: 3px;
	font-size: 11px;
	color: var(--faint);
}

.note-form__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

/* ------------------------------ Renewals ------------------------------ */

.renewal-slabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
	padding: 0 20px 20px;
}

.renewal-slab {
	display: flex;
	flex-direction: column;
	grid-column: span 2;
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(24, 10, 46, 0.03);
}

.renewal-slab:nth-child(4),
.renewal-slab:nth-child(5) {
	grid-column: span 3;
}

.renewal-slab--danger {
	border-color: rgba(214, 31, 69, 0.24);
	background: linear-gradient(180deg, rgba(214, 31, 69, 0.055), var(--surface) 46%);
}

.renewal-slab--warm {
	border-color: rgba(154, 107, 0, 0.2);
	background: linear-gradient(180deg, rgba(154, 107, 0, 0.05), var(--surface) 46%);
}

.renewal-slab--empty {
	border-style: dashed;
	background: var(--surface-2);
}

.renewal-slab__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.renewal-slab__label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.065em;
	text-transform: uppercase;
	color: var(--faint);
}

.renewal-slab--danger .renewal-slab__label {
	color: var(--red);
}

.renewal-slab--warm .renewal-slab__label {
	color: var(--amber);
}

.renewal-slab__count {
	display: inline-grid;
	place-items: center;
	min-width: 27px;
	height: 24px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--ink-2);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.renewal-slab--danger .renewal-slab__count {
	border-color: rgba(214, 31, 69, 0.22);
	background: var(--red-bg);
	color: var(--red);
}

.renewal-slab--warm .renewal-slab__count {
	border-color: rgba(154, 107, 0, 0.2);
	background: var(--amber-bg);
	color: var(--amber);
}

.renewal-slab__value {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: -4px;
	font-size: 12px;
	color: var(--faint);
}

.renewal-slab__value strong {
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.renewal-slab__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.renewal-slab__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
}

.renewal-slab__list li:first-child {
	padding-top: 2px;
	border-top: 0;
}

.renewal-slab__asset,
.renewal-slab__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.renewal-slab__asset strong {
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-2);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.renewal-slab__asset small {
	overflow: hidden;
	font-size: 11px;
	color: var(--faint);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.renewal-slab__meta {
	flex: 0 0 auto;
	align-items: flex-end;
	text-align: right;
}

.renewal-slab__meta strong {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-2);
}

.renewal-slab__meta small {
	font-size: 10.5px;
	color: var(--faint);
	white-space: nowrap;
}

.renewal-slab__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex: 1;
	min-height: 74px;
	margin-top: 2px;
	border: 1px dashed var(--line);
	border-radius: 11px;
	background: var(--surface);
	color: var(--faint);
	font-size: 11.5px;
}

.renewal-slab__empty .icon {
	width: 14px;
	height: 14px;
}

.renewal-slab__foot {
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid var(--line);
}

.renewal-slab__foot .inline-form {
	display: block;
}

.renewal-slab__foot .btn {
	width: 100%;
	justify-content: center;
}

@media (max-width: 1180px) {
	.renewal-slabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.renewal-slab,
	.renewal-slab:nth-child(4),
	.renewal-slab:nth-child(5) {
		grid-column: auto;
	}

	.renewal-slab--empty {
		grid-column: 1 / -1;
	}
}

@media (max-width: 700px) {
	.renewal-slabs {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 16px 16px;
	}

	.renewal-slab {
		padding: 16px;
	}
}

.renewal-strip__head {
	padding: 17px 20px 0;
}

.renewal-strip__body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1px;
	margin-top: 14px;
	background: var(--line);
	border-top: 1px solid var(--line);
}

.renewal-type {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: var(--surface);
}

.renewal-type__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	flex: 0 0 auto;
}

.renewal-type__icon .icon {
	width: 15px;
	height: 15px;
}

.renewal-type__body {
	min-width: 0;
	flex: 1;
}

.renewal-type__body strong {
	display: block;
	font-size: 12.5px;
	font-weight: 650;
}

.renewal-type__body small {
	display: block;
	font-size: 10.5px;
	color: var(--faint);
}

.renewal-type__value {
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-2);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* Small inline summary used on the dashboard */
.renewal-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 10px;
}

.card.renewal-strip {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.card.renewal-strip .renewal-strip__body {
	margin-top: 0;
}

.renewal-strip__item {
	padding: 9px 11px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-2);
}

.renewal-strip__label {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.renewal-strip__item strong {
	display: block;
	margin-top: 2px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.card.renewal-strip .renewal-strip__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	padding: 10px 20px;
}

.card.renewal-strip .renewal-strip__item:last-child {
	border-bottom: 0;
}

/* ------------------------------ Delivery workflow ------------------------------ */

.delivery-steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.delivery-step {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}

.delivery-step__dot {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	flex: 0 0 auto;
	background: var(--slate-bg);
	color: var(--slate);
	font-size: 11px;
	font-weight: 700;
}

.delivery-step.is-done .delivery-step__dot {
	background: var(--green-bg);
	color: #087a5b;
}

.delivery-step strong {
	display: block;
	font-size: 12.5px;
	font-weight: 650;
}

.delivery-step small {
	display: block;
	margin-top: 1px;
	font-size: 11.5px;
	color: var(--faint);
	line-height: 1.45;
}

/* ------------------------------ Share box & messages ------------------------------ */

.share-box {
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--surface-2);
}

.share-box__label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 7px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.share-box__label .icon {
	width: 12px;
	height: 12px;
}

.share-box__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.share-box__row .input {
	flex: 1;
	min-width: 0;
}

.message-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.message-item {
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-2);
}

.message-item__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.message-item__body {
	margin-top: 6px;
	font-size: 12px;
	color: var(--ink-2);
	line-height: 1.5;
}

.message-item__meta {
	margin-top: 4px;
	font-size: 11px;
	color: var(--faint);
}

/* ------------------------------ Time tracking ------------------------------ */

.timer-card.is-running {
	border-color: #bfdbfe;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.07);
}

.timer-display {
	font-family: var(--mono);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--primary-600);
	line-height: 1;
}

.timer-display--idle {
	color: var(--faint);
}

.timer-running {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.timer-running__info {
	min-width: 0;
}

.timer-running__info strong {
	font-size: 14px;
	font-weight: 650;
}

.timer-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.timer-form__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.timer-form__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.timer-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 18px;
	align-items: center;
}

.timer-summary__live {
	padding: 14px;
	border-radius: 12px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.timer-summary__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.timer-summary__stats > div {
	padding: 10px;
	border-radius: 10px;
	border: 1px solid var(--line);
}

.timer-summary__stats span {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.timer-summary__stats strong {
	display: block;
	margin-top: 2px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.week-strip__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 15px 18px;
	border-bottom: 1px solid var(--line);
}

.week-strip__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
}

.week-strip__days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
}

.week-day {
	padding: 11px 8px;
	background: var(--surface);
	text-align: center;
}

.week-day.is-today {
	background: var(--primary-050);
}

.week-day__label {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.week-day__value {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.week-day__bar {
	display: block;
	height: 4px;
	margin-top: 6px;
	border-radius: 99px;
	background: var(--slate-bg);
	overflow: hidden;
}

.week-day__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--primary);
}

.task-mini-list {
	display: flex;
	flex-direction: column;
}

.task-mini {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}

.task-mini:last-child {
	border-bottom: 0;
}

.task-mini__body {
	min-width: 0;
}

.task-mini__body strong {
	display: block;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.task-mini__body small {
	display: block;
	font-size: 11px;
	color: var(--faint);
}

.utilisation-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.utilisation {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.utilisation__body {
	min-width: 0;
	flex: 1;
}

.utilisation__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-size: 12px;
}

.utilisation__top strong {
	font-weight: 650;
}

.utilisation__top span {
	font-size: 11px;
	color: var(--faint);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.utilisation__bar {
	display: block;
	height: 6px;
	margin: 6px 0 4px;
	border-radius: 99px;
	background: var(--slate-bg);
	overflow: hidden;
}

.utilisation__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #6366f1, #0ea5e9);
}

/* ------------------------------ Reporting hub ------------------------------ */

.report-fields {
	grid-column: 1 / -1;
}

.metric-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.report-hero {
	overflow: hidden;
}

.report-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 18px 22px;
	background: linear-gradient(120deg, #0b1220 0%, #1e1b4b 100%);
	color: #e2e8f0;
}

.report-hero__brand {
	display: flex;
	align-items: center;
	gap: 11px;
}

.report-hero__mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.1);
	color: #c7d2fe;
	flex: 0 0 auto;
}

.report-hero__mark .icon {
	width: 18px;
	height: 18px;
}

.report-hero__eyebrow {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #94a3b8;
}

.report-hero__brand strong {
	font-size: 13.5px;
	font-weight: 650;
	color: #fff;
}

.report-hero__period {
	text-align: right;
}

.report-hero__period span {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #94a3b8;
}

.report-hero__period strong {
	font-size: 13px;
	color: #fff;
}

.report-hero__body {
	padding: 22px;
}

.report-hero__title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.035em;
}

.report-hero__client {
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--muted);
}

.report-hero__summary {
	margin-top: 12px;
	font-size: 13px;
	color: var(--ink-2);
	line-height: 1.65;
	max-width: 760px;
}

.report-hero__metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border-top: 1px solid var(--line);
}

.report-hero__metric {
	padding: 16px 20px;
	background: var(--surface);
}

.report-hero__metric span {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.report-hero__metric strong {
	display: block;
	margin-top: 3px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.highlight-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.highlight-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.55;
}

.highlight-list__mark {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex: 0 0 auto;
	background: var(--green-bg);
	color: #087a5b;
}

.highlight-list__mark .icon {
	width: 12px;
	height: 12px;
}

/* ------------------------------ HR ------------------------------ */

.people-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.person-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.person-card__top {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}

.person-card__identity {
	min-width: 0;
	flex: 1;
}

.person-card__name {
	display: block;
	font-size: 14px;
	font-weight: 650;
	color: var(--ink);
	letter-spacing: -0.02em;
}

.person-card__name:hover {
	color: var(--primary-600);
}

.person-card__role {
	display: block;
	margin-top: 1px;
	font-size: 11.5px;
	color: var(--faint);
}

.person-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.person-card__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 11px;
	border-radius: 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.person-card__stats span {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--faint);
}

.person-card__stats strong {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink-2);
}

.person-card__truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.person-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 11px;
	border-top: 1px solid var(--line);
}

.attendance-card .card__body {
	padding-top: 0;
}

.attendance-filter {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}

.attendance-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 13px 14px;
	border-radius: 11px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.attendance-status strong {
	font-size: 13px;
	font-weight: 650;
}

/* ------------------------------ Public portal ------------------------------ */

.portal-body {
	background:
		radial-gradient(80% 50% at 50% -10%, rgba(91, 91, 214, 0.1) 0%, rgba(244, 246, 251, 0) 60%),
		var(--bg);
	min-height: 100vh;
}

.portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	max-width: 940px;
	margin: 0 auto;
	padding: 22px 24px;
}

.portal-header__tag {
	font-size: 11.5px;
	color: var(--faint);
}

.portal-main {
	max-width: 940px;
	margin: 0 auto;
	padding: 8px 24px 40px;
}

.portal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	max-width: 940px;
	margin: 0 auto;
	padding: 20px 24px 34px;
	font-size: 11px;
	color: var(--faint);
	border-top: 1px solid var(--line);
}

.portal-footer__note {
	color: var(--faint);
}

.portal-toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.portal-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}

.portal-eyebrow {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--primary);
}

.portal-title {
	margin-top: 3px;
	font-size: 25px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.2;
}

.portal-subtitle {
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--muted);
}

.portal-card {
	max-width: 940px;
	margin-bottom: 18px;
}

.portal-note {
	margin-top: 6px;
	font-size: 11.5px;
	color: var(--faint);
	text-align: center;
}

.portal-body .invoice-doc {
	box-shadow: var(--shadow);
}

.portal-auth {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 26px;
	align-items: start;
	padding-top: 10px;
}

.portal-auth--narrow {
	grid-template-columns: minmax(0, 1fr);
	max-width: 520px;
	margin: 0 auto;
}

.portal-auth--narrow .portal-auth__intro {
	text-align: center;
}

.portal-auth__intro {
	padding: 18px 4px;
}

.portal-auth__intro .portal-title {
	font-size: 30px;
	max-width: 420px;
}

.portal-auth__points {
	display: grid;
	gap: 12px;
	margin-top: 22px;
	padding: 0;
	list-style: none;
}

.portal-auth__points li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: var(--ink-2);
}

.portal-auth__points svg {
	width: 17px;
	height: 17px;
	color: var(--primary);
	flex: none;
}

.portal-auth__forms {
	display: grid;
	gap: 16px;
}

.portal-auth__card {
	margin-bottom: 0;
}

.portal-auth__card .card__body .btn {
	margin-top: 4px;
}

.portal-birthday {
	border: 1px solid rgba(245, 180, 60, 0.35);
	background: linear-gradient(120deg, rgba(255, 248, 230, 0.95), rgba(255, 255, 255, 0.95));
}

.portal-body .stat__value {
	font-size: 22px;
}

@media (max-width: 860px) {
	.portal-auth {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-auth__intro .portal-title {
		font-size: 25px;
	}
}

@media (max-width: 900px) {
	.kanban {
		grid-auto-columns: 230px;
	}

	.timer-form__row,
	.metric-grid,
	.report-hero__metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.timer-summary {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.week-strip__days {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.people-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.timer-form__row,
	.metric-grid,
	.report-hero__metrics,
	.timer-summary__stats,
	.person-card__stats {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-header,
	.portal-main,
	.portal-footer {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ============================================================
   v3 — Sudarshan Chakra palette, navigation and new modules
   ============================================================ */

/* Branding */
.brand__logo {
	max-width: 188px;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.brand {
	padding: 6px 8px 22px;
}

.brand__mark {
	background: var(--gradient-warm);
	box-shadow: 0 10px 24px -8px rgba(240, 0, 200, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand__text span {
	color: #d8a7ff;
}

.sidebar {
	background:
		radial-gradient(120% 60% at 10% 0%, rgba(114, 0, 216, 0.55) 0%, rgba(27, 2, 64, 0) 58%),
		radial-gradient(90% 55% at 100% 100%, rgba(240, 0, 200, 0.22) 0%, rgba(27, 2, 64, 0) 62%),
		var(--sidebar);
	transition: width 0.22s ease, flex-basis 0.22s ease, padding 0.22s ease;
}

.nav__item.is-active {
	background: linear-gradient(90deg, rgba(240, 0, 200, 0.28) 0%, rgba(114, 0, 216, 0.16) 55%, rgba(23, 75, 255, 0.08) 100%);
	box-shadow: inset 0 0 0 1px rgba(240, 0, 200, 0.24);
}

.nav__item.is-active::before {
	background: var(--gradient-warm);
}

.nav__item.is-active .icon,
.nav__item:hover .icon {
	color: #f4b8ff;
}

.sidebar__company {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 4px 10px;
	padding: 9px 11px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #e9d9ff;
}

.sidebar__company small {
	display: block;
	font-size: 9.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a58bc8;
}

.sidebar__company strong {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.sidebar__company-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--magenta);
	box-shadow: 0 0 0 4px rgba(240, 0, 200, 0.22);
	flex: 0 0 auto;
}

/* Menu toggle works on every screen size */
.topbar__burger {
	display: inline-grid !important;
}

body.sidebar-collapsed .sidebar {
	flex-basis: 82px;
	width: 82px;
	padding-left: 12px;
	padding-right: 12px;
	overflow: visible;
}

body.sidebar-collapsed .brand {
	justify-content: center;
	padding-left: 0;
	padding-right: 0;
}

body.sidebar-collapsed .brand__text,
body.sidebar-collapsed .brand__logo {
	display: none;
}

body.sidebar-collapsed .nav__label,
body.sidebar-collapsed .nav__item span,
body.sidebar-collapsed .sidebar__company,
body.sidebar-collapsed .sidebar__user-meta,
body.sidebar-collapsed .sidebar__user > .icon,
body.sidebar-collapsed .sidebar__logout span {
	display: none;
}

body.sidebar-collapsed .nav__item,
body.sidebar-collapsed .sidebar__user,
body.sidebar-collapsed .sidebar__logout {
	justify-content: center;
	padding-left: 0;
	padding-right: 0;
}

body.sidebar-collapsed .nav__item.is-active::before {
	left: -12px;
}

body.sidebar-collapsed .sidebar__foot {
	padding-top: 12px;
}

body.sidebar-collapsed .sidebar__logout {
	margin-top: 6px;
}

/* Topbar company switcher */
.company-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px 0 6px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}

.company-switch__icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #fff;
	background: var(--gradient-cool);
}

.company-switch__icon .icon {
	width: 14px;
	height: 14px;
}

.company-switch select {
	max-width: 190px;
	padding: 8px 2px;
	border: 0;
	background: transparent;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	outline: none;
	appearance: none;
}

/* Primary buttons and links pick up the new gradient */
.btn--primary {
	background: var(--gradient);
	border-color: transparent;
	box-shadow: 0 10px 22px -12px rgba(114, 0, 216, 0.8);
}

.btn--primary:hover {
	background: linear-gradient(120deg, #1b0240 0%, #5b00ae 48%, #c400a5 100%);
}

.link-btn {
	color: var(--primary);
}

/* Selected navigation and tabs */
.tabs__link.is-active,
.chip.is-active {
	background: var(--gradient);
	color: #fff;
	border-color: transparent;
}

/* Page-level gradient hero */
.hero,
.report-hero,
.reporting-hero {
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(255, 213, 0, 0.12) 0%, rgba(36, 0, 90, 0) 45%),
		var(--gradient);
}

/* Stat icon tones */
.tone-violet { background: #f0e4fd; color: #7200d8; }
.tone-sky    { background: #e6ecff; color: #174bff; }
.tone-green  { background: #e6f7f1; color: #0f9d76; }
.tone-amber  { background: #fff5d6; color: #9a6b00; }
.tone-red    { background: #ffe4ea; color: #d61f45; }
.tone-slate  { background: #f0ecf6; color: #55496b; }
.tone-pink   { background: #ffe3f8; color: #c000a1; }

/* ============================ Companies ============================ */
.company-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
}

.company-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.company-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: var(--gradient);
	opacity: 0.9;
}

.company-card.is-active {
	border-color: rgba(114, 0, 216, 0.45);
	box-shadow: 0 0 0 3px rgba(114, 0, 216, 0.1), var(--shadow-sm);
}

.company-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.company-card__logo {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 58px;
	max-width: 190px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}

.company-card__logo img {
	max-width: 168px;
	max-height: 46px;
	width: auto;
	height: 46px;
	object-fit: contain;
}

.company-card__logo--dark {
	background: var(--royal);
	border-color: var(--royal);
}

.company-card__meta h3 {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.company-card__meta p {
	font-size: 12px;
	color: var(--muted);
}

.company-card__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding-top: 4px;
}

.company-card__stat {
	padding: 9px 10px;
	border-radius: 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.company-card__stat span {
	display: block;
	font-size: 9.5px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--faint);
	font-weight: 700;
}

.company-card__stat strong {
	font-size: 14px;
}

.company-card__clients {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.company-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: auto;
}

/* ============================ Settings ============================ */
.settings-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.settings-nav {
	position: sticky;
	top: 92px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.settings-nav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
}

.settings-nav__item .icon {
	width: 16px;
	height: 16px;
	color: var(--muted);
}

.settings-nav__item:hover {
	background: var(--primary-050);
	color: var(--primary);
}

.settings-nav__item.is-active {
	background: var(--gradient);
	color: #fff;
}

.settings-nav__item.is-active .icon {
	color: #fff;
}

.settings-panel {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.settings-section {
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.settings-section__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.settings-section__head h2 {
	font-size: 16px;
	font-weight: 700;
}

.settings-section__head p {
	font-size: 12px;
	color: var(--muted);
}

.settings-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

.settings-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.settings-field--wide {
	grid-column: 1 / -1;
}

.settings-field label {
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-2);
}

.settings-field small {
	font-size: 11px;
	color: var(--muted);
}

.settings-live-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.settings-live-time .icon {
	width: 13px;
	height: 13px;
}

.settings-field .input,
.settings-field .select,
.settings-field textarea {
	width: 100%;
}

.settings-field textarea {
	min-height: 88px;
	resize: vertical;
}

.settings-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
	font-size: 13px;
	font-weight: 600;
}

.settings-toggle input {
	width: 17px;
	height: 17px;
	accent-color: var(--violet-hot);
}

.logo-preview-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.logo-preview {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface-2);
}

.logo-preview__box {
	display: grid;
	place-items: center;
	min-height: 96px;
	padding: 14px;
	border: 1px dashed var(--line-strong);
	border-radius: 10px;
	background: #fff;
}

.logo-preview__box--dark {
	background: var(--royal);
	border-color: rgba(255, 255, 255, 0.2);
}

.logo-preview__box img {
	max-width: 180px;
	max-height: 62px;
	object-fit: contain;
}

.logo-preview__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--muted);
}

/* ---------------------------- Tax rates ---------------------------- */

.tax-table-wrap {
	overflow-x: auto;
	overflow-y: hidden;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
}

.tax-table th {
	background: var(--surface-2);
}

.tax-table th:first-child,
.tax-table td:first-child {
	padding-left: 18px;
}

.tax-table th:last-child,
.tax-table td:last-child {
	padding-right: 18px;
}

.tax-date {
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}

.tax-current {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 8px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--green-bg);
	color: #087a5b;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	vertical-align: 1px;
}

.tax-current::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}

.tax-rate {
	min-width: 54px;
	justify-content: center;
	font-variant-numeric: tabular-nums;
}

.tax-note {
	font-size: 12.5px;
	color: var(--muted);
}

.tax-note--empty {
	color: var(--faint);
	font-style: italic;
}

.tax-delete {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	color: var(--faint);
}

.tax-delete .icon {
	width: 15px;
	height: 15px;
}

.tax-delete:hover {
	color: #b91c1c;
	border-color: #f3c4cc;
	background: var(--red-bg);
}

.tax-empty {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border: 1px dashed var(--line-strong);
	border-radius: 14px;
	background: var(--surface-2);
}

.tax-empty__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--violet-bg);
	color: var(--violet);
}

.tax-empty__icon .icon {
	width: 20px;
	height: 20px;
}

.tax-empty strong {
	display: block;
	font-size: 13px;
	color: var(--ink);
}

.tax-empty p {
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}

.tax-add {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface-2);
}

.tax-add__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 14px;
	margin-bottom: 12px;
}

.tax-add__title {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink-2);
}

.tax-add__hint {
	font-size: 11.5px;
	color: var(--faint);
}

.tax-add__grid {
	display: grid;
	grid-template-columns: 120px 170px minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 12px 14px;
	align-items: end;
}

.tax-add .field__label {
	font-size: 11.5px;
	color: var(--muted);
}

.tax-add .input,
.tax-add .select {
	height: 40px;
	background: var(--surface);
}

.tax-add__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 12px;
}

@media (max-width: 1024px) {
	.tax-add__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tax-add {
		padding: 14px;
	}

	.tax-add__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tax-add__actions .btn {
		width: 100%;
	}

	.tax-table .tax-note-cell {
		display: none;
	}

	.tax-table th:first-child,
	.tax-table td:first-child {
		padding-left: 14px;
	}

	.tax-table th:last-child,
	.tax-table td:last-child {
		padding-right: 14px;
	}
}

@media (max-width: 560px) {
	.tax-table .tax-label-cell {
		display: none;
	}
}

/* ------------------------- Payment methods ------------------------- */

.payment-matrix {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.method-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.method-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.method-card.is-enabled {
	border-color: #e4d8f7;
	background: linear-gradient(90deg, #fdfbff 0%, var(--surface) 55%);
}

.method-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.method-card__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--surface-2);
	color: var(--faint);
	transition: background 0.15s ease, color 0.15s ease;
}

.method-card__icon .icon {
	width: 15px;
	height: 15px;
}

.method-card.is-enabled .method-card__icon {
	background: var(--violet-bg);
	color: var(--violet);
}

.method-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.method-card__name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 650;
	color: var(--ink);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.method-card:not(.is-enabled) .method-card__name {
	color: var(--muted);
}

.method-card__title .tiny-badge {
	flex: 0 0 auto;
}

.method-toggle {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.method-toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.method-toggle__ui {
	position: relative;
	width: 34px;
	height: 20px;
	border-radius: 999px;
	background: #e6e3ef;
	transition: background 0.16s ease;
}

.method-toggle__ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
	transition: transform 0.16s ease;
}

.method-toggle input:checked + .method-toggle__ui {
	background: var(--violet);
}

.method-toggle input:checked + .method-toggle__ui::after {
	transform: translateX(14px);
}

.method-toggle input:focus-visible + .method-toggle__ui {
	box-shadow: 0 0 0 3px rgba(114, 0, 216, 0.18);
}

.method-toggle input:disabled + .method-toggle__ui {
	opacity: 0.5;
	cursor: default;
}

.method-card__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px 16px;
}

.method-card__fields .field:only-child {
	grid-column: 1 / -1;
}

.method-card__empty {
	grid-column: 1 / -1;
	font-size: 12px;
	font-style: italic;
	color: var(--faint);
}

.method-card__fields .field__label {
	font-size: 11.5px;
	color: var(--muted);
}

.method-card__fields .input {
	height: 38px;
	font-size: 12.5px;
}

.method-card:not(.is-enabled) .method-card__fields {
	opacity: 0.55;
}

/* --------------------------- Config lists --------------------------- */

.config-list-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.config-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.config-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px 12px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.config-row:hover {
	border-color: #ddd3ef;
	box-shadow: 0 1px 2px rgba(36, 0, 90, 0.04);
}

.config-row__head {
	display: flex;
	flex: 1 1 100%;
	align-items: center;
	gap: 8px;
	margin-bottom: 2px;
}

.config-row__head-title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--violet);
}

.config-row__head-title .icon {
	width: 13px;
	height: 13px;
}

.config-row__main {
	display: grid;
	flex: 1 1 100%;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 8px 12px;
}

.config-row .field {
	gap: 4px;
}

.config-row .field__label {
	font-size: 11px;
	font-weight: 650;
	color: var(--muted);
}

.config-row .input,
.config-row .select {
	height: 38px;
	font-size: 12.5px;
}

.config-row__flags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}

.config-row__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.config-row--new {
	border-style: dashed;
	border-color: var(--line-strong);
	background: var(--surface-2);
}

.config-empty {
	margin-bottom: 2px;
	font-size: 12px;
	color: var(--faint);
}

.check-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
	user-select: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.check-inline input {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: var(--primary);
}

.check-inline:has(input:checked) {
	border-color: #dcccf4;
	background: var(--violet-bg);
	color: var(--violet);
}

.check-inline:has(input:disabled) {
	cursor: default;
	opacity: 0.75;
}

@media (max-width: 640px) {
	.config-row {
		padding: 12px;
	}

	.config-row__main .field:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.config-row__actions {
		margin-left: 0;
	}

	.config-row__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ------------------------ Leave balances ------------------------ */

.leave-balances {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.leave-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 18px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
}

.leave-picker__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 0 1 320px;
	min-width: 0;
}

.leave-picker__field .field__label {
	font-size: 11px;
	font-weight: 650;
	color: var(--muted);
}

.leave-picker__field .select {
	height: 38px;
	font-size: 12.5px;
}

.leave-picker__summary {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	margin-left: auto;
}

.leave-summary__item {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
}

.leave-summary__value {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.leave-summary__label {
	font-size: 10px;
	font-weight: 650;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--faint);
}

.leave-summary__item--accent .leave-summary__value {
	color: var(--violet);
}

.leave-empty {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 20px 18px;
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	background: var(--surface-2);
}

.leave-empty__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--violet);
}

.leave-empty__icon .icon {
	width: 17px;
	height: 17px;
}

.leave-empty__title {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
}

.leave-empty__note {
	margin: 0;
	max-width: 54ch;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--muted);
}

.leave-balance-form {
	display: flex;
	flex-direction: column;
}

.leave-balance-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 0 2px 10px;
}

.leave-balance-head__name {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink);
}

.leave-balance-head__meta {
	display: block;
	font-size: 11.5px;
	color: var(--faint);
}

.leave-balance-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.leave-balance-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	transition: border-color 0.15s ease;
}

.leave-balance-row:hover {
	border-color: #ddd3ef;
}

.leave-balance-row__head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 1 200px;
	min-width: 130px;
}

.leave-balance-row__type {
	overflow: hidden;
	font-size: 13px;
	font-weight: 650;
	color: var(--ink);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.leave-meter {
	position: relative;
	flex: 1 1 110px;
	height: 6px;
	border-radius: 999px;
	background: #efeaf7;
	overflow: hidden;
}

.leave-meter__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #a855f7, #7200d8);
	transition: width 0.2s ease;
}

.leave-meter__fill.is-full {
	background: linear-gradient(90deg, #fbbf24, #ef4444);
}

.leave-balance-row__values {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	margin-left: auto;
}

.leave-value {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.leave-value__label {
	font-size: 10px;
	font-weight: 650;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--faint);
}

.leave-value .input {
	width: 78px;
	height: 32px;
	padding: 0 6px;
	font-size: 12.5px;
	text-align: center;
}

.leave-value__amount {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.leave-value__amount.is-positive {
	color: #0f9d76;
}

.leave-value__amount.is-muted {
	color: var(--faint);
}

.leave-balance-empty {
	margin: 0;
	padding: 14px;
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	font-size: 12.5px;
	color: var(--faint);
}

.leave-add {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	background: var(--surface-2);
}

.leave-add__fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px 12px;
}

.leave-add__fields .field {
	flex: 1 1 180px;
	max-width: 300px;
}

.leave-add__submit {
	flex: 0 0 auto;
	height: 38px;
}

.leave-add .field__label {
	font-size: 11px;
	font-weight: 650;
	color: var(--muted);
}

.leave-add .input,
.leave-add .select {
	height: 38px;
	font-size: 12.5px;
}

.leave-balance-form .form-actions {
	padding-top: 14px;
}

@media (max-width: 640px) {
	.leave-picker {
		flex-direction: column;
		align-items: stretch;
	}

	.leave-picker__field {
		flex: 1 1 auto;
	}

	.leave-picker__summary {
		justify-content: space-between;
		gap: 12px;
		margin-left: 0;
		padding-top: 10px;
		border-top: 1px solid var(--line);
	}

	.leave-summary__item {
		align-items: flex-start;
	}

	.leave-empty {
		padding: 16px 14px;
	}

	.leave-balance-row {
		gap: 10px 12px;
	}

	.leave-balance-row__head {
		flex: 1 1 auto;
	}

	.leave-meter {
		order: 3;
		flex: 1 1 100%;
	}

	.leave-balance-row__values {
		flex: 1 1 100%;
		justify-content: space-between;
		margin-left: 0;
	}

	.leave-value {
		flex: 1 1 0;
	}

	.leave-value .input {
		width: 100%;
	}

	.leave-add__fields .field {
		flex: 1 1 100%;
		max-width: none;
	}

	.leave-add__submit {
		width: 100%;
		justify-content: center;
	}

	.leave-balance-form .form-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.leave-balance-form .form-actions .btn {
		justify-content: center;
	}
}

/* ============================ Roles ============================ */
.role-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.role-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.role-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.role-card__head h3 {
	font-size: 15px;
	font-weight: 700;
}

.role-card__head p {
	font-size: 11.5px;
	color: var(--muted);
}

.role-card__badge {
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--primary-100);
	color: var(--primary);
	white-space: nowrap;
	flex-shrink: 0;
}

.role-card__meta {
	display: flex;
	gap: 14px;
	font-size: 11.5px;
	color: var(--muted);
}

.role-card__bar {
	height: 6px;
	border-radius: 999px;
	background: var(--line);
	overflow: hidden;
}

.role-card__bar span {
	display: block;
	height: 100%;
	background: var(--gradient);
}

.permission-groups {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.permission-group {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface-2);
}

.permission-group__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.permission-group__head h3 {
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--violet-hot);
}

.permission-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
}

.perm-check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 8px 10px;
	border-radius: 9px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 12px;
	color: var(--ink-2);
	cursor: pointer;
}

.perm-check:hover {
	border-color: rgba(114, 0, 216, 0.4);
}

.perm-check input {
	margin-top: 2px;
	accent-color: var(--violet-hot);
}

/* ============================ Payments ============================ */
.gateway-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
}

.gateway-option {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gateway-option:hover {
	border-color: rgba(114, 0, 216, 0.45);
	transform: translateY(-1px);
}

.gateway-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gateway-option__top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gateway-option__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: #fff;
	background: var(--gradient-cool);
}

.gateway-option__icon .icon {
	width: 17px;
	height: 17px;
}

.gateway-option strong {
	font-size: 13.5px;
}

.gateway-option small {
	font-size: 11.5px;
	color: var(--muted);
	line-height: 1.45;
}

.gateway-option:has(input:checked) {
	border-color: var(--violet-hot);
	box-shadow: 0 0 0 3px rgba(114, 0, 216, 0.12);
}

.gateway-option__check {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--line-strong);
	background: #fff;
}

.gateway-option:has(input:checked) .gateway-option__check {
	background: var(--gradient);
	border-color: transparent;
}

.payment-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
	gap: 22px;
	padding: 26px;
	border-radius: var(--radius-lg);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 213, 0, 0.16) 0%, rgba(36, 0, 90, 0) 48%),
		var(--gradient);
	color: #fff;
	box-shadow: 0 22px 44px -24px rgba(36, 0, 90, 0.7);
}

.payment-hero h2 {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.payment-hero p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 12.5px;
}

.payment-hero__amount {
	text-align: right;
}

.payment-hero__amount span {
	display: block;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

.payment-hero__amount strong {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.payment-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.payment-summary__item {
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
}

.payment-summary__item span {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--faint);
	font-weight: 700;
}

.payment-summary__item strong {
	font-size: 14px;
}

.payment-history {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.payment-history__row {
	display: grid;
	grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr;
	gap: 10px;
	align-items: center;
	padding: 11px 12px;
	font-size: 12px;
	border-bottom: 1px solid var(--line);
}

.payment-history__row:last-child {
	border-bottom: 0;
}

/* ============================ Payment detail ============================ */
.pd-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(120% 190% at 0% 0%, rgba(114, 0, 216, 0.10) 0%, rgba(255, 255, 255, 0) 55%),
		radial-gradient(110% 170% at 100% 0%, rgba(23, 75, 255, 0.08) 0%, rgba(255, 255, 255, 0) 52%),
		var(--surface);
	box-shadow: var(--shadow-sm);
}

.pd-hero__orb {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.pd-hero__orb--a {
	top: -84px;
	right: -54px;
	width: 190px;
	height: 190px;
	background: radial-gradient(circle, rgba(114, 0, 216, 0.16) 0%, rgba(114, 0, 216, 0) 70%);
}

.pd-hero__orb--b {
	bottom: -96px;
	left: 42%;
	width: 150px;
	height: 150px;
	background: radial-gradient(circle, rgba(240, 0, 200, 0.12) 0%, rgba(240, 0, 200, 0) 70%);
}

.pd-hero__main {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}

.pd-hero__badge {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 18px;
	color: #fff;
	background: var(--gradient);
	box-shadow: 0 14px 26px -14px rgba(114, 0, 216, 0.75);
}

.pd-hero__badge .icon {
	width: 25px;
	height: 25px;
}

.pd-hero__identity {
	min-width: 0;
}

.pd-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--faint);
}

.pd-hero__sep {
	color: var(--line-strong);
}

.pd-hero__ref {
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--muted);
}

.pd-hero__amount {
	margin-top: 6px;
	font-size: clamp(26px, 6.5vw, 38px);
	font-weight: 750;
	line-height: 1.05;
	letter-spacing: -0.045em;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.pd-hero__pills {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.pd-hero__actions {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}

.pd-hero__meta {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
	margin: 4px 0 0;
	padding-top: 20px;
	border-top: 1px dashed var(--line-strong);
}

.pd-hero__meta-item {
	min-width: 0;
	padding: 0 18px;
	border-left: 1px solid var(--line);
}

.pd-hero__meta-item:first-child {
	padding-left: 0;
	border-left: 0;
}

.pd-hero__meta dt {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.pd-hero__meta dt .icon {
	width: 12px;
	height: 12px;
	color: var(--primary);
}

.pd-hero__meta dd {
	margin: 5px 0 0;
	font-size: 13.5px;
	font-weight: 650;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.pd-hero__meta dd a {
	color: var(--primary);
}

.pd-card .card__head {
	align-items: center;
}

.pd-card__title-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.pd-card__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--primary);
	border: 1px solid var(--line);
}

.pd-card__icon .icon {
	width: 18px;
	height: 18px;
}

.pd-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.pd-fact {
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}

.pd-fact__label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.pd-fact__value {
	display: block;
	margin-top: 4px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.pd-fact__value--mono {
	font-family: var(--mono);
	font-size: 12.5px;
}

.pd-note {
	margin-top: 16px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--primary);
	border-radius: 14px;
	background: var(--surface-2);
}

.pd-note__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary);
}

.pd-note__label .icon {
	width: 13px;
	height: 13px;
}

.pd-note p {
	margin: 7px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ink-2);
}

.pd-steps {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pd-step {
	position: relative;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	align-items: start;
	gap: 12px;
	padding-bottom: 18px;
}

.pd-step:last-child {
	padding-bottom: 0;
}

.pd-step::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 28px;
	bottom: 2px;
	width: 2px;
	border-radius: 2px;
	background: var(--line);
}

.pd-step:last-child::before {
	display: none;
}

.pd-step__dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var(--line-strong);
	background: var(--surface);
	color: var(--faint);
}

.pd-step__dot .icon {
	width: 12px;
	height: 12px;
}

.pd-step.is-done .pd-step__dot {
	border-color: var(--primary);
	background: var(--primary-100);
	color: var(--primary);
}

.pd-step.is-muted .pd-step__dot {
	border-style: dashed;
}

.pd-step.is-danger .pd-step__dot {
	border-color: var(--red);
	background: var(--red-bg);
	color: var(--red);
}

.pd-step__body strong {
	display: block;
	font-size: 13px;
	font-weight: 650;
	color: var(--ink);
}

.pd-step__body span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}

.pd-step__time {
	padding-top: 3px;
	font-size: 11.5px;
	color: var(--faint);
	white-space: nowrap;
}

.pd-payload {
	border-radius: var(--radius);
}

.pd-payload summary {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 16px 20px;
	list-style: none;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 650;
	color: var(--ink);
}

.pd-payload summary::-webkit-details-marker {
	display: none;
}

.pd-payload summary > .icon {
	width: 16px;
	height: 16px;
	color: var(--primary);
}

.pd-payload__chev {
	display: inline-flex;
	margin-left: auto;
	color: var(--faint);
	transition: transform 0.2s ease;
}

.pd-payload__chev .icon {
	width: 16px;
	height: 16px;
}

.pd-payload[open] .pd-payload__chev {
	transform: rotate(180deg);
}

.pd-payload__body {
	padding: 0 20px 20px;
}

.pd-payload pre {
	max-height: 340px;
	overflow: auto;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
	font-family: var(--mono);
	font-size: 11.5px;
	line-height: 1.65;
	white-space: pre-wrap;
	word-break: break-word;
	color: var(--ink-2);
}

.pd-invoice__number {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 13.5px;
	font-weight: 650;
	color: var(--primary);
}

.pd-invoice__number .icon {
	width: 14px;
	height: 14px;
}

.pd-invoice__amounts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.pd-invoice__amounts > div {
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: var(--surface-2);
}

.pd-invoice__amounts span {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.pd-invoice__amounts strong {
	display: block;
	margin-top: 3px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.pd-invoice__amounts strong.is-due {
	color: var(--primary);
}

.pd-progress {
	height: 8px;
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--primary-050);
	overflow: hidden;
}

.pd-progress span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--gradient-warm);
	transition: width 0.35s ease;
}

.pd-progress__label {
	margin-top: 8px;
	font-size: 11.5px;
	color: var(--muted);
}

.pd-progress__label + .btn--block {
	margin-top: 16px;
}

.pd-danger {
	border-color: rgba(214, 31, 69, 0.2);
	background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
}

.pd-danger .pd-card__icon {
	border-color: rgba(214, 31, 69, 0.16);
	background: var(--red-bg);
	color: var(--red);
}

.pd-danger .card__title {
	color: #8f112c;
}

.pd-danger__btn {
	border-color: rgba(214, 31, 69, 0.28);
	color: var(--red);
}

.pd-danger .btn--block {
	margin-top: 14px;
}

@media (max-width: 900px) {
	.pd-hero__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 16px;
	}

	.pd-hero__meta-item:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (max-width: 640px) {
	.pd-hero {
		padding: 20px;
	}

	.pd-hero__main {
		gap: 13px;
	}

	.pd-hero__badge {
		width: 50px;
		height: 50px;
		border-radius: 15px;
	}

	.pd-hero__actions {
		width: 100%;
	}

	.pd-hero__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.pd-hero__meta {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	.pd-hero__meta-item,
	.pd-hero__meta-item:nth-child(3) {
		padding: 12px 0 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.pd-hero__meta-item:first-child {
		padding-top: 0;
		border-top: 0;
	}

	.pd-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.pd-step__time {
		display: none;
	}
}

/* ============================ Report centre ============================ */
.report-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.report-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.report-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.report-card__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	color: #fff;
	background: var(--gradient);
}

.report-card:nth-child(2n) .report-card__icon { background: var(--gradient-cool); }
.report-card:nth-child(3n) .report-card__icon { background: var(--gradient-warm); }

.report-card h3 {
	font-size: 15px;
	font-weight: 700;
}

.report-card p {
	font-size: 12px;
	color: var(--muted);
}

.report-card__foot {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}

.report-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.report-filters .field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.report-filters .field label {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.report-filters .input,
.report-filters .select {
	min-width: 150px;
}

.report-table-wrap {
	overflow-x: auto;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.report-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
}

.report-table th {
	padding: 11px 14px;
	text-align: left;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #fff;
	background: var(--royal);
	white-space: nowrap;
}

.report-table td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	color: var(--ink-2);
}

.report-table tr:last-child td {
	border-bottom: 0;
}

.report-table tbody tr:nth-child(even) {
	background: var(--surface-2);
}

.report-table td.is-num,
.report-table th.is-num {
	text-align: right;
}

.report-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
}

.report-summary__card {
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}

.report-summary__card span {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--faint);
	font-weight: 800;
}

.report-summary__card strong {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

/* ============================ Recurring tasks ============================ */
.recurring-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.recurring-item {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(160px, 0.7fr) auto;
	gap: 16px;
	align-items: center;
	padding: 18px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.recurring-item.is-due {
	border-color: rgba(240, 0, 200, 0.45);
	box-shadow: 0 0 0 3px rgba(240, 0, 200, 0.08);
}

.recurring-item__title {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.recurring-item__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--primary-100);
	color: var(--violet-hot);
	flex: 0 0 auto;
}

.recurring-item h3 {
	font-size: 14px;
	font-weight: 700;
}

.recurring-item p {
	font-size: 11.5px;
	color: var(--muted);
}

.recurring-item__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 11.5px;
	color: var(--muted);
}

.recurring-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

/* ============================ Portal payments ============================ */
.portal-hero {
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 213, 0, 0.14) 0%, rgba(36, 0, 90, 0) 50%),
		var(--gradient);
}

.portal-success {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--green-bg);
	border: 1px solid rgba(15, 157, 118, 0.25);
	color: #0b6b51;
	font-size: 13px;
}

.portal-success .icon {
	width: 24px;
	height: 24px;
}

.upi-box {
	display: grid;
	place-items: center;
	gap: 12px;
	padding: 22px;
	border: 1px dashed var(--line-strong);
	border-radius: 16px;
	background: var(--surface-2);
	text-align: center;
}

.upi-box strong {
	font-size: 15px;
	letter-spacing: 0.02em;
}

.upi-box small {
	color: var(--muted);
}

.upi-preview {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 20px;
	margin-top: 18px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface-2);
}

.upi-preview[hidden] {
	display: none;
}

.upi-preview__qr {
	display: grid;
	place-items: center;
	padding: 10px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--line);
}

.upi-preview__qr svg {
	display: block;
	width: 132px;
	height: 132px;
}

.upi-preview__info h3 {
	font-size: 16px;
	font-weight: 800;
	margin: 4px 0 6px;
}

.upi-preview__info p {
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.55;
	margin-bottom: 4px;
}

@media (max-width: 640px) {
	.upi-preview {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}
}

/* ============================ Misc ============================ */
.palette-swatches {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.palette-swatch {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 10px;
	color: var(--muted);
}

.palette-swatch span {
	width: 54px;
	height: 34px;
	border-radius: 9px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.inline-company {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
}

.inline-company img {
	max-height: 16px;
	max-width: 64px;
	object-fit: contain;
}

.fiscal-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--primary-050);
	border: 1px solid var(--primary-100);
	font-size: 11px;
	font-weight: 700;
	color: var(--primary);
}

@media (max-width: 1120px) {
	.settings-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.settings-nav {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.company-switch select {
		max-width: 130px;
	}
}

@media (max-width: 900px) {
	body.sidebar-collapsed .sidebar {
		width: 268px;
		flex-basis: 268px;
		padding-left: 18px;
		padding-right: 18px;
	}

	body.sidebar-collapsed .brand__text,
	body.sidebar-collapsed .nav__label,
	body.sidebar-collapsed .nav__item span,
	body.sidebar-collapsed .sidebar__company,
	body.sidebar-collapsed .sidebar__user-meta,
	body.sidebar-collapsed .sidebar__logout span {
		display: revert;
	}

	body.sidebar-collapsed .nav__item,
	body.sidebar-collapsed .sidebar__user,
	body.sidebar-collapsed .sidebar__logout {
		justify-content: flex-start;
		padding-left: 12px;
		padding-right: 12px;
	}

	.company-switch {
		display: none;
	}

	.recurring-item {
		grid-template-columns: minmax(0, 1fr);
	}

	.recurring-item__actions {
		justify-content: flex-start;
	}

	.payment-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.payment-hero__amount {
		text-align: left;
	}

	.settings-fields,
	.logo-preview-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Compact date filters in toolbars */
.toolbar__filters input[type="date"].filter-select {
	flex: 0 0 auto;
	width: auto;
	min-width: 158px;
}

/* ------------------------------ Project detail ------------------------------ */

.project-hero {
	position: relative;
	overflow: hidden;
	padding: 24px 26px 26px;
	background:
		radial-gradient(1100px 300px at 0% 0%, rgba(114, 0, 216, 0.10), transparent 62%),
		radial-gradient(900px 280px at 100% 0%, rgba(23, 75, 255, 0.08), transparent 64%),
		linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.project-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--magenta), var(--blue), var(--gold));
	opacity: 0.85;
}

.project-hero__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.project-hero__identity {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.project-hero__avatar {
	width: 68px;
	height: 68px;
	border-radius: 19px;
	font-size: 22px;
	box-shadow: 0 0 0 4px #fff, var(--shadow);
}

.project-hero__text {
	min-width: 0;
}

.project-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}

.project-hero__eyebrow .icon {
	width: 14px;
	height: 14px;
	color: var(--primary);
}

.project-hero__sep {
	color: var(--faint);
}

.project-hero__title {
	margin-top: 5px;
	font-size: clamp(22px, 2.4vw, 29px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.14;
	color: var(--ink);
}

.project-hero__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 13px;
}

.project-hero__meta .pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.project-hero__meta .pill .icon {
	width: 12px;
	height: 12px;
}

.project-manager {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 5px 12px 5px 5px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
}

.project-manager__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.project-manager__text small {
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.project-manager__text strong {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink);
}

.project-hero__actions {
	flex: 0 0 auto;
}

/* Key metrics */

.project-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 13px;
	margin-top: 22px;
}

.project-metric {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	padding: 14px 15px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-sm);
}

.project-metric.is-late {
	border-color: #f6ccd7;
	background: linear-gradient(180deg, #fff7f9, #ffffff);
}

.project-metric__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 11px;
}

.project-metric__icon .icon {
	width: 18px;
	height: 18px;
}

.project-metric__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.project-metric__label {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
}

.project-metric__value {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.project-metric__muted {
	font-size: 13px;
	font-weight: 600;
	color: var(--faint);
}

.project-metric__bar {
	display: block;
	width: 100%;
	height: 5px;
	margin: 5px 0 3px;
	border-radius: 999px;
	background: #f0e9fb;
	overflow: hidden;
}

.project-metric__bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--primary), var(--magenta));
}

.project-metric__foot {
	font-size: 11.5px;
	color: var(--faint);
}

/* Stage panel */

.project-stage {
	margin-top: 16px;
	padding: 15px 18px 16px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--line);
	border-radius: 16px;
}

.project-stage__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.project-stage__eyebrow {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.project-stage__head strong {
	font-size: 13.5px;
	font-weight: 650;
	color: var(--ink);
}

.project-stage__move {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}

.project-stepper {
	display: flex;
	align-items: flex-start;
	margin-top: 14px;
	padding-bottom: 2px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.project-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	min-width: 88px;
	text-align: center;
}

.project-step__dot {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1.5px solid var(--line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--faint);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
}

.project-step__dot .icon {
	width: 14px;
	height: 14px;
}

.project-step__label {
	max-width: 118px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--faint);
}

.project-step.is-done .project-step__dot {
	background: var(--green-bg);
	border-color: #b7e8d7;
	color: var(--green);
}

.project-step.is-done .project-step__label {
	color: var(--muted);
}

.project-step.is-current .project-step__dot {
	background: linear-gradient(135deg, var(--primary), var(--magenta));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 0 0 4px rgba(114, 0, 216, 0.12);
}

.project-step.is-current .project-step__label {
	color: var(--primary-600);
	font-weight: 700;
}

.project-step.is-complete .project-step__dot {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(15, 157, 118, 0.14);
}

.project-step.is-complete .project-step__label {
	color: var(--green);
}

.project-step__line {
	flex: 1 1 22px;
	min-width: 18px;
	height: 2px;
	margin-top: 14px;
	border-radius: 999px;
	background: var(--line);
}

.project-step__line.is-done {
	background: linear-gradient(90deg, var(--green), #57c9a6);
}

/* Lists */

.project-layout {
	align-items: start;
}

.project-main,
.project-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.project-main > .card + .card,
.project-side > .card + .card {
	margin-top: 0;
}

.project-card .card__head {
	padding-bottom: 0;
}

.project-task-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 15px 22px 0;
}

.project-task-progress .progress {
	height: 7px;
	background: #f1ecfa;
}

.project-task-progress > span {
	min-width: 34px;
	text-align: right;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.project-list {
	margin-top: 15px;
	padding: 4px 12px 10px;
	border-top: 1px solid var(--line);
}

.project-row {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 11px 10px;
	border-radius: 11px;
	transition: background 0.14s ease;
}

.project-row + .project-row {
	border-top: 1px solid #f3eefb;
}

.project-row:hover {
	background: var(--surface-2);
}

.project-row__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 auto;
	min-width: 0;
}

.project-row__title {
	display: block;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.project-row__title:hover {
	color: var(--primary);
}

.project-row__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 11.5px;
	color: var(--muted);
}

.project-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.project-meta-item .icon {
	width: 13px;
	height: 13px;
	color: var(--faint);
}

.project-meta-item .avatar--xs {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	font-size: 8.5px;
}

.project-meta-item.is-late {
	color: var(--red);
	font-weight: 600;
}

.project-meta-item.is-late .icon {
	color: var(--red);
}

.project-row__side {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	flex: 0 0 auto;
	flex-wrap: wrap;
	padding-top: 1px;
}

.project-row__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 9px;
}

.project-row__icon .icon {
	width: 15px;
	height: 15px;
}

.project-row__amount {
	flex: 0 0 auto;
	padding-top: 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.project-task-row {
	align-items: flex-start;
}

.project-task-row__check {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 8px;
	border: 1.5px solid var(--line-strong);
	border-radius: 999px;
	background: #fff;
	color: #fff;
}

.project-task-row__check .icon {
	width: 12px;
	height: 12px;
}

.project-task-row.is-done .project-task-row__check {
	background: var(--green);
	border-color: var(--green);
}

.project-task-row.is-done .project-row__title {
	color: var(--faint);
	text-decoration: line-through;
}

/* Compact empty states */

.project-empty {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 16px 22px 22px;
	padding: 15px 17px;
	background: var(--surface-2);
	border: 1px dashed var(--line-strong);
	border-radius: 14px;
}

.project-empty__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--primary);
}

.project-empty__icon .icon {
	width: 19px;
	height: 19px;
}

.project-empty__text {
	flex: 1 1 190px;
	min-width: 0;
}

.project-empty__text strong {
	display: block;
	font-size: 13px;
	font-weight: 650;
	color: var(--ink);
}

.project-empty__text p {
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}

.project-empty .btn {
	margin-left: auto;
}

/* Details sidebar */

.project-facts {
	display: flex;
	flex-direction: column;
}

.project-fact {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 10px 6px;
	border-radius: 10px;
}

.project-fact + .project-fact {
	border-top: 1px solid #f4effb;
}

.project-fact__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 9px;
}

.project-fact__icon .icon {
	width: 15px;
	height: 15px;
}

.project-fact__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.project-fact__text > span {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.project-fact__text strong {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ink);
}

.project-fact__text strong a {
	color: var(--primary);
}

.project-fact__text strong a:hover {
	text-decoration: underline;
}

.project-fact__text small {
	overflow: hidden;
	font-size: 11px;
	color: var(--muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.project-fact .avatar--sm {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	font-size: 11px;
}

.project-scope {
	font-size: 13px;
	line-height: 1.7;
	color: var(--ink-2);
}

@media (max-width: 1120px) {
	.project-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.project-hero {
		padding: 20px 18px 20px;
	}

	.project-hero__identity {
		align-items: flex-start;
		gap: 13px;
	}

	.project-hero__avatar {
		width: 54px;
		height: 54px;
		border-radius: 15px;
		font-size: 18px;
	}

	.project-hero__actions {
		width: 100%;
	}

	.project-hero__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.project-metrics {
		gap: 10px;
		margin-top: 18px;
	}

	.project-metric {
		padding: 12px;
	}

	.project-stage {
		padding: 14px 14px 15px;
	}

	.project-stepper {
		margin-left: -4px;
		margin-right: -4px;
		padding-left: 4px;
		padding-right: 4px;
	}

	.project-step {
		min-width: 78px;
	}

	.project-step__label {
		max-width: 98px;
		font-size: 11px;
	}

	.project-task-progress {
		margin-left: 16px;
		margin-right: 16px;
	}

	.project-list {
		padding-left: 8px;
		padding-right: 8px;
	}

	.project-row {
		flex-wrap: wrap;
	}

	.project-row__side {
		justify-content: flex-start;
		padding-left: 43px;
	}

	.project-task-row .project-row__side {
		padding-left: 31px;
	}

	.project-empty {
		margin: 14px 16px 18px;
	}

	.project-empty .btn {
		margin-left: 0;
	}
}

@media (max-width: 560px) {
	.project-stepper {
		flex-direction: column;
		align-items: stretch;
		overflow: visible;
		margin-top: 12px;
		padding: 2px 0 0;
	}

	.project-step {
		flex-direction: row;
		align-items: center;
		gap: 11px;
		min-width: 0;
		text-align: left;
	}

	.project-step__label {
		max-width: none;
	}

	.project-step__line {
		flex: 0 0 auto;
		width: 2px;
		height: 12px;
		min-width: 0;
		margin: 2px 0 2px 14px;
	}
}

@media (max-width: 480px) {
	.project-metrics {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------- Access & sessions ---------------------------- */

.access-stats {
	margin-bottom: 22px;
}

.pill .icon {
	width: 13px;
	height: 13px;
	stroke-width: 2;
}

.session-device {
	display: flex;
	align-items: center;
	gap: 9px;
}

.session-device > .icon {
	width: 17px;
	height: 17px;
	color: var(--faint);
}

.session-device strong {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-2);
	line-height: 1.35;
}

.session-device small {
	display: block;
	margin-top: 1px;
	font-size: 11px;
	color: var(--faint);
	line-height: 1.35;
}

.access-detail {
	max-width: 320px;
}

.access-reason {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-2);
	line-height: 1.45;
}

.table tbody tr.is-restricted {
	background: #fff6f8;
}

.table tbody tr.is-restricted:hover {
	background: #ffeef2;
}

.table tbody tr.is-restricted td {
	border-bottom-color: #ffe4ea;
}

.access-member {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--line);
}

.access-member__text strong {
	display: block;
	font-size: 14px;
	color: var(--ink);
}

.access-member__text small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}

.access-member__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-left: auto;
}

.access-callout {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 18px;
	border: 1px solid #fde68a;
	border-radius: 12px;
	background: var(--amber-bg);
}

.access-callout__icon {
	flex: 0 0 auto;
	color: #b45309;
}

.access-callout__icon .icon {
	width: 19px;
	height: 19px;
}

.access-callout strong {
	display: block;
	font-size: 13px;
	color: #92400e;
}

.access-callout p {
	margin: 3px 0 2px;
	font-size: 12.5px;
	color: #92400e;
	line-height: 1.45;
}

.access-callout small {
	font-size: 11.5px;
	color: #a16207;
}

@media (max-width: 720px) {
	.access-member__meta {
		margin-left: 0;
	}

	.access-detail {
		max-width: none;
	}
}

/* --------------------------- Attendance workspace --------------------------- */

.att-page {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.att-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.9fr);
	align-items: center;
	gap: 30px;
	padding: 30px 32px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-lg);
	color: #fff;
	background:
		radial-gradient(120% 170% at 100% -10%, rgba(240, 0, 200, 0.42) 0%, rgba(240, 0, 200, 0) 46%),
		radial-gradient(90% 130% at -5% 110%, rgba(23, 75, 255, 0.32) 0%, rgba(23, 75, 255, 0) 52%),
		linear-gradient(115deg, #190238 0%, #360968 44%, #7200d8 100%);
	box-shadow: 0 28px 70px -34px rgba(36, 0, 90, 0.62);
}

.att-hero::before,
.att-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	pointer-events: none;
}

.att-hero::before {
	width: 340px;
	height: 340px;
	top: -190px;
	right: -90px;
}

.att-hero::after {
	width: 220px;
	height: 220px;
	bottom: -150px;
	left: 34%;
	border-color: rgba(255, 255, 255, 0.08);
}

.att-hero > * {
	position: relative;
	z-index: 1;
}

.att-hero__main {
	min-width: 0;
}

.att-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 11px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.68);
}

.att-hero__eyebrow .icon {
	width: 14px;
	height: 14px;
}

.att-hero__title {
	margin: 0;
	font-size: 29px;
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.15;
	color: #fff;
}

.att-hero__sub {
	max-width: 54ch;
	margin: 9px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.76);
}

.att-hero__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 22px;
}

.att-hero__actions form {
	display: inline-flex;
}

.att-hero .btn {
	border-radius: 11px;
}

.att-hero .btn--primary {
	border-color: transparent;
	background: #fff;
	color: #2b075b;
	box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55);
}

.att-hero .btn--primary:hover {
	background: #f6eeff;
	color: #1f0445;
}

.att-hero .btn--ghost,
.att-hero .btn--danger {
	border-color: rgba(255, 255, 255, 0.26);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.att-hero .btn--ghost:hover,
.att-hero .btn--danger:hover {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.att-hero__jump {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 4px;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.att-hero__jump .icon {
	width: 14px;
	height: 14px;
	transition: transform 0.18s ease;
}

.att-hero__jump:hover {
	color: #fff;
}

.att-hero__jump:hover .icon {
	transform: translateX(3px);
}

.att-hero__panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	padding: 1px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(12px);
}

.att-hero__metric {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 15px 18px;
	background: rgba(17, 3, 42, 0.42);
}

.att-hero__metric--wide {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
}

.att-hero__metric span:not(.att-hero__state) {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.att-hero__metric strong {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.att-hero__state {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 12.5px;
	font-weight: 650;
	color: #fff;
}

.att-hero__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #fbbf24;
	box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16);
}

.att-hero.is-live .att-hero__dot {
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
	animation: attPulse 2.2s ease-out infinite;
}

@keyframes attPulse {
	0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.34); }
	70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
	100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.att-hero__live {
	font-size: 11.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.66) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	white-space: nowrap;
}

.att-stat::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, #7200d8, #f000c8);
}

.att-stat:nth-child(2)::before {
	background: linear-gradient(90deg, #0f9d76, #34d399);
}

.att-stat:nth-child(3)::before {
	background: linear-gradient(90deg, #d4a017, #ffd500);
}

.att-stat:nth-child(4)::before {
	background: linear-gradient(90deg, #d61f45, #f472b6);
}

.att-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
	align-items: start;
	gap: 20px;
}

.att-main,
.att-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.att-card {
	overflow: hidden;
}

.att-card .card__head {
	flex-wrap: wrap;
}

.att-count {
	display: inline-grid;
	place-items: center;
	min-width: 30px;
	height: 30px;
	padding: 0 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	font-size: 12px;
	font-weight: 700;
	color: var(--primary);
	font-variant-numeric: tabular-nums;
}

.att-empty {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 18px;
	border: 1px dashed var(--line-strong);
	border-radius: 13px;
	background: linear-gradient(180deg, #fdfbff, #faf7ff);
}

.att-empty--sm {
	padding: 14px;
}

.att-empty__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--primary-100);
	color: var(--primary);
}

.att-empty__icon .icon {
	width: 19px;
	height: 19px;
}

.att-empty strong {
	display: block;
	font-size: 13px;
	color: var(--ink);
}

.att-empty p {
	margin: 3px 0 0;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--muted);
}

.att-timeline {
	position: relative;
	padding-left: 2px;
}

.att-timeline::before {
	content: "";
	position: absolute;
	top: 7px;
	bottom: 9px;
	left: 5px;
	width: 2px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--primary-100), var(--line));
}

.att-timeline__item {
	position: relative;
	padding: 0 0 19px 24px;
}

.att-timeline__item:last-child {
	padding-bottom: 0;
}

.att-timeline__item::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 12px;
	height: 12px;
	border: 2px solid var(--primary);
	border-radius: 50%;
	background: var(--surface);
}

.att-timeline__item.is-live::before {
	border-color: var(--green);
	background: var(--green);
	box-shadow: 0 0 0 4px var(--green-bg);
}

.att-timeline__body {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.att-timeline__time {
	font-size: 13px;
	font-weight: 650;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.att-timeline__arrow {
	margin: 0 4px;
	color: var(--faint);
	font-weight: 400;
}

.att-timeline__meta {
	margin: 3px 0 0;
	font-size: 11.5px;
	color: var(--faint);
}

.att-timeline__aside {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.att-duration {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-2);
	font-size: 11.5px;
	font-weight: 650;
	color: var(--ink-2);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.att-duration .icon {
	width: 13px;
	height: 13px;
	color: var(--primary);
}

.att-log .table td {
	padding-top: 12px;
	padding-bottom: 12px;
}

.att-date {
	font-weight: 650;
	color: var(--ink-2);
}

.att-today-tag {
	display: inline-flex;
	align-items: center;
	margin-left: 7px;
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--primary-100);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--primary);
}

.att-time {
	display: inline-flex;
	padding: 3px 8px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: var(--surface-2);
	font-size: 11.5px;
	font-weight: 550;
	color: var(--ink-2);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.att-log tr.is-today-row td {
	background: var(--primary-050);
}

.att-log tr.is-today-row:hover td {
	background: var(--primary-100);
}

.att-team {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.att-team__row {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 11px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: linear-gradient(180deg, #fff, #fdfbff);
}

.att-team__body {
	min-width: 0;
	flex: 1 1 auto;
}

.att-team__body strong {
	display: block;
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.att-team__body small {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	color: var(--faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.att-calendar {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.att-calendar__dow,
.att-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.att-calendar__dow span {
	text-align: center;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.att-calendar__day {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border: 1px solid transparent;
	border-radius: 7px;
	background: var(--surface-2);
	font-size: 10.5px;
	font-weight: 650;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.att-calendar__day.is-blank {
	background: transparent;
	color: var(--faint);
	opacity: 0.34;
}

.att-calendar__day.is-future {
	background: transparent;
	color: var(--faint);
	opacity: 0.45;
}

.att-calendar__day.is-weekend {
	background: #f3eefb;
	color: var(--faint);
}

.att-calendar__day.is-present {
	border-color: #c8eddf;
	background: var(--green-bg);
	color: #087a5b;
}

.att-calendar__day.is-remote {
	border-color: #cdd9ff;
	background: var(--sky-bg);
	color: #174bff;
}

.att-calendar__day.is-leave {
	border-color: #f6e3a8;
	background: var(--amber-bg);
	color: #a16207;
}

.att-calendar__day.is-absent {
	border-color: #f8ccd6;
	background: var(--red-bg);
	color: #b91c1c;
}

.att-calendar__day.is-today {
	box-shadow: 0 0 0 2px var(--primary);
}

.att-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 9px 12px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-size: 10.5px;
	color: var(--muted);
}

.att-legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.att-legend i {
	width: 7px;
	height: 7px;
	border-radius: 2px;
}

.att-legend i.is-present { background: var(--green); }
.att-legend i.is-remote  { background: var(--sky); }
.att-legend i.is-leave   { background: #d4a017; }
.att-legend i.is-absent  { background: var(--red); }

.att-meters {
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin-top: 16px;
}

.att-meter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 5px;
	font-size: 11px;
	color: var(--muted);
}

.att-meter__head strong {
	font-size: 11.5px;
	color: var(--ink-2);
	font-variant-numeric: tabular-nums;
}

.att-meter__track {
	height: 6px;
	border-radius: 999px;
	background: var(--surface-2);
	overflow: hidden;
}

.att-meter__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--primary);
	transition: width 0.4s ease;
}

.att-meter--green .att-meter__fill { background: linear-gradient(90deg, #0f9d76, #34d399); }
.att-meter--blue .att-meter__fill  { background: linear-gradient(90deg, #174bff, #60a5fa); }
.att-meter--amber .att-meter__fill { background: linear-gradient(90deg, #d4a017, #ffd500); }
.att-meter--red .att-meter__fill   { background: linear-gradient(90deg, #d61f45, #f472b6); }

@media (max-width: 1180px) {
	.att-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.att-hero__panel {
		width: 100%;
	}
}

@media (max-width: 1040px) {
	.att-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.att-hero {
		padding: 24px 22px;
		border-radius: var(--radius);
	}

	.att-hero__title {
		font-size: 24px;
	}

	.att-hero__actions,
	.att-hero__actions form {
		width: 100%;
	}

	.att-hero__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.att-hero__jump {
		margin-left: 0;
	}

	.att-hero__metric {
		padding: 13px 14px;
	}

	.att-hero__metric strong {
		font-size: 18px;
	}

	.att-timeline__body {
		flex-direction: column;
		gap: 7px;
	}

	.att-timeline__aside {
		align-self: flex-start;
	}
}

@media (max-width: 480px) {
	.att-hero {
		padding: 22px 18px;
	}

	.att-hero__title {
		font-size: 22px;
	}

	.att-hero__metric--wide {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.att-hero__live {
		white-space: normal;
	}
}

/* ============================ CRM analytics ============================ */
.crmi-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.crmi-kpi .stat__value {
	font-size: 27px;
}

.crmi-kpi__foot {
	margin: 7px 0 0;
	font-size: 11.5px;
	color: var(--faint);
}

.crmi {
	margin-top: 20px;
}

.crmi-scope {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	font-size: 11.5px;
	color: var(--muted);
}

.crmi-scope .icon {
	width: 14px;
	height: 14px;
	color: var(--primary);
}

.crmi-pulse {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	margin-bottom: 18px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--line);
	box-shadow: var(--shadow-sm);
}

.crmi-pulse__item {
	min-width: 0;
	padding: 14px 16px;
	background: var(--surface);
}

.crmi-pulse__item span {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--faint);
}

.crmi-pulse__item strong {
	display: block;
	margin-top: 5px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.crmi-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 18px;
	margin-top: 18px;
}

.crmi-grid .card,
.crmi .crmi-panel {
	margin-top: 0;
}

.crmi-panel--full {
	margin-top: 18px !important;
}

.crmi-panel .card__head {
	align-items: center;
}

.crmi-panel__title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.crmi-panel__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.crmi-panel__icon .icon {
	width: 18px;
	height: 18px;
}

.crmi-panel__body--flush {
	padding-top: 0;
}

.crmi-legend {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
}

.crmi-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.crmi-legend__swatch {
	width: 9px;
	height: 9px;
	border-radius: 3px;
}

.crmi-legend__swatch--created {
	background: var(--primary);
}

.crmi-legend__swatch--won {
	background: var(--green);
}

/* Funnel */
.crmi-funnel {
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.crmi-funnel__row {
	display: grid;
	grid-template-columns: 185px minmax(0, 1fr) 180px;
	align-items: center;
	gap: 15px;
}

.crmi-funnel__label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.crmi-funnel__label strong {
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink-2);
}

.crmi-funnel__label small {
	margin-left: auto;
	font-size: 10.5px;
	color: var(--faint);
	white-space: nowrap;
}

.crmi-dot {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary);
}

.crmi-dot--new { background: #38bdf8; }
.crmi-dot--contacted { background: #0ea5e9; }
.crmi-dot--qualified { background: #8b5cf6; }
.crmi-dot--proposal { background: #f59e0b; }
.crmi-dot--won,
.crmi-dot--green { background: var(--green); }
.crmi-dot--lost,
.crmi-dot--red { background: var(--red); }
.crmi-dot--indigo { background: #6366f1; }
.crmi-dot--blue { background: #3b82f6; }
.crmi-dot--sky { background: #0ea5e9; }
.crmi-dot--violet { background: var(--primary); }
.crmi-dot--amber { background: #f59e0b; }
.crmi-dot--slate { background: var(--slate); }

.crmi-funnel__track {
	height: 26px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--surface-2);
}

.crmi-funnel__bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	padding-right: 9px;
	border-radius: 8px;
	background: linear-gradient(90deg, #a855f7, var(--primary));
	font-size: 10.5px;
	font-weight: 700;
	color: #fff;
	transition: width 0.35s ease;
}

.crmi-funnel__bar--new { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.crmi-funnel__bar--contacted { background: linear-gradient(90deg, #0ea5e9, #0284c7); }
.crmi-funnel__bar--qualified { background: linear-gradient(90deg, #8b5cf6, #7200d8); }
.crmi-funnel__bar--proposal { background: linear-gradient(90deg, #f59e0b, #d97706); }
.crmi-funnel__bar--won,
.crmi-funnel__bar--green { background: linear-gradient(90deg, #10b981, #047857); }
.crmi-funnel__bar--lost,
.crmi-funnel__bar--red { background: linear-gradient(90deg, #f43f5e, #be123c); }
.crmi-funnel__bar--indigo { background: linear-gradient(90deg, #6366f1, #4338ca); }
.crmi-funnel__bar--blue { background: linear-gradient(90deg, #60a5fa, #1d4ed8); }
.crmi-funnel__bar--sky { background: linear-gradient(90deg, #38bdf8, #0369a1); }
.crmi-funnel__bar--violet { background: linear-gradient(90deg, #a855f7, #7200d8); }
.crmi-funnel__bar--amber { background: linear-gradient(90deg, #fbbf24, #b45309); }
.crmi-funnel__bar--slate { background: linear-gradient(90deg, #94a3b8, #475569); }

.crmi-funnel__stats {
	text-align: right;
}

.crmi-funnel__stats strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.crmi-funnel__stats small {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	color: var(--faint);
}

/* Monthly trend */
.crmi-trend {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	padding-top: 20px;
}

.crmi-trend__col {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
}

.crmi-trend__bars {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 5px;
	width: 100%;
	height: 136px;
	padding-bottom: 1px;
	border-bottom: 1px dashed var(--line-strong);
}

.crmi-trend__bar {
	position: relative;
	width: 30%;
	max-width: 30px;
	border-radius: 7px 7px 3px 3px;
	transition: height 0.35s ease;
}

.crmi-trend__bar--created {
	background: linear-gradient(180deg, #9b4dff, var(--primary));
}

.crmi-trend__bar--won {
	background: linear-gradient(180deg, #34d399, var(--green));
}

.crmi-trend__bar em {
	position: absolute;
	top: -17px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	color: var(--muted);
}

.crmi-trend__month {
	margin-top: 8px;
	font-size: 11px;
	font-weight: 650;
	color: var(--ink-2);
}

.crmi-trend__value {
	margin-top: 2px;
	font-size: 10px;
	color: var(--faint);
	white-space: nowrap;
}

/* Source table */
.crmi-table td,
.crmi-table th {
	white-space: nowrap;
}

.crmi-mini-bar {
	display: block;
	width: 100%;
	min-width: 70px;
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--primary-050);
}

.crmi-mini-bar > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--gradient);
}

.crmi-mini-bar--green > span { background: linear-gradient(90deg, #34d399, var(--green)); }
.crmi-mini-bar--sky > span { background: linear-gradient(90deg, #38bdf8, #0369a1); }
.crmi-mini-bar--violet > span { background: linear-gradient(90deg, #a855f7, var(--primary)); }
.crmi-mini-bar--indigo > span { background: linear-gradient(90deg, #818cf8, #4338ca); }
.crmi-mini-bar--amber > span { background: linear-gradient(90deg, #fbbf24, #b45309); }
.crmi-mini-bar--slate > span { background: linear-gradient(90deg, #94a3b8, #475569); }

/* Follow-up health */
.crmi-health {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.crmi-health__tile {
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}

.crmi-health__tile span {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--faint);
}

.crmi-health__tile strong {
	display: block;
	margin-top: 3px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.crmi-health__tile.is-danger {
	border-color: rgba(214, 31, 69, 0.2);
	background: linear-gradient(180deg, #fff 0%, #fff5f7 100%);
}

.crmi-health__tile.is-danger strong { color: var(--red); }
.crmi-health__tile.is-warn strong { color: #b45309; }
.crmi-health__tile.is-ok strong { color: var(--green); }

.crmi-health__bar {
	display: flex;
	height: 9px;
	margin-top: 16px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.crmi-health__bar .is-danger { background: #f43f5e; }
.crmi-health__bar .is-warn { background: #f59e0b; }
.crmi-health__bar .is-ok { background: #10b981; }
.crmi-health__bar .is-none { background: #cbd5e1; }

.crmi-note {
	margin: 12px 0 0;
	font-size: 11.5px;
	color: var(--muted);
}

/* Owner leaderboard */
.crmi-rank {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.crmi-rank__row {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}

.crmi-rank__pos {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	font-size: 10.5px;
	font-weight: 700;
	color: var(--muted);
}

.crmi-rank__row:first-child .crmi-rank__pos {
	background: var(--primary-100);
	border-color: rgba(114, 0, 216, 0.2);
	color: var(--primary);
}

.crmi-rank__body {
	flex: 1;
	min-width: 0;
}

.crmi-rank__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.crmi-rank__head strong {
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crmi-rank__head span {
	font-size: 11px;
	font-weight: 650;
	color: var(--primary);
	white-space: nowrap;
}

.crmi-rank__body .crmi-mini-bar {
	margin: 6px 0 5px;
}

.crmi-rank__body small {
	font-size: 10.5px;
	color: var(--faint);
}

/* Channel mix */
.crmi-channels {
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.crmi-channel {
	display: flex;
	align-items: center;
	gap: 10px;
}

.crmi-channel__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 9px;
}

.crmi-channel__icon .icon {
	width: 15px;
	height: 15px;
}

.crmi-channel__body {
	flex: 1;
	min-width: 0;
}

.crmi-channel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 5px;
}

.crmi-channel__head strong {
	font-size: 12px;
	font-weight: 650;
	color: var(--ink-2);
}

.crmi-channel__head span {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--ink);
}

/* Insight lists */
.crmi-list {
	display: flex;
	flex-direction: column;
}

.crmi-list__row {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	color: inherit;
	text-decoration: none;
}

.crmi-list__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.crmi-list__row > .icon {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: var(--faint);
	transition: transform 0.15s ease;
}

.crmi-list__row:hover > .icon {
	transform: translateX(2px);
	color: var(--primary);
}

.crmi-list__main {
	flex: 1;
	min-width: 0;
}

.crmi-list__main strong {
	display: block;
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crmi-list__main small {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	color: var(--faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crmi-list__value {
	flex: 0 0 auto;
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.crmi-list__value.is-won {
	color: var(--green);
}

.crmi-empty {
	margin: 0;
	padding: 18px 0;
	font-size: 12px;
	color: var(--faint);
}

/* ============================ Lead detail ============================ */
.ld-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 26px 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(120% 190% at 0% 0%, rgba(114, 0, 216, 0.10) 0%, rgba(255, 255, 255, 0) 55%),
		radial-gradient(110% 170% at 100% 0%, rgba(240, 0, 200, 0.08) 0%, rgba(255, 255, 255, 0) 52%),
		var(--surface);
	box-shadow: var(--shadow-sm);
}

.ld-hero__orb {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.ld-hero__orb--a {
	top: -90px;
	right: -60px;
	width: 210px;
	height: 210px;
	background: radial-gradient(circle, rgba(114, 0, 216, 0.16) 0%, rgba(114, 0, 216, 0) 70%);
}

.ld-hero__orb--b {
	bottom: -100px;
	left: 38%;
	width: 170px;
	height: 170px;
	background: radial-gradient(circle, rgba(240, 0, 200, 0.12) 0%, rgba(240, 0, 200, 0) 70%);
}

.ld-hero__top {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 22px;
	flex-wrap: wrap;
}

.ld-hero__main {
	display: flex;
	align-items: flex-start;
	gap: 17px;
	min-width: 0;
}

.ld-hero__badge {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 68px;
	height: 68px;
	border-radius: 20px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #fff;
	background: linear-gradient(140deg, var(--avatar, #7200d8), #24005a);
	box-shadow: 0 16px 30px -16px rgba(36, 0, 90, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ld-hero__identity {
	min-width: 0;
}

.ld-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.ld-hero__sep {
	color: var(--line-strong);
}

.ld-hero__title {
	margin: 5px 0 0;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -0.04em;
	color: var(--ink);
}

.ld-hero__contact-name {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 5px 0 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
}

.ld-hero__contact-name .icon {
	width: 13px;
	height: 13px;
	color: var(--faint);
}

.ld-hero__pills {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.ld-hero__pills .tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ld-hero__pills .tag--green {
	border-color: rgba(15, 157, 118, 0.18);
	background: var(--green-bg);
	color: #087a5b;
}

.ld-hero__pills .tag .icon,
.ld-hero__pills .pill .icon {
	width: 12px;
	height: 12px;
}

.ld-hero__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 0 0 auto;
	flex-wrap: wrap;
	max-width: 100%;
	margin-left: auto;
}

.ld-hero__meta {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	padding-top: 20px;
	border-top: 1px dashed var(--line-strong);
}

.ld-hero__meta-item {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	min-width: 0;
	padding: 13px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 247, 255, 0.78) 100%);
}

.ld-hero__meta-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 10px;
}

.ld-hero__meta-icon .icon {
	width: 15px;
	height: 15px;
}

.ld-hero__meta-text {
	min-width: 0;
}

.ld-hero__meta-label {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--faint);
}

.ld-hero__meta-value {
	display: flex;
	align-items: baseline;
	gap: 7px;
	margin-top: 3px;
	font-size: 16px;
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.ld-hero__meta-value em {
	font-style: normal;
	padding: 1px 6px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	font-size: 9.5px;
	font-weight: 650;
	color: var(--faint);
}

.ld-hero__meta-value.is-late {
	color: var(--red);
}

.ld-hero__meta-text small {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	color: var(--faint);
}

.ld-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
	align-items: start;
	gap: 20px;
}

.ld-layout__main,
.ld-layout__side {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.ld-layout__side .card,
.ld-layout__main .card {
	margin-top: 0;
}

.ld-card__title-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ld-card__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.ld-card__icon .icon {
	width: 18px;
	height: 18px;
}

.ld-composer .card__body {
	padding-top: 16px;
}

.ld-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ld-channels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.ld-channels__legend {
	width: 100%;
	margin-bottom: 2px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.ld-chip {
	position: relative;
	cursor: pointer;
}

.ld-chip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ld-chip__body {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-2);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ld-chip:hover .ld-chip__body {
	border-color: var(--line-strong);
	background: var(--surface-2);
}

.ld-chip input:checked + .ld-chip__body {
	border-color: var(--primary);
	background: var(--primary-050);
	color: var(--primary);
	box-shadow: 0 0 0 3px rgba(114, 0, 216, 0.08);
}

.ld-chip input:focus-visible + .ld-chip__body {
	outline: 2px solid rgba(114, 0, 216, 0.35);
	outline-offset: 2px;
}

.ld-chip__icon {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 8px;
}

.ld-chip__icon .icon {
	width: 13px;
	height: 13px;
}

.ld-form__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.ld-upload {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 9px 14px 9px 12px;
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	background: var(--surface-2);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ld-upload:hover {
	border-color: var(--primary);
	background: var(--primary-050);
}

.ld-upload.is-selected {
	border-style: solid;
	border-color: var(--primary);
	background: var(--primary-050);
}

.ld-upload > .icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--primary);
}

.ld-upload__text {
	min-width: 0;
}

.ld-upload__text strong {
	display: block;
	font-size: 12px;
	font-weight: 650;
	color: var(--ink-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 280px;
}

.ld-upload__text small {
	display: block;
	margin-top: 1px;
	font-size: 10.5px;
	color: var(--faint);
}

.ld-upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ld-mix {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
	padding-bottom: 16px;
	border-bottom: 1px dashed var(--line-strong);
}

.ld-mix__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 5px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-size: 11px;
	font-weight: 600;
	color: var(--ink-2);
}

.ld-mix__item.is-empty {
	opacity: 0.48;
}

.ld-mix__icon {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 7px;
}

.ld-mix__icon .icon {
	width: 11px;
	height: 11px;
}

.ld-mix__item strong {
	font-size: 11px;
	font-weight: 700;
	color: var(--ink);
}

.ld-feed {
	display: flex;
	flex-direction: column;
}

.ld-note {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 14px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}

.ld-note:last-child {
	padding-bottom: 2px;
	border-bottom: 0;
}

.ld-note__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 13px;
}

.ld-note__icon .icon {
	width: 18px;
	height: 18px;
}

.ld-note__head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ld-note__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 7px;
	background: var(--slate-bg);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--slate);
}

.ld-note__badge .icon {
	width: 11px;
	height: 11px;
}

.ld-note--sky .ld-note__badge { background: var(--sky-bg); color: #0369a1; }
.ld-note--violet .ld-note__badge { background: var(--violet-bg); color: #7c3aed; }
.ld-note--green .ld-note__badge { background: var(--green-bg); color: #087a5b; }
.ld-note--indigo .ld-note__badge { background: #eef2ff; color: #4f46e5; }
.ld-note--amber .ld-note__badge { background: var(--amber-bg); color: #a16207; }
.ld-note--slate .ld-note__badge { background: var(--slate-bg); color: var(--slate); }

.ld-note__author {
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink);
}

.ld-note__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--faint);
}

.ld-note__time {
	font-size: 11px;
	color: var(--faint);
}

.ld-note__text {
	margin: 9px 0 0;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.ld-file {
	display: flex;
	align-items: center;
	gap: 11px;
	max-width: 470px;
	margin-top: 12px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ld-file:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow-sm);
}

.ld-file__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--violet-bg);
	color: var(--primary);
}

.ld-file__icon .icon {
	width: 16px;
	height: 16px;
}

.ld-file__meta {
	flex: 1;
	min-width: 0;
}

.ld-file__meta strong {
	display: block;
	font-size: 12px;
	font-weight: 650;
	color: var(--ink-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ld-file__meta small {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	color: var(--faint);
}

.ld-file__action {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: 0 0 auto;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--primary);
}

.ld-file__action .icon {
	width: 14px;
	height: 14px;
}

.ld-side-card .card__head {
	align-items: center;
}

.ld-stages {
	display: flex;
	flex-direction: column;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.ld-stage {
	position: relative;
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) auto;
	align-items: start;
	gap: 11px;
	padding-bottom: 16px;
}

.ld-stage:last-child {
	padding-bottom: 0;
}

.ld-stage::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 24px;
	bottom: 0;
	width: 2px;
	border-radius: 2px;
	background: var(--line);
}

.ld-stage:last-child::before {
	display: none;
}

.ld-stage.is-done::before {
	background: rgba(15, 157, 118, 0.35);
}

.ld-stage__dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 2px solid var(--line-strong);
	border-radius: 50%;
	background: var(--surface);
	color: var(--faint);
}

.ld-stage__dot .icon {
	width: 11px;
	height: 11px;
}

.ld-stage.is-done .ld-stage__dot {
	border-color: var(--green);
	background: var(--green-bg);
	color: var(--green);
}

.ld-stage.is-current .ld-stage__dot {
	border-color: var(--primary);
	background: var(--gradient);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(114, 0, 216, 0.12);
}

.ld-stage__body strong {
	display: block;
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink-2);
}

.ld-stage.is-current .ld-stage__body strong {
	color: var(--primary);
}

.ld-stage__body small {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	color: var(--faint);
}

.ld-stage__now {
	align-self: center;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--primary-050);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary);
}

.ld-stage-form {
	padding-top: 16px;
	border-top: 1px dashed var(--line-strong);
}

.ld-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ld-fact {
	min-width: 0;
	padding: 11px 13px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}

.ld-fact span {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--faint);
}

.ld-fact strong {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.ld-fact strong a {
	color: var(--primary);
}

.ld-contact-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 14px;
}

.ld-contact {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 9px 11px;
	border: 1px solid var(--line);
	border-radius: 11px;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ld-contact:hover {
	border-color: var(--line-strong);
	background: var(--surface-2);
}

.ld-contact__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 9px;
}

.ld-contact__icon .icon {
	width: 14px;
	height: 14px;
}

.ld-contact small {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.ld-contact strong {
	display: block;
	margin-top: 1px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ld-side-card .ld-delete {
	margin-top: 14px;
	border-color: rgba(214, 31, 69, 0.22);
	color: var(--red);
}

.ld-side-card .ld-delete:hover {
	background: var(--red-bg);
	border-color: rgba(214, 31, 69, 0.35);
}

.ld-summary {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--ink-2);
}

/* CRM responsive */
@media (max-width: 1280px) {
	.crmi-kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.crmi-pulse {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1120px) {
	.ld-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.crmi-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.crmi-funnel__row {
		grid-template-columns: 160px minmax(0, 1fr) 150px;
	}
}

@media (max-width: 900px) {
	.ld-hero__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.crmi-pulse {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.crmi-kpis {
		grid-template-columns: minmax(0, 1fr);
	}

	.crmi-funnel__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
	}

	.crmi-funnel__label small {
		margin-left: 0;
	}

	.crmi-funnel__stats {
		text-align: left;
	}

	.crmi-trend__bar em {
		display: none;
	}

	.crmi-trend__value {
		display: none;
	}

	.ld-hero {
		padding: 20px;
	}

	.ld-hero__top {
		gap: 16px;
	}

	.ld-hero__badge {
		width: 56px;
		height: 56px;
		border-radius: 16px;
		font-size: 19px;
	}

	.ld-hero__actions {
		width: 100%;
		justify-content: flex-start;
	}

	.ld-hero__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.ld-hero__actions .inline-form {
		flex: 1 1 auto;
	}

	.ld-hero__actions .inline-form .btn {
		width: 100%;
	}

	.ld-hero__meta {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.ld-form__foot {
		align-items: stretch;
	}

	.ld-upload {
		width: 100%;
	}

	.ld-form__foot .btn {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 560px) {
	.crmi-pulse {
		grid-template-columns: minmax(0, 1fr);
	}

	.crmi-legend {
		display: none;
	}

	.ld-note {
		grid-template-columns: 34px minmax(0, 1fr);
		gap: 11px;
	}

	.ld-note__icon {
		width: 34px;
		height: 34px;
		border-radius: 11px;
	}

	.ld-note__time {
		width: 100%;
	}

	.ld-file__action span {
		display: none;
	}

	.ld-facts {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------ Credential Manager ------------------------------ */

.cm-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
	flex-wrap: wrap;
	padding: 34px 38px;
	border-radius: var(--radius-lg);
	color: #fff;
	background:
		radial-gradient(85% 130% at 100% -10%, rgba(240, 0, 200, 0.38), transparent 55%),
		radial-gradient(70% 130% at 0% 120%, rgba(23, 75, 255, 0.34), transparent 58%),
		linear-gradient(112deg, #170132 0%, #38076f 46%, #7603dd 100%);
	box-shadow: 0 30px 70px -44px rgba(24, 1, 52, 0.95);
}

.cm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 42px 42px;
	-webkit-mask-image: radial-gradient(120% 140% at 88% 0%, #000 0%, transparent 70%);
	mask-image: radial-gradient(120% 140% at 88% 0%, #000 0%, transparent 70%);
	pointer-events: none;
}

.cm-hero::after {
	content: "";
	position: absolute;
	right: -90px;
	top: -110px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.04), 0 0 0 68px rgba(255, 255, 255, 0.028);
	pointer-events: none;
}

.cm-hero__main {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	max-width: 760px;
}

.cm-hero__text {
	min-width: 0;
}

.cm-hero__mark {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
	border-radius: 18px;
	color: #fff;
	background: rgba(255, 255, 255, 0.13);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(8px);
}

.cm-hero__mark .icon {
	width: 26px;
	height: 26px;
}

.cm-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.66);
}

.cm-hero__dot {
	width: 6px;
	height: 6px;
	flex: 0 0 6px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

.cm-hero__title {
	max-width: 630px;
	margin: 0;
	font-size: clamp(22px, 2.3vw, 29px);
	line-height: 1.15;
	letter-spacing: -0.028em;
	font-weight: 700;
}

.cm-hero__copy {
	max-width: 645px;
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.62;
	color: rgba(255, 255, 255, 0.74);
}

.cm-hero__features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 18px;
}

.cm-hero__feature {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.7);
}

.cm-hero__feature .icon {
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	color: #c4b5fd;
}

.cm-lock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 9px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--primary-050);
	color: var(--primary);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.cm-lock .icon {
	width: 13px;
	height: 13px;
}

.cm-lock--light {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
}

.cm-hero__aside {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	margin-left: auto;
}

.cm-hero__cta {
	height: 42px;
	padding: 0 18px;
	border-radius: 12px;
	font-weight: 650;
}

.cm-hero__aside .btn--primary {
	background: #fff;
	color: var(--royal);
	box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6);
}

.cm-hero__aside .btn--primary:hover {
	background: var(--primary-050);
}

/* Metric strip */

.cm-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin-top: 22px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.cm-metric {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px 22px 18px;
	background: var(--surface);
}

.cm-metric__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 15px;
}

.cm-metric__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
}

.cm-metric__icon .icon {
	width: 19px;
	height: 19px;
}

.cm-metric__tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cm-metric__tag--amber {
	border-color: #f3dfae;
	background: var(--amber-bg);
	color: #8a6400;
}

.cm-metric__label {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--muted);
}

.cm-metric__value {
	margin-top: 2px;
	font-size: 29px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.045em;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.cm-metric__foot {
	display: flex;
	align-items: flex-start;
	min-height: 32px;
	margin: 9px 0 0;
	font-size: 11px;
	line-height: 1.45;
	color: var(--faint);
}

/* Filter bar and table panels */

.cm-toolbar {
	margin: 22px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: var(--shadow-sm);
	backdrop-filter: blur(8px);
}

.cm-toolbar .toolbar__filters {
	gap: 8px;
}

.cm-toolbar .toolbar__search {
	flex: 1 1 300px;
	max-width: 380px;
}

.cm-toolbar .toolbar__filters > .select {
	min-width: 160px;
}

.cm-toolbar .toolbar__meta {
	margin-left: auto;
}

.cm-toolbar .input,
.cm-toolbar .select,
.cm-toolbar .btn {
	height: 38px;
}

.cm-panel {
	margin-top: 22px;
	overflow: hidden;
}

.cm-panel .card__head {
	align-items: center;
	padding: 20px 24px 16px;
}

.cm-panel .card__body {
	padding: 4px 24px 24px;
}

.cm-panel .card__head + .card__body {
	padding-top: 4px;
}

.cm-panel .card__head > .cm-lock,
.cm-panel .card__head > .pill {
	flex: 0 0 auto;
}

.cm-panel .table {
	font-size: 12.5px;
}

.cm-panel .table th {
	padding: 11px 16px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: #faf7ff;
}

.cm-panel .table td {
	padding: 16px;
	border-bottom-color: var(--line);
}

.cm-panel .table th:first-child,
.cm-panel .table td:first-child {
	padding-left: 24px;
}

.cm-panel .table th:last-child,
.cm-panel .table td:last-child {
	padding-right: 24px;
}

.cm-panel .table tbody tr:hover {
	background: #fbf8ff;
}

.cm-vault-table th:nth-child(2) {
	width: 132px;
}

.cm-vault-table th:nth-child(3) {
	width: 148px;
}

.cm-vault-table th:nth-child(4) {
	width: 150px;
}

.cm-log-table th:first-child {
	width: 152px;
}

.cm-log-table th:nth-child(3) {
	width: 118px;
}

.cm-panel .empty {
	padding: 46px 24px;
}

.cm-grid--page {
	margin-top: 22px;
}

.cm-kpis {
	margin-top: 22px;
}


.cm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.cm-cred {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cm-cred:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow);
	transform: translateY(-1px);
}

.cm-cred__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 17px 18px 13px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
}

.cm-cred__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 14px;
}

.cm-cred__icon .icon {
	width: 21px;
	height: 21px;
}

.cm-cred__titles {
	flex: 1;
	min-width: 0;
}

.cm-cred__titleline {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.cm-cred__titleline h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.012em;
	color: var(--ink);
}

.cm-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--slate-bg);
	color: var(--slate);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cm-cred__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 5px 0 0;
	font-size: 11px;
	color: var(--muted);
}

.cm-cred__meta a,
.cm-cred__meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.cm-cred__meta a:hover {
	color: var(--primary);
}

.cm-cred__meta .icon {
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
}

.cm-cred__head > .cm-lock {
	margin-left: auto;
	flex: 0 0 auto;
}

.cm-secret-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	padding: 15px 18px 16px;
}

.cm-secret-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.cm-secret-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--faint);
}

.cm-secret-box {
	display: flex;
	align-items: center;
	gap: 3px;
	min-height: 38px;
	padding: 3px 4px 3px 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-2);
}

.cm-secret-input {
	flex: 1;
	min-width: 0;
	padding: 6px 2px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--mono);
	font-size: 12.5px;
}

.cm-secret-input--password {
	letter-spacing: 0.06em;
}

.cm-secret-input::placeholder {
	color: var(--faint);
	letter-spacing: 1.4px;
}

.cm-secret-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 7px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 10.5px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.cm-secret-btn .icon {
	width: 13px;
	height: 13px;
}

.cm-secret-btn:hover {
	background: #fff;
	border-color: var(--line);
	color: var(--ink);
}

.cm-secret-btn--accent {
	color: var(--primary);
	background: var(--primary-050);
}

.cm-secret-btn--accent:hover {
	background: var(--primary-100);
	color: var(--primary-600);
}

.cm-secret-btn.is-revealed {
	color: #b91c1c;
	background: var(--red-bg);
}

.cm-secret-btn.is-copied {
	color: var(--green);
	background: var(--green-bg);
}

.cm-secret-off {
	padding-right: 5px;
	font-size: 10px;
	color: var(--faint);
	white-space: nowrap;
}

.cm-secret-error {
	display: block;
	font-size: 11px;
	line-height: 1.45;
	color: var(--red);
}

.cm-secret-error:empty {
	display: none;
}

.cm-url-box {
	display: flex;
	align-items: center;
	min-height: 38px;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-2);
}

.cm-url {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	color: var(--primary);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.cm-url span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-url .icon {
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
}

.cm-url:hover {
	color: var(--primary-600);
}

.cm-url--plain {
	color: var(--muted);
	font-weight: 500;
}

.cm-note-line {
	display: flex;
	align-items: center;
	min-height: 38px;
	padding: 6px 10px;
	border: 1px dashed var(--line-strong);
	border-radius: 10px;
	background: #fdfbff;
}

.cm-note-hint {
	font-size: 11.5px;
	color: var(--muted);
}

.cm-cred__notes {
	margin: 0 18px 14px;
	padding: 10px 12px;
	border: 1px dashed var(--line-strong);
	border-radius: 10px;
	background: var(--amber-bg);
	color: #7c4a00;
	font-family: var(--mono);
	font-size: 11.5px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}

.cm-cred__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: auto;
	padding: 11px 18px;
	border-top: 1px solid var(--line);
	background: #fcfbfe;
}

.cm-cred__people {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.cm-avatar-stack {
	display: flex;
	align-items: center;
}

.cm-avatar-stack .avatar {
	margin-left: -7px;
	border: 2px solid #fff;
}

.cm-avatar-stack .avatar:first-child {
	margin-left: 0;
}

.cm-avatar-more {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-left: -7px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--primary-100);
	color: var(--primary);
	font-size: 9px;
	font-weight: 700;
}

.cm-people-text {
	font-size: 11px;
	color: var(--muted);
}

.cm-cred__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.cm-cred__actions .btn--sm {
	height: 32px;
}

.cm-client-head,
.cm-assign-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: linear-gradient(120deg, #fff 0%, #faf6ff 58%, #f2e7ff 100%);
	box-shadow: var(--shadow-sm);
}

.cm-client-head__main,
.cm-assign-head__main {
	display: flex;
	align-items: center;
	gap: 15px;
	min-width: 0;
}

.cm-client-head__title {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cm-client-head__title h2,
.cm-assign-head__main h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.cm-client-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 16px;
	margin: 7px 0 0;
	font-size: 12px;
	color: var(--muted);
}

.cm-client-head__meta a,
.cm-client-head__meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.cm-client-head__meta a:hover {
	color: var(--primary);
}

.cm-client-head__meta .icon {
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
}

.cm-client-head__actions,
.cm-assign-head__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.cm-assign-head .cm-eyebrow {
	color: var(--faint);
}

.cm-assign-head__main p {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	margin: 5px 0 0;
	font-size: 12px;
	color: var(--muted);
}

.cm-assign-head__main .dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--faint);
}

.cm-stat-date {
	font-size: 23px !important;
}

.cm-bulk-card .card__body {
	padding-top: 4px;
}

.cm-bulk {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.cm-bulk__panel {
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface-2);
}

.cm-bulk__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.cm-bulk__head .field__label {
	margin: 0;
}

.cm-check-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	max-height: 272px;
	overflow: auto;
	padding-right: 2px;
}

.cm-check-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.cm-person {
	width: 100%;
	min-width: 0;
	background: #fff;
}

.cm-person.is-assigned {
	border-color: #bfe9db;
	background: #f2fcf8;
}

.cm-person__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.cm-person__text strong {
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink-2);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-person__text small {
	overflow: hidden;
	font-size: 10.5px;
	color: var(--faint);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-cred-choice {
	align-items: center;
}

.cm-cred-choice__icon {
	display: grid;
	place-items: center;
	width: 27px;
	height: 27px;
	flex: 0 0 27px;
	border-radius: 8px;
}

.cm-cred-choice__icon .icon {
	width: 14px;
	height: 14px;
}

.cm-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin: 28px 0 14px;
}

.cm-section-head h2 {
	margin: 0;
	font-size: 17px;
	letter-spacing: -0.015em;
}

.cm-section-head p {
	margin: 3px 0 0;
	font-size: 12px;
	color: var(--muted);
}

.cm-section-head .link-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.cm-section-head .link-btn .icon {
	width: 14px;
	height: 14px;
}

.cm-client-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.cm-client-cell > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cm-client-cell strong {
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-client-cell small {
	overflow: hidden;
	font-size: 10.5px;
	color: var(--faint);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-client-cell:hover strong {
	color: var(--primary);
}

.cm-action {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--slate-bg);
	color: var(--slate);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cm-action--viewed {
	background: var(--sky-bg);
	color: #0369a1;
}

.cm-action--created {
	background: var(--green-bg);
	color: #087a5b;
}

.cm-action--updated {
	background: var(--amber-bg);
	color: #a16207;
}

.cm-action--assigned {
	background: var(--violet-bg);
	color: #7c3aed;
}

.cm-action--deleted,
.cm-action--revoked {
	background: var(--red-bg);
	color: #b91c1c;
}

.cm-form-card {
	max-width: 960px;
}

.cm-locked-field {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-2);
	font-size: 13px;
}

.cm-locked-field .icon:last-child {
	width: 14px;
	height: 14px;
	margin-left: auto;
	color: var(--green);
}

.cm-input-group {
	display: flex;
	align-items: stretch;
	gap: 6px;
}

.cm-input-group .input {
	flex: 1;
	min-width: 0;
}

.cm-input-group__btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-2);
	color: var(--muted);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.cm-input-group__btn:hover {
	border-color: var(--line-strong);
	background: #fff;
	color: var(--ink);
}

.cm-input-group__btn .icon {
	width: 15px;
	height: 15px;
}

.cm-input-group__btn--accent,
.cm-input-group__btn.is-active {
	border-color: var(--primary-100);
	background: var(--primary-050);
	color: var(--primary);
}

.cm-input-group__btn.is-copied {
	border-color: #bfe9db;
	background: var(--green-bg);
	color: var(--green);
}

.cm-form-note {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #dcccf7;
	border-radius: 14px;
	background: linear-gradient(120deg, #faf5ff 0%, #f1e7ff 100%);
}

.cm-form-note__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 10px;
	background: #fff;
	color: var(--primary);
}

.cm-form-note__icon .icon {
	width: 17px;
	height: 17px;
}

.cm-form-note strong {
	font-size: 12.5px;
}

.cm-form-note p {
	margin: 3px 0 0;
	font-size: 11.5px;
	line-height: 1.55;
	color: var(--muted);
}

.cm-assign-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.cm-assigned-flag {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-left: auto;
	color: var(--green);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cm-assigned-flag .icon {
	width: 11px;
	height: 11px;
}

.cm-share-list {
	display: flex;
	flex-direction: column;
}

.cm-share {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--line);
}

.cm-share:first-child {
	padding-top: 0;
}

.cm-share:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.cm-share__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.cm-share__text strong {
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-share__text small {
	overflow: hidden;
	font-size: 10.5px;
	color: var(--faint);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-rule-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-rule-list li {
	display: flex;
	gap: 8px;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--muted);
}

.cm-rule-list .icon {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	margin-top: 2px;
	color: var(--green);
}

.flash--warning {
	border-color: #f3dfae;
	background: var(--amber-bg);
	color: #7c4a00;
}

@media (max-width: 1100px) {
	.cm-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cm-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.cm-hero {
		padding: 28px;
	}

	.cm-toolbar .toolbar__search {
		flex: 1 1 240px;
		max-width: none;
	}

	.cm-bulk {
		grid-template-columns: minmax(0, 1fr);
	}

	.cm-check-grid {
		grid-template-columns: minmax(0, 1fr);
		max-height: 320px;
	}

	.cm-assign-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.cm-hero {
		padding: 24px 20px;
		gap: 22px;
	}

	.cm-hero__main {
		flex-direction: column;
		gap: 14px;
	}

	.cm-hero__mark {
		width: 50px;
		height: 50px;
		flex: 0 0 50px;
		border-radius: 15px;
	}

	.cm-hero__mark .icon {
		width: 22px;
		height: 22px;
	}

	.cm-hero__aside {
		align-items: flex-start;
		margin-left: 0;
	}

	.cm-hero__features {
		gap: 8px 16px;
		margin-top: 14px;
	}

	.cm-metric {
		padding: 18px 18px 16px;
	}

	.cm-toolbar {
		padding: 10px;
	}

	.cm-toolbar .toolbar__filters {
		gap: 8px;
	}

	.cm-toolbar .toolbar__search {
		flex: 1 1 100%;
	}

	.cm-toolbar .toolbar__filters > .select {
		flex: 1 1 160px;
	}

	.cm-toolbar .toolbar__filters > .btn {
		flex: 0 0 auto;
	}

	.cm-toolbar .toolbar__meta {
		display: none;
	}

	.cm-panel .card__head {
		padding: 18px 18px 14px;
	}

	.cm-panel .table th:first-child,
	.cm-panel .table td:first-child {
		padding-left: 18px;
	}

	.cm-panel .table th:last-child,
	.cm-panel .table td:last-child {
		padding-right: 18px;
	}

	.cm-panel .table {
		min-width: 620px;
	}

	.cm-panel .table th,
	.cm-panel .table td {
		white-space: nowrap;
	}

	.cm-secret-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cm-client-head,
	.cm-assign-head {
		padding: 16px;
	}

	.cm-client-head__main,
	.cm-assign-head__main {
		align-items: flex-start;
	}

	.cm-cred__head {
		flex-wrap: wrap;
	}

	.cm-cred__head > .cm-lock {
		display: none;
	}

	.cm-input-group {
		flex-wrap: wrap;
	}

	.cm-input-group .input {
		flex: 1 1 100%;
	}

	.cm-input-group__btn {
		height: 34px;
	}
}

@media (max-width: 560px) {
	.cm-metrics {
		grid-template-columns: minmax(0, 1fr);
	}

	.cm-metric {
		position: relative;
		padding: 16px 18px 16px 70px;
	}

	.cm-metric__top {
		display: contents;
	}

	.cm-metric__icon {
		position: absolute;
		left: 18px;
		top: 16px;
		width: 38px;
		height: 38px;
	}

	.cm-metric__tag {
		position: absolute;
		top: 18px;
		right: 18px;
	}

	.cm-metric__label {
		margin-top: 1px;
	}

	.cm-metric__value {
		margin-top: 1px;
		font-size: 26px;
	}

	.cm-metric__foot {
		min-height: 0;
		margin-top: 5px;
	}
}

/* ------------------------------ Team notes ------------------------------ */

.cm-hero.nt-hero {
	background:
		radial-gradient(85% 130% at 100% -10%, rgba(56, 189, 248, 0.32), transparent 55%),
		radial-gradient(70% 130% at 0% 120%, rgba(240, 0, 200, 0.24), transparent 58%),
		linear-gradient(112deg, #0a1030 0%, #232a78 48%, #4b45d6 100%);
	box-shadow: 0 30px 70px -44px rgba(9, 12, 44, 0.95);
}

.nt-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.nt-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 17px 18px 15px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nt-card:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow);
	transform: translateY(-1px);
}

.nt-card__top {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	min-width: 0;
}

.nt-card__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 13px;
}

.nt-card__icon .icon {
	width: 19px;
	height: 19px;
}

.nt-card__titles {
	flex: 1;
	min-width: 0;
}

.nt-card__titles h3 {
	margin: 0;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.012em;
	color: var(--ink);
}

.nt-card__titles h3 a {
	color: inherit;
	text-decoration: none;
}

.nt-card__titles h3 a:hover {
	color: var(--primary);
}

.nt-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 3px 12px;
	margin: 4px 0 0;
	font-size: 10.5px;
	color: var(--faint);
}

.nt-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.nt-card__meta .icon {
	width: 11px;
	height: 11px;
	flex: 0 0 11px;
}

.nt-card__top > .pill {
	flex: 0 0 auto;
}

.nt-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 13px 0 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.nt-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 13px;
}

.nt-card__access {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--faint);
}

.nt-card__access .icon {
	width: 12px;
	height: 12px;
	color: var(--primary);
}

.nt-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.nt-card__actions .link-btn {
	font-size: 11.5px;
}

.nt-feed {
	display: flex;
	flex-direction: column;
}

.nt-feed__item {
	display: flex;
	gap: 10px;
	padding: 10px 0;
}

.nt-feed__item + .nt-feed__item {
	border-top: 1px solid #f0f3f9;
}

.nt-feed__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 9px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	color: var(--muted);
}

.nt-feed__icon .icon {
	width: 14px;
	height: 14px;
}

.nt-feed__icon--created {
	color: #047857;
	background: var(--green-bg);
	border-color: #c7efe1;
}

.nt-feed__icon--updated {
	color: #6d28d9;
	background: var(--violet-bg);
	border-color: #e4d4fb;
}

.nt-feed__icon--shared {
	color: #0369a1;
	background: #e0f2fe;
	border-color: #c8e8fb;
}

.nt-feed__icon--revoked {
	color: #b91c1c;
	background: var(--red-bg);
	border-color: #f6d4d4;
}

.nt-feed__text {
	flex: 1;
	min-width: 0;
}

.nt-feed__text p {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--ink-2);
}

.nt-feed__text strong {
	font-weight: 650;
	color: var(--ink);
}

.nt-feed__text a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
}

.nt-feed__text a:hover {
	text-decoration: underline;
}

.nt-feed__text small {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	color: var(--faint);
}

.nt-note-head {
	align-items: flex-start;
}

.nt-note-mark {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	flex: 0 0 54px;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient(135deg, #4b45d6 0%, #7200d8 100%);
	box-shadow: 0 12px 26px -14px rgba(75, 69, 214, 0.8);
}

.nt-note-mark .icon {
	width: 24px;
	height: 24px;
}

.nt-flash {
	margin-top: 18px;
}

.nt-note {
	overflow: hidden;
}

.nt-note__head {
	display: flex;
	align-items: center;
	gap: 11px;
	flex-wrap: wrap;
	padding: 18px 22px 14px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
}

.nt-note__byline {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.nt-note__byline strong {
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink);
}

.nt-note__byline small {
	font-size: 10.5px;
	color: var(--faint);
}

.nt-note__body {
	padding: 22px;
	font-size: 13px;
	line-height: 1.75;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.nt-note__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 22px;
	border-top: 1px solid var(--line);
	background: var(--surface-2);
	font-size: 10.5px;
	color: var(--faint);
}

.nt-note__foot span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.nt-note__foot .icon {
	width: 12px;
	height: 12px;
}

.nt-share-form .nt-modes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.nt-mode {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.nt-mode:hover {
	border-color: var(--line-strong);
}

.nt-mode input {
	width: 15px;
	height: 15px;
	margin: 2px 0 0;
	flex: 0 0 15px;
	accent-color: var(--primary);
}

.nt-mode__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	line-height: 1.35;
}

.nt-mode__text strong {
	font-size: 11.5px;
	font-weight: 650;
	color: var(--ink-2);
}

.nt-mode__text small {
	font-size: 10px;
	color: var(--faint);
}

.nt-people {
	display: flex;
	flex-direction: column;
	max-height: 372px;
	margin-top: 14px;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}

.nt-person {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	transition: background 0.15s ease;
}

.nt-person + .nt-person {
	border-top: 1px solid #f2f5fa;
}

.nt-person.is-on {
	background: #f7fbfa;
}

.nt-person__pick {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1;
	min-width: 0;
	cursor: pointer;
}

.nt-person__pick input {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	accent-color: var(--primary);
}

.nt-person__access {
	width: 92px;
	height: 32px;
	flex: 0 0 92px;
	padding: 0 8px;
	font-size: 11.5px;
}

.nt-share-actions {
	margin-top: 14px;
}

.pagination-wrap {
	margin-top: 18px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.pagination-wrap .pagination {
	border-top: 0;
}

/* ------------------------------ Client remarks ------------------------------ */

.rmk-form {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.rmk-form__input {
	min-height: 76px;
	resize: vertical;
}

.rmk-form__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.rmk-form__foot .field__hint {
	margin: 0;
}

.rmk-empty {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 2px 2px;
	color: var(--faint);
}

.rmk-empty .icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	color: var(--primary);
}

.rmk-empty p {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.55;
}

.rmk-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rmk {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 0;
}

.rmk + .rmk {
	border-top: 1px solid #f2f5fa;
}

.rmk:last-child {
	padding-bottom: 2px;
}

.rmk__body {
	flex: 1;
	min-width: 0;
}

.rmk__head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.rmk__head strong {
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink);
}

.rmk__you {
	display: inline-flex;
	align-items: center;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--primary-050);
	color: var(--primary);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.rmk__time {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	font-size: 10.5px;
	color: var(--faint);
}

.rmk__time .icon {
	width: 11px;
	height: 11px;
}

.rmk__text {
	margin: 5px 0 0;
	font-size: 12.5px;
	line-height: 1.65;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.rmk__delete {
	flex: 0 0 auto;
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.rmk__delete:hover {
	opacity: 1;
}

@media (max-width: 1100px) {
	.nt-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.nt-share-form .nt-modes {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.nt-card {
		padding: 15px;
	}

	.nt-card__foot {
		align-items: flex-start;
	}

	.nt-note__head {
		padding: 15px 16px 12px;
	}

	.nt-note__body {
		padding: 16px;
	}

	.nt-note__foot {
		padding: 11px 16px;
	}

	.nt-person__access {
		width: 84px;
		flex-basis: 84px;
	}

	.rmk__time {
		margin-left: 0;
		width: 100%;
	}
}

@media (max-width: 560px) {
	.nt-card__top > .pill {
		display: none;
	}

	.nt-card__actions {
		margin-left: 0;
	}

	.nt-note__foot {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	.nt-person {
		flex-wrap: wrap;
	}

	.nt-person__access {
		width: 100%;
		flex: 1 1 100%;
	}

	.rmk__delete {
		opacity: 1;
	}
}

/* ====================== Client portal experience ====================== */

.portal-body {
	background:
		radial-gradient(120% 55% at 50% -18%, rgba(114, 0, 216, 0.16) 0%, rgba(244, 246, 251, 0) 62%),
		linear-gradient(180deg, #fbf9ff 0%, #f6f3fb 44%, #f4f1fa 100%);
	color: var(--ink);
}

.portal-header {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 14px max(20px, calc((100vw - 1120px) / 2));
	background: rgba(255, 255, 255, 0.84);
	border-bottom: 1px solid rgba(36, 0, 90, 0.08);
	box-shadow: 0 10px 30px -26px rgba(36, 0, 90, 0.45);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.portal-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
}

.portal-brand__logo {
	display: block;
	max-width: 168px;
	max-height: 40px;
	object-fit: contain;
}

.portal-brand__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.16;
}

.portal-brand__copy strong {
	max-width: 220px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-brand__copy small {
	font-size: 9.5px;
	font-weight: 750;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--faint);
}

.portal-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
}

.portal-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.portal-nav__link .icon {
	width: 14px;
	height: 14px;
}

.portal-nav__link:hover {
	background: rgba(114, 0, 216, 0.06);
	color: var(--primary);
}

.portal-nav__link.is-active {
	background: #fff;
	color: var(--primary-600);
	box-shadow: 0 2px 8px rgba(36, 0, 90, 0.11);
}

.portal-header__actions {
	display: flex;
	align-items: center;
	gap: 9px;
}

.portal-user {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 11px 4px 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
}

.portal-user__avatar {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--gradient);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

.portal-user__copy {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.portal-user__copy strong {
	max-width: 150px;
	overflow: hidden;
	font-size: 11.5px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-user__copy small {
	font-size: 9.5px;
	color: var(--faint);
}

.portal-main {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 10px 24px 44px;
}

.portal-card {
	max-width: none;
	margin-bottom: 20px;
}

.portal-section {
	scroll-margin-top: 112px;
}

.portal-contextbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 4px 0 14px;
}

.portal-back {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 11px 6px 6px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 650;
	text-decoration: none;
	transition: background 0.14s ease, color 0.14s ease;
}

.portal-back:hover {
	background: rgba(114, 0, 216, 0.07);
	color: var(--primary);
}

.portal-back .icon {
	width: 15px;
	height: 15px;
}

.portal-contextbar__secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--faint);
	font-size: 9.5px;
	font-weight: 750;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.portal-contextbar__secure .icon {
	width: 13px;
	height: 13px;
}

.portal-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin: 2px 0 14px;
	color: var(--muted);
	font-size: 12px;
}

.portal-breadcrumb a {
	color: var(--muted);
	font-weight: 600;
	text-decoration: none;
}

.portal-breadcrumb a:hover {
	color: var(--primary);
}

.portal-breadcrumb__sep {
	display: inline-flex;
	color: var(--faint);
}

.portal-breadcrumb__sep .icon {
	display: block;
	width: 13px;
	height: 13px;
}

.portal-breadcrumb__current {
	color: var(--ink);
	font-weight: 650;
}

.portal-welcome {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
	align-items: center;
	gap: 26px;
	margin-bottom: 20px;
	padding: 30px 32px;
	overflow: hidden;
	border-radius: 24px;
	background:
		radial-gradient(120% 160% at 100% 0%, rgba(240, 0, 200, 0.32) 0%, rgba(36, 0, 90, 0) 54%),
		radial-gradient(90% 130% at 0% 100%, rgba(255, 213, 0, 0.14) 0%, rgba(36, 0, 90, 0) 56%),
		linear-gradient(120deg, #1b0044 0%, #4b00a3 48%, #7200d8 100%);
	color: #fff;
	box-shadow: 0 28px 50px -30px rgba(36, 0, 90, 0.8);
}

.portal-welcome::after {
	position: absolute;
	top: -90px;
	right: -60px;
	width: 260px;
	height: 260px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	content: "";
}

.portal-welcome__main,
.portal-welcome__balance {
	position: relative;
	z-index: 1;
}

.portal-welcome__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.portal-welcome__eyebrow .icon {
	width: 14px;
	height: 14px;
	color: #ffd500;
}

.portal-welcome h1 {
	margin: 8px 0 6px;
	color: #fff;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.12;
}

.portal-welcome p {
	max-width: 540px;
	margin: 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 13px;
	line-height: 1.6;
}

.portal-welcome__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.portal-welcome__balance {
	justify-self: end;
	min-width: 220px;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.11);
	text-align: right;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.portal-welcome__balance span {
	display: block;
	color: rgba(255, 255, 255, 0.66);
	font-size: 9.5px;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.portal-welcome__balance strong {
	display: block;
	margin: 5px 0 3px;
	color: #fff;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1.05;
}

.portal-welcome__balance small {
	color: rgba(255, 255, 255, 0.74);
	font-size: 11.5px;
}

.portal-welcome .btn--light {
	border-color: #fff;
	background: #fff;
	color: var(--primary-600);
}

.portal-welcome .btn--light:hover {
	border-color: #f5edff;
	background: #f5edff;
}

.portal-welcome .btn--glass {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.portal-welcome .btn--glass:hover {
	border-color: rgba(255, 255, 255, 0.46);
	background: rgba(255, 255, 255, 0.18);
}

.portal-birthday {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid rgba(245, 180, 60, 0.35);
	border-radius: 18px;
	background: linear-gradient(120deg, rgba(255, 248, 230, 0.95), rgba(255, 255, 255, 0.95));
}

.portal-birthday__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 12px;
	background: var(--amber-bg);
	color: #9a6b00;
}

.portal-birthday h2 {
	font-size: 15px;
	font-weight: 800;
}

.portal-birthday p {
	margin-top: 2px;
	color: var(--muted);
	font-size: 12px;
}

.portal-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.portal-stat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border-radius: 16px;
	color: var(--ink);
	text-decoration: none;
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.portal-stat:hover {
	border-color: rgba(114, 0, 216, 0.28);
	box-shadow: 0 16px 32px -24px rgba(36, 0, 90, 0.55);
	transform: translateY(-2px);
}

.portal-stat__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 12px;
}

.portal-stat__icon .icon {
	width: 19px;
	height: 19px;
}

.portal-stat__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 1px;
}

.portal-stat__copy small {
	color: var(--faint);
	font-size: 9.5px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.portal-stat__copy strong {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.portal-stat__copy span {
	color: var(--muted);
	font-size: 10.5px;
}

.portal-stat__arrow {
	margin-left: auto;
	color: var(--faint);
}

.portal-stat__arrow .icon {
	width: 16px;
	height: 16px;
}

.portal-pay-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 18px;
	padding: 20px 24px;
	border: 1px solid rgba(36, 0, 90, 0.1);
	border-radius: 20px;
	background: linear-gradient(120deg, #fff 0%, #fbf8ff 100%);
	box-shadow: var(--shadow);
}

.portal-pay-summary__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.portal-pay-summary__main strong {
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1.1;
}

.portal-pay-summary__main small {
	color: var(--muted);
	font-size: 12px;
}

.portal-pay-summary__aside {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.portal-callout {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 20px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--shadow);
}

.portal-callout--amber {
	border-color: rgba(186, 140, 0, 0.28);
	background: #fffaf0;
}

.portal-callout__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: 12px;
	background: var(--amber-bg);
	color: #9a6b00;
}

.portal-callout h2 {
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 800;
}

.portal-callout p {
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.58;
}

.portal-support {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: 4px 0 18px;
	padding: 18px 22px;
	border: 1px solid rgba(114, 0, 216, 0.13);
	border-radius: 18px;
	background: linear-gradient(120deg, #fff 0%, #f8f4ff 100%);
}

.portal-support__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 12px;
	background: var(--violet-bg);
	color: var(--primary);
}

.portal-support strong {
	font-size: 13.5px;
}

.portal-support p {
	margin-top: 2px;
	color: var(--muted);
	font-size: 12px;
}

.portal-support__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: auto;
}

.portal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 22px 24px 36px;
	border-top: 1px solid rgba(36, 0, 90, 0.09);
	color: var(--faint);
	font-size: 11px;
}

.portal-footer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.portal-footer__brand img {
	display: block;
	max-width: 110px;
	max-height: 28px;
	object-fit: contain;
}

.portal-footer__brand span {
	display: flex;
	flex-direction: column;
}

.portal-footer__brand strong {
	color: var(--ink-2);
	font-size: 12px;
}

.portal-footer__brand small {
	color: var(--faint);
	font-size: 10.5px;
}

.portal-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 11.5px;
}

.portal-footer__links a {
	color: var(--muted);
	font-weight: 600;
	text-decoration: none;
}

.portal-footer__links a:hover {
	color: var(--primary);
}

.portal-auth:not(.portal-auth--narrow) .portal-auth__intro {
	position: relative;
	overflow: hidden;
	align-self: stretch;
	padding: 30px;
	border-radius: 24px;
	background:
		radial-gradient(120% 150% at 100% 0%, rgba(240, 0, 200, 0.3) 0%, rgba(36, 0, 90, 0) 52%),
		linear-gradient(120deg, #1b0044 0%, #4b00a3 48%, #7200d8 100%);
	color: #fff;
	box-shadow: 0 28px 50px -30px rgba(36, 0, 90, 0.8);
}

.portal-auth:not(.portal-auth--narrow) .portal-auth__intro .portal-title {
	color: #fff;
}

.portal-auth:not(.portal-auth--narrow) .portal-auth__intro .portal-subtitle {
	color: rgba(255, 255, 255, 0.78);
}

.portal-auth:not(.portal-auth--narrow) .portal-auth__intro .portal-eyebrow {
	color: #ffd500;
}

.portal-auth:not(.portal-auth--narrow) .portal-auth__points li {
	color: rgba(255, 255, 255, 0.84);
}

.portal-auth:not(.portal-auth--narrow) .portal-auth__points svg {
	color: #ffd500;
}

@media (max-width: 960px) {
	.portal-welcome {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-welcome__balance {
		justify-self: stretch;
		min-width: 0;
		text-align: left;
	}

	.portal-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.portal-header {
		flex-wrap: wrap;
		padding: 12px 18px;
	}

	.portal-nav {
		order: 3;
		justify-content: flex-start;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.portal-main {
		padding: 8px 18px 36px;
	}

	.portal-footer {
		padding: 20px 18px 32px;
	}
}

@media (max-width: 560px) {
	.portal-welcome {
		padding: 24px 22px;
	}

	.portal-welcome h1 {
		font-size: 24px;
	}

	.portal-welcome__balance strong {
		font-size: 28px;
	}

	.portal-stat-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-pay-summary {
		padding: 18px;
	}

	.portal-pay-summary__main strong {
		font-size: 28px;
	}

	.portal-user__copy {
		display: none;
	}

	.portal-auth:not(.portal-auth--narrow) .portal-auth__intro {
		padding: 24px;
	}
}


/* ==================== CRM scheduled conversations ==================== */

.ld-schedule {
	padding: 13px 15px;
	border: 1px dashed var(--line-strong);
	border-radius: 14px;
	background: linear-gradient(180deg, var(--surface-2) 0%, #fff 100%);
}

.ld-schedule__input {
	max-width: 240px;
}

.ld-sched__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.ld-sched__actions form {
	margin: 0;
}

.ld-sched-empty {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 4px 2px;
}

.ld-sched-empty__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--violet-bg);
	color: var(--primary);
}

.ld-sched-empty__icon .icon {
	width: 18px;
	height: 18px;
}

.ld-sched-empty strong {
	font-size: 13px;
	color: var(--ink);
}

.ld-sched-empty p {
	margin-top: 2px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.55;
}

.ld-task-lead {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	padding: 12px 14px;
	border: 1px solid rgba(114, 0, 216, 0.16);
	border-radius: 12px;
	background: var(--violet-bg);
}

.ld-task-lead__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #fff;
	color: var(--primary);
}

.ld-task-lead__icon .icon {
	width: 16px;
	height: 16px;
}

.ld-task-lead strong {
	font-size: 12.5px;
	color: var(--ink);
}

.ld-task-lead p {
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.55;
	color: var(--ink-2);
}

.ld-task-lead a {
	font-weight: 700;
	color: var(--primary-600);
	text-decoration: none;
}

.ld-task-lead a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.ld-schedule__input {
		max-width: 100%;
	}
}

/* ==================== Bulk WhatsApp ==================== */

/* Hero */
.wb-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
	align-items: center;
	gap: 28px;
	padding: 30px 32px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-lg);
	color: #fff;
	background:
		radial-gradient(120% 170% at 100% -10%, rgba(240, 0, 200, 0.46) 0%, rgba(240, 0, 200, 0) 46%),
		radial-gradient(90% 130% at -5% 110%, rgba(23, 75, 255, 0.34) 0%, rgba(23, 75, 255, 0) 52%),
		linear-gradient(115deg, #190238 0%, #360968 44%, #7200d8 100%);
	box-shadow: 0 28px 70px -34px rgba(36, 0, 90, 0.62);
}

.wb-hero__ring {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	pointer-events: none;
}

.wb-hero__ring--a {
	width: 360px;
	height: 360px;
	top: -200px;
	right: -80px;
}

.wb-hero__ring--b {
	width: 240px;
	height: 240px;
	bottom: -160px;
	left: 38%;
	border-color: rgba(255, 255, 255, 0.08);
}

.wb-hero__main,
.wb-hero__aside {
	position: relative;
	z-index: 1;
}

.wb-hero__main {
	max-width: 680px;
}

.wb-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.09);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #e9d9ff;
}

.wb-hero__pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #39e5a4;
	box-shadow: 0 0 0 4px rgba(57, 229, 164, 0.18);
}

.wb-hero__title {
	margin: 16px 0 0;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.1;
	letter-spacing: -0.035em;
	font-weight: 750;
	color: #fff;
}

.wb-hero__copy {
	margin-top: 12px;
	max-width: 600px;
	font-size: 13.5px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.74);
}

.wb-hero__features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-top: 22px;
}

.wb-hero__feature {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.84);
}

.wb-hero__feature .icon {
	width: 15px;
	height: 15px;
	color: #f4b8ff;
}

.wb-hero__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	justify-self: end;
}

.wb-hero__status {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
}

.wb-hero__status-dot {
	width: 9px;
	height: 9px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #39e5a4;
	box-shadow: 0 0 0 4px rgba(57, 229, 164, 0.16);
}

.wb-hero__status-text strong {
	display: block;
	font-size: 12.5px;
	color: #fff;
}

.wb-hero__status-text small {
	display: block;
	margin-top: 1px;
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.62);
}

.wb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.wb-hero__actions form {
	margin: 0;
}

.wb-hero .btn--ghost {
	border-color: rgba(255, 255, 255, 0.26);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	box-shadow: none;
}

.wb-hero .btn--ghost:hover {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

/* Metric strip */
.wb-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.wb-metric {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 18px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.wb-metric__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 13px;
}

.wb-metric__icon .icon {
	width: 19px;
	height: 19px;
}

.wb-metric__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.wb-metric__label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.wb-metric__tag {
	flex: 0 0 auto;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	font-size: 9.5px;
	font-weight: 700;
	color: var(--muted);
	white-space: nowrap;
}

.wb-metric__value {
	margin-top: 6px;
	font-size: 28px;
	line-height: 1;
	font-weight: 750;
	letter-spacing: -0.04em;
	color: var(--ink);
}

.wb-metric__foot {
	margin-top: 7px;
	font-size: 11px;
	line-height: 1.45;
	color: var(--muted);
}

/* Composer */
.wb-composer {
	margin-top: 24px;
}

.wb-composer__head {
	padding: 22px 26px 18px;
	border-bottom: 1px solid var(--line);
}

.wb-card-title {
	display: flex;
	align-items: center;
	gap: 13px;
}

.wb-card-title__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 1px solid #e7d8fb;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--primary-050) 0%, #fff 100%);
	color: var(--primary);
}

.wb-card-title__icon .icon {
	width: 19px;
	height: 19px;
}

.wb-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 336px;
	gap: 26px;
	align-items: start;
	padding: 22px 26px 26px;
}

.wb-form-main {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.wb-step-card {
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: linear-gradient(180deg, #fff 0%, #fdfbff 100%);
}

.wb-step__head {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin-bottom: 20px;
}

.wb-step__num {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: linear-gradient(135deg, #7200d8 0%, #f000c8 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 6px 14px -6px rgba(114, 0, 216, 0.6);
}

.wb-step__text {
	min-width: 0;
	flex: 1;
}

.wb-step__head h3 {
	margin: 0;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.wb-step__head p {
	margin: 3px 0 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--muted);
}

.wb-step__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: 0 0 auto;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.wb-step__badge .icon {
	width: 12px;
	height: 12px;
}

.wb-step-card .form-grid {
	gap: 18px 20px;
}

.wb-step-card .field__hint {
	margin-top: 6px;
	line-height: 1.5;
}

/* Timing + message choices */
.wb-choice-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.wb-choice-row--cards {
	align-items: stretch;
	gap: 12px;
	margin-bottom: 18px;
}

.wb-schedule-input {
	max-width: 250px;
}

.wb-mode {
	position: relative;
	flex: 1 1 240px;
	cursor: pointer;
}

.wb-mode input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.wb-mode__body {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	height: 100%;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.wb-mode input:checked + .wb-mode__body {
	border-color: rgba(114, 0, 216, 0.45);
	background: linear-gradient(135deg, #faf5ff 0%, #fff 100%);
	box-shadow: 0 0 0 3px rgba(114, 0, 216, 0.07), 0 10px 24px -18px rgba(36, 0, 90, 0.4);
}

.wb-mode__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 11px;
}

.wb-mode__icon .icon {
	width: 17px;
	height: 17px;
}

.wb-mode__text {
	flex: 1;
	min-width: 0;
}

.wb-mode__body strong {
	display: block;
	font-size: 13px;
	color: var(--ink);
}

.wb-mode__body small {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--muted);
}

.wb-mode__check {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: #fff;
	color: transparent;
}

.wb-mode__check .icon {
	width: 12px;
	height: 12px;
}

.wb-mode input:checked + .wb-mode__body .wb-mode__check {
	border-color: var(--primary);
	background: var(--primary);
	color: #fff;
}

/* Template / text panels */
.wb-panel {
	margin-top: 2px;
}

.wb-manual {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	grid-column: 1 / -1;
	margin-top: 2px;
	padding: 16px;
	border: 1px dashed var(--line-strong);
	border-radius: 14px;
	background: var(--surface-2);
}

.wb-manual[hidden] {
	display: none;
}

.wb-preview {
	margin-top: 2px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface-2);
}

.wb-preview__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--faint);
}

.wb-preview p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.65;
	color: var(--ink-2);
	white-space: pre-wrap;
}

.wb-detected {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.wb-detected__hint {
	font-size: 11px;
	color: var(--faint);
}

/* Upload */
.wb-upload-row {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
}

.wb-upload {
	position: relative;
	display: flex;
	align-items: center;
	gap: 15px;
	min-height: 126px;
	padding: 20px;
	border: 1.5px dashed var(--line-strong);
	border-radius: 16px;
	background: linear-gradient(180deg, #fcfaff 0%, #fff 100%);
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.wb-upload:hover,
.wb-upload.is-selected {
	border-color: rgba(114, 0, 216, 0.5);
	background: var(--primary-050);
}

.wb-upload.is-selected {
	box-shadow: inset 0 0 0 1px rgba(114, 0, 216, 0.08);
}

.wb-upload__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--primary);
	box-shadow: var(--shadow-sm);
}

.wb-upload__icon .icon {
	width: 21px;
	height: 21px;
}

.wb-upload__text {
	min-width: 0;
	flex: 1;
}

.wb-upload__text strong {
	display: block;
	font-size: 13px;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.wb-upload__text small {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	color: var(--muted);
}

.wb-upload__cta {
	flex: 0 0 auto;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #fff;
	font-size: 11px;
	font-weight: 700;
	color: var(--primary);
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.wb-upload.is-selected .wb-upload__cta {
	border-color: var(--primary);
	background: var(--primary);
	color: #fff;
}

.wb-upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.wb-format {
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.wb-format__head {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}

.wb-format__head .icon {
	width: 14px;
	height: 14px;
}

.wb-format__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wb-format__chips code {
	padding: 4px 8px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: var(--surface-2);
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--ink-2);
}

.wb-format__sample {
	font-size: 10.5px;
	line-height: 1.5;
	color: var(--muted);
}

.wb-format__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--primary);
	text-decoration: none;
}

.wb-format__link:hover {
	text-decoration: underline;
}

.wb-format__link .icon {
	width: 14px;
	height: 14px;
}

/* Options + note */
.wb-options {
	margin-top: 20px;
	align-items: start;
}

.wb-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding: 14px 16px;
	border: 1px solid rgba(154, 107, 0, 0.18);
	border-radius: 14px;
	background: var(--amber-bg);
}

.wb-note .icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	color: var(--amber);
}

.wb-note p {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--ink-2);
}

/* Submit */
.wb-submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 4px 2px 0;
}

.wb-submit__hint {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	color: var(--faint);
}

.wb-submit__hint .icon {
	width: 14px;
	height: 14px;
}

.wb-submit .btn {
	height: 44px;
	padding: 0 20px;
	border-radius: 12px;
	font-size: 13px;
}

/* Sticky preview rail */
.wb-rail {
	position: sticky;
	top: 92px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wb-rail__panel {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.wb-rail__panel--preview {
	background: linear-gradient(180deg, #fbf8ff 0%, #fff 62%);
}

.wb-rail__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.wb-rail__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--faint);
}

.wb-rail__eyebrow .icon {
	width: 13px;
	height: 13px;
}

.wb-rail__live {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 9.5px;
	font-weight: 600;
	color: var(--green);
}

.wb-rail__live span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--green);
}

.wb-phone {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #efe7dd;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.wb-phone__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 13px;
	background: #075e54;
	color: #fff;
}

.wb-phone__avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

.wb-phone__avatar .icon {
	width: 16px;
	height: 16px;
}

.wb-phone__who {
	min-width: 0;
	flex: 1;
}

.wb-phone__who strong {
	display: block;
	font-size: 11.5px;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wb-phone__who small {
	display: block;
	font-size: 9.5px;
	color: rgba(255, 255, 255, 0.7);
}

.wb-phone__more {
	flex: 0 0 auto;
	font-size: 13px;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.8);
}

.wb-phone__chat {
	min-height: 172px;
	padding: 14px 12px 16px;
	background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
	background-size: 12px 12px;
}

.wb-phone__day {
	display: block;
	width: max-content;
	margin: 0 auto 12px;
	padding: 3px 9px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.72);
	font-size: 9px;
	font-weight: 600;
	color: #5b6b73;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.wb-bubble {
	position: relative;
	margin-left: auto;
	max-width: 92%;
	padding: 9px 11px 7px;
	border-radius: 10px 10px 2px 10px;
	background: #dcf8c6;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.wb-bubble p {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: #1f2c33;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.wb-bubble__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin-top: 4px;
	font-size: 8.5px;
	color: #7d8b91;
}

.wb-bubble__ticks {
	display: inline-flex;
	color: #34b7f1;
}

.wb-bubble__ticks .icon {
	width: 11px;
	height: 11px;
	margin-left: -5px;
}

.wb-bubble__ticks .icon:first-child {
	margin-left: 0;
}

.wb-rail__summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.wb-rail__summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 5px 0;
}

.wb-rail__summary-row span {
	font-size: 10.5px;
	color: var(--faint);
}

.wb-rail__summary-row strong {
	max-width: 190px;
	font-size: 11px;
	font-weight: 650;
	color: var(--ink-2);
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wb-checklist {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 14px;
}

.wb-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.wb-check__dot {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: #fff;
	color: transparent;
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.wb-check__dot .icon {
	width: 11px;
	height: 11px;
}

.wb-check.is-done .wb-check__dot {
	border-color: var(--green);
	background: var(--green);
	color: #fff;
}

.wb-check strong {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink-2);
}

.wb-check small {
	display: block;
	margin-top: 1px;
	font-size: 10.5px;
	line-height: 1.45;
	color: var(--muted);
}

.wb-check.is-done strong {
	color: var(--green);
}

.wb-rail__tip {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 14px 15px;
	border: 1px solid rgba(114, 0, 216, 0.14);
	border-radius: 16px;
	background: linear-gradient(135deg, #faf5ff 0%, #fff 100%);
}

.wb-rail__tip .icon {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	margin-top: 1px;
	color: var(--primary);
}

.wb-rail__tip p {
	font-size: 10.5px;
	line-height: 1.55;
	color: var(--muted);
}

.wb-rail__tip strong {
	color: var(--ink-2);
}

/* Campaign list */
.wb-campaigns {
	margin-top: 34px;
}

.wb-campaigns__head {
	margin-top: 0;
}

.wb-toolbar {
	margin-bottom: 14px;
}

.wb-table-card {
	overflow: hidden;
}

.wb-table td {
	padding-top: 15px;
	padding-bottom: 15px;
	vertical-align: middle;
}

.wb-table tbody tr {
	transition: background 0.15s ease;
}

.wb-table tbody tr:hover {
	background: #fcfaff;
}

.wb-campaign-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.wb-campaign-name:hover {
	color: var(--primary);
}

.wb-empty {
	padding: 56px 24px;
}

.wb-empty .empty__icon {
	width: 62px;
	height: 62px;
	border-radius: 20px;
	border: 1px solid #ece0fb;
	background: linear-gradient(135deg, var(--primary-050) 0%, #fff 100%);
	color: var(--primary);
}

/* ==================== Bulk WhatsApp report ==================== */

.wb-report-head__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wb-report-head__actions form {
	margin: 0;
}

.wb-report-meta {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.wb-report-kpis {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.wb-report-kpis > div {
	padding: 10px 11px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--surface-2);
}

.wb-report-kpi__label {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.wb-report-kpis strong {
	display: block;
	margin-top: 3px;
	font-size: 17px;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.wb-report-progress {
	margin-top: 14px;
}

.wb-message-card {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: var(--surface-2);
}

.wb-message-card__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--faint);
}

.wb-message-card__title {
	margin: 0 0 6px;
	font-size: 11.5px;
	color: var(--ink);
}

.wb-message-card__body {
	margin: 0;
	font-size: 12px;
	line-height: 1.65;
	color: var(--ink-2);
	white-space: pre-wrap;
}

.wb-message-card__foot {
	margin: 9px 0 0;
	font-size: 10.5px;
	color: var(--muted);
}

.wb-params {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wb-params__item {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 11.5px;
}

.wb-params__item small {
	flex: 0 0 auto;
	padding: 1px 5px;
	border-radius: 5px;
	background: var(--slate-bg);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--muted);
}

.wb-params__item span {
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.wb-body-preview {
	display: block;
	max-width: 320px;
	font-size: 11.5px;
	line-height: 1.55;
	color: var(--muted);
}

.wb-report-table td {
	vertical-align: top;
}

@media (max-width: 1200px) {
	.wb-form {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 22px;
	}
}

@media (max-width: 1100px) {
	.wb-report-kpis {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.wb-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.wb-upload-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 1080px) {
	.wb-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.wb-hero__aside {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		justify-self: stretch;
		flex-wrap: wrap;
	}
	.wb-form {
		grid-template-columns: minmax(0, 1fr);
	}
	.wb-rail {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}
	.wb-rail__panel--preview {
		grid-column: 1 / -1;
	}
	.wb-rail__panel--preview .wb-phone {
		max-width: 380px;
	}
}

@media (max-width: 900px) {
	.wb-report-meta {
		grid-template-columns: minmax(0, 1fr);
	}
	.wb-manual {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.wb-hero {
		padding: 26px 24px;
	}
	.wb-composer__head {
		padding: 20px 20px 16px;
	}
	.wb-form {
		padding: 20px;
	}
	.wb-step-card {
		padding: 20px;
	}
	.wb-metrics {
		grid-template-columns: minmax(0, 1fr);
	}
	.wb-rail {
		grid-template-columns: minmax(0, 1fr);
	}
	.wb-rail__panel--preview {
		grid-column: auto;
	}
	.wb-rail__panel--preview .wb-phone {
		max-width: none;
	}
	.wb-choice-row--cards {
		flex-direction: column;
	}
	.wb-mode {
		flex-basis: auto;
		width: 100%;
	}
	.wb-submit {
		flex-direction: column;
		align-items: stretch;
	}
	.wb-submit .btn {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.wb-report-head__actions {
		width: 100%;
	}
	.wb-manual {
		grid-template-columns: minmax(0, 1fr);
	}
	.wb-report-kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.wb-hero__title {
		font-size: 27px;
	}
	.wb-hero__features {
		gap: 9px 14px;
	}
	.wb-upload {
		flex-wrap: wrap;
	}
	.wb-upload__cta {
		margin-left: 61px;
	}
	.wb-step__badge {
		display: none;
	}
	.wb-schedule-input {
		max-width: 100%;
	}
}

/* ============================================================
   CRM pipeline â€” refined board, filters and stage cards
   ============================================================ */

.crm-controls {
	margin-top: 20px;
	padding: 14px 16px;
}

.crm-toolbar {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	margin-bottom: 0;
}

.crm-toolbar .toolbar__filters {
	flex: 0 0 auto;
	width: 100%;
	gap: 8px;
}

.crm-toolbar .toolbar__search {
	flex: 1 1 240px;
	max-width: 330px;
}

.crm-toolbar .toolbar__filters > .select {
	min-width: 134px;
	max-width: 176px;
}

.crm-toolbar .toolbar__meta {
	order: 0;
	width: 100%;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.crm-toolbar .toolbar__meta .count-chip {
	margin-right: auto;
}

.crm-board,
.crm-list-wrap {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

.crm-board > .card,
.crm-list-wrap > .card {
	margin-top: 0;
}

.crm-board-wrap {
	display: flex;
	flex-direction: column;
	gap: 13px;
	min-width: 0;
}

.crm-board__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	flex-wrap: wrap;
}

.crm-board__title {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.crm-board__name {
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.crm-board__sub {
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}

.crm-board__hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--faint);
}

.crm-board__hint .icon {
	width: 13px;
	height: 13px;
	color: var(--faint);
}

/* ---- Board ---- */

.kanban {
	gap: 14px;
	padding: 0 0 14px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: rgba(112, 92, 150, 0.32) transparent;
}

.crm-board .kanban {
	grid-auto-columns: minmax(238px, 1fr);
	gap: 16px;
	padding: 2px 2px 14px;
}

.kanban > * {
	scroll-snap-align: start;
}

.kanban::-webkit-scrollbar {
	height: 9px;
}

.kanban::-webkit-scrollbar-track {
	background: transparent;
}

.kanban::-webkit-scrollbar-thumb {
	border: 3px solid transparent;
	border-radius: 999px;
	background: rgba(112, 92, 150, 0.3);
	background-clip: content-box;
}

.kanban::-webkit-scrollbar-thumb:hover {
	background: rgba(112, 92, 150, 0.48);
	background-clip: content-box;
}

.kanban__col {
	--stage: #cbd5e1;
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: var(--surface-2);
	box-shadow: var(--shadow-sm);
}

.kanban__col::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--stage);
	opacity: 0.9;
}

.kanban__col--new       { --stage: #38bdf8; }
.kanban__col--contacted { --stage: #0ea5e9; }
.kanban__col--qualified { --stage: #8b5cf6; }
.kanban__col--proposal  { --stage: #f59e0b; }
.kanban__col--won       { --stage: #10b981; }
.kanban__col--lost      { --stage: #f43f5e; }

.kanban__head {
	gap: 8px;
	padding: 13px 14px 12px;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	font-size: 12.5px;
}

.kanban__name {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.kanban__name strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 650;
	color: var(--ink);
}

.kanban__dot {
	width: 8px;
	height: 8px;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.kanban__count {
	min-width: 20px;
	height: 20px;
	border-radius: 999px;
	background: var(--surface-2);
	border-color: var(--line);
}

.kanban__value {
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
}

.kanban__body {
	gap: 10px;
	padding: 12px;
}

.kanban__empty {
	margin: 0;
	padding: 22px 10px;
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.6);
	font-size: 11.5px;
	color: var(--faint);
}

.lead-card {
	padding: 13px 14px;
	border-radius: 12px;
	border-color: var(--line);
	box-shadow: 0 1px 2px rgba(36, 0, 90, 0.06);
}

.lead-card:hover {
	border-color: rgba(114, 0, 216, 0.3);
	box-shadow: 0 10px 22px -14px rgba(36, 0, 90, 0.45);
}

.lead-card__title {
	font-size: 13px;
	line-height: 1.4;
}

.lead-card__value {
	flex: 0 0 auto;
	padding: 2px 7px;
	border-radius: 7px;
	background: rgba(114, 0, 216, 0.06);
	color: var(--primary-600);
	font-size: 11px;
	font-weight: 700;
}

.lead-card__meta {
	gap: 7px 9px;
	flex-wrap: wrap;
	margin-top: 9px;
}

.lead-card__follow {
	margin-top: 9px;
	padding: 3px 8px;
	border-radius: 7px;
	font-size: 10.5px;
}

.lead-card__follow .icon {
	width: 12px;
	height: 12px;
}

.lead-card__foot {
	margin-top: 11px;
	padding-top: 10px;
}

.lead-card__foot .select {
	height: 30px;
}

/* CRM board cards stack the person above their email. */
.crm-board .lead-card__contact {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin-top: 6px;
	font-size: 11.5px;
	line-height: 1.45;
}

.crm-board .lead-card__person {
	font-weight: 500;
	color: var(--ink-2);
}

.crm-board .lead-card__email {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	color: var(--faint);
}

@media (max-width: 1180px) {
	.crm-toolbar .toolbar__search {
		flex: 1 1 100%;
		max-width: none;
	}
}

@media (max-width: 900px) {
	.crm-board .kanban {
		grid-auto-columns: 264px;
	}
}

@media (max-width: 720px) {
	.crm-controls {
		padding: 13px 14px;
	}

	.crm-toolbar .toolbar__search {
		flex: 1 1 100%;
		max-width: none;
	}

	.crm-toolbar .toolbar__filters > .select {
		flex: 1 1 calc(50% - 4px);
		min-width: 0;
		max-width: none;
	}

	.crm-toolbar .toolbar__filters .btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.crm-toolbar .toolbar__meta {
		flex-wrap: wrap;
		gap: 10px;
	}

	.crm-toolbar .toolbar__meta .count-chip {
		margin-right: 0;
	}

	.crm-toolbar .toolbar__meta .segmented {
		order: 3;
		width: 100%;
	}

	.crm-toolbar .toolbar__meta .segmented__item {
		flex: 1 1 0;
		justify-content: center;
	}

	.crm-toolbar .toolbar__meta .btn {
		margin-left: auto;
	}

	.crm-board,
	.crm-list-wrap {
		gap: 16px;
		margin-top: 16px;
	}

	.crm-board__hint {
		display: none;
	}
}

/* ============================ Assignment ============================ */
.assignee-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
	gap: 8px;
	max-height: 280px;
	overflow-y: auto;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
}

.assignee-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	cursor: pointer;
	transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.assignee-option:hover {
	border-color: rgba(114, 0, 216, 0.28);
}

.assignee-option input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.assignee-option__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.assignee-option__text strong {
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.assignee-option__text small {
	overflow: hidden;
	font-size: 11px;
	color: var(--faint);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.assignee-option__tick {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-left: auto;
	border: 1px solid var(--line-strong);
	border-radius: 6px;
	background: var(--surface);
	color: transparent;
	transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.assignee-option__tick .icon {
	width: 12px;
	height: 12px;
}

.assignee-option:has(input:checked) {
	border-color: rgba(114, 0, 216, 0.5);
	background: rgba(114, 0, 216, 0.045);
}

.assignee-option:has(input:checked) .assignee-option__tick {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.assignee-option:has(input:focus-visible) {
	box-shadow: 0 0 0 3px rgba(114, 0, 216, 0.16);
}

.assignee-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding: 4px 0;
}

.assignee-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 10px 5px 5px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-2);
}

.assignee-stack {
	display: inline-flex;
	align-items: center;
}

.assignee-stack .avatar {
	margin-left: -6px;
	border: 2px solid var(--surface);
}

.assignee-stack .avatar:first-child {
	margin-left: 0;
}

.assignee-stack__more {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	margin-left: -6px;
	padding: 0 5px;
	border: 2px solid var(--surface);
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
}

.assignment-empty {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	color: var(--faint);
}

.assignment-empty .icon {
	width: 13px;
	height: 13px;
}

.assignment-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.assignment-cell__label {
	overflow: hidden;
	font-size: 11.5px;
	color: var(--muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.assignment-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.assignment-inline small {
	overflow: hidden;
	font-size: 11px;
	color: var(--muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 720px) {
	.assignee-picker {
		grid-template-columns: minmax(0, 1fr);
		max-height: none;
	}
}
