/* Lead detail page */
.subin-lead-detail-page .subin-admin-hero {
	margin-bottom: 14px;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.subin-lead-detail-page .subin-admin-hero__icon {
	width: 58px;
	height: 58px;
}

.subin-lead-detail-page .subin-lead-summary-card {
	display: grid;
	gap: 18px;
	border-radius: 14px;
}

.subin-lead-detail-page .subin-lead-summary-main {
	align-items: flex-start;
}

.subin-lead-detail-page .subin-lead-summary-main h2 {
	margin-top: 8px;
	font-size: 24px;
	line-height: 1.2;
}

.subin-lead-detail-page .subin-lead-summary-result {
	max-width: 280px;
	margin: 2px 0 0;
	color: #334155;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
	text-align: right;
}

.subin-lead-detail-page .subin-lead-summary-meta {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 0;
	padding-top: 16px;
	border-top: 1px solid #e4edf7;
}

.subin-lead-detail-page .subin-summary-fact {
	min-width: 0;
}

.subin-lead-detail-page .subin-summary-fact span,
.subin-lead-detail-page .subin-side-list__item span,
.subin-lead-detail-page .subin-email-activity__meta span {
	display: block;
	margin-bottom: 4px;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.subin-lead-detail-page .subin-summary-fact strong,
.subin-lead-detail-page .subin-side-list__item strong,
.subin-lead-detail-page .subin-email-activity__meta strong {
	display: block;
	color: #172033;
	font-weight: 650;
	overflow-wrap: anywhere;
}

.subin-lead-detail-page .subin-lead-summary-actions {
	margin-top: 0;
}

.subin-lead-detail-page .subin-lead-summary-actions form {
	display: inline-flex;
	margin: 0;
}

.subin-lead-detail-page .subin-lead-detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: 16px;
	align-items: start;
	margin-top: 16px;
}

.subin-lead-detail-page .subin-lead-detail-main,
.subin-lead-detail-page .subin-lead-detail-sidebar {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.subin-lead-detail-page .subin-detail-panel {
	margin-top: 0;
	border-radius: 14px;
}

.subin-lead-detail-page .subin-detail-panel h2 {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.3;
}

.subin-lead-detail-page .subin-submitted-details__table {
	display: grid;
	border: 1px solid #e4edf7;
	border-radius: 12px;
	overflow: hidden;
}

.subin-lead-detail-page .subin-submitted-details__row {
	display: grid;
	grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
	min-width: 0;
	background: #fff;
}

.subin-lead-detail-page .subin-submitted-details__row + .subin-submitted-details__row {
	border-top: 1px solid #e4edf7;
}

.subin-lead-detail-page .subin-submitted-details__label,
.subin-lead-detail-page .subin-submitted-details__value {
	min-width: 0;
	padding: 10px 12px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.subin-lead-detail-page .subin-submitted-details__label {
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	background: #f8fafc;
}

.subin-lead-detail-page .subin-submitted-details__value {
	color: #172033;
}

.subin-lead-detail-page .subin-submitted-details__value--muted {
	color: #64748b;
}

.subin-lead-detail-page .subin-empty-state {
	margin-top: 0;
	padding: 22px 16px;
}

.subin-lead-detail-page .subin-side-list,
.subin-lead-detail-page .subin-email-summary__list {
	display: grid;
	gap: 0;
	border: 1px solid #e4edf7;
	border-radius: 12px;
	overflow: hidden;
}

.subin-lead-detail-page .subin-side-list__item,
.subin-lead-detail-page .subin-email-summary__item {
	min-width: 0;
	padding: 12px;
	background: #fff;
}

.subin-lead-detail-page .subin-side-list__item + .subin-side-list__item,
.subin-lead-detail-page .subin-email-summary__item + .subin-email-summary__item {
	border-top: 1px solid #e4edf7;
}

.subin-lead-detail-page .subin-email-summary__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.subin-lead-detail-page .subin-email-summary__item > div {
	min-width: 0;
}

.subin-lead-detail-page .subin-email-summary__item strong {
	display: block;
	color: #172033;
	font-weight: 700;
}

.subin-lead-detail-page .subin-email-summary__item span:not(.subin-badge) {
	display: block;
	margin-top: 4px;
	color: #64748b;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.subin-lead-detail-page .subin-email-summary__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px;
	background: #fff;
	border-top: 1px solid #e4edf7;
}

.subin-lead-detail-page .subin-email-summary__actions form {
	display: inline-flex;
	margin: 0;
}

.subin-lead-detail-page .subin-auto-reply-card__content {
	display: grid;
	gap: 14px;
}

.subin-lead-detail-page .subin-auto-reply-card__status {
	display: grid;
	gap: 6px;
}

.subin-lead-detail-page .subin-auto-reply-card__status p {
	max-width: 760px;
	margin: 6px 0 0;
	color: #475569;
	line-height: 1.45;
}

.subin-lead-detail-page .subin-email-activity__timeline {
	display: grid;
	gap: 12px;
}

.subin-lead-detail-page .subin-email-activity__event {
	position: relative;
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e4edf7;
	border-radius: 12px;
}

.subin-lead-detail-page .subin-email-activity__marker {
	width: 10px;
	height: 10px;
	margin-top: 5px;
	border-radius: 999px;
	background: #94a3b8;
	box-shadow: 0 0 0 4px #f1f5f9;
}

.subin-lead-detail-page .subin-email-activity__event--success .subin-email-activity__marker {
	background: #0a6f2b;
	box-shadow: 0 0 0 4px #edfaef;
}

.subin-lead-detail-page .subin-email-activity__event--danger .subin-email-activity__marker {
	background: #b32d2e;
	box-shadow: 0 0 0 4px #fcf0f1;
}

.subin-lead-detail-page .subin-email-activity__event--warning .subin-email-activity__marker {
	background: #d97706;
	box-shadow: 0 0 0 4px #fcf9e8;
}

.subin-lead-detail-page .subin-email-activity__content {
	min-width: 0;
}

.subin-lead-detail-page .subin-email-activity__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.subin-lead-detail-page .subin-email-activity__head h3 {
	margin: 2px 0 0;
	color: #172033;
	font-size: 15px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.subin-lead-detail-page .subin-email-activity__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
	margin-top: 12px;
}

.subin-lead-detail-page .subin-email-activity__note {
	display: grid;
	gap: 10px;
	margin-top: 12px;
	padding: 10px 12px;
	background: #fcf0f1;
	border-radius: 10px;
	overflow-wrap: anywhere;
}

.subin-lead-detail-page .subin-email-activity__guidance-row {
	display: grid;
	gap: 3px;
}

.subin-lead-detail-page .subin-email-activity__guidance-row span {
	color: #991b1b;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.subin-lead-detail-page .subin-email-activity__guidance-row strong {
	color: #7f1d1d;
	font-weight: 650;
	line-height: 1.45;
}

@media (max-width: 900px) {
	.subin-lead-detail-page .subin-lead-detail-layout,
	.subin-lead-detail-page .subin-lead-summary-meta {
		grid-template-columns: 1fr;
	}

	.subin-lead-detail-page .subin-lead-summary-main,
	.subin-lead-detail-page .subin-email-activity__head {
		flex-direction: column;
	}

	.subin-lead-detail-page .subin-lead-summary-result {
		max-width: none;
		text-align: left;
	}
}

@media (max-width: 640px) {
	.subin-lead-detail-page .subin-submitted-details__row,
	.subin-lead-detail-page .subin-email-activity__meta {
		grid-template-columns: 1fr;
	}

	.subin-lead-detail-page .subin-submitted-details__label {
		padding-bottom: 3px;
	}

	.subin-lead-detail-page .subin-submitted-details__value {
		padding-top: 3px;
	}

	.subin-lead-detail-page .subin-email-summary__item {
		flex-direction: column;
	}
}

/* Inbox cards and filters */
/* Inbox visual polish: compact operations dashboard without changing page behavior. */
.subin-inbox-page {
	--subin-inbox-ink: #111827;
	--subin-inbox-muted: #667085;
	--subin-inbox-line: #d9e4f2;
	--subin-inbox-soft: #f8fbff;
	--subin-inbox-blue: #2563eb;
	--subin-inbox-green: #2f7d3b;
	--subin-inbox-green-bg: #ecf8ee;
	--subin-inbox-amber: #b45309;
	--subin-inbox-amber-bg: #fff7ed;
	--subin-inbox-red: #b42318;
	--subin-inbox-red-bg: #fff1f0;
}

.subin-inbox-page .subin-admin-hero {
	min-height: 0;
	margin: 16px 0 18px;
	padding: 18px 22px;
	border-color: #d8e6f4;
	border-radius: 20px;
	background:
		radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 30%),
		linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.subin-inbox-page .subin-admin-hero__main {
	align-items: center;
	gap: 14px;
}

.subin-inbox-page .subin-admin-hero__icon {
	width: 58px;
	height: 58px;
}

.subin-inbox-page .subin-admin-hero__icon-img {
	border-radius: 12px;
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.subin-inbox-page .subin-admin-hero h1 {
	margin-bottom: 4px;
	font-size: 25px;
	letter-spacing: -0.03em;
}

.subin-inbox-page .subin-admin-hero .subin-page-description {
	font-size: 14px;
	font-weight: 550;
}

.subin-inbox-page .subin-admin-hero__actions .button,
.subin-inbox-page .subin-admin-hero__actions .subin-btn {
	min-height: 36px;
	border-radius: 11px !important;
	font-weight: 760;
}

.subin-inbox-page .subin-inbox-summary {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.subin-inbox-page .subin-summary-card {
	position: relative;
	min-height: 82px;
	padding: 16px 18px 14px;
	overflow: hidden;
	border-color: #dbe6f4;
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.subin-inbox-page .subin-summary-card.is-active {
	border-color: #93c5fd;
	box-shadow: inset 0 0 0 1px #bfdbfe, 0 14px 30px rgba(37, 99, 235, 0.1);
}

.subin-inbox-page .subin-summary-card__link {
	position: relative;
	z-index: 2;
	display: grid;
	width: fit-content;
	color: inherit;
	text-decoration: none;
}

.subin-inbox-page .subin-summary-card__link:hover,
.subin-inbox-page .subin-summary-card__link:focus {
	color: #1d4ed8;
	box-shadow: none;
	outline: none;
}

.subin-inbox-page .subin-summary-value {
	position: relative;
	z-index: 1;
	font-size: 28px;
	line-height: 1;
	letter-spacing: -0.04em;
}

.subin-inbox-page .subin-summary-label {
	position: relative;
	z-index: 1;
	margin-top: 5px;
	color: var(--subin-inbox-muted);
	font-size: 13px;
	font-weight: 760;
}

.subin-inbox-page .subin-filter-panel {
	margin-bottom: 16px;
	padding: 14px 16px 12px;
	border-color: #dbe6f4;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.subin-inbox-page .subin-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.subin-inbox-page .subin-filter-chip {
	display: inline-flex;
	align-items: center;
	min-height: 23px;
	padding: 5px 11px;
	color: #334155;
	text-decoration: none;
	background: #f8fafc;
	border: 1px solid #d8e2ee;
	border-radius: 9px;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
}

.subin-inbox-page .subin-filter-chip:hover,
.subin-inbox-page .subin-filter-chip:focus,
.subin-inbox-page .subin-filter-chip.is-active {
	color: #1d4ed8;
	background: #eff6ff;
	border-color: #bfdbfe;
	box-shadow: none;
	outline: none;
}

.subin-inbox-page .subin-attention-notice {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 16px;
	padding: 12px 14px;
	color: #7c2d12;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 14px;
}

.subin-inbox-page .subin-attention-notice.is-hidden {
	display: none;
}

.subin-inbox-page .subin-attention-notice__content {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	min-width: 0;
}

.subin-inbox-page .subin-attention-notice strong {
	font-weight: 800;
}

.subin-inbox-page .subin-attention-notice span {
	color: #9a3412;
}

.subin-inbox-page .subin-attention-notice__dismiss {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 9px;
	color: #7c2d12;
	background: #fff;
	border: 1px solid #fed7aa;
	border-radius: 9px;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
	cursor: pointer;
}

.subin-inbox-page .subin-attention-notice__dismiss:hover,
.subin-inbox-page .subin-attention-notice__dismiss:focus {
	color: #9a3412;
	background: #ffedd5;
	box-shadow: none;
	outline: none;
}

.subin-inbox-page .subin-filter-main--inbox {
	grid-template-columns: minmax(320px, 1fr) minmax(130px, 0.28fr) minmax(150px, 0.34fr) minmax(170px, 0.42fr) auto;
	gap: 10px;
	align-items: end;
}

.subin-inbox-page .subin-filter-field label {
	margin-bottom: 6px;
	color: #536176;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.02em;
}

.subin-inbox-page .subin-filter-panel .subin-filter-field input[type="search"],
.subin-inbox-page .subin-filter-panel .subin-filter-field input[type="date"],
.subin-inbox-page .subin-filter-panel .subin-filter-field select {
	min-height: 39px;
	border-color: #d4dfed;
	border-radius: 12px;
	background-color: #ffffff;
	font-weight: 650;
}

.subin-inbox-page .subin-filter-actions {
	gap: 8px;
}

.subin-inbox-page .subin-filter-actions .button,
.subin-inbox-page .subin-filter-actions .subin-btn {
	min-height: 39px;
	border-radius: 12px !important;
	font-weight: 800;
}

.subin-inbox-page .subin-advanced-filters {
	margin-top: 12px;
	padding-top: 12px;
	border-top-color: #e6edf6;
}

.subin-inbox-page .subin-filter-toggle {
	width: fit-content;
	color: #536176;
	font-size: 13px;
	font-weight: 800;
}

.subin-inbox-page .subin-lead-list {
	grid-template-columns: repeat(3, minmax(300px, 1fr));
	gap: 14px;
}

.subin-inbox-page .subin-lead-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
	padding: 18px;
	border-color: #dbe6f4;
	border-radius: 18px;
	background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.subin-inbox-page .subin-lead-card:hover {
	border-color: #bfd3ee;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
	transform: translateY(-1px);
}

.subin-inbox-page .subin-lead-card--attention {
	border-color: #fed7aa;
	background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.subin-inbox-page .subin-lead-card__main,
.subin-inbox-page .subin-lead-card__status {
	min-width: 0;
}

.subin-inbox-page .subin-lead-card__main {
	display: grid;
	gap: 12px;
}

.subin-inbox-page .subin-lead-card__status {
	padding: 13px;
	border: 1px solid #e4ebf5;
	border-radius: 15px;
	background: #f8fbff;
}

.subin-inbox-page .subin-lead-card__head {
	align-items: start;
	gap: 8px;
}

.subin-inbox-page .subin-lead-card__title {
	margin-bottom: 4px;
	font-size: 18px;
	line-height: 1.18;
	letter-spacing: -0.035em;
}

.subin-inbox-page .subin-lead-card__title a {
	color: var(--subin-inbox-ink);
}

.subin-inbox-page .subin-lead-card__contact,
.subin-inbox-page .subin-lead-card__meta {
	gap: 6px;
	color: var(--subin-inbox-muted);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
}

.subin-inbox-page .subin-lead-card__contact a,
.subin-inbox-page .subin-lead-card__meta a {
	color: #315f9d;
	font-weight: 760;
}

.subin-inbox-page .subin-lead-card__message {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #e4ebf5;
	border-radius: 13px;
	background: #ffffff;
	color: #334155;
	font-weight: 650;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.subin-inbox-page .subin-lead-card__message::before,
.subin-inbox-page .subin-lead-card__message::after {
	content: "";
}

.subin-inbox-page .subin-lead-card__actions {
	position: relative;
	gap: 7px;
	margin-top: 0;
	padding: 12px 0 0;
	border-top: 1px solid #e7eef7;
	margin-top: auto;
}

.subin-inbox-page .subin-lead-card__actions form {
	display: inline-flex;
	margin: 0;
}

.subin-inbox-page .subin-lead-card__more {
	position: relative;
}

.subin-inbox-page .subin-lead-card__more summary {
	cursor: pointer;
	list-style: none;
}

.subin-inbox-page .subin-lead-card__more summary::-webkit-details-marker {
	display: none;
}

.subin-inbox-page .subin-lead-card__more-menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 10;
	display: grid;
	gap: 6px;
	min-width: 178px;
	padding: 9px;
	background: #fff;
	border: 1px solid #d8e2ee;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.subin-inbox-page .subin-lead-card__more-menu a,
.subin-inbox-page .subin-lead-card__more-menu button {
	display: flex;
	width: 100%;
	min-height: 30px;
	align-items: center;
	padding: 5px 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #334155;
	font-size: 12px;
	font-weight: 750;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.subin-inbox-page .subin-lead-card__more-menu a:hover,
.subin-inbox-page .subin-lead-card__more-menu a:focus,
.subin-inbox-page .subin-lead-card__more-menu button:hover,
.subin-inbox-page .subin-lead-card__more-menu button:focus {
	background: #f8fafc;
	box-shadow: none;
	outline: none;
}

.subin-inbox-page .subin-lead-card__more-menu .button-link-delete {
	color: #b32d2e;
}

.subin-inbox-page .subin-lead-card__actions .button,
.subin-inbox-page .subin-lead-card__actions .subin-btn {
	min-height: 32px;
	border-radius: 999px !important;
	font-size: 12px !important;
	font-weight: 850;
}

.subin-inbox-page .subin-action-chip {
	min-height: 31px;
	padding: 6px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.subin-inbox-page .subin-lead-card__actions > a.subin-action-chip:first-child {
	padding-inline: 14px;
	background: var(--subin-inbox-blue);
	border-color: var(--subin-inbox-blue);
	color: #ffffff;
}

.subin-inbox-page .subin-action-chip-danger {
	background: #ffffff;
	border-color: #f3c5c0;
	color: var(--subin-inbox-red);
}

.subin-inbox-page .subin-lead-card__status p {
	margin: 9px 0 0;
	color: #526176;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
}

@media (max-width: 1500px) {
	.subin-inbox-page .subin-lead-list {
		grid-template-columns: repeat(2, minmax(300px, 1fr));
	}
}

@media (max-width: 1100px) {
	.subin-inbox-page .subin-admin-hero {
		align-items: flex-start;
	}

	.subin-inbox-page .subin-inbox-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.subin-inbox-page .subin-filter-main--inbox {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.subin-inbox-page .subin-filter-field--search,
	.subin-inbox-page .subin-filter-actions {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.subin-inbox-page .subin-admin-hero {
		padding: 16px;
	}

	.subin-inbox-page .subin-admin-hero__icon {
		width: 48px;
		height: 48px;
	}

	.subin-inbox-page .subin-inbox-summary,
	.subin-inbox-page .subin-lead-list,
	.subin-inbox-page .subin-filter-main--inbox {
		grid-template-columns: 1fr;
	}

	.subin-inbox-page .subin-lead-card {
		padding: 15px;
	}
}

/* Inbox logical icons */
.subin-inbox-page .subin-inbox-summary .subin-summary-card {
    position: relative;
    overflow: hidden;
    padding-left: 62px;
}

.subin-inbox-page .subin-inbox-summary .subin-status-icon,
.subin-inbox-page .subin-lead-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
}

.subin-inbox-page .subin-inbox-summary .subin-status-icon {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    font-size: 18px;
}

.subin-inbox-page .subin-inbox-summary .subin-status-icon::before,
.subin-inbox-page .subin-lead-card__icon::before {
    width: auto;
    height: auto;
    font-size: inherit;
    line-height: 1;
}

.subin-inbox-page .subin-status-icon--total {
    background: #eef5ff;
    color: #2563eb;
}

.subin-inbox-page .subin-status-icon--new {
    background: #ecf8ee;
    color: #2f7d3b;
}

.subin-inbox-page .subin-status-icon--needs_attention {
    background: #fff7ed;
    color: #b45309;
}

.subin-inbox-page .subin-status-icon--archived {
    background: #f1f5f9;
    color: #64748b;
}

.subin-inbox-page .subin-lead-card__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    background: #eef5ff;
    color: #2563eb;
    font-size: 18px;
}

.subin-inbox-page .subin-lead-card--attention .subin-lead-card__icon {
    background: #fff7ed;
    color: #b45309;
}

.subin-inbox-page .subin-lead-card__identity {
    min-width: 0;
}

@media (max-width: 760px) {
    .subin-inbox-page .subin-inbox-summary .subin-summary-card {
        padding-left: 56px;
    }

    .subin-inbox-page .subin-inbox-summary .subin-status-icon {
        left: 14px;
    }
}

.subin-inbox-page .subin-lead-card__icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

/* Inbox lead header: keep icon attached to identity */
.subin-inbox-page .subin-lead-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: start;
    column-gap: 10px;
    row-gap: 6px;
    align-items: center;
}

.subin-inbox-page .subin-lead-card__head > .subin-badge {
    justify-self: end;
}

/* Inbox summary actions */
.subin-inbox-summary .subin-summary-card {
    position: relative;
}

.subin-inbox-page .subin-inbox-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.subin-inbox-page .subin-inbox-summary .subin-summary-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 20px 18px;
}

.subin-inbox-page .subin-inbox-summary .subin-status-icon {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    line-height: 1;
    position: static;
    border-radius: 999px;
    font-size: 20px;
}

.subin-inbox-page .subin-inbox-summary .subin-status-icon::before {
    font-size: 20px;
    line-height: 1;
}

.subin-inbox-page .subin-status-icon--unread {
    background: #eef4ff;
    color: #3467e8;
}

.subin-inbox-page .subin-inbox-summary .subin-summary-value,
.subin-inbox-page .subin-inbox-summary .subin-summary-label,
.subin-inbox-page .subin-inbox-summary .subin-summary-description,
.subin-inbox-page .subin-inbox-summary .subin-summary-action {
    grid-column: 2;
    min-width: 0;
}

.subin-inbox-summary .subin-summary-description {
    display: block;
    margin-top: 2px;
    color: #7b8798;
    font-size: 12px;
    font-weight: 700;
}

.subin-inbox-summary .subin-summary-action {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
}

.subin-inbox-summary .subin-summary-action .subin-btn-small {
    min-height: 32px;
    padding: 6px 12px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid #bcd2ff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
    text-decoration: none;
    white-space: nowrap;
}

.subin-inbox-summary .subin-summary-action .subin-btn-small:hover,
.subin-inbox-summary .subin-summary-action .subin-btn-small:focus {
    color: #123fb5;
    border-color: #8fb3ff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

@media (max-width: 1280px) {
    .subin-inbox-page .subin-inbox-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .subin-inbox-page .subin-inbox-summary {
        grid-template-columns: 1fr;
    }

    .subin-inbox-page .subin-lead-card__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .subin-inbox-summary .subin-summary-action {
        position: static;
        margin-top: 10px;
    }

    .subin-inbox-summary .subin-summary-action .subin-btn-small {
        width: fit-content;
        max-width: 100%;
        white-space: normal;
    }
}
