.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-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-rules-table {
	margin-top: 16px;
}

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

.subin-auto-replies-page .subin-auto-reply-rule-editor {
	max-width: 980px;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field {
	align-content: start;
	gap: 5px;
}

.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field input[type="text"],
.subin-auto-replies-page .subin-auto-reply-rule-editor .subin-settings-field select {
	box-sizing: border-box;
	height: 42px;
	min-height: 42px;
	padding-top: 8px;
	padding-bottom: 8px;
	line-height: 1.35;
}

.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 {
	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 {
	margin: 0;
	color: #b32d2e;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
}

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

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

@media (max-width: 900px) {
	.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-admin-page:has(.subin-auto-reply-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-template-toolbar {
	display: grid;
	grid-template-columns: minmax(320px, 1fr) auto;
	align-items: end;
	gap: 16px;
	padding: 22px 24px 18px;
	background: #ffffff;
	border-bottom: 1px solid var(--subin-border);
}

.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-area {
	display: grid;
	gap: 6px;
	justify-items: end;
	align-self: end;
}

.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-meta {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
	gap: 18px;
	padding: 18px 24px 22px;
	background: var(--subin-surface-soft);
	border-bottom: 1px solid var(--subin-border);
}

.subin-auto-reply-editor .subin-meta-card {
	padding: 14px;
	border: 1px solid var(--subin-border);
	border-radius: 14px;
	background: #ffffff;
}

.subin-auto-reply-editor .subin-meta-card .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 {
	color: var(--subin-muted);
	font-size: 14px;
	font-weight: 650;
}

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

.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;
}@media (max-width: 1100px) {
.subin-auto-reply-editor .subin-template-toolbar {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

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

.subin-auto-reply-editor .subin-save-area {
		justify-items: start;
	}

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

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