/**
 * DOYO-match public styles: human cards + org chart (B8/B9).
 *
 * The human card deliberately uses a WARM palette (amber/terracotta +
 * soft cream) with rounded, organic shapes — visually distinct from the
 * cooler, more technical AI agent cards. The org chart reuses the same
 * family so it reads as one system.
 */

/* ── Human card ─────────────────────────────────────────────── */

.dm-human-card {
	max-width: 420px;
	margin: 16px 0;
	padding: 20px;
	border-radius: 18px;
	background: linear-gradient(145deg, #fffaf3 0%, #fdf0e0 100%);
	border: 1px solid #f2d5b3;
	box-shadow: 0 4px 14px rgba(180, 110, 40, 0.12);
	font-family: inherit;
	line-height: 1.5;
}

.dm-human-card__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.dm-human-card__glyph {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	border-radius: 50%;
	background: #f7e6cd;
	color: #9a5b21;
}

.dm-human-card__name {
	margin: 0 0 2px;
	font-size: 1.2rem;
	color: #4a2c12;
}

.dm-human-card__meta {
	margin: 0;
	font-size: 0.85rem;
	color: #8a6b4a;
}

.dm-human-card__skills {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.dm-human-card__skills li {
	display: grid;
	grid-template-columns: 130px 1fr 40px;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 0.85rem;
}

.dm-human-card__skill-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #5a3a1c;
}

.dm-human-card__skill-bar {
	display: block;
	height: 8px;
	background: #ead9c2;
	border-radius: 999px;
	overflow: hidden;
}

.dm-human-card__skill-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #e0a35c, #c9762a);
	border-radius: 999px;
}

.dm-human-card__skill-value {
	font-size: 0.8rem;
	font-weight: 600;
	color: #8a5a28;
	text-align: right;
}

.dm-human-card__empty {
	color: #8a6b4a;
	font-style: italic;
	font-size: 0.9rem;
}

.dm-human-card__cta {
	margin: 0;
}

.dm-human-card__link {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: #c9762a;
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background 0.2s ease;
}

.dm-human-card__link:hover {
	background: #a85f1e;
	color: #fff;
}

/* ── Org chart ─────────────────────────────────────────────── */

.dm-org-chart {
	max-width: 520px;
	margin: 16px 0;
	padding: 20px;
	border-radius: 18px;
	background: #fffdf9;
	border: 1px solid #f0e0cd;
	box-shadow: 0 4px 14px rgba(180, 110, 40, 0.08);
}

.dm-org-chart__title {
	margin: 0 0 12px;
	font-size: 1.15rem;
	color: #4a2c12;
}

.dm-org-chart__owner {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 10px 14px;
	background: #f7e6cd;
	border-radius: 12px;
	color: #4a2c12;
}

.dm-org-chart__glyph {
	font-size: 20px;
}

.dm-org-chart__owner em {
	font-style: normal;
	font-size: 0.8rem;
	color: #8a6b4a;
}

.dm-org-chart__agents {
	list-style: none;
	margin: 0 0 12px;
	padding: 0 0 0 18px;
	border-left: 2px solid #f0dcc0;
}

.dm-org-chart__agent {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	margin-bottom: 6px;
	background: #faf3e8;
	border-radius: 8px;
	color: #4a3a26;
	font-size: 0.95rem;
}

.dm-org-chart__agent-glyph {
	font-size: 16px;
}

.dm-org-chart__agent small {
	margin-left: auto;
	font-size: 0.75rem;
	color: #8a6b4a;
}

.dm-org-chart__agent--sub {
	margin-left: 18px;
	background: #f6efe4;
}

.dm-org-chart__sub-title {
	margin: 14px 0 8px;
	font-size: 0.95rem;
	color: #6a4a28;
}

.dm-org-chart__empty {
	color: #8a6b4a;
	font-style: italic;
}

.dm-org-chart__back {
	margin: 14px 0 0;
}

.dm-org-chart__back-link {
	color: #a85f1e;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.dm-org-chart__back-link:hover {
	text-decoration: underline;
}

/* ── Error / notice ────────────────────────────────────────── */

.dm-card-error {
	max-width: 420px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fdf3f3;
	border: 1px solid #f2c8c8;
	color: #8a2c2c;
	font-size: 0.9rem;
}
