.d5cf-extension-notice,
.d5cf-quiz-result {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(35, 57, 91, 0.12);
	border-radius: 16px;
	box-shadow: 0 12px 24px rgba(35, 57, 91, 0.08);
	color: #23395b;
}

.d5cf-extension-notice {
	background: linear-gradient(135deg, #f6efe4 0%, #fffaf2 100%);
}

.d5cf-extension-notice__eyebrow,
.d5cf-quiz-result__eyebrow {
	margin-bottom: 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8c5a2b;
}

.d5cf-extension-notice__content {
	font-size: 0.98rem;
	line-height: 1.65;
	white-space: pre-line;
}

.d5cf-quiz-result {
	background: linear-gradient(135deg, #eef4ff 0%, #fcf6e9 100%);
}

.d5cf-quiz-result__title {
	margin: 0 0 0.55rem;
	font-size: 1.35rem;
	line-height: 1.2;
}

.d5cf-quiz-result__summary {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.6;
}

.d5cf-quiz-result__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.d5cf-quiz-result__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	font-size: 0.92rem;
}

.d5cf-quiz-result__scores {
	margin: 0;
	padding: 0;
	list-style: none;
}

.d5cf-quiz-result__score-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.45rem 0;
	border-top: 1px solid rgba(35, 57, 91, 0.1);
}

.d5cf-quiz-result__score-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.d5cf-quiz-result__score-label {
	font-weight: 600;
}

.et-db .d5cf-extension-notice,
.et-db .d5cf-quiz-result,
.et-fb-app-frame .d5cf-extension-notice,
.et-fb-app-frame .d5cf-quiz-result {
	max-width: 100%;
}

.d5cf-weight-editor {
	margin: 0 0 1rem;
}

.d5cf-weight-editor__card {
	padding: 1rem;
	border: 1px solid rgba(35, 57, 91, 0.12);
	border-radius: 16px;
	background: linear-gradient(135deg, #f7f3ea 0%, #fdfbf5 100%);
	box-shadow: 0 12px 24px rgba(35, 57, 91, 0.06);
}

.d5cf-weight-editor__header {
	margin-bottom: 0.85rem;
}

.d5cf-weight-editor__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	line-height: 1.25;
	color: #23395b;
}

.d5cf-weight-editor__intro {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(35, 57, 91, 0.8);
}

.d5cf-weight-editor__notice {
	padding: 0.8rem 0.95rem;
	border-radius: 12px;
	font-size: 0.88rem;
	line-height: 1.5;
}

.d5cf-weight-editor__notice--info {
	background: rgba(255, 255, 255, 0.8);
	color: #23395b;
}

.d5cf-weight-editor__notice--warning {
	background: rgba(140, 90, 43, 0.12);
	color: #7a4d1d;
}

.d5cf-weight-editor__section {
	margin-top: 1rem;
}

.d5cf-weight-editor__section-label {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(35, 57, 91, 0.8);
}

.d5cf-weight-editor__help {
	margin: 0 0 0.55rem;
	font-size: 0.84rem;
	line-height: 1.45;
	color: rgba(35, 57, 91, 0.78);
}

.d5cf-weight-editor__matrix {
	display: grid;
	gap: 0.55rem;
	overflow-x: auto;
}

.d5cf-weight-editor__row {
	display: grid;
	gap: 0.55rem;
	align-items: center;
}

.d5cf-weight-editor__cell {
	min-width: 0;
}

.d5cf-weight-editor__cell--personality,
.d5cf-weight-editor__cell--option {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(35, 57, 91, 0.8);
}

.d5cf-weight-editor__cell--option-value {
	padding: 0.85rem 0.9rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.82);
	font-size: 0.92rem;
	font-weight: 600;
	color: #23395b;
}

.d5cf-weight-editor__stepper {
	display: grid;
	grid-template-columns: 2rem minmax(56px, 1fr) 2rem;
	align-items: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(35, 57, 91, 0.12);
	overflow: hidden;
}

.d5cf-weight-editor__stepper-button {
	height: 2.35rem;
	border: 0;
	background: transparent;
	font-size: 1rem;
	font-weight: 700;
	color: #23395b;
	cursor: pointer;
}

.d5cf-weight-editor__stepper-button:hover {
	background: rgba(35, 57, 91, 0.08);
}

.d5cf-weight-editor__stepper-input {
	width: 100%;
	height: 2.35rem;
	padding: 0 0.4rem;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
	color: #23395b;
	-moz-appearance: textfield;
}

.d5cf-weight-editor__stepper-input::-webkit-outer-spin-button,
.d5cf-weight-editor__stepper-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.d5cf-weight-editor__stepper-input:focus {
	outline: none;
	background: rgba(35, 57, 91, 0.06);
}

.d5cf-weight-editor__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.85rem;
}

.d5cf-weight-editor__footer-button {
	padding: 0.65rem 0.95rem;
	border: 1px solid rgba(35, 57, 91, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	font-size: 0.84rem;
	font-weight: 700;
	color: #23395b;
	cursor: pointer;
}

.d5cf-weight-editor__footer-button:hover {
	background: #ffffff;
}

.d5cf-weight-editor__textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 180px;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(35, 57, 91, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	font-family: Consolas, Monaco, monospace;
	font-size: 0.86rem;
	line-height: 1.55;
	color: #23395b;
	resize: vertical;
}

.d5cf-weight-editor__textarea:focus {
	outline: 2px solid rgba(35, 57, 91, 0.14);
	outline-offset: 1px;
}

@media (max-width: 767px) {
	.d5cf-quiz-result__chips {
		flex-direction: column;
		align-items: flex-start;
	}

	.d5cf-quiz-result__score-row {
		flex-direction: column;
		gap: 0.25rem;
	}

	.d5cf-weight-editor__row {
		min-width: 560px;
	}
}
