/* 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: 10px;
	padding: 16px 18px;
	border-radius: 14px;
}

.subin-assurance {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.subin-assurance__signal {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 8px;
	align-items: center;
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid #e4edf7;
	border-radius: 10px;
	background: #f8fafc;
}

.subin-assurance__dot {
	grid-row: 1 / 3;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #94a3b8;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
}

.subin-assurance__label {
	min-width: 0;
	color: #64748b;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.subin-assurance__signal strong {
	min-width: 0;
	color: #334155;
	font-size: 12px;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.subin-assurance__signal.is-success .subin-assurance__dot {
	background: #16a34a;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.subin-assurance__signal.is-success strong {
	color: #166534;
}

.subin-assurance__signal.is-danger .subin-assurance__dot {
	background: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.subin-assurance__signal.is-danger strong {
	color: #b91c1c;
}

.subin-assurance__signal.is-warning .subin-assurance__dot {
	background: #d97706;
	box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.subin-assurance__signal.is-warning strong {
	color: #92400e;
}

.subin-assurance__signal.is-info .subin-assurance__dot {
	background: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.subin-assurance__signal.is-info strong {
	color: #1d4ed8;
}

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

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

.subin-lead-detail-page .subin-lead-summary-context {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	color: #64748b;
	font-size: 13px;
	font-weight: 650;
}

.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;
	justify-content: flex-end;
}

.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(260px, 320px);
	grid-template-areas: "main sidebar";
	gap: 16px;
	align-items: start;
	margin-top: 16px;
}

.subin-lead-detail-page .subin-lead-detail-layout--focused {
	grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
}

.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-lead-detail-main {
	grid-area: main;
}

.subin-lead-detail-page .subin-lead-detail-sidebar {
	grid-area: sidebar;
	align-self: start;
}

.subin-lead-detail-page .subin-detail-panel {
	margin-top: 0;
	border-radius: 14px;
	background: #FFF;
	padding: 22px;
}

.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--primary {
	padding: 22px;
	border-color: #d8e6f4;
	background: #FFF;
}

.subin-lead-detail-page .subin-submitted-details--primary h2 {
	margin-bottom: 16px;
	color: #172033;
	font-size: 18px;
}

.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--primary .subin-submitted-details__table {
	border-radius: 14px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.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--primary .subin-submitted-details__row {
	grid-template-columns: minmax(140px, 210px) minmax(0, 1fr);
}

.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--primary .subin-submitted-details__label,
.subin-lead-detail-page .subin-submitted-details--primary .subin-submitted-details__value {
	padding: 13px 14px;
}

.subin-lead-detail-page .subin-submitted-details--primary .subin-submitted-details__value {
	font-size: 14px;
	font-weight: 650;
}

.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-lead-detail-main .subin-source-card .subin-side-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.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-lead-detail-sidebar .subin-side-list__item {
	padding: 10px 12px;
}

.subin-lead-detail-page .subin-lead-details-panel .subin-side-list__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
}

.subin-lead-detail-page .subin-lead-details-panel .subin-side-list__item span {
	margin-bottom: 0;
	text-transform: none;
}

.subin-lead-detail-page .subin-lead-details-panel .subin-side-list__item strong {
	text-align: right;
}

.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-lead-detail-main .subin-source-card .subin-side-list__item + .subin-side-list__item {
	border-top: 0;
	border-left: 1px solid #e4edf7;
}

.subin-lead-detail-page .subin-lead-detail-main .subin-source-card .subin-side-list__item:nth-child(2n + 1) {
	border-left: 0;
}

.subin-lead-detail-page .subin-lead-detail-main .subin-source-card .subin-side-list__item:nth-child(n + 3) {
	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-detail-drawer {
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e4edf7;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.subin-lead-detail-page .subin-detail-drawer summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	color: #334155;
	background: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.subin-lead-detail-page .subin-detail-drawer summary::-webkit-details-marker {
	display: none;
}

.subin-lead-detail-page .subin-detail-drawer__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.subin-lead-detail-page .subin-detail-drawer summary::after {
	content: "⌄";
	color: #64748b;
	font-size: 14px;
}

.subin-lead-detail-page .subin-detail-drawer[open] summary {
	border-bottom: 1px solid #e4edf7;
}

.subin-lead-detail-page .subin-detail-drawer[open] summary::after {
	content: "⌃";
}

.subin-lead-detail-page .subin-detail-drawer > :not(summary) {
	margin: 14px 16px 16px;
}

.subin-lead-detail-page .subin-detail-drawer .subin-side-list {
	border-radius: 10px;
}

.subin-lead-detail-page .subin-detail-drawer .subin-workflow-form p {
	margin: 12px 0 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;
}

.subin-lead-detail-page .subin-lead-detail-sidebar .subin-email-activity__event {
	grid-template-columns: 1fr;
	gap: 10px;
	padding: 12px;
}

.subin-lead-detail-page .subin-lead-detail-sidebar .subin-email-activity__marker {
	position: absolute;
	top: 18px;
	left: 14px;
	margin-top: 0;
}

.subin-lead-detail-page .subin-lead-detail-sidebar .subin-email-activity__head {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	padding-left: 26px;
}

.subin-lead-detail-page .subin-lead-detail-sidebar .subin-email-activity__head .subin-badge {
	width: fit-content;
}

.subin-lead-detail-page .subin-lead-detail-sidebar .subin-email-activity__meta {
	grid-template-columns: 1fr;
	gap: 8px;
}

.subin-lead-detail-page .subin-lead-detail-sidebar .subin-email-activity__meta strong,
.subin-lead-detail-page .subin-lead-detail-sidebar .subin-email-activity__guidance-row strong {
	overflow-wrap: anywhere;
}

.subin-lead-detail-page .subin-lead-detail-sidebar .subin-email-activity__note {
	padding: 10px;
}

@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-detail-layout {
		grid-template-areas:
			"sidebar"
			"main";
	}

	.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-assurance {
		grid-template-columns: 1fr;
	}

	.subin-lead-detail-page .subin-submitted-details__row,
	.subin-lead-detail-page .subin-email-activity__meta,
	.subin-lead-detail-page .subin-lead-detail-main .subin-source-card .subin-side-list {
		grid-template-columns: 1fr;
	}

	.subin-lead-detail-page .subin-lead-detail-main .subin-source-card .subin-side-list__item + .subin-side-list__item,
	.subin-lead-detail-page .subin-lead-detail-main .subin-source-card .subin-side-list__item:nth-child(n + 3) {
		border-top: 1px solid #e4edf7;
		border-left: 0;
	}

	.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;
	}

	.subin-lead-detail-page .subin-note-form__row {
		grid-template-columns: 1fr;
	}

	.subin-lead-detail-page .subin-note-form__row .button {
		width: 100%;
	}
}

/* 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(280px, 1fr) minmax(120px, 0.24fr) minmax(140px, 0.3fr) minmax(160px, 0.36fr) minmax(145px, 0.3fr) 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: #eef4ff;
    color: #3467e8;
}

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

.subin-inbox-page .subin-status-icon--needs_attention {
    background: #fff1f0;
    color: #b42318;
}

.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);
}

.subin-lead-card__meta--workflow {
    margin-top: 10px;
}

.subin-workflow-overdue strong {
    color: #b42318;
}

.subin-workflow-form select,
.subin-workflow-form input[type="date"],
.subin-note-form textarea {
    width: 100%;
    max-width: 100%;
}

.subin-note-form {
	margin: 0;
}

.subin-note-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: start;
}

.subin-note-form textarea {
	min-height: 42px;
	padding: 10px 12px;
	border-color: #dbe6f4;
	border-radius: 12px;
	resize: vertical;
}

.subin-note-form p {
	margin: 0;
}

.subin-workflow-list {
    margin-top: 18px;
}

.subin-workflow-list h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.subin-workflow-item {
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}

.subin-notes-panel .subin-workflow-list,
.subin-activity-panel .subin-workflow-list {
	margin-top: 12px;
	border: 1px solid #e4edf7;
	border-radius: 12px;
	overflow: hidden;
}

.subin-notes-panel .subin-workflow-item,
.subin-activity-panel .subin-workflow-item {
	padding: 10px 12px;
	background: #fff;
	border-top: 0;
}

.subin-notes-panel .subin-workflow-item + .subin-workflow-item,
.subin-activity-panel .subin-workflow-item + .subin-workflow-item {
	border-top: 1px solid #e5e7eb;
}

.subin-workflow-item p {
    margin: 4px 0;
}

.subin-workflow-item span {
    color: #6b7280;
    font-size: 12px;
}

.subin-lead-detail-page .subin-note-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 8px;
}

.subin-lead-detail-page .subin-note-edit {
	display: inline-block;
}

.subin-lead-detail-page .subin-note-edit[open] {
	display: block;
	flex: 0 0 100%;
	width: 100%;
}

.subin-lead-detail-page .subin-note-edit summary {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 10px;
	color: #334155;
	background: #fff;
	border: 1px solid #d8e2ee;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 760;
	cursor: pointer;
	list-style: none;
}

.subin-lead-detail-page .subin-note-edit summary::-webkit-details-marker {
	display: none;
}

.subin-lead-detail-page .subin-note-edit-form {
	display: grid;
	gap: 8px;
	width: 100%;
	margin-top: 8px;
	margin-bottom: 8px;
}

.subin-lead-detail-page .subin-note-edit-form textarea {
	width: 100%;
	min-height: 96px;
	padding: 10px 12px;
	border-color: #dbe6f4;
	border-radius: 12px;
}

.subin-lead-detail-page .subin-note-edit-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	align-items: center;
}

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

.subin-cloud-connector {
    max-width: 1120px;
}

.subin-cloud-connector__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.subin-cloud-connector__header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.subin-cloud-connector__header p {
    max-width: 680px;
}

.subin-cloud-connector__eyebrow {
    margin: 0 0 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.subin-cloud-connector__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.subin-cloud-connector__main,
.subin-cloud-connector__side {
    display: grid;
    gap: 18px;
}

.subin-cloud-card {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    padding: 18px;
}

.subin-cloud-card--secondary {
    margin-top: 18px;
}

.subin-cloud-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.subin-cloud-card p {
    margin-top: 0;
}

.subin-cloud-card__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.subin-cloud-key-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.subin-cloud-key-row label {
    grid-column: 1 / -1;
    font-weight: 700;
}

.subin-cloud-key-row input {
    width: 100%;
    max-width: 100%;
}

.subin-cloud-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.subin-cloud-options label {
    font-weight: 700;
}

.subin-cloud-consent {
    margin-top: 14px;
}

.subin-cloud-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.subin-cloud-connected-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.subin-cloud-connected-grid div,
.subin-cloud-readiness > div {
    min-width: 0;
    border-top: 1px solid #f0f0f1;
    padding-top: 10px;
}

.subin-cloud-connected-grid span,
.subin-cloud-readiness span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.subin-cloud-connected-grid strong,
.subin-cloud-readiness code {
    overflow-wrap: anywhere;
}

.subin-cloud-readiness {
    display: grid;
    gap: 12px;
}

.subin-cloud-readiness > div {
    display: grid;
    gap: 6px;
}

.subin-cloud-error-card {
    border-color: #f4b5b5;
    background: #fff7f7;
}

.subin-cloud-sync-queue {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.subin-cloud-sync-queue__counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.subin-cloud-sync-queue__meta p {
    margin: 0;
}

.subin-cloud-sync-events {
    table-layout: fixed;
}

.subin-cloud-sync-events th,
.subin-cloud-sync-events td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

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

@media (max-width: 782px) {
    .subin-cloud-connector__header,
    .subin-cloud-card__header {
        display: grid;
    }

    .subin-cloud-connector__grid,
    .subin-cloud-key-row,
    .subin-cloud-connected-grid {
        grid-template-columns: 1fr;
    }

    .subin-cloud-key-row .button {
        width: fit-content;
        max-width: 100%;
    }

    .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;
    }
}

/* Inbox mockup layout */
.subin-inbox-page .si-page {
    width: 100%;
    max-width: none;
    margin: 0;
}

.subin-inbox-page .si-btn-primary,
.subin-inbox-page .si-btn-light,
.subin-inbox-page .si-small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.subin-inbox-page .si-btn-primary {
    border: 0;
    border-radius: 999px;
    background: var(--subin-inbox-blue);
    color: #fff;
    padding: 10px 15px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

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

.subin-inbox-page .si-stat {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--subin-inbox-line);
    border-radius: 15px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}

.subin-inbox-page .si-stat .subin-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 17px;
    line-height: 1;
}

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

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

.subin-inbox-page .si-stat .subin-status-icon--needs_attention {
    background: #fff1f0;
    color: #b42318;
}

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

.subin-inbox-page .si-stat .subin-status-icon::before {
    width: auto;
    height: auto;
    font-size: inherit;
    line-height: 1;
}

.subin-inbox-page .si-stat-copy {
    display: block;
    min-width: 0;
}

.subin-inbox-page .si-stat strong {
    display: block;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 4px;
}


.subin-inbox-page .si-toolbar {
    background: #fff;
    border: 1px solid var(--subin-inbox-line);
    border-radius: 17px;
    padding: 12px;
    margin-bottom: 12px;
}

.subin-inbox-page .si-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf1f6;
    margin-bottom: 10px;
}

.subin-inbox-page .si-tab {
    border: 1px solid var(--subin-inbox-line);
    background: #fff;
    color: #42526b;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.subin-inbox-page .si-tab.is-active {
    background: var(--subin-inbox-blue);
    border-color: var(--subin-inbox-blue);
    color: #fff;
}

.subin-inbox-page .si-filters {
    display: grid;
    grid-template-columns: 1fr 150px 160px 160px auto;
    gap: 9px;
}

.subin-inbox-page .si-input,
.subin-inbox-page .si-select {
    width: 100%;
    height: 38px;
    min-height: 38px;
    border: 1px solid var(--subin-inbox-line);
    background: #fff;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 13px;
    box-sizing: border-box;
}

.subin-inbox-page .si-btn-light {
    height: 38px;
    border: 1px solid var(--subin-inbox-line);
    background: var(--subin-inbox-soft);
    color: #334155;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.subin-inbox-page .si-list {
    background: #fff;
    border: 1px solid var(--subin-inbox-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .05);
}

.subin-inbox-page .si-list-head,
.subin-inbox-page .si-row-main {
    display: grid;
    grid-template-columns: 34px minmax(190px, 1fr) minmax(260px, 1.45fr) 130px minmax(220px, .9fr) 44px;
    gap: 12px;
    align-items: center;
}

.subin-note-conflict {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #f0b849;
    border-left-width: 4px;
    border-radius: 8px;
    background: #fff8e5;
    color: #3c434a;
}

.subin-note-conflict p {
    margin: 5px 0 0;
}

.subin-note-recovery-form {
	display: grid;
	gap: 9px;
	margin: 0 0 16px;
}

.subin-note-recovery-form .button {
	justify-self: start;
}

.subin-workflow-item--conflicted {
    outline: 2px solid #f0b849;
    outline-offset: 2px;
}

.subin-inbox-page .si-list-head {
    padding: 11px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--subin-inbox-line);
    color: var(--subin-inbox-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.subin-inbox-page .si-row {
    display: block;
    border-bottom: 1px solid #edf1f6;
}

.subin-inbox-page .si-row:last-child {
    border-bottom: 0;
}

.subin-inbox-page .si-row-main {
    min-height: 84px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .15s ease;
    list-style: none;
}

.subin-inbox-page .si-row-main::-webkit-details-marker {
    display: none;
}

.subin-inbox-page .si-row-main:hover {
    background: #f8fbff;
}

.subin-inbox-page .si-row[open] .si-row-main {
    background: #eff6ff;
    box-shadow: inset 3px 0 0 var(--subin-inbox-blue);
}

.subin-inbox-page .si-row.needs-attention .si-row-main {
    box-shadow: inset 3px 0 0 var(--subin-inbox-amber);
}

.subin-inbox-page .si-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--subin-inbox-blue);
}

.subin-inbox-page .si-person,
.subin-inbox-page .si-message,
.subin-inbox-page .si-meta {
    min-width: 0;
}

.subin-inbox-page .si-name-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    min-width: 0;
}

.subin-inbox-page .si-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--subin-inbox-blue);
    flex: 0 0 auto;
}

.subin-inbox-page .si-name {
    font-size: 14px;
    font-weight: 850;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.subin-inbox-page .si-email,
.subin-inbox-page .si-preview,
.subin-inbox-page .si-meta {
    color: var(--subin-inbox-muted);
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.subin-inbox-page .subin-assurance--compact {
	grid-template-columns: 1fr;
	gap: 3px;
	width: 100%;
}

.subin-inbox-page .subin-assurance--compact .subin-assurance__signal {
	grid-template-columns: 7px 58px minmax(0, 1fr);
	grid-template-rows: auto;
	column-gap: 6px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.subin-inbox-page .subin-assurance--compact .subin-assurance__dot {
	grid-row: auto;
	width: 6px;
	height: 6px;
	box-shadow: none;
}

.subin-inbox-page .subin-assurance--compact .subin-assurance__label {
	font-size: 9px;
}

.subin-inbox-page .subin-assurance--compact strong {
	font-size: 11px;
}

.subin-inbox-page .si-subject {
    color: #243047;
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.subin-inbox-page .si-meta strong {
    display: block;
    color: #334155;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.subin-inbox-page .si-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.subin-inbox-page .si-badge.failed {
    color: var(--subin-inbox-red);
    background: var(--subin-inbox-red-bg);
}

.subin-inbox-page .si-badge.sent {
    color: var(--subin-inbox-green);
    background: var(--subin-inbox-green-bg);
}

.subin-inbox-page .si-badge.unknown {
    color: #64748b;
    background: #f1f5f9;
}

.subin-inbox-page .si-badge.none {
    color: var(--subin-inbox-amber);
    background: var(--subin-inbox-amber-bg);
}

.subin-inbox-page .si-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.subin-inbox-page .si-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--subin-inbox-line);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    color: #64748b;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.subin-inbox-page .si-row-extra {
    padding: 0 14px 14px 48px;
    background: #eff6ff;
}

.subin-inbox-page .si-extra-card {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr) auto;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 15px;
}

.subin-inbox-page .si-extra-title {
    margin: 0 0 7px;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.subin-inbox-page .si-field + .si-extra-title {
    margin-top: 14px;
}

.subin-inbox-page .si-message-box {
    padding: 11px 12px;
    border: 1px solid var(--subin-inbox-line);
    background: var(--subin-inbox-soft);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.subin-inbox-page .si-field {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #edf1f6;
    font-size: 12px;
}

.subin-inbox-page .si-field:last-child {
    border-bottom: 0;
}

.subin-inbox-page .si-field span {
    color: var(--subin-inbox-muted);
}

.subin-inbox-page .si-field strong {
    color: var(--subin-inbox-ink);
    max-width: 58%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subin-inbox-page .si-extra-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 145px;
}

.subin-inbox-page .si-extra-actions form {
    display: contents;
}

.subin-inbox-page .si-small-btn {
    border: 1px solid var(--subin-inbox-line);
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 8px 11px;
    font-weight: 850;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.subin-inbox-page .si-small-btn.primary {
    border-color: var(--subin-inbox-blue);
    background: var(--subin-inbox-blue);
    color: #fff;
}

@media (max-width: 980px) {
    .subin-inbox-page .si-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subin-inbox-page .si-filters {
        grid-template-columns: 1fr;
    }

    .subin-inbox-page .si-list-head {
        display: none;
    }

    .subin-inbox-page .si-row-main {
        grid-template-columns: 28px 1fr auto;
        gap: 10px;
        min-height: auto;
    }

    .subin-inbox-page .si-message,
    .subin-inbox-page .si-meta,
    .subin-inbox-page .si-status {
        grid-column: 2 / 4;
    }

    .subin-inbox-page .si-actions {
        grid-column: 3;
        grid-row: 1;
    }

    .subin-inbox-page .si-row-extra {
        padding-left: 14px;
    }

    .subin-inbox-page .si-extra-card {
        grid-template-columns: 1fr;
    }

    .subin-inbox-page .si-extra-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Inbox selection workflow */
.subin-inbox-page .subin-inbox-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 10px;
	padding: 10px 12px;
	border: 1px solid var(--subin-inbox-line);
	border-radius: 14px;
	background: #fff;
}

.subin-inbox-page .subin-inbox-results-count {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 5px 10px;
	min-width: 0;
}

.subin-inbox-page .subin-inbox-results-count strong {
	color: var(--subin-inbox-ink);
	font-size: 13px;
}

.subin-inbox-page .subin-inbox-results-count span,
.subin-inbox-page .subin-inbox-selected-count {
	color: var(--subin-inbox-muted);
	font-size: 12px;
}

.subin-inbox-page .subin-inbox-bulk-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0;
}

.subin-inbox-page .subin-inbox-bulk-form select,
.subin-inbox-page .subin-inbox-bulk-form input[type="date"],
.subin-inbox-page .subin-inbox-bulk-form .button {
	min-height: 34px;
	margin: 0;
	border-radius: 9px;
}

.subin-inbox-page .subin-inbox-bulk-form select {
	min-width: 190px;
}

.subin-inbox-page .subin-inbox-bulk-target {
	display: inline-flex;
	align-items: center;
}

.subin-inbox-page .subin-inbox-bulk-target[hidden] {
	display: none !important;
}

.subin-inbox-page .subin-inbox-bulk-target input[type="date"] {
	width: 170px;
}

.subin-inbox-page .subin-inbox-bulk-form .button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.subin-inbox-page .si-inline-workflow {
	grid-column: 1 / -1;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
}

.subin-inbox-page .si-inline-workflow__form {
	display: grid;
	grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
	gap: 10px;
	align-items: end;
	margin: 0;
}

.subin-inbox-page .si-inline-workflow__form label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.subin-inbox-page .si-inline-workflow__form label > span {
	color: var(--subin-inbox-muted);
	font-size: 11px;
	font-weight: 800;
}

.subin-inbox-page .si-inline-workflow__form select,
.subin-inbox-page .si-inline-workflow__form input[type="date"],
.subin-inbox-page .si-inline-workflow__form .button {
	width: 100%;
	min-height: 36px;
	margin: 0;
	border-radius: 9px;
}

.subin-inbox-page .si-inline-workflow__form .button {
	width: auto;
	min-width: 84px;
}

.subin-inbox-page .si-icon-btn .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	transition: transform 150ms ease;
}

.subin-inbox-page .si-row[open] .si-icon-btn .dashicons {
	transform: rotate(180deg);
}

.subin-inbox-page .si-row-main:focus-visible,
.subin-inbox-page .subin-filter-chip:focus-visible,
.subin-inbox-page .si-check input:focus-visible {
	outline: 2px solid var(--subin-inbox-blue);
	outline-offset: 2px;
}

/* Lead detail command actions */
.subin-lead-detail-page .subin-contact-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 4px 9px;
	color: #1d4ed8;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: #eff6ff;
}

.subin-lead-detail-page .subin-contact-action:hover,
.subin-lead-detail-page .subin-contact-action:focus-visible {
	color: #1e40af;
	border-color: #93c5fd;
	background: #dbeafe;
}

.subin-lead-detail-page .subin-contact-action:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.subin-lead-detail-page .subin-contact-action .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.subin-lead-detail-page .subin-lead-details-panel .subin-side-list__item.is-overdue {
	background: #fff7ed;
}

.subin-lead-detail-page .subin-lead-details-panel .subin-side-list__item.is-overdue strong {
	color: #9a3412;
}

.subin-lead-detail-page .subin-lead-details-panel .subin-side-list__item strong small {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

@media (max-width: 760px) {
	.subin-inbox-page .subin-inbox-results-bar,
	.subin-inbox-page .subin-inbox-bulk-form {
		align-items: stretch;
		flex-direction: column;
	}

	.subin-inbox-page .subin-inbox-bulk-form select {
		width: 100%;
		min-width: 0;
	}

	.subin-inbox-page .subin-inbox-bulk-target,
	.subin-inbox-page .subin-inbox-bulk-target input[type="date"] {
		width: 100%;
	}

	.subin-inbox-page .si-inline-workflow__form {
		grid-template-columns: 1fr;
	}

	.subin-inbox-page .si-inline-workflow__form .button {
		width: 100%;
	}

	.subin-inbox-page .subin-inbox-summary {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 761px) and (max-width: 1180px) {
	.subin-inbox-page .si-inline-workflow__form {
		grid-template-columns: repeat(2, minmax(150px, 1fr));
	}
}
