.ml-professor-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 14px;
}

.ml-professor-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: var(--surface-green);
}

.ml-professor-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ml-professor-avatar {
    width: 88px;
    height: 94px;
    flex: 0 0 auto;
}

.ml-professor-card p:last-child {
    margin: 18px 0 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.5;
}

.ml-crew-list {
    display: grid;
    gap: 10px;
}

.ml-crew-item {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 112px;
    padding: 12px;
    background: var(--surface);
    overflow: hidden;
}

.ml-crew-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent, var(--coin-green));
    opacity: 0.9;
}

.ml-crew-copy {
    min-width: 0;
}

.ml-crew-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ml-crew-heading strong,
.ml-crew-heading span,
.ml-crew-meta span,
.ml-crew-meta strong {
    display: block;
}

.ml-crew-heading strong {
    color: var(--accent, var(--coin-green));
    font-size: 15px;
}

.ml-crew-heading span {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
}

.ml-crew-copy p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.ml-crew-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    color: var(--dim);
    font-size: 11px;
    font-weight: 950;
}

.ml-crew-meta strong {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.ml-agent-avatar {
    --skin: #d8a47f;
    --hair: #202a38;
    --outfit: #dce9e2;
    position: relative;
    width: 66px;
    height: 76px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4faf6;
    overflow: hidden;
    isolation: isolate;
    animation: avatarFloat 5.5s ease-in-out infinite;
}

.ml-agent-avatar::before {
    content: "";
    position: absolute;
    inset: 7px 9px auto;
    height: 1px;
    background: var(--accent, var(--coin-green));
    opacity: 0.5;
}

.ml-agent-avatar::after {
    content: "";
    position: absolute;
    inset: auto 10px 8px;
    height: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0, 164, 95, 0.08);
}

.ml-avatar-stage,
.ml-avatar-body,
.ml-avatar-neck,
.ml-avatar-head,
.ml-avatar-face,
.ml-avatar-hair,
.ml-avatar-eye,
.ml-avatar-mouth,
.ml-avatar-glasses,
.ml-avatar-prop {
    position: absolute;
    display: block;
}

.ml-avatar-stage {
    left: 16px;
    right: 16px;
    bottom: 12px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 164, 95, 0.08);
}

.ml-avatar-body {
    left: 18px;
    bottom: 14px;
    width: 30px;
    height: 30px;
    border-radius: 14px 14px 8px 8px;
    background: var(--accent, var(--coin-green));
    opacity: 0.9;
}

.ml-avatar-neck {
    left: 28px;
    bottom: 39px;
    width: 10px;
    height: 10px;
    border-radius: 0 0 8px 8px;
    background: var(--skin);
}

.ml-avatar-head {
    left: 20px;
    top: 18px;
    width: 26px;
    height: 28px;
    border-radius: 12px 12px 11px 11px;
    background: var(--skin);
    box-shadow: inset 0 -5px 0 rgba(115, 65, 34, 0.10);
}

.ml-avatar-hair {
    left: -2px;
    top: -5px;
    width: 30px;
    height: 14px;
    border-radius: 14px 14px 6px 6px;
    background: var(--hair);
}

.ml-avatar-face {
    inset: 0;
}

.ml-avatar-eye {
    top: 12px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #172018;
    animation: avatarBlink 7s infinite;
}

.ml-avatar-eye.left {
    left: 7px;
}

.ml-avatar-eye.right {
    right: 7px;
}

.ml-avatar-mouth {
    left: 9px;
    top: 20px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: rgba(90, 47, 35, 0.75);
}

.ml-avatar-glasses {
    display: none;
    left: 4px;
    top: 10px;
    width: 18px;
    height: 7px;
    border-top: 2px solid #1f2933;
}

.ml-avatar-prop {
    right: 10px;
    bottom: 22px;
    width: 12px;
    height: 18px;
    border-radius: 4px;
    background: rgba(20, 35, 28, 0.12);
    border: 1px solid rgba(20, 35, 28, 0.18);
}

.ml-agent-avatar[data-agent="el-profesor"] .ml-avatar-glasses,
.ml-agent-avatar[data-agent="berlin"] .ml-avatar-glasses,
.ml-agent-avatar[data-agent="nairobi"] .ml-avatar-glasses {
    display: block;
}

.ml-agent-avatar[data-agent="tokio"] {
    --hair: #1f2937;
}

.ml-agent-avatar[data-agent="berlin"] {
    --hair: #6b7280;
}

.ml-agent-avatar[data-agent="helsinki"] {
    --hair: #263238;
}

.ml-agent-avatar[data-agent="denver"] {
    --hair: #5a351d;
}

.ml-agent-avatar[data-agent="nairobi"] {
    --hair: #2f2a33;
}

.ml-agent-avatar[data-agent="marseille"] {
    --hair: #111827;
}

.ml-agent-avatar[data-mood="alert"],
.ml-agent-avatar[data-mood="cautious"] {
    animation: avatarFloat 4s ease-in-out infinite, avatarPulse 2s ease-in-out infinite;
}

.ml-agent-avatar[data-mood="positive"] .ml-avatar-mouth,
.ml-agent-avatar[data-mood="confident"] .ml-avatar-mouth {
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: transparent;
    border-bottom: 2px solid rgba(90, 47, 35, 0.75);
}

.ml-agent-avatar[data-mood="uncertain"] .ml-avatar-mouth,
.ml-agent-avatar[data-mood="alert"] .ml-avatar-mouth,
.ml-agent-avatar[data-mood="cautious"] .ml-avatar-mouth {
    transform: rotate(180deg);
}
