
.activate-page .btn-primary,
.activate-page .btn-outline {
	display: inline-block;
	padding: .6rem 1.4rem;
	border-radius: 8px;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
}

.activate-page .btn-primary {
	background: #f26522;
	color: #fff;
}

.activate-page .btn-primary:hover:not(:disabled) {
	background: #d9551a;
}

.activate-page .btn-outline {
	background: transparent;
	color: #555;
	border-color: #ccc;
}

.activate-page .btn-outline:hover:not(:disabled) {
	background: #f5f5f5;
}

.activate-page .btn-quiet {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	background: transparent;
	border: none;
	padding: .35rem .5rem;
	margin-left: -.5rem;      
	border-radius: 6px;
	font-size: .875rem;
	font-weight: 600;
	color: #3d6e99;
	white-space: nowrap;
	cursor: pointer;
}

.activate-page .btn-quiet:hover:not(:disabled) {
	background: #eef4f8;
}

.activate-page .btn-quiet:disabled {
	opacity: .45;
	cursor: default;
}

.activate-page .btn-act {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: #6c757d;
	cursor: pointer;
}

.activate-page .btn-act svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.activate-page .btn-act:hover:not(:disabled) {
	background: #f2f2f2;
	color: #222;
}

.activate-page .btn-act-danger:hover:not(:disabled) {
	background: #fdf1f0;
	color: #c0392b;
}

.activate-page .btn-act:disabled {
	opacity: .4;
	cursor: default;
}

.activate-page .frow-body-block {
	padding-top: calc(.5rem + 1px);
}

.activate-page .sub-field {
	margin-top: .75rem;
	padding-left: 1.5rem;
	border-left: 2px solid #eee;
}

.activate-page .sub-field-label {
	display: block;
	font-size: .8rem;
	color: #6c757d;
	margin-bottom: .3rem;
}

.activate-page .cost-dialog {
	max-width: 24rem;
}

.activate-page .cost-table {
	margin-bottom: 1.25rem;
}

.activate-page .cost-row {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	padding: .4rem 0;
	font-size: .9rem;
	color: #555;
}

.activate-page .cost-value {
	font-variant-numeric: tabular-nums;
	color: #222;
}

.activate-page .cost-total {
	margin-top: .4rem;
	padding-top: .65rem;
	border-top: 1px solid #e6e6e6;
	font-weight: 700;
	color: #222;
}

.activate-page .cost-message {
	margin: 0 0 1.25rem;
	font-size: .9rem;
	color: #6c757d;
}

.activate-page .contact-fields {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-top: .5rem;
}

.activate-page .renew-state {
	flex: 1 1 auto;
	min-width: 0;
}

.activate-page .renew-when {
	font-size: .9rem;
	color: #222;
}

.activate-page .kb-note:empty {
	display: none;
}

.activate-page .btn-x {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	background: transparent;
	border: none;
	color: #c0392b;
	opacity: .8;
	cursor: pointer;
}

.activate-page .btn-x svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.activate-page .btn-x:hover:not(:disabled) {
	opacity: 1;
}

.activate-page .btn-x:disabled {
	opacity: .45;
	cursor: default;
}

.activate-page .kb-actions {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.activate-page .btn-primary:disabled,
.activate-page .btn-outline:disabled {
	opacity: .55;
	cursor: default;
}

.activate-page .btn-block {
	display: block;
	width: 100%;
}

.activate-page .btn-sm {
	padding: .4rem 1rem;
	font-size: .875rem;
}

.activate-page .btn-link {
	display: block;
	width: 100%;
	margin-top: 1rem;
	padding: .5rem;
	background: none;
	border: none;
	color: #f26522;
	font-size: .9rem;
	cursor: pointer;
}

.activate-page .btn-link:hover {
	text-decoration: underline;
}

.activate-page .btn-link-quiet {
	color: #6c757d;
	margin-top: .75rem;
	font-size: .85rem;
}

.activate-page .auth-alt {
	margin-top: 1.35rem;
	padding-top: 1.35rem;
	border-top: 1px solid #f0f0f0;
	text-align: center;
	font-size: .875rem;
	color: #6c757d;
}

.activate-page .btn-link-inline {
	padding: 0;
	border: none;
	background: none;
	color: #f26522;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.activate-page .btn-link-inline:hover {
	text-decoration: underline;
}

.activate-page .legal-note {
	margin: 1.1rem auto 0;
	max-width: 26rem;
	font-size: .75rem;
	line-height: 1.5;
	color: #9aa0a6;
	text-align: center;
	text-wrap: pretty;
}

.activate-page .legal-note a {
	color: #9aa0a6;
	text-decoration: underline;
}

.activate-page .legal-note a:hover {
	color: #f26522;
}

.activate-page button:focus-visible,
.activate-page a:focus-visible {
	outline: 2px solid #f26522;
	outline-offset: 2px;
	border-radius: 6px;
}

.activate-page .account-title-form {
	margin-bottom: 1.5rem;
}

.activate-page .notice {
	margin: 1rem 0 0;
	padding: .7rem .9rem;
	border-radius: 8px;
	font-size: .9rem;
}

.activate-page .notice.is-error {
	background: #fdecea;
	color: #b3261e;
}

.activate-page .notice.is-success {
	background: #e8f5e9;
	color: #1b5e20;
}

.activate-page .state-note {
	color: #6c757d;
	font-size: .95rem;
	text-align: center;
}

.activate-page .account-card {
	max-width: 400px;
	margin: 2rem auto;
	padding: 2rem;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, .05);
}

.activate-page .account-title {
	font-size: 1.5rem;
	margin-bottom: .35rem;
}

.activate-page .account-subtitle {
	color: #6c757d;
	font-size: .95rem;
	margin-bottom: 1.5rem;
}

.activate-page .account-label {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	color: #444;
	margin-bottom: .35rem;
}

.activate-page .account-input {
	width: 100%;
	padding: .6rem .75rem;
	margin-bottom: 1rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 1rem;
}

.activate-page .account-input:focus,
.activate-page .code-seg:focus {
	outline: none;
	border-color: #f26522;
	box-shadow: 0 0 0 3px rgba(242, 101, 34, .15);
}

.activate-page .account-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #e6e6e6;
}

.activate-page .account-bar-id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.activate-page .account-bar-email {
	font-weight: 600;
	font-size: 1rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.activate-page .account-bar-role {
	font-size: .82rem;
	color: #6c757d;
}

.activate-page .panel-heading {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 2rem 0 1rem;
}

.activate-page .panel-heading:first-child {
	margin-top: 0;
}

.activate-page .panel {
	margin-top: 2rem;
	padding: 1.5rem;
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 12px;
}

.activate-page .kb-badge {
	font-size: .68rem;
	font-weight: 600;
	padding: .12rem .5rem;
	border-radius: 999px;
	background: #fdecea;
	color: #b3261e;
	white-space: nowrap;
}

.activate-page .admin-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 1.1rem 1.35rem;
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 12px;
}

.activate-page .admin-permits {
	display: flex;
	align-items: baseline;
	gap: .6rem;
}

.activate-page .admin-permits-label {
	font-size: .82rem;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.activate-page .admin-permits-value {
	font-size: 1.5rem;
	font-weight: 700;
}

.activate-page .license-inline {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
}

.activate-page .code-seg-sm {
	width: 3.9rem;
	padding: .35rem .25rem;
	font-size: .85rem;
}

.activate-page .md-list-foot {
	padding: .4rem .5rem;
	border-top: 1px solid #f0f0f0;
	background: #fcfcfc;
}

.activate-page .btn-icon {
	width: 1.9rem;
	height: 1.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: #666;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.activate-page .btn-icon:hover:not(:disabled) {
	background: #f1f1f1;
	color: #f26522;
}

.activate-page .btn-icon:disabled {
	opacity: .35;
	cursor: default;
}

.activate-page .detail-fields {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: .65rem 1.5rem;
}

.activate-page .detail-key {
	font-size: .82rem;
	color: #6c757d;
}

.activate-page .detail-val {
	font-size: .9rem;
	color: #333;
	word-break: break-word;
}

.activate-page .dialog {
	max-width: 460px;
	width: calc(100% - 2rem);
	padding: 1.75rem;
	border: 1px solid #e6e6e6;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
}

.activate-page .dialog::backdrop {
	background: rgba(0, 0, 0, .35);
}

.activate-page .dialog .code-inputs {
	margin-bottom: 0;
}

.activate-page .dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: .6rem;
	margin-top: 1.5rem;
}

.activate-page .master-detail {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.activate-page .md-list {
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.activate-page .md-item {
	display: block;
	width: 100%;
	padding: .85rem 1rem;
	text-align: left;
	background: none;
	border: none;
	border-bottom: 1px solid #f0f0f0;
	border-left: 3px solid transparent;
	cursor: pointer;
	font: inherit;
}

.activate-page .md-item:last-child {
	border-bottom: none;
}

.activate-page .md-item:hover {
	background: #fafafa;
}

.activate-page .md-item.is-selected {
	background: #fff7f3;
	border-left-color: #f26522;
}

.activate-page .md-item-name {
	font-weight: 600;
	font-size: .92rem;
	display: flex;
	align-items: center;
	gap: .4rem;
}

.activate-page .md-detail {
	min-height: 240px;
	padding: 1.5rem 1.75rem;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	background: #fff;
}

.activate-page .md-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: #6c757d;
	font-size: .95rem;
}

.activate-page .detail-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding-bottom: 1.1rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #f0f0f0;
}

.activate-page .detail-title {
	font-size: 1.2rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.activate-page .kb-meta {
	font-size: .82rem;
	color: #6c757d;
	margin-top: .3rem;
}

.activate-page .kb-actions {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	flex-shrink: 0;
}

@media (max-width: 860px) {
	.activate-page .master-detail {
		grid-template-columns: 1fr;
	}
}

.activate-page .kb-meta {
	font-size: .82rem;
	color: #6c757d;
	margin-top: .3rem;
}

.activate-page .kb-actions {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.activate-page .kb-panel {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #f0f0f0;
}

.activate-page .kb-panel-title {
	font-size: .82rem;
	font-weight: 600;
	color: #444;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: .6rem;
}

.activate-page .field-row {
	display: flex;
	gap: .5rem;
	align-items: flex-end;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.activate-page .field {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.activate-page .field-label {
	font-size: .75rem;
	color: #6c757d;
}

.activate-page .field-input {
	width: 6.5rem;
	padding: .45rem .6rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: .9rem;
}

.activate-page .field-input:focus {
	outline: none;
	border-color: #f26522;
	box-shadow: 0 0 0 3px rgba(242, 101, 34, .15);
}

.activate-page .batch-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .55rem 0;
	border-bottom: 1px solid #f2f2f2;
	font-size: .875rem;
}

.activate-page .batch-row:last-child {
	border-bottom: none;
}

.activate-page .batch-info {
	color: #555;
}

.activate-page .file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.activate-page .file-meta {
	color: #6c757d;
	font-size: .8rem;
	white-space: nowrap;
	flex-shrink: 0;
}

.activate-page .kb-note {
	font-size: .85rem;
	color: #6c757d;
	padding: .5rem 0;
}

.activate-page .is-error-text {
	color: #c0392b;
}

.activate-page .create-form {
	margin-top: .5rem;
}

.activate-page .form-row {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: .85rem;
}

.activate-page .frow-label {
	flex: 0 0 9rem;
	
	padding-top: calc(.5rem + 1px);
	line-height: 1.4;
	font-size: .875rem;
	color: #444;
}

.activate-page .frow-body {
	flex: 1 1 auto;
	min-width: 0;
}

.activate-page .form-row-full .frow-body {
	width: 100%;
}

.activate-page .form-input {
	width: 100%;
	padding: .5rem .7rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: .9rem;
	font-family: inherit;
	background: #fff;
	color: #222;
}

.activate-page .form-input:focus {
	outline: none;
	border-color: #f26522;
	box-shadow: 0 0 0 3px rgba(242, 101, 34, .15);
}

.activate-page .form-input:disabled {
	background: #f7f7f7;
	color: #888;
}

.activate-page .form-textarea {
	resize: vertical;
	line-height: 1.45;
}

.activate-page .frow-static {
	padding: .5rem 0;
	font-size: .9rem;
	font-weight: 600;
	color: #222;
}

.activate-page .form-hint {
	font-size: .78rem;
	color: #6c757d;
	margin-top: .25rem;
}

.activate-page .add-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .25rem .75rem;
	margin-top: .1rem;
}

.activate-page .add-row .form-hint {
	margin-top: 0;
}

.activate-page .frow-check {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-size: .875rem;
	color: #444;
	cursor: pointer;
}

.activate-page .frow-check input {
	margin-top: .2rem;
	flex-shrink: 0;
}

.activate-page .files-foot {
	border-top: 1px solid #f2f2f2;
	padding-top: .35rem;
	margin-bottom: .25rem;
}

.activate-page .batch-row.is-pending .file-name::after {
	content: " · pending";
	color: #9aa0a6;
	font-size: .8rem;
}

.activate-page .batch-row.is-removing .file-name,
.activate-page .batch-row.is-removing .file-meta {
	text-decoration: line-through;
	opacity: .5;
}

.activate-page .cover-preview {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e6e6e6;
	flex-shrink: 0;
}

.activate-page .job-progress {
	height: 6px;
	background: #eee;
	border-radius: 999px;
	overflow: hidden;
	margin: .25rem 0 .75rem;
}

.activate-page .job-progress-bar {
	height: 100%;
	width: 0;
	
	background: #47b0df;
	border-radius: 999px;
	transition: width .2s ease;
}

.activate-page .job-progress.is-indeterminate .job-progress-bar {
	width: 40% !important;
	transition: none;
	animation: activate-progress-slide 1.4s ease-in-out infinite;
}

@keyframes activate-progress-slide {
	0%   { margin-left: -40%; }
	100% { margin-left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.activate-page .job-progress.is-indeterminate .job-progress-bar {
		animation: none;
		width: 100% !important;
		opacity: .5;
	}
}

.activate-page .list-row {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: .5rem;
}

@media (max-width: 640px) {
	.activate-page .form-row {
		flex-direction: column;
		gap: .25rem;
	}

	.activate-page .frow-label {
		flex: none;
		padding-top: 0;
	}
}

.activate-page .code-inputs {
	display: flex;
	align-items: center;
	gap: .4rem;
}

.activate-page .code-seg {
	width: 4.25rem;
	padding: .4rem .25rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: .9rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .04em;
	text-align: center;
	text-transform: uppercase;
	background: #fff;
}

.activate-page .code-seg::placeholder {
	color: #ccc;
	letter-spacing: .06em;
}

.activate-page .code-dash {
	color: #bbb;
	flex: 0 0 auto;
}

@media (max-width: 520px) {
	.activate-page .code-seg {
		width: 100%;
		min-width: 0;
	}

	.activate-page .code-inputs {
		flex: 1 1 100%;
	}

}
