.imd-crm {
	--crm-red: var(--imd-brand-red, #d72a2b);
	--crm-red-strong: var(--imd-brand-red-strong, #b91f20);
	--crm-ink: var(--imd-brand-anthracite, #16191c);
	--crm-muted: #657078;
	--crm-surface: #fff;
	--crm-soft: #f6f7f8;
	--crm-line: rgba(22, 25, 28, .12);
	--crm-shadow: var(--imd-shadow-soft, 0 18px 48px rgba(22, 25, 28, .08));
	box-sizing: border-box;
	width: min(1280px, calc(100% - 36px));
	margin: clamp(32px, 6vw, 84px) auto;
	color: var(--crm-ink);
	font-family: var(--imd-font-body, Aileron, Arial, sans-serif);
}

.imd-crm *, .imd-crm *::before, .imd-crm *::after { box-sizing: border-box; }
.imd-crm button, .imd-crm input, .imd-crm select { font: inherit; }
.imd-crm button, .imd-crm a { -webkit-tap-highlight-color: transparent; }
.imd-crm h1, .imd-crm h2, .imd-crm h3, .imd-crm p { margin-top: 0; }
.imd-crm h1, .imd-crm h2, .imd-crm h3 { color: var(--crm-ink); font-family: var(--imd-font-heading, ODUDA, Aileron, Arial, sans-serif); }
.imd-crm button:focus-visible, .imd-crm a:focus-visible, .imd-crm input:focus-visible, .imd-crm select:focus-visible { outline: 0; box-shadow: var(--imd-focus-ring, 0 0 0 4px rgba(215, 42, 43, .2)); }

.imd-crm__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
	padding: clamp(28px, 5vw, 62px);
	overflow: hidden;
	border: 1px solid var(--crm-line);
	border-radius: var(--imd-radius-lg, 28px);
	background: radial-gradient(circle at 92% 18%, rgba(215, 42, 43, .18), transparent 34%), var(--crm-surface);
	box-shadow: var(--crm-shadow);
}

.imd-crm__eyebrow { margin-bottom: 9px; color: var(--crm-red); font-size: .75rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.imd-crm__hero h1 { margin-bottom: 10px; font-size: clamp(2.7rem, 6vw, 5.25rem); line-height: .95; }
.imd-crm__hero > div > p:last-child { max-width: 760px; margin-bottom: 0; color: var(--crm-muted); font-size: clamp(.98rem, 1.25vw, 1.12rem); line-height: 1.55; }
.imd-crm__hero-badge { display: grid; justify-items: center; gap: 8px; padding: 24px; border: 1px solid rgba(215, 42, 43, .25); border-radius: 22px; background: rgba(255, 255, 255, .72); text-align: center; }
.imd-crm__hero-badge > span { font-size: 1.6rem; }
.imd-crm__hero-badge small { color: var(--crm-muted); font-weight: 700; }
.imd-crm__hero-badge strong { max-width: 220px; color: var(--crm-red); line-height: 1.25; }
.imd-crm__hero-badge em { color: var(--crm-muted); font-size: .72rem; font-style: normal; font-weight: 700; }

.imd-crm__view-switcher { display: inline-flex; gap: 6px; margin: 22px 0 14px; padding: 5px; border: 1px solid var(--crm-line); border-radius: 999px; background: var(--crm-surface); box-shadow: 0 10px 28px rgba(22, 25, 28, .06); }
.imd-crm__view-switcher button, .imd-crm-guide__actions button, .imd-crm-guide__actions a, .imd-crm-guide__task button, .imd-crm-empty button, .imd-crm-notice a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid var(--crm-red); border-radius: 999px; background: transparent; color: var(--crm-red); font-weight: 900; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.imd-crm__view-switcher button { border-color: transparent; }
.imd-crm__view-switcher small { display: inline-flex; align-items: center; margin-left: 7px; padding: 3px 7px; border-radius: 999px; background: rgba(215, 42, 43, .09); color: var(--crm-red); font-size: .62rem; font-weight: 900; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.imd-crm__view-switcher button.is-active, .imd-crm-guide__actions .is-primary, .imd-crm-guide__task .is-primary, .imd-crm-empty button, .imd-crm-notice a { border-color: var(--crm-red); background: var(--crm-red); color: #fff; box-shadow: 0 10px 24px rgba(215, 42, 43, .19); }
.imd-crm__view-switcher button.is-active small { background: rgba(255, 255, 255, .2); color: #fff; }
.imd-crm__view-switcher button:hover, .imd-crm-guide__actions :is(button, a):hover, .imd-crm-guide__task button:hover, .imd-crm-empty button:hover, .imd-crm-notice a:hover { transform: translateY(-1px); }
.imd-crm button:disabled { cursor: wait; opacity: .58; transform: none; }

.imd-crm [hidden] { display: none !important; }
.imd-crm__view { min-width: 0; }
.imd-crm__today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.imd-crm__today article { display: grid; gap: 8px; min-height: 108px; padding: 20px; border: 1px solid var(--crm-line); border-radius: var(--imd-radius-md, 20px); background: var(--crm-surface); box-shadow: 0 10px 28px rgba(22, 25, 28, .045); }
.imd-crm__today span { color: var(--crm-muted); font-size: .78rem; font-weight: 700; }
.imd-crm__today strong { align-self: end; color: var(--crm-ink); font-family: var(--imd-font-heading, ODUDA, Aileron, Arial, sans-serif); font-size: 2.2rem; line-height: 1; }

.imd-crm-guide { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px 28px; padding: clamp(24px, 4vw, 46px); border: 1px solid rgba(215, 42, 43, .2); border-radius: var(--imd-radius-lg, 28px); background: linear-gradient(135deg, var(--crm-surface), rgba(215, 42, 43, .065)); box-shadow: var(--crm-shadow); }
.imd-crm-guide__identity { align-self: start; display: grid; gap: 5px; min-width: 180px; padding: 20px; border: 1px solid rgba(215, 42, 43, .22); border-radius: 18px; background: radial-gradient(circle at 100% 0, rgba(215, 42, 43, .15), transparent 62%), var(--crm-surface); color: var(--crm-ink); box-shadow: 0 12px 30px rgba(22, 25, 28, .07); }
.imd-crm-guide__identity span { color: var(--crm-red); font-family: var(--imd-font-heading, ODUDA, Aileron, Arial, sans-serif); font-size: 1.45rem; line-height: 1.05; }
.imd-crm-guide__identity small { color: var(--crm-muted); line-height: 1.35; }
.imd-crm-guide__bubble { position: relative; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--crm-line); border-radius: 8px 24px 24px; background: var(--crm-surface); }
.imd-crm-guide__bubble::before { position: absolute; top: -1px; left: -15px; width: 16px; height: 20px; background: var(--crm-surface); clip-path: polygon(100% 0, 100% 100%, 0 0); content: ""; }
.imd-crm-guide__bubble > p:first-child { margin-bottom: 12px; color: var(--crm-red); }
.imd-crm-guide__bubble h2 { max-width: 780px; margin-bottom: 12px; font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: 1.05; }
.imd-crm-guide__bubble p { color: var(--crm-muted); line-height: 1.5; }
.imd-crm-guide__actions, .imd-crm-guide__reply, .imd-crm-guide__task, .imd-crm__status { grid-column: 2; }
.imd-crm-guide__reply { justify-self: end; max-width: min(720px, 88%); margin: 0; padding: 13px 18px; border: 1px solid rgba(215, 42, 43, .22); border-radius: 20px 7px 20px 20px; background: rgba(215, 42, 43, .1); color: var(--crm-ink); font-weight: 750; line-height: 1.45; box-shadow: 0 8px 22px rgba(22, 25, 28, .05); }
.imd-crm-guide__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.imd-crm-guide__actions [data-imd-crm-guide-conversation].is-primary { border-color: rgba(215, 42, 43, .5); background: transparent; color: var(--crm-red); box-shadow: none; }
.imd-crm-guide__conversation-empty { align-self: center; max-width: 420px; margin: 0; padding: 10px 14px; border: 1px solid var(--crm-line); border-radius: 14px; background: var(--crm-soft); color: var(--crm-muted); font-size: .78rem; font-weight: 700; line-height: 1.35; }
.imd-crm-guide__task { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); gap: 12px; padding: 18px; border: 1px solid var(--crm-line); border-radius: 20px; background: var(--crm-surface); }
.imd-crm-guide__task[hidden] { display: none; }
.imd-crm-guide__task label { display: grid; gap: 7px; color: var(--crm-ink); font-size: .8rem; font-weight: 800; }
.imd-crm-guide__task input { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--crm-line); border-radius: 14px; background: var(--crm-soft); color: var(--crm-ink); color-scheme: light; }
.imd-crm-guide__task > div { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px; }
.imd-crm-reactivate-dialog { width: min(560px, calc(100vw - 32px)); max-width: calc(100vw - 32px); margin: auto; padding: 0; overflow: visible; border: 1px solid rgba(215, 42, 43, .28); border-radius: 26px; background: var(--crm-surface); color: var(--crm-ink); box-shadow: 0 28px 90px rgba(22, 25, 28, .3); font-family: var(--imd-font-body, Aileron, Arial, sans-serif); }
.imd-crm-reactivate-dialog::backdrop { background: rgba(10, 14, 17, .64); backdrop-filter: blur(4px); }
.imd-crm-reactivate-dialog__bubble { position: relative; padding: clamp(24px, 5vw, 42px); border-radius: inherit; background: radial-gradient(circle at 100% 0, rgba(215, 42, 43, .14), transparent 45%), var(--crm-surface); }
.imd-crm-reactivate-dialog__bubble::before { position: absolute; top: -12px; left: 42px; width: 24px; height: 24px; border-top: 1px solid rgba(215, 42, 43, .28); border-left: 1px solid rgba(215, 42, 43, .28); background: var(--crm-surface); content: ""; transform: rotate(45deg); }
.imd-crm-reactivate-dialog h3 { margin-bottom: 12px; color: var(--crm-ink); font-size: clamp(1.65rem, 4vw, 2.4rem); line-height: 1.05; }
.imd-crm-reactivate-dialog p:not(.imd-crm__eyebrow) { margin-bottom: 22px; color: var(--crm-muted); line-height: 1.55; }
.imd-crm-reactivate-dialog__bubble > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.imd-crm-reactivate-dialog button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid var(--crm-red); border-radius: 999px; background: transparent; color: var(--crm-red); font: inherit; font-weight: 900; line-height: 1.2; cursor: pointer; }
.imd-crm-reactivate-dialog button.is-primary { background: var(--crm-red); color: #fff; box-shadow: 0 10px 24px rgba(215, 42, 43, .2); }
.imd-crm [data-imd-crm-reactivate]:focus-visible { outline: 0; box-shadow: var(--imd-focus-ring, 0 0 0 4px rgba(215, 42, 43, .2)); }
.imd-crm [data-imd-crm-open-guided]:focus-visible { outline: 0; box-shadow: var(--imd-focus-ring, 0 0 0 4px rgba(215, 42, 43, .2)); }
.imd-crm__status { min-height: 1.4em; margin: 0; color: var(--crm-red-strong); font-size: .86rem; font-weight: 800; }
.imd-crm__status.is-error { color: #9e2021; }
.imd-crm__status--pipeline { grid-column: auto; margin: -4px 0 12px; padding: 0 6px; }

.imd-crm__section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 24px 0 14px; padding: 24px; border: 1px solid var(--crm-line); border-radius: 22px; background: var(--crm-surface); }
.imd-crm__section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.8rem); }
.imd-crm__section-heading > span { padding: 7px 12px; border-radius: 999px; background: rgba(215, 42, 43, .09); color: var(--crm-red); font-size: .75rem; font-weight: 900; }

.imd-crm-team__layout { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); align-items: start; gap: 16px; }
.imd-crm-team__capacity, .imd-crm-team__form, .imd-crm-team__members { border: 1px solid var(--crm-line); border-radius: var(--imd-radius-md, 22px); background: var(--crm-surface); box-shadow: 0 12px 32px rgba(22, 25, 28, .055); }
.imd-crm-team__capacity { position: sticky; top: 102px; padding: 26px; overflow: hidden; background: radial-gradient(circle at 100% 0, rgba(215, 42, 43, .16), transparent 44%), var(--crm-surface); }
.imd-crm-team__capacity-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 18px; border-radius: 16px; background: var(--crm-red); color: #fff; font-size: 1.2rem; box-shadow: 0 10px 24px rgba(215, 42, 43, .2); }
.imd-crm-team__capacity-number { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.imd-crm-team__capacity-number strong { color: var(--crm-ink); font-family: var(--imd-font-heading, ODUDA, Aileron, Arial, sans-serif); font-size: 3.4rem; line-height: 1; }
.imd-crm-team__capacity-number span { color: var(--crm-muted); font-size: .84rem; font-weight: 850; }
.imd-crm-team__meter { height: 9px; margin-bottom: 16px; overflow: hidden; border-radius: 999px; background: var(--crm-soft); }
.imd-crm-team__meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--crm-red), #ff6869); transition: width .25s ease; }
.imd-crm-team__capacity > p:not(.imd-crm__eyebrow):not(.imd-crm-team__capacity-number) { color: var(--crm-muted); font-size: .82rem; line-height: 1.5; }
.imd-crm-team__capacity > a { display: inline-flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: 5px; padding: 9px 0; color: var(--crm-red); font-size: .78rem; font-weight: 900; text-decoration: none; }
.imd-crm-team__workspace { display: grid; min-width: 0; gap: 14px; }
.imd-crm-team__overage { padding: 16px 18px; border: 1px solid rgba(181, 113, 17, .28); border-radius: 18px; background: rgba(239, 171, 69, .12); color: var(--crm-ink); }
.imd-crm-team__overage strong { display: block; margin-bottom: 4px; }
.imd-crm-team__overage p { margin: 0; color: var(--crm-muted); font-size: .82rem; line-height: 1.45; }
.imd-crm-team__form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.05fr); gap: 16px; padding: clamp(20px, 3vw, 30px); }
.imd-crm-team__form h3, .imd-crm-team__members h3 { margin-bottom: 6px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.imd-crm-team__form > div > p:last-child { margin: 0; color: var(--crm-muted); font-size: .82rem; line-height: 1.45; }
.imd-crm-team__email { grid-column: 1 / -1; display: grid; gap: 7px; color: var(--crm-ink); font-size: .79rem; font-weight: 850; }
.imd-crm-team__email input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid rgba(215, 42, 43, .24); border-radius: 15px; background: var(--crm-soft); color: var(--crm-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.imd-crm-team__email input::placeholder { color: var(--crm-muted); opacity: .72; }
.imd-crm-team__form fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; border: 0; }
.imd-crm-team__form legend { margin-bottom: 8px; color: var(--crm-ink); font-size: .79rem; font-weight: 850; }
.imd-crm-team__form fieldset label { position: relative; display: block; min-width: 0; cursor: pointer; }
.imd-crm-team__form fieldset input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.imd-crm-team__form fieldset label > span { display: grid; gap: 3px; min-height: 66px; padding: 12px 14px; border: 1px solid var(--crm-line); border-radius: 15px; background: var(--crm-soft); color: var(--crm-ink); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.imd-crm-team__form fieldset label > span small { color: var(--crm-muted); font-size: .72rem; font-weight: 650; }
.imd-crm-team__form fieldset input:checked + span { border-color: var(--crm-red); background: rgba(215, 42, 43, .09); box-shadow: 0 0 0 3px rgba(215, 42, 43, .1); }
.imd-crm-team__form fieldset input:focus-visible + span { box-shadow: var(--imd-focus-ring, 0 0 0 4px rgba(215, 42, 43, .2)); }
.imd-crm-team__form fieldset label:hover > span { border-color: rgba(215, 42, 43, .5); transform: translateY(-1px); }
.imd-crm-team__form > button, .imd-crm-team-member__controls button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 17px; border: 1px solid var(--crm-red); border-radius: 999px; background: transparent; color: var(--crm-red); font: inherit; font-size: .78rem; font-weight: 900; line-height: 1.2; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.imd-crm-team__form > button { justify-self: start; }
.imd-crm-team__form > button.is-primary, .imd-crm-team-member__controls .imd-crm-team-member__restore { background: var(--crm-red); color: #fff; box-shadow: 0 9px 22px rgba(215, 42, 43, .2); }
.imd-crm-team__form > button:hover, .imd-crm-team-member__controls button:hover { transform: translateY(-1px); }
.imd-crm-team__form > .imd-crm__status { grid-column: 1 / -1; }
.imd-crm-team__form :disabled { cursor: not-allowed; opacity: .55; transform: none; }
.imd-crm-team__members { padding: clamp(20px, 3vw, 30px); }
.imd-crm-team__members > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.imd-crm-team__members > header > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: rgba(215, 42, 43, .1); color: var(--crm-red); font-weight: 900; }
.imd-crm-team__members [data-imd-crm-team-list] { display: grid; gap: 9px; }
.imd-crm-team-member { display: grid; grid-template-columns: auto minmax(170px, 1fr) minmax(230px, auto); align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--crm-line); border-radius: 17px; background: var(--crm-soft); }
.imd-crm-team-member.is-suspended_by_plan { border-color: rgba(181, 113, 17, .32); background: rgba(239, 171, 69, .09); }
.imd-crm-team-member.is-inactive { opacity: .76; }
.imd-crm-team-member > img { width: 48px; height: 48px; border: 2px solid var(--crm-surface); border-radius: 50%; object-fit: cover; box-shadow: 0 5px 14px rgba(22, 25, 28, .12); }
.imd-crm-team-member__identity { display: grid; min-width: 0; gap: 2px; }
.imd-crm-team-member__identity strong, .imd-crm-team-member__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imd-crm-team-member__identity strong { color: var(--crm-ink); }
.imd-crm-team-member__identity small { color: var(--crm-muted); font-size: .74rem; }
.imd-crm-team-member__identity span { justify-self: start; margin-top: 4px; padding: 3px 7px; border-radius: 999px; background: rgba(40, 133, 84, .11); color: #27784e; font-size: .64rem; font-weight: 900; }
.imd-crm-team-member.is-suspended_by_plan .imd-crm-team-member__identity span { background: rgba(181, 113, 17, .14); color: #946014; }
.imd-crm-team-member.is-inactive .imd-crm-team-member__identity span { background: rgba(101, 112, 120, .13); color: var(--crm-muted); }
.imd-crm-team-member__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.imd-crm-team-member__roles { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--crm-line); border-radius: 999px; background: var(--crm-surface); }
.imd-crm-team-member__roles button { min-height: 36px; padding: 6px 10px; border-color: transparent; font-size: .68rem; }
.imd-crm-team-member__roles button[aria-pressed="true"] { border-color: var(--crm-red); background: rgba(215, 42, 43, .1); }
.imd-crm-team-member__role-label { padding: 7px 11px; border-radius: 999px; background: var(--crm-surface); color: var(--crm-muted); font-size: .7rem; }
.imd-crm-team-member__controls .imd-crm-team-member__pause { border-color: var(--crm-line); color: var(--crm-muted); }
.imd-crm-team-member__controls .imd-crm-team-member__pause[data-confirming="true"] { border-color: var(--crm-red); background: rgba(215, 42, 43, .1); color: var(--crm-red); }
.imd-crm-team button:focus-visible, .imd-crm-team a:focus-visible, .imd-crm-team input:focus-visible { outline: 0; box-shadow: var(--imd-focus-ring, 0 0 0 4px rgba(215, 42, 43, .2)); }
.imd-crm-pipeline { display: grid; grid-auto-columns: minmax(270px, 1fr); grid-auto-flow: column; gap: 13px; padding: 4px 2px 20px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: rgba(215, 42, 43, .55) transparent; scroll-snap-type: inline proximity; }
.imd-crm-stage { min-height: 320px; padding: 12px; border: 1px solid var(--crm-line); border-radius: 20px; background: var(--crm-soft); scroll-snap-align: start; }
.imd-crm-stage > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 6px 14px; }
.imd-crm-stage > header strong { font-size: .86rem; }
.imd-crm-stage > header span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--crm-surface); color: var(--crm-muted); font-size: .75rem; font-weight: 900; }
.imd-crm-stage > div { display: grid; gap: 10px; }
.imd-crm-card { padding: 15px; border: 1px solid var(--crm-line); border-radius: 16px; background: var(--crm-surface); box-shadow: 0 8px 22px rgba(22, 25, 28, .055); }
.imd-crm-card.is-highlighted { animation: imd-crm-highlight 1.2s ease; }
.imd-crm-card small { display: block; margin-bottom: 8px; color: var(--crm-red); font-size: .68rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.imd-crm-card h3 { margin-bottom: 7px; font-size: 1.25rem; }
.imd-crm-card p { min-height: 2.6em; margin-bottom: 14px; color: var(--crm-muted); font-size: .8rem; line-height: 1.35; }
.imd-crm-card__assistant { display: inline-flex; width: 100%; background: var(--crm-red); min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--crm-red); border-radius: 999px; color: #fff; box-shadow: 0 9px 22px rgba(215, 42, 43, .2); font-size: .78rem; font-weight: 900; line-height: 1.2; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.imd-crm-card__assistant:hover { background: var(--crm-red-strong); color: #fff; box-shadow: 0 12px 26px rgba(215, 42, 43, .26); transform: translateY(-1px); }
.imd-crm-stage-control { position: relative; }
.imd-crm-stage-control:not(.is-enhanced) [data-imd-crm-stage-button], .imd-crm-stage-control:not(.is-enhanced) [data-imd-crm-stage-listbox] { display: none; }
.imd-crm-stage-control:not(.is-enhanced)::after { position: absolute; top: 50%; right: 14px; width: 8px; height: 8px; border-right: 2px solid var(--crm-red); border-bottom: 2px solid var(--crm-red); pointer-events: none; content: ""; transform: translateY(-65%) rotate(45deg); }
.imd-crm-stage-control [data-imd-crm-stage-select] { width: 100%; min-height: 44px; padding: 8px 38px 8px 12px; border: 1px solid var(--crm-line); border-radius: 13px; appearance: none; background: var(--crm-soft); color: var(--crm-ink); font-size: .78rem; font-weight: 800; cursor: pointer; }
.imd-crm-stage-control.is-enhanced [data-imd-crm-stage-select] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; opacity: 0; pointer-events: none; white-space: nowrap; }
.imd-crm-stage-control [data-imd-crm-stage-button] { position: relative; display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 42px 10px 14px; border: 1px solid rgba(215, 42, 43, .24); border-radius: 14px; appearance: none; background: var(--crm-soft); color: var(--crm-ink); box-shadow: 0 7px 18px rgba(22, 25, 28, .055); font-size: .78rem; font-weight: 850; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.imd-crm-stage-control [data-imd-crm-stage-button]::after { position: absolute; top: 50%; right: 16px; width: 8px; height: 8px; border-right: 2px solid var(--crm-red); border-bottom: 2px solid var(--crm-red); content: ""; transform: translateY(-68%) rotate(45deg); transition: transform .18s ease; }
.imd-crm-stage-control [data-imd-crm-stage-button][aria-expanded="true"] { border-color: var(--crm-red); background: var(--crm-surface); box-shadow: 0 0 0 4px rgba(215, 42, 43, .12), 0 12px 28px rgba(22, 25, 28, .1); }
.imd-crm-stage-control [data-imd-crm-stage-button][aria-expanded="true"]::after { transform: translateY(-28%) rotate(225deg); }
.imd-crm-stage-control [data-imd-crm-stage-button]:hover { border-color: rgba(215, 42, 43, .58); background: var(--crm-surface); transform: translateY(-1px); }
.imd-crm-stage-control [data-imd-crm-stage-button]:focus-visible { outline: 0; box-shadow: var(--imd-focus-ring, 0 0 0 4px rgba(215, 42, 43, .2)), 0 12px 28px rgba(22, 25, 28, .1); }
.imd-crm-stage-control.is-readonly:not(.is-enhanced)::after, .imd-crm-stage-control.is-readonly [data-imd-crm-stage-button]::after { display: none; }
.imd-crm-stage-control.is-readonly [data-imd-crm-stage-select], .imd-crm-stage-control.is-readonly [data-imd-crm-stage-button] { padding-right: 14px; border-color: var(--crm-line); background: rgba(101, 112, 120, .08); color: var(--crm-muted); box-shadow: none; cursor: default; opacity: .78; }
.imd-crm-stage-listbox[data-imd-crm-stage-listbox], .imd-crm-stage-listbox[data-imd-crm-stage-listbox] *, .imd-crm-stage-listbox[data-imd-crm-stage-listbox] *::before, .imd-crm-stage-listbox[data-imd-crm-stage-listbox] *::after { box-sizing: border-box; }
.imd-crm-stage-listbox[data-imd-crm-stage-listbox] { position: fixed; z-index: 100001; display: grid; gap: 3px; width: 240px; max-width: calc(100vw - 24px); max-height: min(360px, calc(100vh - 24px)); padding: 8px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: var(--crm-surface); border: 1px solid var(--crm-line); border-radius: 16px; color: var(--crm-ink); box-shadow: 0 22px 54px rgba(22, 25, 28, .2), 0 0 0 1px rgba(215, 42, 43, .06); font-family: var(--imd-font-body, Aileron, Arial, sans-serif); scrollbar-color: rgba(215, 42, 43, .5) transparent; }
.imd-crm-stage-listbox[data-imd-crm-stage-listbox][hidden] { display: none !important; }
.imd-crm-stage-listbox [data-imd-crm-stage-option] { position: relative; display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 38px 9px 12px; border: 1px solid transparent; border-radius: 11px; appearance: none; background: transparent; color: var(--crm-ink); font: inherit; font-size: .8rem; font-weight: 800; line-height: 1.25; text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.imd-crm-stage-listbox [data-imd-crm-stage-option]::after { position: absolute; right: 13px; color: currentColor; font-size: .9rem; font-weight: 950; content: ""; }
.imd-crm-stage-listbox [data-imd-crm-stage-option]:hover, .imd-crm-stage-listbox [data-imd-crm-stage-option]:focus-visible { border-color: rgba(215, 42, 43, .18); outline: 0; background: rgba(215, 42, 43, .09); color: var(--crm-red-strong); transform: translateX(1px); }
.imd-crm-stage-listbox [data-imd-crm-stage-option]:focus-visible { box-shadow: var(--imd-focus-ring, 0 0 0 3px rgba(215, 42, 43, .2)); }
.imd-crm-stage-listbox [data-imd-crm-stage-option][aria-selected="true"] { border-color: var(--crm-red); background: var(--crm-red); color: #fff; box-shadow: 0 7px 18px rgba(215, 42, 43, .2); }
.imd-crm-stage-listbox [data-imd-crm-stage-option][aria-selected="true"]::after { content: "✓"; }
.imd-crm-stage-listbox [data-imd-crm-stage-option][aria-selected="true"]:hover, .imd-crm-stage-listbox [data-imd-crm-stage-option][aria-selected="true"]:focus-visible { border-color: var(--crm-red-strong); background: var(--crm-red-strong); color: #fff; }
.imd-crm-card__conversation { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 8px; padding: 9px 4px; color: var(--crm-red); font-size: .76rem; font-weight: 900; text-decoration: none; }
.imd-crm-card__conversation:hover { color: var(--crm-red-strong); }
.imd-crm-card .imd-crm-card__conversation-empty { min-height: 0; margin: 8px 0 0; padding: 9px 11px; border: 1px solid var(--crm-line); border-radius: 12px; background: var(--crm-soft); color: var(--crm-muted); font-size: .7rem; font-weight: 700; line-height: 1.35; }
.imd-crm-task-list { grid-column: 2; display: grid; gap: 9px; padding: 14px; border: 1px solid var(--crm-line); border-radius: 16px; background: var(--crm-surface); }
.imd-crm-task-list[hidden] { display: none; }
.imd-crm-task-list > strong { font-size: .85rem; color: var(--crm-ink); }
.imd-crm-task-list__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--crm-line); }
.imd-crm-task-list__row span { color: var(--crm-muted); font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.imd-crm-task-list__row button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--crm-red); border-radius: 999px; background: transparent; color: var(--crm-red); font-weight: 800; cursor: pointer; }
.imd-crm-task-list__row button:hover,.imd-crm-task-list__row button:focus-visible { background: var(--crm-red); color: #fff; }
.imd-crm-task-list--card { margin: 10px 0; padding: 10px; }
.imd-crm-task-list--card .imd-crm-task-list__row { flex-wrap: wrap; }
.imd-crm-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; color: var(--crm-muted); font-size: .85rem; }
.imd-crm-pagination a { display: inline-flex; min-height: 40px; align-items: center; padding: 7px 14px; border: 1px solid var(--crm-red); border-radius: 999px; color: var(--crm-red); font-weight: 800; text-decoration: none; }
.imd-crm-pagination a:hover,.imd-crm-pagination a:focus-visible { background: var(--crm-red); color: #fff; }

.imd-crm-empty, .imd-crm-notice { display: grid; justify-items: center; padding: clamp(38px, 7vw, 80px); border: 1px solid var(--crm-line); border-radius: var(--imd-radius-lg, 28px); background: radial-gradient(circle at 80% 10%, rgba(215, 42, 43, .12), transparent 30%), var(--crm-surface); box-shadow: var(--crm-shadow); text-align: center; }
.imd-crm-empty > span { font-size: 2rem; }
.imd-crm-empty h2, .imd-crm-notice h2 { margin: 10px 0; font-size: clamp(1.75rem, 4vw, 3rem); }
.imd-crm-empty p, .imd-crm-notice p { max-width: 650px; color: var(--crm-muted); line-height: 1.55; }
.imd-crm-notice a { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; }

@keyframes imd-crm-highlight { 0%, 100% { box-shadow: 0 8px 22px rgba(22, 25, 28, .055); } 35% { box-shadow: 0 0 0 5px rgba(215, 42, 43, .22), 0 14px 34px rgba(215, 42, 43, .18); } }

:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm {
	--crm-ink: #f7f8f9;
	--crm-muted: #b8c0c5;
	--crm-surface: #1b2227;
	--crm-soft: #11171b;
	--crm-line: rgba(255, 255, 255, .13);
	--crm-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm__hero { background: radial-gradient(circle at 92% 18%, rgba(215, 42, 43, .24), transparent 34%), var(--crm-surface); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm__hero-badge { background: rgba(17, 23, 27, .68); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-guide { background: linear-gradient(135deg, var(--crm-surface), rgba(215, 42, 43, .12)); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-guide__identity { border-color: rgba(255, 255, 255, .12); background: #070b0d; color: #f7f8f9; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-guide__identity span { color: #ff7475; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-guide__identity small { color: rgba(247, 248, 249, .72); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-guide__reply { border-color: rgba(255, 116, 117, .28); background: rgba(215, 42, 43, .2); color: #f7f8f9; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-reactivate-dialog { border-color: rgba(255, 116, 117, .32); background: #1b2227; color: #f7f8f9; box-shadow: 0 32px 100px rgba(0, 0, 0, .62); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-reactivate-dialog__bubble { background: radial-gradient(circle at 100% 0, rgba(215, 42, 43, .24), transparent 45%), #1b2227; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-reactivate-dialog__bubble::before { border-color: rgba(255, 116, 117, .32); background: #1b2227; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-reactivate-dialog h3 { color: #f7f8f9; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-reactivate-dialog p:not(.imd-crm__eyebrow) { color: #b8c0c5; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-reactivate-dialog::backdrop { background: rgba(0, 0, 0, .78); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-guide__task input { color-scheme: dark; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm__status { color: #ff7475; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm__status.is-error { color: #ffb0b0; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-team__capacity { background: radial-gradient(circle at 100% 0, rgba(215, 42, 43, .24), transparent 44%), var(--crm-surface); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-team__overage { border-color: rgba(255, 193, 99, .35); background: rgba(181, 113, 17, .16); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-team-member__identity span { color: #8fe0b3; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-team-member.is-suspended_by_plan .imd-crm-team-member__identity span { color: #ffd18c; }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-stage-control [data-imd-crm-stage-button] { border-color: rgba(255, 116, 117, .3); background: var(--crm-soft); color: var(--crm-ink); box-shadow: 0 9px 22px rgba(0, 0, 0, .18); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-stage-control [data-imd-crm-stage-button]:hover, :where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-stage-control [data-imd-crm-stage-button][aria-expanded="true"] { border-color: #ff7475; background: var(--crm-surface); }
:where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-stage-listbox [data-imd-crm-stage-option]:hover, :where(html[data-theme="dark"], html[data-imd-color-scheme="dark"], html.inmudescuentos-site-dark, html.imh-site-dark, body.imd-dark-mode) .imd-crm-stage-listbox [data-imd-crm-stage-option]:focus-visible { border-color: rgba(255, 116, 117, .3); background: rgba(255, 116, 117, .13); color: #ffb0b0; }

@media (max-width: 900px) {
	.imd-crm__hero { grid-template-columns: 1fr; }
	.imd-crm__hero-badge { justify-items: start; text-align: left; }
	.imd-crm__today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.imd-crm-guide { grid-template-columns: 1fr; }
	.imd-crm-guide__identity { width: fit-content; }
	.imd-crm-task-list { grid-column: 1; }
	.imd-crm-guide__bubble::before { display: none; }
	.imd-crm-guide__actions, .imd-crm-guide__reply, .imd-crm-guide__task, .imd-crm__status { grid-column: 1; }
	.imd-crm-team__layout { grid-template-columns: 1fr; }
	.imd-crm-team__capacity { position: static; }
}

@media (max-width: 600px) {
	.imd-crm { width: min(100% - 20px, 1280px); margin: 24px auto 80px; }
	.imd-crm__hero, .imd-crm-guide { padding: 22px; border-radius: 22px; }
	.imd-crm-guide__identity { width: 100%; }
	.imd-crm__hero h1 { font-size: 3rem; }
	.imd-crm__view-switcher { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); width: 100%; }
	.imd-crm__view-switcher button { padding-inline: 12px; }
	.imd-crm__view-switcher small { margin-left: 5px; padding-inline: 5px; font-size: .56rem; }
	.imd-crm__today { gap: 8px; }
	.imd-crm__today article { min-height: 92px; padding: 15px; }
	.imd-crm-guide__actions { display: grid; }
	.imd-crm-guide__reply { width: min(92%, 560px); max-width: 92%; }
	.imd-crm-guide__task { grid-template-columns: 1fr; }
	.imd-crm-guide__task > div { grid-column: 1; display: grid; }
	.imd-crm-reactivate-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); overflow-y: auto; border-radius: 22px; }
	.imd-crm-reactivate-dialog__bubble { padding: 24px 20px 20px; }
	.imd-crm-reactivate-dialog__bubble::before { display: none; }
	.imd-crm-reactivate-dialog__bubble > div { display: grid; }
	.imd-crm-reactivate-dialog button { width: 100%; }
	.imd-crm-card__assistant { min-height: 48px; padding-inline: 16px; }
	.imd-crm__section-heading { align-items: start; flex-direction: column; }
	.imd-crm-pipeline { grid-auto-columns: minmax(84vw, 1fr); }
	.imd-crm-stage-control [data-imd-crm-stage-button] { min-height: 48px; font-size: .84rem; }
	.imd-crm-stage-listbox[data-imd-crm-stage-listbox] { width: min(320px, calc(100vw - 20px)); max-height: min(54vh, 360px); padding: 7px; border-radius: 15px; }
	.imd-crm-team__form { grid-template-columns: 1fr; padding: 20px; }
	.imd-crm-team__form fieldset { grid-template-columns: 1fr; }
	.imd-crm-team__form > button { width: 100%; }
	.imd-crm-team-member { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
	.imd-crm-team-member__controls { grid-column: 1 / -1; justify-content: stretch; }
	.imd-crm-team-member__roles { flex: 1; }
	.imd-crm-team-member__roles button { flex: 1; }
	.imd-crm-team-member__pause, .imd-crm-team-member__restore { flex: 1 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.imd-crm *, .imd-crm *::before, .imd-crm *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.imd-crm-stage-listbox [data-imd-crm-stage-option] { transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
	.imd-crm-card__assistant, .imd-crm-reactivate-dialog, .imd-crm-reactivate-dialog button, .imd-crm-stage-control [data-imd-crm-stage-button], .imd-crm-stage-listbox[data-imd-crm-stage-listbox], .imd-crm-stage-listbox [data-imd-crm-stage-option], .imd-crm-team button, .imd-crm-team input { border: 1px solid CanvasText; forced-color-adjust: auto; }
	.imd-crm-stage-listbox [data-imd-crm-stage-option][aria-selected="true"] { background: Highlight; color: HighlightText; }
}

.imd-crm__view-switcher { max-width: 100%; flex-wrap: wrap; border-radius: 22px; }
.imd-crm :where(h1, h2, h3) { font-family: var(--imd-font-heading, ODUDA, Aileron, Arial, sans-serif); text-transform: none; }
.imd-crm :where(.imd-crm__eyebrow, .imd-crm-card > small) { font-family: var(--imd-font-body, Aileron, Arial, sans-serif); text-transform: uppercase; }
@media (max-width: 760px) {
	.imd-crm__view-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.imd-crm__view-switcher button { min-width: 0; padding-inline: 11px; }
}
