.clm-wrap {
	--clm-primary: #135e96;
	--clm-primary-dark: #0a4b78;
	--clm-border: #dcdcde;
	--clm-bg: #f6f7f7;
	--clm-danger: #b32d2e;
	max-width: 1440px;
}

.clm-frontend {
	max-width: 1180px;
	margin: 36px auto 64px;
	padding: 0 24px;
	color: #1d2327;
	font-size: 16px;
	line-height: 1.65;
}

.clm-frontend *,
.clm-frontend *::before,
.clm-frontend *::after {
	box-sizing: border-box;
}

.clm-frontend .clm-page-header {
	margin: 18px 0 22px;
	padding: 24px 28px;
	border: 1px solid #d9e4ec;
	border-radius: 14px;
	background: linear-gradient(135deg, #f7fbfe 0%, #eef6fb 100%);
	box-shadow: 0 4px 18px rgba(19, 94, 150, .08);
}

.clm-frontend .clm-page-header h1 {
	margin: 0;
	color: #172b3a;
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 700;
	letter-spacing: .01em;
	text-align: left;
}

.clm-frontend .clm-eyebrow {
	margin: 0 0 4px;
	color: var(--clm-primary);
	font-size: 13px;
	font-weight: 700;
}

.clm-frontend .clm-card,
.clm-frontend .clm-stat {
	border-color: #dfe5e9;
	border-radius: 12px;
	box-shadow: 0 3px 14px rgba(29, 35, 39, .06);
}

.clm-frontend .clm-card {
	margin: 22px 0;
	padding: 26px;
}

.clm-frontend .clm-card h2 {
	margin: 0 0 14px;
	color: #172b3a;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
}

.clm-frontend .clm-card h3 {
	font-size: 18px;
}

.clm-frontend .clm-section-heading p {
	max-width: 760px;
	margin: 0;
	font-size: 14px;
}

.clm-frontend .clm-stat {
	min-height: 126px;
	padding: 20px;
}

.clm-frontend .clm-stat span {
	font-size: 13px;
	font-weight: 700;
}

.clm-frontend .clm-stat strong {
	margin: 8px 0;
	color: #172b3a;
	font-size: 34px;
}

.clm-frontend .clm-table {
	border: 1px solid var(--clm-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
}

.clm-frontend .clm-table th {
	background: #f0f6fa;
	color: #314454;
	font-weight: 700;
	white-space: nowrap;
}

.clm-frontend .clm-table th,
.clm-frontend .clm-table td {
	padding: 13px 12px;
}

.clm-frontend .button,
.clm-frontend .clm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 7px 15px;
	border: 1px solid #a7aaad;
	border-radius: 7px;
	background: #fff;
	color: #2c3338;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.clm-frontend .button:hover {
	border-color: var(--clm-primary);
	color: var(--clm-primary);
}

.clm-frontend .button-primary,
.clm-frontend .clm-button {
	border-color: var(--clm-primary);
	background: var(--clm-primary);
	color: #fff !important;
}

.clm-frontend .button-primary:hover,
.clm-frontend .clm-button:hover {
	border-color: var(--clm-primary-dark);
	background: var(--clm-primary-dark);
	color: #fff !important;
}

.clm-frontend .button:disabled,
.clm-frontend .button[aria-busy="true"] {
	opacity: .6;
	cursor: wait;
}

.clm-frontend .clm-toolbar {
	margin: 16px 0 6px;
}

.clm-sync-toolbar {
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 16px;
	border: 1px solid #dfe5e9;
	border-radius: 9px;
	background: #f7fafc;
}

.clm-auto-sync-status {
	margin: 0;
	color: #50575e;
	font-size: 13px;
}

.clm-frontend .clm-admin-view-banner,
.clm-frontend .clm-notice {
	border-radius: 8px;
}

.clm-frontend .clm-logs {
	font-size: 14px;
}

.clm-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 18px 0 24px;
}

.clm-page-header h1 {
	margin: 0;
	font-size: clamp(26px, 4vw, 40px);
	line-height: 1.2;
}

.clm-account-info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: -10px 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--clm-border);
	border-radius: 8px;
	background: #fff;
	color: #50575e;
	font-size: 13px;
}

.clm-account-info strong {
	color: #1d2327;
}

.clm-shared-password-form {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
}

.clm-shared-password-form label {
	display: grid;
	gap: 6px;
	min-width: min(100%, 320px);
	font-weight: 600;
}

.clm-shared-password-form input {
	width: 100%;
}

.clm-shared-password-value code {
	display: inline-block;
	padding: 10px 14px;
	border: 1px solid var(--clm-border);
	border-radius: 6px;
	background: #f6f7f7;
	font-size: 15px;
}

.clm-usage-guide > summary {
	position: relative;
	padding-right: 28px;
	color: #172b3a;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
}

.clm-usage-guide > summary::after {
	position: absolute;
	top: 0;
	right: 2px;
	content: "＋";
	color: var(--clm-primary);
}

.clm-usage-guide[open] > summary::after {
	content: "－";
}

.clm-guide-body {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--clm-border);
}

.clm-guide-intro {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-left: 4px solid var(--clm-primary);
	background: #eef6fb;
	font-weight: 600;
}

.clm-guide-section + .clm-guide-section {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px dashed var(--clm-border);
}

.clm-guide-section h3 {
	margin-bottom: 12px;
	color: #172b3a;
	font-size: 18px;
}

.clm-guide-phase {
	margin-top: 16px;
	padding: 18px;
	border: 1px solid #dfe5e9;
	border-radius: 10px;
	background: #fbfcfd;
}

.clm-guide-phase h4 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: #172b3a;
	font-size: 17px;
}

.clm-guide-phase h4 > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--clm-primary);
	color: #fff;
	font-size: 14px;
}

.clm-guide-checklist,
.clm-guide-instructions {
	margin: 0;
	padding-left: 24px;
}

.clm-guide-checklist li,
.clm-guide-instructions li {
	margin: 8px 0;
}

.clm-guide-operation-path {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 14px;
}

.clm-guide-operation-path span {
	padding: 8px 12px;
	border-radius: 999px;
	background: #eef6fb;
	font-size: 13px;
	font-weight: 700;
}

.clm-guide-operation-path b {
	color: var(--clm-primary);
	font-size: 20px;
}

.clm-guide-action-example {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr);
	margin: 14px 0;
	border: 1px solid #cddce7;
	border-radius: 9px;
	background: #fff;
	overflow: hidden;
}

.clm-guide-action-example > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	padding: 14px 16px;
}

.clm-guide-action-example > div + div {
	border-left: 1px solid #cddce7;
	background: #f7fbfe;
}

.clm-guide-action-example small {
	color: #646970;
	font-weight: 700;
}

.clm-guide-action-example strong {
	font-size: 15px;
}

.clm-guide-action-column b {
	display: inline-flex;
	align-self: flex-start;
	margin-top: 4px;
	padding: 7px 12px;
	border-radius: 6px;
	background: var(--clm-primary);
	color: #fff;
	font-size: 13px;
}

.clm-guide-flow {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin: 14px 0;
}

.clm-guide-step {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 15px;
	border: 1px solid #cddce7;
	border-radius: 9px;
	background: #f7fbfe;
	text-align: center;
}

.clm-guide-step strong,
.clm-guide-step span {
	display: block;
}

.clm-guide-step span {
	margin-top: 5px;
	color: #50575e;
	font-size: 13px;
}

.clm-guide-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0 auto 8px;
	border-radius: 50%;
	background: var(--clm-primary);
	color: #fff;
	font-size: 14px;
}

.clm-guide-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--clm-primary);
	font-size: 24px;
	font-weight: 700;
}

.clm-guide-period-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 14px 0;
}

.clm-guide-period-grid span {
	padding: 10px;
	border-radius: 7px;
	background: #f0f6fa;
	text-align: center;
	font-size: 13px;
}

.clm-guide-period-grid strong {
	display: block;
	color: var(--clm-primary-dark);
	font-size: 18px;
}

.clm-guide-result-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 16px 0;
}

.clm-guide-result-grid span {
	padding: 11px;
	border: 1px solid #dfe5e9;
	border-radius: 7px;
	background: #fff;
	text-align: center;
	font-size: 13px;
}

.clm-guide-result-grid strong {
	display: block;
	margin-bottom: 3px;
	color: #314454;
}

.clm-guide-more {
	margin-top: 12px;
	border: 1px solid var(--clm-border);
	border-radius: 8px;
	background: #fff;
}

.clm-guide-more > summary {
	position: relative;
	padding: 13px 42px 13px 15px;
	font-weight: 700;
	cursor: pointer;
}

.clm-guide-more > summary::after {
	position: absolute;
	top: 11px;
	right: 15px;
	content: "＋";
	color: var(--clm-primary);
	font-size: 18px;
}

.clm-guide-more[open] > summary::after {
	content: "－";
}

.clm-guide-more-body {
	padding: 16px;
	border-top: 1px solid var(--clm-border);
	background: #fbfcfd;
}

.clm-guide-more-body > :first-child {
	margin-top: 0;
}

.clm-guide-more-body > :last-child {
	margin-bottom: 0;
}

.clm-guide-warning {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	padding: 14px 16px;
	border: 1px solid #e7cc79;
	border-radius: 8px;
	background: #fff9e6;
}

.clm-guide-warning strong {
	flex: 0 0 auto;
}

.clm-member-filters {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 16px;
	padding: 14px;
	border: 1px solid var(--clm-border);
	border-radius: 8px;
	background: #f7fafc;
}

.clm-member-filters label {
	display: grid;
	gap: 5px;
	font-size: 13px;
	font-weight: 700;
}

.clm-member-filters input[type="search"] {
	width: min(320px, 70vw);
}

.clm-member-filters select {
	min-width: 210px;
}

.clm-member-filter-count {
	margin: 0 0 8px auto;
	color: #50575e;
	font-size: 13px;
	font-weight: 600;
}

.clm-table [hidden] {
	display: none !important;
}

.clm-eyebrow {
	margin: 0 0 6px;
	color: #646970;
	font-weight: 600;
	letter-spacing: .08em;
}

.clm-status,
.clm-plan {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #e7f5ea;
	color: #116329;
	font-size: 12px;
	font-weight: 700;
}

.clm-status-inactive,
.clm-status-archived {
	background: #f0f0f1;
	color: #50575e;
}

.clm-plan-0 {
	background: #f0f0f1;
	color: #50575e;
}

.clm-plan-6 {
	background: #efe8ff;
	color: #5b21b6;
}

.clm-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.clm-stat,
.clm-card {
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--clm-border);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.clm-stat {
	padding: 18px;
}

.clm-stat span,
.clm-stat small {
	display: block;
	color: #646970;
}

.clm-stat strong {
	display: block;
	margin: 4px 0;
	font-size: 32px;
	line-height: 1;
}

.clm-card {
	margin: 18px 0;
	padding: 22px;
}

.clm-card h2,
.clm-card h3 {
	margin-top: 0;
}

.clm-table {
	width: 100%;
	border-collapse: collapse;
}

.clm-table th,
.clm-table td {
	padding: 11px 10px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--clm-border);
}

.clm-table-scroll {
	overflow-x: auto;
}

.clm-actions {
	min-width: 190px;
}

.clm-inline-action,
.clm-inline-form {
	display: inline-block;
	margin: 0 5px 5px 0;
}

.clm-mail-option {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.clm-mail-option input {
	width: auto;
	margin: 0;
}

.clm-resend-mail {
	display: block;
	margin-top: 4px;
}

.clm-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.clm-sync-all {
	float: right;
	margin: 8px 0 14px;
}

.clm-form-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(150px, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.clm-admin-rows {
	display: grid;
	gap: 14px;
}

.clm-admin-row {
	display: grid;
	grid-template-columns: minmax(110px, .7fr) minmax(110px, .7fr) minmax(220px, 1.3fr) minmax(220px, 1.3fr);
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--clm-border);
	border-radius: 8px;
	background: #f7fafc;
}

.clm-admin-row label {
	display: grid;
	align-content: start;
	gap: 5px;
	font-weight: 600;
}

.clm-admin-row input {
	box-sizing: border-box;
	width: 100%;
}

.clm-admin-row small {
	color: #646970;
	font-weight: 400;
}

.clm-admin-row-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	grid-column: 1 / -1;
	gap: 12px;
}

.clm-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.clm-section-heading p {
	margin-top: -4px;
	color: #646970;
}

.clm-domain-sync-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.clm-domain-sync-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
}

.clm-domain-sync-progress[hidden] {
	display: none;
}

.clm-domain-sync[hidden] {
	display: none !important;
}

.clm-domain-sync-progress progress {
	width: min(420px, 55vw);
	height: 18px;
}

.clm-new-batch,
.clm-batch-edit {
	margin-top: 14px;
}

.clm-new-batch > summary,
.clm-batch-edit > summary {
	cursor: pointer;
	font-weight: 700;
}

.clm-batch-form {
	margin-top: 12px;
	padding: 14px;
	background: var(--clm-bg);
	border-radius: 6px;
}

.clm-batch-form textarea,
.clm-batch-form select {
	box-sizing: border-box;
	width: 100%;
	margin-top: 6px;
}

.clm-batch-grid {
	grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.clm-batch-status {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.clm-batch-active {
	background: #e7f5ea;
	color: #116329;
}

.clm-batch-warning {
	background: #fcf3cf;
	color: #6e4c1e;
}

.clm-batch-expired,
.clm-batch-consumed,
.clm-batch-cancelled {
	background: #f0f0f1;
	color: #50575e;
}

.clm-form-grid label,
.clm-bulk-register > form > label,
.clm-password-wrap label {
	display: block;
	font-weight: 600;
}

.clm-form-grid input,
.clm-bulk-register textarea,
.clm-correction textarea,
.clm-password-wrap input {
	box-sizing: border-box;
	width: 100%;
	margin-top: 6px;
}

.clm-form-grid small {
	display: block;
	margin-top: 4px;
	font-weight: 400;
	color: #646970;
}

.clm-checkbox {
	margin-top: 12px;
}

.clm-checkbox input {
	width: auto;
}

.clm-correction {
	margin-top: 8px;
}

.clm-correction summary {
	cursor: pointer;
	font-size: 12px;
	color: #646970;
}

.clm-correction form {
	margin-top: 8px;
	padding: 10px;
	background: var(--clm-bg);
}

.clm-org-switcher {
	margin: 0 0 14px;
}

.clm-org-switcher select {
	margin-left: 8px;
}

.clm-admin-view-banner,
.clm-notice {
	margin: 12px 0;
	padding: 12px 16px;
	border-left: 4px solid var(--clm-primary);
	background: #eaf4fb;
}

.clm-notice-success {
	border-color: #00a32a;
	background: #edfaef;
}

.clm-notice-error {
	border-color: var(--clm-danger);
	background: #fcf0f1;
}

.clm-button {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--clm-primary);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.clm-button:hover {
	background: var(--clm-primary-dark);
}

.clm-button-danger {
	border-color: var(--clm-danger) !important;
	color: var(--clm-danger) !important;
}

.clm-danger-zone {
	border-color: #f0b8ba;
}

.clm-muted {
	color: #646970;
	font-size: 12px;
}

.clm-result-created {
	color: #116329;
}

.clm-result-linked {
	color: #135e96;
}

.clm-result-error {
	color: var(--clm-danger);
}

.clm-password-wrap {
	max-width: 620px;
	margin: 50px auto;
}

.clm-password-wrap label {
	margin-bottom: 16px;
}

.clm-logs summary {
	cursor: pointer;
	font-weight: 700;
}

@media (max-width: 900px) {
	.clm-stats,
	.clm-form-grid,
	.clm-batch-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.clm-guide-flow {
		align-items: stretch;
		flex-direction: column;
	}

	.clm-admin-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.clm-guide-arrow {
		min-height: 18px;
		transform: rotate(90deg);
	}
}

@media (max-width: 560px) {
	.clm-frontend {
		margin-top: 22px;
		padding: 0 12px;
	}

	.clm-frontend .clm-page-header,
	.clm-frontend .clm-card {
		padding: 18px;
	}

	.clm-stats,
	.clm-form-grid {
		grid-template-columns: 1fr;
	}

	.clm-page-header,
	.clm-section-heading,
	.clm-domain-sync-progress,
	.clm-sync-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.clm-domain-sync-actions {
		flex-wrap: wrap;
	}

	.clm-guide-period-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.clm-guide-result-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.clm-guide-warning {
		flex-direction: column;
	}

	.clm-guide-operation-path {
		align-items: stretch;
		flex-direction: column;
		text-align: center;
	}

	.clm-guide-operation-path b {
		transform: rotate(90deg);
	}

	.clm-guide-action-example {
		grid-template-columns: 1fr;
	}

	.clm-guide-action-example > div + div {
		border-top: 1px solid #cddce7;
		border-left: 0;
	}

	.clm-member-filters {
		align-items: stretch;
		flex-direction: column;
	}

	.clm-member-filters input[type="search"],
	.clm-member-filters select {
		width: 100%;
		min-width: 0;
	}

	.clm-member-filter-count {
		margin: 0;
	}

	.clm-admin-row {
		grid-template-columns: 1fr;
	}

	.clm-admin-row-actions {
		align-items: flex-start;
		flex-direction: column;
	}
}
