.tn-profile {
	--tn-profile-border: #dcdcde;
	--tn-profile-muted: #646970;
	--tn-profile-bg: #fff;
	--tn-profile-primary: #2271b1;
	box-sizing: border-box;
	max-width: 980px;
}

.tn-profile *,
.tn-profile *::before,
.tn-profile *::after {
	box-sizing: border-box;
}

.tn-profile-form {
	background: var(--tn-profile-bg);
	border: 1px solid var(--tn-profile-border);
	border-radius: 8px;
	padding: 20px;
}

.tn-profile-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.tn-profile-form input[type="text"],
.tn-profile-form input[type="email"],
.tn-profile-form input[type="password"],
.tn-profile-form input[type="url"],
.tn-profile-form input[type="number"],
.tn-profile-form input[type="date"],
.tn-profile-form input[type="search"],
.tn-profile-form select,
.tn-profile-form textarea,
.tn-profile-directory-search input[type="search"] {
	border: 1px solid var(--tn-profile-border);
	border-radius: 6px;
	min-height: 42px;
	padding: 8px 10px;
	width: 100%;
}

.tn-profile-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tn-profile-button {
	background: var(--tn-profile-primary);
	border-color: var(--tn-profile-primary);
	color: #fff;
}

.tn-profile-notice {
	border-left: 4px solid var(--tn-profile-primary);
	margin: 0 0 16px;
	padding: 12px 14px;
}

.tn-profile-notice-success {
	background: #edfaef;
	border-left-color: #00a32a;
}

.tn-profile-notice-error {
	background: #fcf0f1;
	border-left-color: #d63638;
}

.tn-profile-notice-info {
	background: #f0f6fc;
	border-left-color: #2271b1;
}

.tn-profile-hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}

.tn-profile-checkbox label,
.tn-profile-checkbox-inline {
	display: inline-flex;
	font-weight: 400;
	gap: 8px;
	line-height: 1.4;
}

.tn-profile-muted {
	color: var(--tn-profile-muted);
}

.tn-profile-account-card {
	align-items: center;
	border: 1px solid var(--tn-profile-border);
	border-radius: 8px;
	display: flex;
	gap: 18px;
	padding: 18px;
}

.tn-profile-account-card h2 {
	margin: 0 0 4px;
}

.tn-profile-definition-list {
	display: grid;
	gap: 8px 16px;
	grid-template-columns: max-content minmax(0, 1fr);
	margin-top: 18px;
}

.tn-profile-definition-list dt {
	font-weight: 700;
}

.tn-profile-definition-list dd {
	margin: 0;
}

.tn-profile-directory-search {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
}

.tn-profile-directory-search input[type="search"] {
	max-width: 360px;
}

.tn-profile-directory-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tn-profile-member-card {
	border: 1px solid var(--tn-profile-border);
	border-radius: 8px;
	padding: 16px;
}

.tn-profile-member-card h3 {
	margin: 10px 0 4px;
}

.tn-profile-empty {
	border: 1px dashed var(--tn-profile-border);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
}

.required {
	color: #d63638;
}

@media (max-width: 680px) {
	.tn-profile-grid,
	.tn-profile-definition-list {
		grid-template-columns: 1fr;
	}

	.tn-profile-directory-search {
		align-items: stretch;
		flex-direction: column;
	}

	.tn-profile-directory-search input[type="search"] {
		max-width: none;
	}
}
