.subin-auto-replies-page {
	--subin-auto-ink: #172033;
	--subin-auto-muted: #64748b;
	--subin-auto-line: #d9e4f2;
	--subin-auto-soft: #f8fbff;
	--subin-auto-blue: #3467e8;
}

.subin-auto-replies-page .subin-auto-replies-section {
	margin-top: 24px;
}

.subin-auto-replies-page .subin-section-heading {
	margin-bottom: 18px;
}

.subin-auto-replies-page .subin-section-heading h2 {
	color: var(--subin-auto-ink);
	letter-spacing: -0.025em;
}

.subin-auto-replies-page .subin-section-heading p {
	color: var(--subin-auto-muted);
}

.subin-auto-replies-page .subin-auto-reply-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.subin-auto-replies-page .subin-auto-reply-section-heading > div {
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-card-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(280px, 1fr));
	align-items: stretch;
	gap: 18px;
	margin-top: 0;
}

.subin-auto-replies-page .subin-auto-reply-card--manager {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto minmax(0, 1fr);
	align-items: stretch;
	align-self: stretch;
	gap: 0;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(196, 212, 234, 0.86);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 18px 42px rgba(26, 44, 72, 0.07);
}

.subin-auto-replies-page .subin-auto-reply-card--manager::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, #3467e8, #74a7ff 54%, #d9e8ff);
	pointer-events: none;
}

.subin-auto-replies-page .subin-auto-reply-card__preview {
	position: relative;
	z-index: 1;
	min-width: 0;
	overflow: hidden;
	padding: 14px 14px 0;
	border-bottom: 1px solid #dbe7f6;
	background:
		radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08), transparent 42%),
		#eef4fb;
}

.subin-auto-replies-page .subin-auto-reply-card__preview .subin-template-mini-preview {
	width: 100%;
	height: 198px;
	min-height: 198px;
}

.subin-auto-replies-page .subin-auto-reply-card__preview .subin-template-mini-preview iframe {
	left: 50%;
	width: 640px;
	height: 600px;
	transform: translateX(-50%) scale(0.45);
	transform-origin: top center;
}

.subin-auto-replies-page .subin-auto-reply-card__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	gap: 14px;
	padding: 16px;
}

.subin-auto-replies-page .subin-auto-reply-card__main {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-card__title-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 10px;
	margin: 0;
}

.subin-auto-replies-page .subin-auto-reply-card h3 {
	margin: 0;
	color: var(--subin-auto-ink);
	font-size: 17px;
	line-height: 1.25;
	letter-spacing: -0.025em;
}

.subin-auto-replies-page .subin-auto-reply-card h3 a {
	color: inherit;
	text-decoration: none;
}

.subin-auto-replies-page .subin-auto-reply-card h3 a:hover,
.subin-auto-replies-page .subin-auto-reply-card h3 a:focus {
	color: var(--subin-auto-blue);
}

.subin-auto-replies-page .subin-auto-reply-card__identity {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-card__identity h3 {
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #eef5ff;
	color: #2563eb;
	font-size: 16px;
	line-height: 1;
}

.subin-auto-replies-page .subin-auto-reply-card__icon::before {
	width: auto;
	height: auto;
	font-size: inherit;
	line-height: 1;
}

.subin-auto-replies-page .subin-auto-reply-card--used .subin-auto-reply-card__icon {
	background: #ecf8ee;
	color: #2f7d3b;
}

.subin-auto-replies-page .subin-auto-reply-card--unused .subin-auto-reply-card__icon {
	background: #f1f5f9;
	color: #64748b;
}

.subin-auto-replies-page .subin-auto-reply-card--used::before {
	background: linear-gradient(90deg, #41a763, #80d99a 54%, #dff7e6);
}

.subin-auto-replies-page .subin-auto-reply-card--unused::before {
	background: linear-gradient(90deg, #94a3b8, #cbd5e1 54%, #eef2f7);
}

.subin-auto-replies-page .subin-auto-reply-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0;
	color: var(--subin-auto-muted);
	font-size: 12px;
	font-weight: 650;
}

.subin-auto-replies-page .subin-template-used-by,
.subin-auto-replies-page .subin-auto-reply-summary__item,
.subin-auto-replies-page .subin-auto-reply-variables {
	border: 1px solid #dce8f7;
	border-radius: 12px;
	background: var(--subin-auto-soft);
}

.subin-auto-replies-page .subin-template-used-by {
	padding: 0;
	border: 0;
	background: transparent;
}

.subin-auto-replies-page .subin-template-used-by--empty {
	font-size: 13px;
}

.subin-auto-replies-page .subin-template-used-by__chips {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	min-width: 0;
}

.subin-auto-replies-page .subin-template-used-by__chip,
.subin-auto-replies-page .subin-template-used-by__more {
	display: inline-flex;
	align-items: center;
	max-width: 220px;
	padding: 3px 8px;
	overflow: hidden;
	border: 1px solid #d8e2ee;
	background: #ffffff;
	color: #334155;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.subin-auto-replies-page .subin-template-used-by__chip:hover,
.subin-auto-replies-page .subin-template-used-by__chip:focus {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #1d4ed8;
	box-shadow: none;
}

.subin-auto-replies-page .subin-template-used-by__more {
	background: #eef3f8;
	color: #64748b;
}

.subin-auto-replies-page .subin-template-used-by__label {
	display: none;
}

.subin-auto-replies-page .subin-auto-reply-summary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 7px;
}

.subin-auto-replies-page .subin-auto-reply-summary__item {
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.subin-auto-replies-page .subin-auto-reply-summary__item span,
.subin-auto-replies-page .subin-auto-reply-variables__label,
.subin-auto-replies-page .subin-template-used-by__label {
	color: #65738a;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.subin-auto-replies-page .subin-auto-reply-summary__item strong {
	display: -webkit-box;
	overflow: hidden;
	color: var(--subin-auto-ink);
	font-size: 13px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	white-space: normal;
}

.subin-auto-replies-page .subin-auto-reply-variables {
	padding: 9px 11px;
}

.subin-auto-replies-page .subin-auto-reply-variables__chips {
	display: flex;
	flex-wrap: wrap;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-variables__chips,
.subin-auto-replies-page .subin-template-used-by__chips {
	gap: 6px;
	margin-top: 7px;
}

.subin-auto-replies-page .subin-auto-reply-variables code,
.subin-auto-replies-page .subin-template-used-by__chip,
.subin-auto-replies-page .subin-template-used-by__more {
	min-height: 23px;
	border-radius: 999px;
	font-size: 11px;
}

.subin-auto-replies-page .subin-auto-reply-variables code {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border: 1px solid #d7e9ff;
	background: #eef6ff;
	color: #1e3a8a;
	line-height: 1.2;
}

.subin-auto-replies-page .subin-template-mini-preview--placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 18px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	color: #64748b;
	text-align: center;
}

.subin-auto-replies-page .subin-template-mini-preview--placeholder strong {
	color: var(--subin-auto-ink);
	font-size: 13px;
	line-height: 1.25;
}

.subin-auto-replies-page .subin-template-mini-preview--placeholder span {
	font-size: 12px;
	line-height: 1.35;
}

.subin-auto-replies-page .subin-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid #e6eef8;
}

.subin-auto-replies-page .subin-card-actions .button,
.subin-auto-replies-page .subin-card-actions .subin-action-chip {
	min-height: 32px;
	padding: 6px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
}

.subin-auto-replies-page .subin-card-actions .subin-btn-primary {
	flex: 1 1 auto;
}

.subin-auto-replies-page .subin-admin-hero__actions .subin-btn-primary {
	min-height: 36px;
	padding: 7px 14px;
	border-radius: 9px;
	font-size: 13px;
}

.subin-auto-replies-page .subin-card-actions .button,
.subin-auto-replies-page .subin-card-actions .subin-action-chip {
	min-width: auto;
}

.subin-auto-replies-page .subin-admin-tab.subin-admin-tab--active {
	color: #3467e8;
}

.subin-auto-replies-page .subin-admin-tab.subin-admin-tab--active::after {
	background: #3467e8;
	transform: scaleX(1);
}

.subin-auto-replies-page .subin-auto-reply-filter-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
	padding: 11px 14px;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	background: #eff6ff;
	color: #1e3a8a;
}

.subin-auto-replies-page .subin-auto-reply-filter-notice a {
	font-weight: 700;
	white-space: nowrap;
}

.subin-auto-replies-page .subin-auto-reply-rules-table-wrap {
	margin-top: 16px;
	overflow-x: auto;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	background: #ffffff;
	-webkit-overflow-scrolling: touch;
}

.subin-auto-replies-page .subin-auto-reply-rules-table-wrap:focus-visible {
	outline: 2px solid var(--subin-auto-blue);
	outline-offset: 2px;
}

.subin-auto-replies-page .subin-auto-reply-rules-table {
	min-width: 1080px;
	margin: 0;
	border: 0;
	box-shadow: none;
}

.subin-auto-replies-page .subin-auto-reply-rules-table td,
.subin-auto-replies-page .subin-auto-reply-rules-table th {
	padding: 14px 12px;
	vertical-align: middle;
}

.subin-auto-replies-page .subin-auto-reply-rules-table th:first-child {
	width: 18%;
}

.subin-auto-replies-page .subin-auto-reply-rules-table th:nth-child(2) {
	width: 19%;
}

.subin-auto-replies-page .subin-auto-reply-rules-table th:last-child {
	width: 112px;
}

.subin-auto-replies-page .subin-auto-reply-rule-cell {
	min-width: 130px;
}

.subin-auto-replies-page .subin-auto-reply-rule-cell strong,
.subin-auto-replies-page .subin-auto-reply-rule-cell span,
.subin-auto-replies-page .subin-auto-reply-rule-name {
	display: block;
}

.subin-auto-replies-page .subin-auto-reply-rule-name,
.subin-auto-replies-page .subin-auto-reply-rule-cell strong {
	color: var(--subin-auto-ink);
	font-weight: 750;
	line-height: 1.35;
}

.subin-auto-replies-page .subin-auto-reply-rule-name {
	text-decoration: none;
}

.subin-auto-replies-page .subin-auto-reply-rule-name:hover,
.subin-auto-replies-page .subin-auto-reply-rule-name:focus {
	color: var(--subin-auto-blue);
	text-decoration: underline;
}

.subin-auto-replies-page .subin-auto-reply-rule-cell span {
	margin-top: 4px;
	color: var(--subin-auto-muted);
	font-size: 12px;
	line-height: 1.35;
}

.subin-auto-replies-page .subin-auto-reply-rule-state {
	white-space: nowrap;
}

.subin-auto-replies-page .subin-auto-reply-rule-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	white-space: nowrap;
}

.subin-auto-replies-page .subin-auto-reply-rule-menu {
	position: relative;
}

.subin-auto-replies-page .subin-auto-reply-rule-menu > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	list-style: none;
	cursor: pointer;
}

.subin-auto-replies-page .subin-auto-reply-rule-menu > summary::-webkit-details-marker {
	display: none;
}

.subin-auto-replies-page .subin-auto-reply-rule-menu[open] > div {
	position: static;
	display: grid;
	min-width: 180px;
	margin-top: 6px;
	padding: 6px;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	background: #ffffff;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.subin-auto-replies-page .subin-auto-reply-rule-menu a {
	padding: 8px 10px;
	border-radius: 6px;
	text-decoration: none;
}

.subin-auto-replies-page .subin-auto-reply-rule-menu a:hover,
.subin-auto-replies-page .subin-auto-reply-rule-menu a:focus {
	background: #f1f5f9;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor-shell {
	--subin-rule-border: #d8e2ee;
	--subin-rule-muted: #64748b;
	--subin-rule-ink: #172033;
	--subin-rule-blue: #2563eb;
	width: 100%;
	max-width: 1480px;
	margin-top: 18px;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor-shell * {
	box-sizing: border-box;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor-shell > .subin-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	color: var(--subin-rule-muted);
	font-weight: 700;
	text-decoration: none;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor-shell > .subin-back-link::before {
	content: "\2190";
}

.subin-auto-replies-page .subin-auto-reply-rule-editor {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
	align-items: start;
	gap: 18px;
	max-width: none;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor__main,
.subin-auto-replies-page .subin-auto-reply-rule-editor__preview {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-policy-card,
.subin-auto-replies-page .subin-auto-reply-preview-panel,
.subin-auto-replies-page .subin-auto-reply-test-panel {
	margin: 0;
	border: 1px solid var(--subin-rule-border);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.subin-auto-replies-page .subin-auto-reply-policy-card:not(details),
.subin-auto-replies-page .subin-auto-reply-disclosure__body,
.subin-auto-replies-page .subin-auto-reply-preview-panel,
.subin-auto-replies-page .subin-auto-reply-test-panel {
	padding: 20px;
}

.subin-auto-replies-page .subin-auto-reply-policy-card--basics {
	border-top: 4px solid var(--subin-rule-blue);
}

.subin-auto-replies-page .subin-auto-reply-policy-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.subin-auto-replies-page .subin-auto-reply-policy-card__header h2,
.subin-auto-replies-page .subin-auto-reply-preview-panel h2,
.subin-auto-replies-page .subin-auto-reply-test-panel h3 {
	margin: 0;
	color: var(--subin-rule-ink);
	letter-spacing: -0.02em;
}

.subin-auto-replies-page .subin-auto-reply-policy-card__header h2 {
	font-size: 20px;
}

.subin-auto-replies-page .subin-auto-reply-policy-card__header p,
.subin-auto-replies-page .subin-auto-reply-test-panel p {
	margin: 5px 0 0;
	color: var(--subin-rule-muted);
	line-height: 1.5;
}

.subin-auto-replies-page .subin-auto-reply-policy-card__eyebrow,
.subin-auto-replies-page .subin-auto-reply-preview-panel header span {
	display: block;
	margin-bottom: 5px;
	color: var(--subin-rule-blue);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.subin-auto-replies-page .subin-auto-reply-policy-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.subin-auto-replies-page .subin-auto-reply-policy-grid--single {
	grid-template-columns: 1fr;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field {
	display: grid;
	align-content: start;
	gap: 6px;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field > label,
.subin-auto-replies-page .subin-auto-reply-condition-mode > label,
.subin-auto-replies-page .subin-auto-reply-test-panel > label {
	color: var(--subin-rule-ink);
	font-size: 13px;
	font-weight: 750;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor input:not([type="checkbox"]):not([type="hidden"]),
.subin-auto-replies-page .subin-auto-reply-rule-editor select,
.subin-auto-replies-page .subin-auto-reply-rule-editor textarea {
	width: 100%;
	max-width: none;
	min-height: 42px;
	margin: 0;
	padding: 8px 11px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background-color: #ffffff;
	color: var(--subin-rule-ink);
	line-height: 1.4;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor textarea {
	min-height: 210px;
	resize: vertical;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor input:focus,
.subin-auto-replies-page .subin-auto-reply-rule-editor select:focus,
.subin-auto-replies-page .subin-auto-reply-rule-editor textarea:focus {
	border-color: var(--subin-rule-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field p {
	margin: 0;
	color: var(--subin-rule-muted);
	font-size: 12px;
	line-height: 1.45;
}

.subin-auto-replies-page .subin-auto-reply-template-context {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 14px;
	padding: 14px;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	background: #eff6ff;
}

.subin-auto-replies-page .subin-auto-reply-template-context[hidden] {
	display: none;
}

.subin-auto-replies-page .subin-auto-reply-template-context > div {
	display: grid;
	flex: 1 1 300px;
	gap: 2px;
}

.subin-auto-replies-page .subin-auto-reply-template-context strong {
	color: var(--subin-rule-ink);
	font-size: 13px;
}

.subin-auto-replies-page .subin-auto-reply-template-context span,
.subin-auto-replies-page .subin-auto-reply-template-context p {
	color: var(--subin-rule-muted);
	font-size: 12px;
	line-height: 1.45;
}

.subin-auto-replies-page .subin-auto-reply-template-context p {
	flex-basis: 100%;
	margin: 0;
}

.subin-auto-replies-page .subin-auto-reply-template-context .button {
	flex: 0 0 auto;
	white-space: nowrap;
}

.subin-auto-replies-page .subin-auto-reply-content-overrides {
	margin-top: 14px;
	border: 1px solid #dce5f0;
	border-radius: 10px;
	background: #ffffff;
}

.subin-auto-replies-page .subin-auto-reply-content-overrides > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 14px;
	cursor: pointer;
	list-style: none;
}

.subin-auto-replies-page .subin-auto-reply-content-overrides > summary::-webkit-details-marker {
	display: none;
}

.subin-auto-replies-page .subin-auto-reply-content-overrides > summary::after {
	color: var(--subin-rule-muted);
	font-size: 16px;
	content: "+";
}

.subin-auto-replies-page .subin-auto-reply-content-overrides[open] > summary::after {
	content: "\2212";
}

.subin-auto-replies-page .subin-auto-reply-content-overrides > summary span {
	display: grid;
	gap: 2px;
}

.subin-auto-replies-page .subin-auto-reply-content-overrides > summary strong {
	color: var(--subin-rule-ink);
	font-size: 13px;
}

.subin-auto-replies-page .subin-auto-reply-content-overrides > summary small,
.subin-auto-replies-page .subin-auto-reply-content-overrides__note {
	color: var(--subin-rule-muted);
	font-size: 12px;
	line-height: 1.4;
}

.subin-auto-replies-page .subin-auto-reply-content-overrides__body {
	padding: 14px;
	border-top: 1px solid #e5edf6;
}

.subin-auto-replies-page .subin-auto-reply-content-overrides__note {
	margin: 10px 0 0;
}

.subin-auto-replies-page .subin-auto-reply-shared-design {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
	padding: 16px 18px;
	border: 1px solid #93c5fd;
	border-radius: 12px;
	background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
	box-shadow: inset 4px 0 0 #2563eb;
}

.subin-auto-replies-page .subin-auto-reply-shared-design[hidden],
.subin-auto-replies-page .subin-auto-reply-message-editor[hidden],
.subin-auto-replies-page .subin-auto-reply-design-picker[hidden],
.subin-auto-replies-page .subin-auto-reply-design-picker [hidden] {
	display: none !important;
}

.subin-auto-replies-page .subin-auto-reply-shared-design > div:first-child {
	display: grid;
	flex: 1 1 360px;
	gap: 3px;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-shared-design__eyebrow {
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.subin-auto-replies-page .subin-auto-reply-shared-design strong {
	color: var(--subin-rule-ink);
	font-size: 15px;
	line-height: 1.35;
}

.subin-auto-replies-page .subin-auto-reply-shared-design p {
	margin: 0;
	color: var(--subin-rule-muted);
	font-size: 12px;
	line-height: 1.5;
}

.subin-auto-replies-page .subin-auto-reply-shared-design__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
}

.subin-auto-replies-page .subin-auto-reply-shared-design__actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	white-space: nowrap;
}

.subin-auto-replies-page .subin-auto-reply-message-editor {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-rule-wp-editor {
	min-width: 0;
	margin-top: 1px;
}

.subin-auto-replies-page .subin-auto-reply-rule-wp-editor .wp-editor-wrap {
	width: 100%;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-rule-wp-editor .wp-editor-tools {
	padding-top: 0;
}

.subin-auto-replies-page .subin-auto-reply-rule-wp-editor .wp-media-buttons {
	min-height: 32px;
}

.subin-auto-replies-page .subin-auto-reply-rule-wp-editor .wp-editor-container {
	overflow: hidden;
	border: 1px solid #cbd5e1;
	border-radius: 0 0 10px 10px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.subin-auto-replies-page .subin-auto-reply-rule-wp-editor .mce-tinymce,
.subin-auto-replies-page .subin-auto-reply-rule-wp-editor .mce-toolbar-grp {
	border: 0 !important;
	box-shadow: none !important;
}

.subin-auto-replies-page .subin-auto-reply-rule-wp-editor .mce-toolbar-grp,
.subin-auto-replies-page .subin-auto-reply-rule-wp-editor .quicktags-toolbar {
	border-bottom: 1px solid #e2e8f0 !important;
	background: #f8fafc;
}

.subin-auto-replies-page .subin-auto-reply-rule-wp-editor iframe,
.subin-auto-replies-page .subin-auto-reply-rule-wp-editor textarea.wp-editor-area {
	min-height: clamp(300px, 42vh, 480px);
	background: #ffffff;
}

.subin-auto-replies-page .subin-settings-field--error .subin-auto-reply-rule-wp-editor .wp-editor-container {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.12);
}

.subin-auto-replies-page .subin-auto-reply-rule-wp-editor.is-invalid .wp-editor-container,
.subin-auto-replies-page .subin-auto-reply-rule-wp-editor[aria-invalid="true"] .wp-editor-container {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.12);
}

.subin-auto-replies-page .subin-auto-reply-design-picker {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: grid;
	place-items: center;
	padding: clamp(12px, 3vw, 32px);
}

body.subin-design-picker-open {
	overflow: hidden;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(15, 23, 42, 0.68);
	box-shadow: none;
	cursor: default;
	-webkit-appearance: none;
	appearance: none;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__backdrop:focus {
	outline: 0;
	box-shadow: none;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr) auto;
	width: min(1120px, 100%);
	height: min(860px, calc(100vh - 48px));
	max-height: calc(100vh - 24px);
	overflow: hidden;
	border: 1px solid #cbd5e1;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

@supports (height: 100dvh) {
	.subin-auto-replies-page .subin-auto-reply-design-picker__panel {
		height: min(860px, calc(100dvh - 48px));
		max-height: calc(100dvh - 24px);
	}
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 24px;
	border-bottom: 1px solid #e2e8f0;
	background: #ffffff;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header > div {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header h3,
.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header p {
	margin: 0;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header h3 {
	color: var(--subin-rule-ink);
	font-size: 21px;
	line-height: 1.3;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header p {
	max-width: 720px;
	color: var(--subin-rule-muted);
	font-size: 13px;
	line-height: 1.5;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header .button-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	margin: -6px -8px 0 0;
	border-radius: 999px;
	color: #475569;
	text-decoration: none;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header .button-link:hover {
	background: #f1f5f9;
	color: var(--subin-rule-ink);
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__search {
	display: grid;
	grid-template-columns: minmax(120px, auto) minmax(220px, 540px);
	align-items: center;
	gap: 14px;
	padding: 14px 24px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__search > span {
	color: var(--subin-rule-ink);
	font-size: 13px;
	font-weight: 750;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__search input[type="search"] {
	width: 100%;
	max-width: none;
	min-height: 42px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	background: #ffffff;
	color: var(--subin-rule-ink);
}

.subin-auto-replies-page .subin-auto-reply-design-picker__search input[type="search"]:focus {
	border-color: var(--subin-rule-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
	outline: 0;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__content {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 22px 24px 26px;
	scrollbar-gutter: stable;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__content > section + section {
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid #e2e8f0;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__content h4 {
	margin: 0 0 12px;
	color: var(--subin-rule-ink);
	font-size: 15px;
	line-height: 1.35;
}

.subin-auto-replies-page .subin-auto-reply-design-group-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.subin-auto-replies-page .subin-auto-reply-design-group-heading h4 {
	margin-bottom: 0;
}

.subin-auto-replies-page .subin-auto-reply-design-group-heading a {
	font-size: 12px;
	font-weight: 700;
}

.subin-auto-replies-page .subin-auto-reply-design-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}

.subin-auto-replies-page .subin-auto-reply-design-card {
	display: grid;
	grid-template-rows: auto auto auto 1fr auto;
	align-content: start;
	gap: 8px;
	min-width: 0;
	min-height: 230px;
	padding: 16px;
	border: 1px solid #d8e2ee;
	border-radius: 13px;
	background: #ffffff;
	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.subin-auto-replies-page .subin-auto-reply-design-card:hover,
.subin-auto-replies-page .subin-auto-reply-design-card:focus-within {
	border-color: #93c5fd;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.11);
	transform: translateY(-1px);
}

.subin-auto-replies-page .subin-auto-reply-design-card > span {
	justify-self: start;
	padding: 3px 8px;
	border-radius: 999px;
	background: #eef4ff;
	color: #1d4ed8;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.055em;
	line-height: 1.4;
	text-transform: uppercase;
}

.subin-auto-replies-page .subin-auto-reply-design-card h5,
.subin-auto-replies-page .subin-auto-reply-design-card p,
.subin-auto-replies-page .subin-auto-reply-design-card small {
	margin: 0;
	overflow-wrap: anywhere;
}

.subin-auto-replies-page .subin-auto-reply-design-card h5 {
	color: var(--subin-rule-ink);
	font-size: 15px;
	line-height: 1.35;
}

.subin-auto-replies-page .subin-auto-reply-design-card p {
	color: var(--subin-rule-muted);
	font-size: 12px;
	line-height: 1.5;
}

.subin-auto-replies-page .subin-auto-reply-design-card small {
	color: #475569;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.45;
}

.subin-auto-replies-page .subin-auto-reply-design-card .button {
	align-self: end;
	justify-self: stretch;
	width: 100%;
	min-height: 38px;
	margin-top: 6px;
	text-align: center;
}

.subin-auto-replies-page .subin-auto-reply-design-empty,
.subin-auto-replies-page .subin-auto-reply-design-no-results {
	margin: 0;
	padding: 18px;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	color: var(--subin-rule-muted);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.subin-auto-replies-page .subin-auto-reply-design-empty {
	margin-bottom: 12px;
}

.subin-auto-replies-page .subin-auto-reply-design-load-more {
	display: block;
	min-height: 38px;
	margin: 16px auto 0;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__feedback {
	min-height: 46px;
	padding: 13px 24px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #166534;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__feedback:empty {
	display: none;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__feedback.is-error {
	background: #fff7f7;
	color: #b42318;
}

.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header .button-link:focus-visible,
.subin-auto-replies-page .subin-auto-reply-design-picker__search input:focus-visible,
.subin-auto-replies-page .subin-auto-reply-design-card .button:focus-visible,
.subin-auto-replies-page .subin-auto-reply-shared-design__actions .button:focus-visible {
	outline: 2px solid var(--subin-rule-blue);
	outline-offset: 2px;
}

.subin-auto-replies-page .subin-auto-reply-enabled-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #e5edf6;
}

.subin-auto-replies-page .subin-auto-reply-merge-picker {
	display: grid;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e5edf6;
}

.subin-auto-replies-page .subin-auto-reply-merge-picker > span {
	color: var(--subin-rule-muted);
	font-size: 12px;
	font-weight: 750;
}

.subin-auto-replies-page .subin-auto-reply-merge-picker > div {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-height: 120px;
	overflow-y: auto;
	padding: 2px;
}

.subin-auto-replies-page .subin-auto-reply-merge-picker .button {
	max-width: 100%;
	overflow: hidden;
	border-radius: 999px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11px;
	text-overflow: ellipsis;
}

.subin-auto-replies-page details.subin-auto-reply-policy-card > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 20px;
	list-style: none;
	cursor: pointer;
}

.subin-auto-replies-page details.subin-auto-reply-policy-card > summary::-webkit-details-marker {
	display: none;
}

.subin-auto-replies-page details.subin-auto-reply-policy-card > summary::after {
	content: "\f347";
	color: var(--subin-rule-muted);
	font: 18px/1 dashicons;
	transition: transform 0.16s ease;
}

.subin-auto-replies-page details.subin-auto-reply-policy-card[open] > summary::after {
	transform: rotate(180deg);
}

.subin-auto-replies-page details.subin-auto-reply-policy-card > summary > span {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.subin-auto-replies-page details.subin-auto-reply-policy-card > summary strong {
	color: var(--subin-rule-ink);
	font-size: 15px;
}

.subin-auto-replies-page details.subin-auto-reply-policy-card > summary small {
	color: var(--subin-rule-muted);
	font-size: 12px;
}

.subin-auto-replies-page details.subin-auto-reply-policy-card > summary b {
	margin-left: auto;
	padding: 3px 8px;
	border-radius: 999px;
	background: #eef4ff;
	color: #1d4ed8;
	font-size: 11px;
}

.subin-auto-replies-page .subin-auto-reply-disclosure[open] > summary {
	border-bottom: 1px solid var(--subin-rule-border);
}

.subin-auto-replies-page .subin-auto-reply-condition-mode {
	display: grid;
	grid-template-columns: auto minmax(180px, 260px);
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.subin-auto-replies-page .subin-auto-reply-conditions {
	display: grid;
	gap: 9px;
	margin-bottom: 12px;
}

.subin-auto-replies-page .subin-auto-reply-condition-row {
	display: grid;
	grid-template-columns: 18px minmax(150px, 1.25fr) minmax(105px, 0.7fr) minmax(130px, 1fr) minmax(145px, 1fr) 28px;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border: 1px solid #dce5f0;
	border-radius: 10px;
	background: #f8fafc;
}

.subin-auto-replies-page .subin-auto-reply-condition-row label,
.subin-auto-replies-page .subin-auto-reply-condition-value {
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-condition-row__handle {
	color: #94a3b8;
	font-weight: 900;
	letter-spacing: -4px;
}

.subin-auto-replies-page .subin-auto-reply-condition-row select,
.subin-auto-replies-page .subin-auto-reply-condition-row input {
	min-height: 38px;
	padding: 6px 8px;
}

.subin-auto-replies-page .subin-auto-reply-condition-value {
	display: flex;
	align-items: center;
	gap: 6px;
}

.subin-auto-replies-page .subin-auto-reply-condition-value > * {
	min-width: 0;
	flex: 1 1 0;
}

.subin-auto-replies-page .subin-auto-reply-condition-value > span:not(.subin-auto-reply-condition-no-value) {
	flex: 0 0 auto;
	color: var(--subin-rule-muted);
}

.subin-auto-replies-page .subin-auto-reply-condition-no-value {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	color: var(--subin-rule-muted);
	font-size: 12px;
}

.subin-auto-replies-page .subin-auto-reply-condition-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	color: #b42318;
	cursor: pointer;
}

.subin-auto-replies-page .subin-auto-reply-condition-remove:hover,
.subin-auto-replies-page .subin-auto-reply-condition-remove:focus {
	background: #fee2e2;
	color: #991b1b;
}

.subin-auto-replies-page .subin-auto-reply-condition-empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
	padding: 12px 14px;
	border: 1px dashed #cbd5e1;
	border-radius: 9px;
	background: #f8fafc;
	color: var(--subin-rule-muted);
}

.subin-auto-replies-page .subin-auto-reply-condition-empty[hidden] {
	display: none;
}

.subin-auto-replies-page .subin-auto-reply-condition-empty strong {
	color: var(--subin-rule-ink);
}

.subin-auto-replies-page .subin-auto-reply-rule-editor__preview {
	position: sticky;
	top: 48px;
	max-height: calc(100vh - 78px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

.subin-auto-replies-page .subin-auto-reply-preview-panel header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.subin-auto-replies-page .subin-auto-reply-preview-panel h2 {
	font-size: 16px;
	line-height: 1.35;
}

.subin-auto-replies-page .subin-auto-reply-preview-panel [data-subin-preview-preheader] {
	margin: 4px 0 0;
	color: var(--subin-rule-muted);
	font-size: 12px;
	line-height: 1.4;
}

.subin-auto-replies-page .subin-auto-reply-sample-fields {
	display: grid;
	gap: 8px;
	max-height: 180px;
	margin-bottom: 14px;
	overflow-y: auto;
}

.subin-auto-replies-page .subin-auto-reply-sample-fields label {
	display: grid;
	gap: 4px;
	color: var(--subin-rule-muted);
	font-size: 12px;
	font-weight: 700;
}

.subin-auto-replies-page .subin-auto-reply-sample-fields input,
.subin-auto-replies-page .subin-auto-reply-sample-fields select {
	min-height: 36px;
}

.subin-auto-replies-page .subin-auto-reply-preview-panel iframe {
	display: block;
	width: 100%;
	height: clamp(250px, 36vh, 430px);
	border: 1px solid #dce5f0;
	border-radius: 10px;
	background: #ffffff;
}

.subin-auto-replies-page .subin-auto-reply-preview-diagnostics,
.subin-auto-replies-page .subin-auto-reply-simulation-result,
.subin-auto-replies-page [data-subin-test-result] {
	margin-top: 10px;
	color: var(--subin-rule-muted);
	font-size: 12px;
	line-height: 1.45;
}

.subin-auto-replies-page .subin-auto-reply-preview-diagnostics ul {
	margin: 0;
	padding-left: 18px;
}

.subin-auto-replies-page .subin-auto-reply-preview-diagnostics .is-clear,
.subin-auto-replies-page .subin-auto-reply-simulation-result.is-match {
	color: #15803d;
}

.subin-auto-replies-page .subin-auto-reply-simulation-result.is-no-match,
.subin-auto-replies-page .subin-auto-reply-simulation-result.is-error {
	color: #b42318;
}

.subin-auto-replies-page .subin-auto-reply-test-panel > .button {
	margin-top: 14px;
}

.subin-auto-replies-page .subin-auto-reply-test-panel > label {
	display: block;
	margin-top: 16px;
}

.subin-auto-replies-page .subin-auto-reply-test-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	margin-top: 6px;
}

.subin-auto-replies-page .subin-auto-reply-rule-savebar {
	position: sticky;
	z-index: 15;
	bottom: 0;
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.09);
	backdrop-filter: blur(8px);
}

.subin-auto-replies-page .subin-auto-reply-rule-savebar > div:first-child {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.subin-auto-replies-page .subin-auto-reply-rule-savebar strong {
	color: var(--subin-rule-ink);
}

.subin-auto-replies-page .subin-auto-reply-rule-savebar [data-subin-rule-feedback] {
	color: var(--subin-rule-muted);
	font-size: 12px;
}

.subin-auto-replies-page .subin-auto-reply-rule-savebar [data-subin-rule-feedback].is-error,
.subin-auto-replies-page .subin-auto-reply-inline-error {
	color: #b42318;
}

.subin-auto-replies-page .subin-auto-reply-rule-savebar__actions {
	display: flex;
	gap: 8px;
	white-space: nowrap;
}

.subin-auto-replies-page .subin-auto-reply-rule-savebar__actions .button {
	min-height: 38px;
	padding: 5px 14px;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field--error input,
.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field--error select,
.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field--error textarea,
.subin-auto-replies-page .subin-auto-reply-rule-editor [aria-invalid="true"] {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.12);
}

.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field-error,
.subin-auto-replies-page .subin-auto-reply-inline-error {
	display: block;
	margin: 0;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
}

.subin-auto-replies-page .subin-auto-reply-state-text {
	display: inline-flex;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 750;
}

.subin-auto-replies-page .subin-auto-reply-state-text.is-enabled {
	background: #dcfce7;
	color: #166534;
}

.subin-auto-replies-page .subin-auto-reply-state-text.is-disabled,
.subin-auto-replies-page .subin-auto-reply-state-text.is-draft {
	background: #f1f5f9;
	color: #475569;
}

.subin-auto-replies-page .subin-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.subin-auto-replies-page .subin-row-actions a {
	text-decoration: none;
}

.subin-auto-replies-page .subin-admin-hero__content:has(.subin-admin-hero__badges) {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 12px;
}

.subin-auto-replies-page .subin-admin-hero__content:has(.subin-admin-hero__badges) h1 {
	grid-column: 1;
	grid-row: 1;
	margin-bottom: 0;
}

.subin-auto-replies-page .subin-admin-hero__content:has(.subin-admin-hero__badges) .subin-admin-hero__badges {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
}

.subin-auto-replies-page .subin-admin-hero__content:has(.subin-admin-hero__badges) .subin-page-description {
	grid-column: 1 / -1;
	grid-row: 2;
	margin-top: 6px;
}

@media (max-width: 1500px) {
	.subin-auto-replies-page .subin-auto-reply-card-list {
		grid-template-columns: repeat(2, minmax(280px, 1fr));
	}
}

@media (max-width: 1180px) {
	.subin-auto-replies-page .subin-auto-reply-rule-editor {
		grid-template-columns: 1fr;
	}

	.subin-auto-replies-page .subin-auto-reply-rule-editor__preview {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-height: none;
		overflow: visible;
	}
}

@media (max-width: 900px) {
	.subin-auto-replies-page .subin-auto-reply-section-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.subin-auto-replies-page .subin-auto-reply-section-heading .button {
		align-self: flex-start;
	}

	.subin-auto-replies-page .subin-auto-reply-card--manager,
	.subin-auto-replies-page .subin-auto-reply-card__title-row,
	.subin-auto-replies-page .subin-auto-reply-card-list,
	.subin-auto-replies-page .subin-auto-reply-summary {
		grid-template-columns: 1fr;
	}

	.subin-auto-replies-page .subin-card-actions {
		justify-content: flex-start;
	}

	.subin-auto-replies-page .subin-auto-reply-rule-editor__preview,
	.subin-auto-replies-page .subin-auto-reply-policy-grid {
		grid-template-columns: 1fr;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row {
		grid-template-columns: 18px minmax(120px, 1fr) minmax(120px, 1fr) 28px;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row__handle {
		grid-column: 1;
		grid-row: 1 / 4;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row > label:first-of-type {
		grid-column: 2 / 4;
		grid-row: 1;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row > label:nth-of-type(2) {
		grid-column: 2;
		grid-row: 2;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row > label:nth-of-type(3) {
		grid-column: 3;
		grid-row: 2;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-value,
	.subin-auto-replies-page .subin-auto-reply-condition-row > label:nth-of-type(4) {
		grid-column: 2 / 4;
		grid-row: 3;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-remove {
		grid-column: 4;
		grid-row: 1;
	}
}

@media (max-width: 782px) {
	.subin-auto-replies-page .subin-auto-reply-filter-notice,
	.subin-auto-replies-page .subin-auto-reply-rule-savebar,
	.subin-auto-replies-page .subin-auto-reply-policy-card__header {
		align-items: stretch;
		flex-direction: column;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row {
		grid-template-columns: 1fr 1fr 28px;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row__handle {
		display: none;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row > label:first-of-type,
	.subin-auto-replies-page .subin-auto-reply-condition-value,
	.subin-auto-replies-page .subin-auto-reply-condition-row > label:nth-of-type(4) {
		grid-column: 1 / 3;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row > label:nth-of-type(2) {
		grid-column: 1;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-row > label:nth-of-type(3) {
		grid-column: 2;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-remove {
		grid-column: 3;
		grid-row: 1;
	}

	.subin-auto-replies-page .subin-auto-reply-rule-savebar__actions,
	.subin-auto-replies-page .subin-auto-reply-rule-savebar__actions .button {
		width: 100%;
	}

	.subin-auto-replies-page .subin-auto-reply-rule-savebar__actions .button {
		justify-content: center;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-empty {
		align-items: flex-start;
		flex-direction: column;
	}

	.subin-auto-replies-page .subin-auto-reply-shared-design {
		align-items: stretch;
		flex-direction: column;
	}

	.subin-auto-replies-page .subin-auto-reply-shared-design__actions {
		justify-content: flex-start;
		width: 100%;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker {
		place-items: stretch;
		padding: 0;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__panel {
		width: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border: 0;
		border-radius: 0;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header {
		padding: 17px 18px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__search {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 12px 18px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__content {
		padding: 18px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__feedback {
		padding-right: 18px;
		padding-left: 18px;
	}
}

@media (max-width: 520px) {
	.subin-auto-replies-page .subin-auto-reply-policy-card:not(details),
	.subin-auto-replies-page .subin-auto-reply-disclosure__body,
	.subin-auto-replies-page .subin-auto-reply-preview-panel,
	.subin-auto-replies-page .subin-auto-reply-test-panel {
		padding: 16px;
	}

	.subin-auto-replies-page .subin-auto-reply-condition-mode,
	.subin-auto-replies-page .subin-auto-reply-test-row {
		grid-template-columns: 1fr;
	}

	.subin-auto-replies-page .subin-auto-reply-rule-savebar__actions {
		flex-direction: column-reverse;
	}

	.subin-auto-replies-page .subin-auto-reply-shared-design {
		padding: 15px;
	}

	.subin-auto-replies-page .subin-auto-reply-shared-design__actions,
	.subin-auto-replies-page .subin-auto-reply-shared-design__actions .button {
		width: 100%;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header {
		gap: 12px;
		padding: 15px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header h3 {
		font-size: 18px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header .button-link {
		margin-right: -6px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__search,
	.subin-auto-replies-page .subin-auto-reply-design-picker__content {
		padding-right: 15px;
		padding-left: 15px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-grid {
		grid-template-columns: 1fr;
	}

	.subin-auto-replies-page .subin-auto-reply-design-card {
		min-height: 0;
	}

	.subin-auto-replies-page .subin-auto-reply-design-group-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__feedback {
		padding-right: 15px;
		padding-left: 15px;
	}

	.subin-auto-replies-page .subin-auto-reply-rule-wp-editor iframe,
	.subin-auto-replies-page .subin-auto-reply-rule-wp-editor textarea.wp-editor-area {
		min-height: 280px;
	}
}

@media (max-height: 680px) and (min-width: 783px) {
	.subin-auto-replies-page .subin-auto-reply-design-picker {
		padding: 10px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__panel {
		height: calc(100vh - 20px);
		height: calc(100dvh - 20px);
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__panel > header {
		padding: 14px 18px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__search {
		padding: 10px 18px;
	}

	.subin-auto-replies-page .subin-auto-reply-design-picker__content {
		padding: 16px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.subin-auto-replies-page .subin-auto-reply-design-card {
		transition: none;
	}
}

.subin-admin-page:has(.subin-auto-reply-editor) {
	max-width: none;
	margin-right: 20px;
}

.subin-admin-page:has(.subin-auto-reply-rule-editor) {
	max-width: none;
	margin-right: 20px;
}

.subin-admin-page:has(.subin-auto-reply-editor) .subin-auto-reply-editor-form {
	width: 100%;
	max-width: none;
	min-width: 0;
}

.subin-auto-reply-template-preview {
	margin: 4px 0 0;
}

.subin-auto-reply-template-preview__scale {
	width: 620px;
	min-height: 640px;
}

.subin-auto-reply-template-preview__scale .subin-email {
	min-height: 100%;
	padding: 18px 10px;
}

.subin-auto-reply-editor {
	--subin-auto-reply-workspace-height: clamp(720px, calc(100vh - 220px), 860px);
	--subin-bg: #eef3f8;
	--subin-surface: #ffffff;
	--subin-surface-soft: #f8fafc;
	--subin-border: #d8e2ee;
	--subin-border-strong: #b9c8da;
	--subin-text: #172033;
	--subin-muted: #64748b;
	--subin-primary: #2563eb;
	--subin-primary-hover: #1d4ed8;
	--subin-radius: 16px;
	--subin-radius-sm: 10px;
	--subin-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	width: 100%;
	max-width: none;
	min-width: 0;
	margin-top: 18px;
}

.subin-auto-reply-editor * {
	box-sizing: border-box;
}

.subin-auto-reply-editor .subin-email-editor-shell {
	width: 100%;
	max-width: none;
	min-width: 0;
	border: 1px solid var(--subin-border);
	border-radius: var(--subin-radius);
	background: var(--subin-surface);
	box-shadow: var(--subin-shadow);
	overflow: hidden;
}

.subin-auto-reply-editor .subin-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	margin: 0 0 10px;
	color: var(--subin-muted);
	font-size: 13px;
	font-weight: 750;
	line-height: 1.3;
	text-decoration: none;
}

.subin-auto-reply-editor .subin-back-link::before {
	content: "\2190";
	font-size: 14px;
	line-height: 1;
}

.subin-auto-reply-editor .subin-back-link:hover,
.subin-auto-reply-editor .subin-back-link:focus {
	color: var(--subin-primary);
	text-decoration: underline;
	outline: none;
}

.subin-auto-reply-editor .subin-save-btn {
	min-height: 42px;
	padding: 0 16px;
	border-radius: var(--subin-radius-sm);
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
	white-space: nowrap;
}

.subin-auto-reply-editor .subin-save-btn {
	border: 1px solid var(--subin-primary);
	background: var(--subin-primary);
	color: #ffffff;
}

.subin-auto-reply-editor .subin-save-btn:hover {
	background: var(--subin-primary-hover);
}

.subin-auto-reply-editor .subin-field {
	min-width: 0;
}

.subin-auto-reply-editor .subin-field-label {
	display: block;
	margin-bottom: 7px;
	color: var(--subin-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}

.subin-auto-reply-editor .subin-input,
.subin-auto-reply-editor .subin-select {
	width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid #cbd5e1;
	border-radius: var(--subin-radius-sm);
	background: #ffffff;
	color: var(--subin-text);
	font-size: 15px;
	outline: none;
}

.subin-auto-reply-editor .subin-template-name {
	font-size: 17px;
	font-weight: 800;
}

.subin-auto-reply-editor .subin-input:focus,
.subin-auto-reply-editor .subin-select:focus {
	border-color: var(--subin-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.subin-auto-reply-editor .subin-save-status {
	min-height: 16px;
	color: #15803d;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: right;
	white-space: nowrap;
}

.subin-auto-reply-editor .subin-email-settings-card {
	padding: 18px 24px 22px;
	background: var(--subin-surface-soft);
	border-bottom: 1px solid var(--subin-border);
}

.subin-auto-reply-editor .subin-email-settings-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.subin-auto-reply-editor .subin-email-settings-header h3 {
	margin: 0;
	color: var(--subin-text);
	font-size: 17px;
	font-weight: 850;
	line-height: 1.25;
}

.subin-auto-reply-editor .subin-email-settings-header p {
	margin: 4px 0 0;
	color: var(--subin-muted);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
}

.subin-auto-reply-editor .subin-email-settings-grid {
	display: grid;
	grid-template-columns: minmax(280px, 640px);
	gap: 16px;
	border: 1px solid var(--subin-border);
	border-radius: 14px;
	background: #ffffff;
	padding: 16px;
}

.subin-auto-reply-editor .subin-email-settings-grid .subin-input {
	min-height: 44px;
	font-size: 15px;
}

.subin-auto-reply-editor .subin-help {
	margin: 8px 0 0;
	color: var(--subin-muted);
	font-size: 13px;
	line-height: 1.45;
}

.subin-auto-reply-editor .subin-workspace-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	background: #ffffff;
	border-bottom: 1px solid var(--subin-border);
}

.subin-auto-reply-editor .subin-workspace-title {
	font-size: 17px;
	font-weight: 850;
}

.subin-auto-reply-editor .subin-workspace-note {
	margin: 4px 0 0;
	color: var(--subin-muted);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.4;
}

.subin-auto-reply-editor .subin-preview-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.subin-auto-reply-editor .subin-auto-reply-editable-badge {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 10px;
	border: 1px solid #bbf7d0;
	border-radius: 999px;
	background: #f0fdf4;
	color: #166534;
	font-size: 12px;
	font-weight: 800;
}

.subin-auto-reply-editor .subin-auto-reply-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(360px, 24vw, 400px);
	gap: 0;
	align-items: stretch;
	min-height: var(--subin-auto-reply-workspace-height);
}

.subin-auto-reply-editor__main,
.subin-auto-reply-editor__side {
	min-width: 0;
}

.subin-auto-reply-editor__side {
	width: 100%;
}

.subin-auto-reply-editor__main {
	position: sticky;
	top: 104px;
	align-self: stretch;
}

.subin-auto-reply-wp-editor-panel {
	min-height: var(--subin-auto-reply-workspace-height);
	padding: 24px;
	background: #ffffff;
}

.subin-auto-reply-wp-editor-panel .wp-editor-wrap {
	max-width: 980px;
	margin: 0 auto;
}

.subin-auto-reply-wp-editor-panel iframe {
	background: #ffffff;
}

.subin-auto-reply-editor .subin-auto-reply-side-panel {
	position: sticky;
	top: 104px;
	height: var(--subin-auto-reply-workspace-height);
	min-height: var(--subin-auto-reply-workspace-height);
	overflow-y: auto;
	background: #fff;
	border-left: 1px solid #d8e2ee;
	color: #172033;
}

.subin-auto-reply-editor .subin-auto-reply-side-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-bottom: 1px solid #d8e2ee;
	background: #f8fafc;
}

.subin-auto-reply-editor .subin-auto-reply-side-tab {
	min-height: 48px;
	margin: 0;
	padding: 12px 10px 10px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: #f8fafc;
	color: #64748b;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.subin-auto-reply-editor .subin-auto-reply-side-tab--active,
.subin-auto-reply-editor .subin-auto-reply-side-tab.is-active,
.subin-auto-reply-editor .subin-auto-reply-side-tab:focus,
.subin-auto-reply-editor .subin-auto-reply-side-tab:hover {
	color: #172033;
	border-bottom-color: #2563eb;
	background: #ffffff;
	box-shadow: none;
	outline: none;
}

.subin-auto-reply-editor .subin-email-panel-body {
	background: #ffffff;
}

.subin-auto-reply-editor .subin-auto-reply-side-section {
	padding: 18px;
	border-bottom: 0;
}

.subin-auto-reply-editor .subin-auto-reply-side-section h2 {
	margin: 0 0 6px;
	color: #172033;
	font-size: 16px;
	font-weight: 850;
	line-height: 1.25;
}

.subin-auto-reply-editor .subin-auto-reply-side-section > .description {
	margin: 0 0 14px;
	color: #64748b;
	font-size: 13px;
	line-height: 1.45;
}

.subin-auto-reply-editor .subin-variable-group-heading {
	margin: 18px 0 8px;
	color: #64748b;
	font-size: 12px;
	font-weight: 850;
	text-transform: none;
	letter-spacing: 0;
}

.subin-auto-reply-editor .subin-variable-list {
	display: grid;
	gap: 10px;
	margin-top: 0;
}

.subin-auto-reply-editor .subin-variable-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
	padding: 11px;
	border: 1px solid #d8e2ee;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.subin-auto-reply-editor .subin-variable-item:hover {
	border-color: #2563eb;
	background: #eff6ff;
}

.subin-auto-reply-editor .subin-variable-item code {
	display: inline-block;
	margin-bottom: 4px;
	color: #172033;
	font-size: 12px;
	font-weight: 800;
}

.subin-auto-reply-editor .subin-variable-label,
.subin-auto-reply-editor .subin-variable-item span:not(.subin-copy-feedback) {
	display: block;
	color: #64748b;
	font-size: 12px;
	line-height: 1.35;
}

.subin-auto-reply-editor .subin-variable-item .subin-copy-shortcode {
	min-height: 30px;
	padding: 0 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #2563eb;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.subin-auto-reply-editor .subin-variable-item .subin-copy-shortcode:hover,
.subin-auto-reply-editor .subin-variable-item .subin-copy-shortcode:focus {
	border-color: #2563eb;
	background: #ffffff;
	outline: none;
}

.subin-auto-reply-editor .subin-variable-item .subin-copy-feedback {
	grid-column: 1 / -1;
	min-height: 16px;
	color: #2563eb;
	font-size: 12px;
}

.subin-auto-reply-editor .subin-sticky-save-bar {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 24px;
	border-top: 1px solid var(--subin-border);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.subin-auto-reply-editor .subin-sticky-save-bar strong,
.subin-auto-reply-editor .subin-sticky-save-bar span {
	display: block;
}

.subin-auto-reply-editor .subin-sticky-save-bar strong {
	color: var(--subin-text);
	font-size: 14px;
	font-weight: 850;
	line-height: 1.25;
}

.subin-auto-reply-editor .subin-sticky-save-bar span {
	margin-top: 2px;
	color: var(--subin-muted);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
}

@media (max-width: 1100px) {
	.subin-auto-reply-editor .subin-sticky-save-bar {
		align-items: stretch;
		flex-direction: column;
	}

	.subin-auto-reply-editor .subin-save-status {
		padding-bottom: 0;
		text-align: left;
	}

	.subin-auto-reply-editor .subin-email-settings-grid,
	.subin-auto-reply-editor .subin-auto-reply-workspace {
		grid-template-columns: 1fr;
	}

	.subin-auto-reply-editor .subin-sticky-save-bar .subin-save-btn {
		width: 100%;
	}

	.subin-auto-reply-editor .subin-workspace-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.subin-auto-reply-editor__main,
	.subin-auto-reply-side-panel {
		position: static;
		max-height: none;
	}

	.subin-auto-reply-wp-editor-panel {
		height: auto !important;
		min-height: 620px;
		max-height: none;
	}

	.subin-auto-reply-side-panel {
		height: auto;
		min-height: 0;
		border-left: none;
		border-top: 1px solid #d8e1ec;
	}
}
