.irr-cleanup-widget {
	--ink:    #172033;
	--muted:  #64748b;
	--line:   #d8e1ec;
	--soft:   #f7fafc;
	--head:   #eef4fb;
	--red:    #b91c1c;
	--amber:  #b45309;
	--green:  #0f766e;
	--blue:   #1d4ed8;
	--purple: #6d28d9;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: 0 14px 38px rgba(15, 23, 42, .09);
	overflow: hidden;
	max-width: 100%;
}

.irr-cleanup-widget * {
	box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────── */

.irr-top {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #fff, #fbfdff);
}

.irr-eyebrow {
	font-size: 11px;
	font-weight: 900;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .08em;
}

.irr-title {
	font-size: 22px;
	font-weight: 950;
	margin: 4px 0;
}

.irr-sub {
	font-size: 13px;
	color: var(--muted);
}

/* ── Controls ───────────────────────────────────────── */

.irr-controls {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.irr-controls textarea {
	width: 300px;
	min-height: 42px;
	max-height: 118px;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13px;
	font-family: inherit;
	resize: vertical;
}

.irr-controls button,
.irr-btn {
	border: 0;
	background: #172033;
	color: #fff;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 850;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	white-space: nowrap;
}

.irr-btn.secondary {
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #dbe3ec;
}

/* ── Body ───────────────────────────────────────────── */

.irr-body {
	padding: 18px 20px;
}

.irr-legend {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

/* ── Pills ──────────────────────────────────────────── */

.irr-pill {
	display: inline-flex;
	border-radius: 999px;
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.1;
}

.irr-pill.red    { background: #fee2e2; color: #991b1b; }
.irr-pill.amber  { background: #fef3c7; color: #92400e; }
.irr-pill.green  { background: #ccfbf1; color: #115e59; }
.irr-pill.blue   { background: #dbeafe; color: #1e40af; }
.irr-pill.gray   { background: #f1f5f9; color: #475569; }
.irr-pill.purple { background: #ede9fe; color: #5b21b6; }

.irr-empty {
	color: #991b1b;
	background: #fef2f2;
	border: 1px dashed #fecaca;
	border-radius: 8px;
	padding: 5px 7px;
	font-size: 12px;
	font-weight: 850;
	display: inline-block;
}

.irr-asn {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 3px 6px;
	font-size: 12px;
	margin: 2px;
	display: inline-block;
}

/* ── Table ──────────────────────────────────────────── */

.irr-table {
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: auto;
}

.irr-row {
	display: grid;
	grid-template-columns:
		minmax(135px, 1.05fr)
		minmax(70px,  .48fr)
		minmax(92px,  .6fr)
		minmax(92px,  .6fr)
		minmax(140px, 1fr)
		minmax(150px, 1.15fr)
		minmax(210px, 1.45fr)
		minmax(150px, .9fr);
	min-width: 1120px;
	border-top: 1px solid #e8eef6;
}

.irr-row:first-child {
	border-top: 0;
	background: var(--head);
	font-size: 11px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #475569;
}

.irr-cell {
	padding: 10px 11px;
	font-size: 13px;
	border-left: 1px solid #e8eef6;
	min-height: 58px;
}

.irr-cell:first-child {
	border-left: 0;
}

.irr-subnet {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 900;
}

.irr-advice {
	font-size: 12px;
	line-height: 1.35;
}

.irr-warn {
	font-weight: 900;
	color: #991b1b;
}

.irr-muted {
	font-size: 12px;
	color: var(--muted);
}

/* ── Notes / status ─────────────────────────────────── */

.irr-note {
	margin-top: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #7c2d12;
	border-radius: 13px;
	padding: 11px 13px;
	font-size: 13px;
}

.irr-error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.irr-status {
	font-size: 12px;
	color: var(--muted);
	margin-top: 9px;
}

.irr-email-list {
	display: block;
	font-size: 11px;
	color: #64748b;
	margin-top: 5px;
	line-height: 1.25;
	word-break: break-word;
}

.irr-loading {
	padding: 20px;
	color: #64748b;
}

/* ── Footer ─────────────────────────────────────────── */

.irr-footer {
	padding: 12px 20px;
	border-top: 1px solid var(--line);
	background: #fbfdff;
	color: var(--muted);
	font-size: 12px;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 760px) {
	.irr-top {
		display: block;
	}

	.irr-controls {
		justify-content: stretch;
		margin-top: 12px;
	}

	.irr-controls textarea,
	.irr-controls button {
		width: 100%;
	}

	.irr-body {
		padding: 14px;
	}

	.irr-title {
		font-size: 19px;
	}
}
